From 95f13b1678f95a76082b1ad800eb7f307a39b38a Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Tue, 17 Dec 2024 15:20:54 +1100 Subject: [PATCH] update API documentation URLs --- CHANGELOG.md | 2 +- access_seats.go | 4 ++-- access_users.go | 10 +++++----- account_roles.go | 4 ++-- addressing_address_map.go | 22 ++++++++++----------- api_shield_api_discovery.go | 12 ++++++------ api_shield_operations.go | 18 ++++++++--------- api_shield_schemas.go | 34 ++++++++++++++++----------------- bot_management.go | 4 ++-- cache_reserve.go | 4 ++-- certificate_authorities.go | 4 ++-- content_scanning.go | 12 ++++++------ custom_nameservers.go | 12 ++++++------ d1.go | 10 +++++----- dcv_delegation.go | 2 +- devices_dex.go | 10 +++++----- dlp_dataset.go | 14 +++++++------- dns.go | 4 ++-- gateway_categories.go | 2 +- hyperdrive.go | 10 +++++----- images_variants.go | 10 +++++----- infrastructure_access_target.go | 10 +++++----- leaked_credential_check.go | 12 ++++++------ per_hostname_tls_settings.go | 12 ++++++------ regional_tiered_cache.go | 4 ++-- rulesets.go | 16 ++++++++-------- stream.go | 2 +- teams_accounts.go | 4 ++-- teams_certificates.go | 12 ++++++------ workers.go | 14 +++++++------- workers_account_settings.go | 4 ++-- workers_cron_triggers.go | 4 ++-- workers_domain.go | 8 ++++---- workers_for_platforms.go | 8 ++++---- workers_kv.go | 20 +++++++++---------- workers_subdomain.go | 4 ++-- workers_tail.go | 6 +++--- zone_hold.go | 6 +++--- zt_risk_score_integration.go | 10 +++++----- 39 files changed, 180 insertions(+), 180 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87187ed897c..b9d86be99fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1080,7 +1080,7 @@ BREAKING CHANGES: NOTES: -- pages: removed the v1 logs endpoint for Pages deployments. Please switch to v2: https://developers.cloudflare.com/api/operations/pages-deployment-get-deployment-logs ([#1135](https://github.com/cloudflare/cloudflare-go/issues/1135)) +- pages: removed the v1 logs endpoint for Pages deployments. Please switch to v2: https://developers.cloudflare.com/api/resources/pages/subresources/projects/subresources/deployments/subresources/history/subresources/logs/methods/get/ ([#1135](https://github.com/cloudflare/cloudflare-go/issues/1135)) ENHANCEMENTS: diff --git a/access_seats.go b/access_seats.go index ea44eebc7b1..fba25af1120 100644 --- a/access_seats.go +++ b/access_seats.go @@ -44,7 +44,7 @@ type UpdateAccessUserSeatResponse struct { // UpdateAccessUserSeat updates a single Access User Seat. // -// API documentation: https://developers.cloudflare.com/api/operations/zero-trust-seats-update-a-user-seat +// API documentation: https://developers.cloudflare.com/api/resources/zero_trust/subresources/seats/methods/edit/ func (api *API) UpdateAccessUserSeat(ctx context.Context, rc *ResourceContainer, params UpdateAccessUserSeatParams) ([]AccessUpdateAccessUserSeatResult, error) { if rc.Level != AccountRouteLevel { return []AccessUpdateAccessUserSeatResult{}, fmt.Errorf(errInvalidResourceContainerAccess, rc.Level) @@ -77,7 +77,7 @@ func (api *API) UpdateAccessUserSeat(ctx context.Context, rc *ResourceContainer, // UpdateAccessUsersSeats updates many Access User Seats. // -// API documentation: https://developers.cloudflare.com/api/operations/zero-trust-seats-update-a-user-seat +// API documentation: https://developers.cloudflare.com/api/resources/zero_trust/subresources/seats/methods/edit/ func (api *API) UpdateAccessUsersSeats(ctx context.Context, rc *ResourceContainer, params UpdateAccessUsersSeatsParams) ([]AccessUpdateAccessUserSeatResult, error) { if rc.Level != AccountRouteLevel { return []AccessUpdateAccessUserSeatResult{}, fmt.Errorf(errInvalidResourceContainerAccess, rc.Level) diff --git a/access_users.go b/access_users.go index 233ceb2bb67..63381687fc4 100644 --- a/access_users.go +++ b/access_users.go @@ -201,7 +201,7 @@ type GetAccessUserSingleActiveSessionResult struct { // ListAccessUsers returns a list of users for a single cloudflare access/zerotrust account. // -// API documentation: https://developers.cloudflare.com/api/operations/zero-trust-users-get-users +// API documentation: https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/users/methods/list/ func (api *API) ListAccessUsers(ctx context.Context, rc *ResourceContainer, params AccessUserParams) ([]AccessUser, *ResultInfo, error) { if rc.Level != AccountRouteLevel { return []AccessUser{}, &ResultInfo{}, fmt.Errorf(errInvalidResourceContainerAccess, rc.Level) @@ -250,7 +250,7 @@ func (api *API) ListAccessUsers(ctx context.Context, rc *ResourceContainer, para // GetAccessUserActiveSessions returns a list of active sessions for an user. // -// API documentation: https://developers.cloudflare.com/api/operations/zero-trust-users-get-active-sessions +// API documentation: https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/users/subresources/active_sessions/methods/list/ func (api *API) GetAccessUserActiveSessions(ctx context.Context, rc *ResourceContainer, userID string) ([]AccessUserActiveSessionResult, error) { if rc.Level != AccountRouteLevel { return []AccessUserActiveSessionResult{}, fmt.Errorf(errInvalidResourceContainerAccess, rc.Level) @@ -278,7 +278,7 @@ func (api *API) GetAccessUserActiveSessions(ctx context.Context, rc *ResourceCon // GetAccessUserSingleActiveSession returns a single active session for a user. // -// API documentation: https://developers.cloudflare.com/api/operations/zero-trust-users-get-active-session +// API documentation: https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/users/subresources/active_sessions/methods/get/ func (api *API) GetAccessUserSingleActiveSession(ctx context.Context, rc *ResourceContainer, userID string, sessionID string) (GetAccessUserSingleActiveSessionResult, error) { if rc.Level != AccountRouteLevel { return GetAccessUserSingleActiveSessionResult{}, fmt.Errorf(errInvalidResourceContainerAccess, rc.Level) @@ -307,7 +307,7 @@ func (api *API) GetAccessUserSingleActiveSession(ctx context.Context, rc *Resour // GetAccessUserFailedLogins returns a list of failed logins for a user. // -// API documentation: https://developers.cloudflare.com/api/operations/zero-trust-users-get-failed-logins +// API documentation: https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/users/subresources/failed_logins/methods/list/ func (api *API) GetAccessUserFailedLogins(ctx context.Context, rc *ResourceContainer, userID string) ([]AccessUserFailedLoginResult, error) { if rc.Level != AccountRouteLevel { return []AccessUserFailedLoginResult{}, fmt.Errorf(errInvalidResourceContainerAccess, rc.Level) @@ -335,7 +335,7 @@ func (api *API) GetAccessUserFailedLogins(ctx context.Context, rc *ResourceConta // GetAccessUserLastSeenIdentity returns the last seen identity for a user. // -// API documentation: https://developers.cloudflare.com/api/operations/zero-trust-users-get-last-seen-identity +// API documentation: https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/users/subresources/last_seen_identity/methods/get/ func (api *API) GetAccessUserLastSeenIdentity(ctx context.Context, rc *ResourceContainer, userID string) (GetAccessUserLastSeenIdentityResult, error) { if rc.Level != AccountRouteLevel { return GetAccessUserLastSeenIdentityResult{}, fmt.Errorf(errInvalidResourceContainerAccess, rc.Level) diff --git a/account_roles.go b/account_roles.go index d216ae3105b..913cab5e698 100644 --- a/account_roles.go +++ b/account_roles.go @@ -46,7 +46,7 @@ type ListAccountRolesParams struct { // ListAccountRoles returns all roles of an account. // -// API reference: https://developers.cloudflare.com/api/operations/account-roles-list-roles +// API reference: https://developers.cloudflare.com/api/resources/accounts/subresources/roles/methods/list/ func (api *API) ListAccountRoles(ctx context.Context, rc *ResourceContainer, params ListAccountRolesParams) ([]AccountRole, error) { if rc.Identifier == "" { return []AccountRole{}, ErrMissingAccountID @@ -89,7 +89,7 @@ func (api *API) ListAccountRoles(ctx context.Context, rc *ResourceContainer, par // GetAccountRole returns the details of a single account role. // -// API reference: https://developers.cloudflare.com/api/operations/account-roles-role-details +// API reference: https://developers.cloudflare.com/api/resources/accounts/subresources/roles/methods/get/ func (api *API) GetAccountRole(ctx context.Context, rc *ResourceContainer, roleID string) (AccountRole, error) { if rc.Identifier == "" { return AccountRole{}, ErrMissingAccountID diff --git a/addressing_address_map.go b/addressing_address_map.go index 0109e79bb8a..a90aa02ffa7 100644 --- a/addressing_address_map.go +++ b/addressing_address_map.go @@ -121,7 +121,7 @@ type DeleteIPAddressFromAddressMapParams struct { // ListAddressMaps lists all address maps owned by the account. // -// API reference: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-list-address-maps +// API reference: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/methods/list/ func (api *API) ListAddressMaps(ctx context.Context, rc *ResourceContainer, params ListAddressMapsParams) ([]AddressMap, error) { if rc.Level != AccountRouteLevel { return []AddressMap{}, ErrRequiredAccountLevelResourceContainer @@ -143,7 +143,7 @@ func (api *API) ListAddressMaps(ctx context.Context, rc *ResourceContainer, para // CreateAddressMap creates a new address map under the account. // -// API reference: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-create-address-map +// API reference: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/methods/create/ func (api *API) CreateAddressMap(ctx context.Context, rc *ResourceContainer, params CreateAddressMapParams) (AddressMap, error) { if rc.Level != AccountRouteLevel { return AddressMap{}, ErrRequiredAccountLevelResourceContainer @@ -165,7 +165,7 @@ func (api *API) CreateAddressMap(ctx context.Context, rc *ResourceContainer, par // GetAddressMap returns a specific address map. // -// API reference: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-address-map-details +// API reference: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/methods/get/ func (api *API) GetAddressMap(ctx context.Context, rc *ResourceContainer, id string) (AddressMap, error) { if rc.Level != AccountRouteLevel { return AddressMap{}, ErrRequiredAccountLevelResourceContainer @@ -187,7 +187,7 @@ func (api *API) GetAddressMap(ctx context.Context, rc *ResourceContainer, id str // UpdateAddressMap modifies properties of an address map owned by the account. // -// API reference: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-update-address-map +// API reference: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/methods/edit/ func (api *API) UpdateAddressMap(ctx context.Context, rc *ResourceContainer, params UpdateAddressMapParams) (AddressMap, error) { if rc.Level != AccountRouteLevel { return AddressMap{}, ErrRequiredAccountLevelResourceContainer @@ -209,7 +209,7 @@ func (api *API) UpdateAddressMap(ctx context.Context, rc *ResourceContainer, par // DeleteAddressMap deletes a particular address map owned by the account. // -// API reference: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-delete-address-map +// API reference: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/methods/delete/ func (api *API) DeleteAddressMap(ctx context.Context, rc *ResourceContainer, id string) error { if rc.Level != AccountRouteLevel { return ErrRequiredAccountLevelResourceContainer @@ -222,7 +222,7 @@ func (api *API) DeleteAddressMap(ctx context.Context, rc *ResourceContainer, id // CreateIPAddressToAddressMap adds an IP address from a prefix owned by the account to a particular address map. // -// API reference: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-add-an-ip-to-an-address-map +// API reference: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/subresources/ips/methods/update/ func (api *API) CreateIPAddressToAddressMap(ctx context.Context, rc *ResourceContainer, params CreateIPAddressToAddressMapParams) error { if rc.Level != AccountRouteLevel { return ErrRequiredAccountLevelResourceContainer @@ -235,7 +235,7 @@ func (api *API) CreateIPAddressToAddressMap(ctx context.Context, rc *ResourceCon // DeleteIPAddressFromAddressMap removes an IP address from a particular address map. // -// API reference: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-remove-an-ip-from-an-address-map +// API reference: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/subresources/ips/methods/delete/ func (api *API) DeleteIPAddressFromAddressMap(ctx context.Context, rc *ResourceContainer, params DeleteIPAddressFromAddressMapParams) error { if rc.Level != AccountRouteLevel { return ErrRequiredAccountLevelResourceContainer @@ -249,8 +249,8 @@ func (api *API) DeleteIPAddressFromAddressMap(ctx context.Context, rc *ResourceC // CreateMembershipToAddressMap adds a zone/account as a member of a particular address map. // // API reference: -// - account: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-add-an-account-membership-to-an-address-map -// - zone: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-add-a-zone-membership-to-an-address-map +// - account: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/subresources/accounts/methods/update/ +// - zone: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/subresources/zones/methods/update/ func (api *API) CreateMembershipToAddressMap(ctx context.Context, rc *ResourceContainer, params CreateMembershipToAddressMapParams) error { if rc.Level != AccountRouteLevel { return ErrRequiredAccountLevelResourceContainer @@ -268,8 +268,8 @@ func (api *API) CreateMembershipToAddressMap(ctx context.Context, rc *ResourceCo // DeleteMembershipFromAddressMap removes a zone/account as a member of a particular address map. // // API reference: -// - account: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-remove-an-account-membership-from-an-address-map -// - zone: https://developers.cloudflare.com/api/operations/ip-address-management-address-maps-remove-a-zone-membership-from-an-address-map +// - account: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/subresources/accounts/methods/delete/ +// - zone: https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/subresources/zones/methods/delete/ func (api *API) DeleteMembershipFromAddressMap(ctx context.Context, rc *ResourceContainer, params DeleteMembershipFromAddressMapParams) error { if rc.Level != AccountRouteLevel { return ErrRequiredAccountLevelResourceContainer diff --git a/api_shield_api_discovery.go b/api_shield_api_discovery.go index 69b3ad2433e..6dc206349f8 100644 --- a/api_shield_api_discovery.go +++ b/api_shield_api_discovery.go @@ -53,7 +53,7 @@ type APIShieldDiscoveryOperation struct { // ListAPIShieldDiscoveryOperationsParams represents the parameters to pass when retrieving discovered operations. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-api-discovery-retrieve-discovered-operations-on-a-zone +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/list/ type ListAPIShieldDiscoveryOperationsParams struct { // Direction to order results. Direction string `url:"direction,omitempty"` @@ -80,7 +80,7 @@ type ListAPIShieldDiscoveryOperationsParams struct { // UpdateAPIShieldDiscoveryOperationParams represents the parameters to pass to patch a discovery operation // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-api-patch-discovered-operation +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/edit/ type UpdateAPIShieldDiscoveryOperationParams struct { // OperationID is the ID, formatted as UUID, of the operation to be updated OperationID string `json:"-" url:"-"` @@ -95,7 +95,7 @@ type UpdateAPIShieldDiscoveryOperationParams struct { // "99522293-a505-45e5-bbad-bbc339f5dc40": PatchAPIShieldDiscoveryOperation{ State: "review" }, // } // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-api-patch-discovered-operations +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/bulk_edit/ type UpdateAPIShieldDiscoveryOperationsParams map[string]UpdateAPIShieldDiscoveryOperation // UpdateAPIShieldDiscoveryOperation represents the state to set on a discovery operation. @@ -125,7 +125,7 @@ type APIShieldPatchDiscoveryOperationsResponse struct { // ListAPIShieldDiscoveryOperations retrieve the most up to date view of discovered operations. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-api-discovery-retrieve-discovered-operations-on-a-zone +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/list/ func (api *API) ListAPIShieldDiscoveryOperations(ctx context.Context, rc *ResourceContainer, params ListAPIShieldDiscoveryOperationsParams) ([]APIShieldDiscoveryOperation, ResultInfo, error) { uri := buildURI(fmt.Sprintf("/zones/%s/api_gateway/discovery/operations", rc.Identifier), params) @@ -145,7 +145,7 @@ func (api *API) ListAPIShieldDiscoveryOperations(ctx context.Context, rc *Resour // UpdateAPIShieldDiscoveryOperation updates certain fields on a discovered operation. // -// API Documentation: https://developers.cloudflare.com/api/operations/api-shield-api-patch-discovered-operation +// API Documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/edit/ func (api *API) UpdateAPIShieldDiscoveryOperation(ctx context.Context, rc *ResourceContainer, params UpdateAPIShieldDiscoveryOperationParams) (*UpdateAPIShieldDiscoveryOperation, error) { if params.OperationID == "" { return nil, fmt.Errorf("operation ID must be provided") @@ -170,7 +170,7 @@ func (api *API) UpdateAPIShieldDiscoveryOperation(ctx context.Context, rc *Resou // UpdateAPIShieldDiscoveryOperations bulk updates certain fields on multiple discovered operations // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-api-patch-discovered-operations +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/bulk_edit/ func (api *API) UpdateAPIShieldDiscoveryOperations(ctx context.Context, rc *ResourceContainer, params UpdateAPIShieldDiscoveryOperationsParams) (*UpdateAPIShieldDiscoveryOperationsParams, error) { uri := fmt.Sprintf("/zones/%s/api_gateway/discovery/operations", rc.Identifier) diff --git a/api_shield_operations.go b/api_shield_operations.go index 1d89a1754b2..b081538e144 100644 --- a/api_shield_operations.go +++ b/api_shield_operations.go @@ -19,7 +19,7 @@ type APIShieldOperation struct { // GetAPIShieldOperationParams represents the parameters to pass when retrieving an operation. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-endpoint-management-retrieve-information-about-an-operation +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/get/ type GetAPIShieldOperationParams struct { // The Operation ID to retrieve OperationID string `url:"-"` @@ -30,7 +30,7 @@ type GetAPIShieldOperationParams struct { // CreateAPIShieldOperationsParams represents the parameters to pass when adding one or more operations. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-endpoint-management-add-operations-to-a-zone +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/create/ type CreateAPIShieldOperationsParams struct { // Operations are a slice of operations to be created in API Shield Endpoint Management Operations []APIShieldBasicOperation `url:"-"` @@ -45,7 +45,7 @@ type APIShieldBasicOperation struct { // DeleteAPIShieldOperationParams represents the parameters to pass to delete an operation. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-endpoint-management-delete-an-operation +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/delete/ type DeleteAPIShieldOperationParams struct { // OperationID is the operation to be deleted OperationID string `url:"-"` @@ -53,7 +53,7 @@ type DeleteAPIShieldOperationParams struct { // ListAPIShieldOperationsParams represents the parameters to pass when retrieving operations // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-endpoint-management-retrieve-information-about-all-operations-on-a-zone +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/list/ type ListAPIShieldOperationsParams struct { // Features represents a set of features to return in `features` object when // performing making read requests against an Operation or listing operations. @@ -70,7 +70,7 @@ type ListAPIShieldOperationsParams struct { // APIShieldListOperationsFilters represents the filtering query parameters to set when retrieving operations // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-endpoint-management-retrieve-information-about-all-operations-on-a-zone +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/list/ type APIShieldListOperationsFilters struct { // Hosts filters results to only include the specified hosts. Hosts []string `url:"host,omitempty"` @@ -101,7 +101,7 @@ type APIShieldDeleteOperationResponse struct { // GetAPIShieldOperation returns information about an operation // -// API documentation https://developers.cloudflare.com/api/operations/api-shield-endpoint-management-retrieve-information-about-an-operation +// API documentation https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/get/ func (api *API) GetAPIShieldOperation(ctx context.Context, rc *ResourceContainer, params GetAPIShieldOperationParams) (*APIShieldOperation, error) { path := fmt.Sprintf("/zones/%s/api_gateway/operations/%s", rc.Identifier, params.OperationID) @@ -123,7 +123,7 @@ func (api *API) GetAPIShieldOperation(ctx context.Context, rc *ResourceContainer // ListAPIShieldOperations retrieve information about all operations on a zone // -// API documentation https://developers.cloudflare.com/api/operations/api-shield-endpoint-management-retrieve-information-about-all-operations-on-a-zone +// API documentation https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/list/ func (api *API) ListAPIShieldOperations(ctx context.Context, rc *ResourceContainer, params ListAPIShieldOperationsParams) ([]APIShieldOperation, ResultInfo, error) { path := fmt.Sprintf("/zones/%s/api_gateway/operations", rc.Identifier) @@ -145,7 +145,7 @@ func (api *API) ListAPIShieldOperations(ctx context.Context, rc *ResourceContain // CreateAPIShieldOperations add one or more operations to a zone. // -// API documentation https://developers.cloudflare.com/api/operations/api-shield-endpoint-management-add-operations-to-a-zone +// API documentation https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/create/ func (api *API) CreateAPIShieldOperations(ctx context.Context, rc *ResourceContainer, params CreateAPIShieldOperationsParams) ([]APIShieldOperation, error) { uri := fmt.Sprintf("/zones/%s/api_gateway/operations", rc.Identifier) @@ -166,7 +166,7 @@ func (api *API) CreateAPIShieldOperations(ctx context.Context, rc *ResourceConta // DeleteAPIShieldOperation deletes a single operation // -// API documentation https://developers.cloudflare.com/api/operations/api-shield-endpoint-management-delete-an-operation +// API documentation https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/delete/ func (api *API) DeleteAPIShieldOperation(ctx context.Context, rc *ResourceContainer, params DeleteAPIShieldOperationParams) error { uri := fmt.Sprintf("/zones/%s/api_gateway/operations/%s", rc.Identifier, params.OperationID) diff --git a/api_shield_schemas.go b/api_shield_schemas.go index 804181d8665..9c9db96811b 100644 --- a/api_shield_schemas.go +++ b/api_shield_schemas.go @@ -31,7 +31,7 @@ type APIShieldSchema struct { // CreateAPIShieldSchemaParams represents the parameters to pass when creating a schema in Schema Validation 2.0. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-post-schema +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/create/ type CreateAPIShieldSchemaParams struct { // Source is a io.Reader containing the contents of the schema Source io.Reader @@ -45,7 +45,7 @@ type CreateAPIShieldSchemaParams struct { // GetAPIShieldSchemaParams represents the parameters to pass when retrieving a schema with a given schema ID. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-retrieve-information-about-specific-schema +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/get/ type GetAPIShieldSchemaParams struct { // SchemaID is the ID of the schema to retrieve SchemaID string `url:"-"` @@ -56,7 +56,7 @@ type GetAPIShieldSchemaParams struct { // ListAPIShieldSchemasParams represents the parameters to pass when retrieving all schemas. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-retrieve-information-about-all-schemas +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/list/ type ListAPIShieldSchemasParams struct { // OmitSource specifies whether the contents of the schema should be returned in the "Source" field. OmitSource *bool `url:"omit_source,omitempty"` @@ -70,7 +70,7 @@ type ListAPIShieldSchemasParams struct { // DeleteAPIShieldSchemaParams represents the parameters to pass to delete a schema. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-delete-a-schema +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/delete/ type DeleteAPIShieldSchemaParams struct { // SchemaID is the schema to be deleted SchemaID string `url:"-"` @@ -78,7 +78,7 @@ type DeleteAPIShieldSchemaParams struct { // UpdateAPIShieldSchemaParams represents the parameters to pass to patch certain fields on an existing schema // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-enable-validation-for-a-schema +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/edit/ type UpdateAPIShieldSchemaParams struct { // SchemaID is the schema to be patched SchemaID string `json:"-" url:"-"` @@ -180,7 +180,7 @@ func (cse APIShieldCreateSchemaEventWithLocations) String() string { // GetAPIShieldSchema retrieves information about a specific schema on a zone // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-retrieve-information-about-specific-schema +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/get/ func (api *API) GetAPIShieldSchema(ctx context.Context, rc *ResourceContainer, params GetAPIShieldSchemaParams) (*APIShieldSchema, error) { if params.SchemaID == "" { return nil, fmt.Errorf("schema ID must be provided") @@ -206,7 +206,7 @@ func (api *API) GetAPIShieldSchema(ctx context.Context, rc *ResourceContainer, p // ListAPIShieldSchemas retrieves all schemas for a zone // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-retrieve-information-about-all-schemas +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/list/ func (api *API) ListAPIShieldSchemas(ctx context.Context, rc *ResourceContainer, params ListAPIShieldSchemasParams) ([]APIShieldSchema, ResultInfo, error) { path := fmt.Sprintf("/zones/%s/api_gateway/user_schemas", rc.Identifier) @@ -228,7 +228,7 @@ func (api *API) ListAPIShieldSchemas(ctx context.Context, rc *ResourceContainer, // CreateAPIShieldSchema uploads a schema to a zone // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-post-schema +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/create/ func (api *API) CreateAPIShieldSchema(ctx context.Context, rc *ResourceContainer, params CreateAPIShieldSchemaParams) (*APIShieldCreateSchemaResult, error) { uri := fmt.Sprintf("/zones/%s/api_gateway/user_schemas", rc.Identifier) @@ -287,7 +287,7 @@ func (api *API) CreateAPIShieldSchema(ctx context.Context, rc *ResourceContainer // DeleteAPIShieldSchema deletes a single schema // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-delete-a-schema +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/delete/ func (api *API) DeleteAPIShieldSchema(ctx context.Context, rc *ResourceContainer, params DeleteAPIShieldSchemaParams) error { if params.SchemaID == "" { return fmt.Errorf("schema ID must be provided") @@ -311,7 +311,7 @@ func (api *API) DeleteAPIShieldSchema(ctx context.Context, rc *ResourceContainer // UpdateAPIShieldSchema updates certain fields on an existing schema. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-enable-validation-for-a-schema +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/edit/ func (api *API) UpdateAPIShieldSchema(ctx context.Context, rc *ResourceContainer, params UpdateAPIShieldSchemaParams) (*APIShieldSchema, error) { if params.SchemaID == "" { return nil, fmt.Errorf("schema ID must be provided") @@ -350,7 +350,7 @@ type APIShieldSchemaValidationSettings struct { // UpdateAPIShieldSchemaValidationSettingsParams represents the parameters to pass to update certain fields // on schema validation settings on the zone // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-patch-zone-level-settings +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/settings/subresources/schema_validation/methods/edit/ type UpdateAPIShieldSchemaValidationSettingsParams struct { // DefaultMitigationAction is the mitigation to apply when there is no operation-level // mitigation action defined @@ -373,7 +373,7 @@ type APIShieldSchemaValidationSettingsResponse struct { // GetAPIShieldSchemaValidationSettings retrieves zone level schema validation settings // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-retrieve-zone-level-settings +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/settings/subresources/schema_validation/methods/get/ func (api *API) GetAPIShieldSchemaValidationSettings(ctx context.Context, rc *ResourceContainer) (*APIShieldSchemaValidationSettings, error) { path := fmt.Sprintf("/zones/%s/api_gateway/settings/schema_validation", rc.Identifier) @@ -395,7 +395,7 @@ func (api *API) GetAPIShieldSchemaValidationSettings(ctx context.Context, rc *Re // UpdateAPIShieldSchemaValidationSettings updates certain fields on zone level schema validation settings // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-patch-zone-level-settings +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/settings/subresources/schema_validation/methods/edit/ func (api *API) UpdateAPIShieldSchemaValidationSettings(ctx context.Context, rc *ResourceContainer, params UpdateAPIShieldSchemaValidationSettingsParams) (*APIShieldSchemaValidationSettings, error) { path := fmt.Sprintf("/zones/%s/api_gateway/settings/schema_validation", rc.Identifier) @@ -425,7 +425,7 @@ type APIShieldOperationSchemaValidationSettings struct { // GetAPIShieldOperationSchemaValidationSettingsParams represents the parameters to pass to retrieve // the schema validation settings set on the operation. // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-retrieve-operation-level-settings +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/subresources/schema_validation/methods/get/ type GetAPIShieldOperationSchemaValidationSettingsParams struct { // The Operation ID to apply the mitigation action to OperationID string `url:"-"` @@ -441,7 +441,7 @@ type GetAPIShieldOperationSchemaValidationSettingsParams struct { // "99522293-a505-45e5-bbad-bbc339f5dc40": APIShieldOperationSchemaValidationSettings{ MitigationAction: nil }, // } // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-update-multiple-operation-level-settings +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/subresources/schema_validation/methods/edit/ type UpdateAPIShieldOperationSchemaValidationSettings map[string]APIShieldOperationSchemaValidationSettings // APIShieldOperationSchemaValidationSettingsResponse represents the response from the GET api_gateway/operation/{operationID}/schema_validation endpoint. @@ -458,7 +458,7 @@ type UpdateAPIShieldOperationSchemaValidationSettingsResponse struct { // GetAPIShieldOperationSchemaValidationSettings retrieves operation level schema validation settings // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-retrieve-operation-level-settings +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/subresources/schema_validation/methods/get/ func (api *API) GetAPIShieldOperationSchemaValidationSettings(ctx context.Context, rc *ResourceContainer, params GetAPIShieldOperationSchemaValidationSettingsParams) (*APIShieldOperationSchemaValidationSettings, error) { if params.OperationID == "" { return nil, fmt.Errorf("operation ID must be provided") @@ -484,7 +484,7 @@ func (api *API) GetAPIShieldOperationSchemaValidationSettings(ctx context.Contex // UpdateAPIShieldOperationSchemaValidationSettings update multiple operation level schema validation settings // -// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-update-multiple-operation-level-settings +// API documentation: https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/subresources/schema_validation/methods/edit/ func (api *API) UpdateAPIShieldOperationSchemaValidationSettings(ctx context.Context, rc *ResourceContainer, params UpdateAPIShieldOperationSchemaValidationSettings) (*UpdateAPIShieldOperationSchemaValidationSettings, error) { path := fmt.Sprintf("/zones/%s/api_gateway/operations/schema_validation", rc.Identifier) diff --git a/bot_management.go b/bot_management.go index 51205a6aea9..006efe72d7b 100644 --- a/bot_management.go +++ b/bot_management.go @@ -44,7 +44,7 @@ type UpdateBotManagementParams struct { // GetBotManagement gets a zone API shield configuration. // -// API documentation: https://developers.cloudflare.com/api/operations/bot-management-for-a-zone-get-config +// API documentation: https://developers.cloudflare.com/api/resources/bot_management/methods/get/ func (api *API) GetBotManagement(ctx context.Context, rc *ResourceContainer) (BotManagement, error) { uri := fmt.Sprintf("/zones/%s/bot_management", rc.Identifier) @@ -63,7 +63,7 @@ func (api *API) GetBotManagement(ctx context.Context, rc *ResourceContainer) (Bo // UpdateBotManagement sets a zone API shield configuration. // -// API documentation: https://developers.cloudflare.com/api/operations/bot-management-for-a-zone-update-config +// API documentation: https://developers.cloudflare.com/api/resources/bot_management/methods/update/ func (api *API) UpdateBotManagement(ctx context.Context, rc *ResourceContainer, params UpdateBotManagementParams) (BotManagement, error) { uri := fmt.Sprintf("/zones/%s/bot_management", rc.Identifier) diff --git a/cache_reserve.go b/cache_reserve.go index 64e74b39a9c..8b370d002b7 100644 --- a/cache_reserve.go +++ b/cache_reserve.go @@ -37,7 +37,7 @@ type UpdateCacheReserveParams struct { // GetCacheReserve returns information about the current cache reserve settings. // -// API reference: https://developers.cloudflare.com/api/operations/zone-cache-settings-get-cache-reserve-setting +// API reference: https://developers.cloudflare.com/api/resources/cache/subresources/cache_reserve/methods/get/ func (api *API) GetCacheReserve(ctx context.Context, rc *ResourceContainer, params GetCacheReserveParams) (CacheReserve, error) { if rc.Level != ZoneRouteLevel { return CacheReserve{}, ErrRequiredZoneLevelResourceContainer @@ -60,7 +60,7 @@ func (api *API) GetCacheReserve(ctx context.Context, rc *ResourceContainer, para // UpdateCacheReserve updates the cache reserve setting for a zone // -// API reference: https://developers.cloudflare.com/api/operations/zone-cache-settings-change-cache-reserve-setting +// API reference: https://developers.cloudflare.com/api/resources/cache/subresources/cache_reserve/methods/edit/ func (api *API) UpdateCacheReserve(ctx context.Context, rc *ResourceContainer, params UpdateCacheReserveParams) (CacheReserve, error) { if rc.Level != ZoneRouteLevel { return CacheReserve{}, ErrRequiredZoneLevelResourceContainer diff --git a/certificate_authorities.go b/certificate_authorities.go index 771199e10dd..b9cffb2ab61 100644 --- a/certificate_authorities.go +++ b/certificate_authorities.go @@ -26,7 +26,7 @@ type HostnameAssociation = string // List Hostname Associations // -// API Reference: https://developers.cloudflare.com/api/operations/client-certificate-for-a-zone-list-hostname-associations +// API Reference: https://developers.cloudflare.com/api/resources/certificate_authorities/subresources/hostname_associations/methods/get/ func (api *API) ListCertificateAuthoritiesHostnameAssociations(ctx context.Context, rc *ResourceContainer, params ListCertificateAuthoritiesHostnameAssociationsParams) ([]HostnameAssociation, error) { uri := fmt.Sprintf( @@ -51,7 +51,7 @@ func (api *API) ListCertificateAuthoritiesHostnameAssociations(ctx context.Conte // Replace Hostname Associations // -// API Reference: https://developers.cloudflare.com/api/operations/client-certificate-for-a-zone-put-hostname-associations +// API Reference: https://developers.cloudflare.com/api/resources/certificate_authorities/subresources/hostname_associations/methods/update/ func (api *API) UpdateCertificateAuthoritiesHostnameAssociations(ctx context.Context, rc *ResourceContainer, params UpdateCertificateAuthoritiesHostnameAssociationsParams) ([]HostnameAssociation, error) { uri := fmt.Sprintf( "/%s/%s/certificate_authorities/hostname_associations", diff --git a/content_scanning.go b/content_scanning.go index 08d5139e4bf..7a142704d9f 100644 --- a/content_scanning.go +++ b/content_scanning.go @@ -70,7 +70,7 @@ type ContentScanningDeleteCustomExpressionsResponse struct { // ContentScanningEnable enables Content Scanning. // -// API reference: https://developers.cloudflare.com/api/operations/waf-content-scanning-enable +// API reference: https://developers.cloudflare.com/api/resources/content_scanning/methods/enable/ func (api *API) ContentScanningEnable(ctx context.Context, rc *ResourceContainer, params ContentScanningEnableParams) (ContentScanningEnableResponse, error) { if rc.Identifier == "" { return ContentScanningEnableResponse{}, ErrMissingZoneID @@ -90,7 +90,7 @@ func (api *API) ContentScanningEnable(ctx context.Context, rc *ResourceContainer // ContentScanningDisable disables Content Scanning. // -// API reference: https://developers.cloudflare.com/api/operations/waf-content-scanning-disable +// API reference: https://developers.cloudflare.com/api/resources/content_scanning/methods/disable/ func (api *API) ContentScanningDisable(ctx context.Context, rc *ResourceContainer, params ContentScanningDisableParams) (ContentScanningDisableResponse, error) { if rc.Identifier == "" { return ContentScanningDisableResponse{}, ErrMissingZoneID @@ -110,7 +110,7 @@ func (api *API) ContentScanningDisable(ctx context.Context, rc *ResourceContaine // ContentScanningStatus reads the status of Content Scanning. // -// API reference: https://developers.cloudflare.com/api/operations/waf-content-scanning-get-status +// API reference: https://developers.cloudflare.com/api/resources/content_scanning/subresources/settings/methods/get/ func (api *API) ContentScanningStatus(ctx context.Context, rc *ResourceContainer, params ContentScanningStatusParams) (ContentScanningStatusResponse, error) { if rc.Identifier == "" { return ContentScanningStatusResponse{}, ErrMissingZoneID @@ -130,7 +130,7 @@ func (api *API) ContentScanningStatus(ctx context.Context, rc *ResourceContainer // ContentScanningListCustomExpressions retrieves the list of existing custom scan expressions for Content Scanning // -// API reference: https://developers.cloudflare.com/api/operations/waf-content-scanning-list-custom-scan-expressions +// API reference: https://developers.cloudflare.com/api/resources/content_scanning/subresources/payloads/methods/list/ func (api *API) ContentScanningListCustomExpressions(ctx context.Context, rc *ResourceContainer, params ContentScanningListCustomExpressionsParams) ([]ContentScanningCustomExpression, error) { if rc.Identifier == "" { return []ContentScanningCustomExpression{}, ErrMissingZoneID @@ -150,7 +150,7 @@ func (api *API) ContentScanningListCustomExpressions(ctx context.Context, rc *Re // ContentScanningAddCustomExpressions add new custom scan expressions for Content Scanning // -// API reference: https://developers.cloudflare.com/api/operations/waf-content-scanning-list-custom-scan-expressions +// API reference: https://developers.cloudflare.com/api/resources/content_scanning/subresources/payloads/methods/list/ func (api *API) ContentScanningAddCustomExpressions(ctx context.Context, rc *ResourceContainer, params ContentScanningAddCustomExpressionsParams) ([]ContentScanningCustomExpression, error) { if rc.Identifier == "" { return []ContentScanningCustomExpression{}, ErrMissingZoneID @@ -170,7 +170,7 @@ func (api *API) ContentScanningAddCustomExpressions(ctx context.Context, rc *Res // ContentScanningDeleteCustomExpressions delete custom scan expressions for Content Scanning // -// API reference: https://developers.cloudflare.com/api/operations/waf-content-scanning-delete-custom-scan-expressions +// API reference: https://developers.cloudflare.com/api/resources/content_scanning/subresources/payloads/methods/delete/ func (api *API) ContentScanningDeleteCustomExpression(ctx context.Context, rc *ResourceContainer, params ContentScanningDeleteCustomExpressionsParams) ([]ContentScanningCustomExpression, error) { if rc.Identifier == "" { return []ContentScanningCustomExpression{}, ErrMissingZoneID diff --git a/custom_nameservers.go b/custom_nameservers.go index dda3003c579..06ee4918b88 100644 --- a/custom_nameservers.go +++ b/custom_nameservers.go @@ -73,7 +73,7 @@ type UpdateCustomNameserverZoneMetadataParams struct { // GetCustomNameservers lists custom nameservers. // -// API documentation: https://developers.cloudflare.com/api/operations/account-level-custom-nameservers-list-account-custom-nameservers +// API documentation: https://developers.cloudflare.com/api/resources/custom_nameservers/methods/get/ func (api *API) GetCustomNameservers(ctx context.Context, rc *ResourceContainer, params GetCustomNameserversParams) ([]CustomNameserverResult, error) { if rc.Level != AccountRouteLevel { return []CustomNameserverResult{}, ErrRequiredAccountLevelResourceContainer @@ -96,7 +96,7 @@ func (api *API) GetCustomNameservers(ctx context.Context, rc *ResourceContainer, // CreateCustomNameservers adds a custom nameserver. // -// API documentation: https://developers.cloudflare.com/api/operations/account-level-custom-nameservers-add-account-custom-nameserver +// API documentation: https://developers.cloudflare.com/api/resources/custom_nameservers/methods/create/ func (api *API) CreateCustomNameservers(ctx context.Context, rc *ResourceContainer, params CreateCustomNameserversParams) (CustomNameserverResult, error) { if rc.Level != AccountRouteLevel { return CustomNameserverResult{}, ErrRequiredAccountLevelResourceContainer @@ -120,7 +120,7 @@ func (api *API) CreateCustomNameservers(ctx context.Context, rc *ResourceContain // DeleteCustomNameservers removes a custom nameserver. // -// API documentation: https://developers.cloudflare.com/api/operations/account-level-custom-nameservers-delete-account-custom-nameserver +// API documentation: https://developers.cloudflare.com/api/resources/custom_nameservers/methods/delete/ func (api *API) DeleteCustomNameservers(ctx context.Context, rc *ResourceContainer, params DeleteCustomNameserversParams) error { if rc.Level != AccountRouteLevel { return ErrRequiredAccountLevelResourceContainer @@ -142,7 +142,7 @@ func (api *API) DeleteCustomNameservers(ctx context.Context, rc *ResourceContain // GetEligibleZonesAccountCustomNameservers lists zones eligible for custom nameservers. // -// API documentation: https://developers.cloudflare.com/api/operations/account-level-custom-nameservers-get-eligible-zones-for-account-custom-nameservers +// API documentation: https://developers.cloudflare.com/api/resources/custom_nameservers/methods/availabilty/ func (api *API) GetEligibleZonesAccountCustomNameservers(ctx context.Context, rc *ResourceContainer, params GetEligibleZonesAccountCustomNameserversParams) ([]string, error) { if rc.Level != AccountRouteLevel { return []string{}, ErrRequiredAccountLevelResourceContainer @@ -166,7 +166,7 @@ func (api *API) GetEligibleZonesAccountCustomNameservers(ctx context.Context, rc // GetCustomNameserverZoneMetadata get metadata for custom nameservers on a zone. // -// API documentation: https://developers.cloudflare.com/api/operations/account-level-custom-nameservers-usage-for-a-zone-get-account-custom-nameserver-related-zone-metadata +// API documentation: https://developers.cloudflare.com/api/resources/zones/subresources/custom_nameservers/methods/get/ func (api *API) GetCustomNameserverZoneMetadata(ctx context.Context, rc *ResourceContainer, params GetCustomNameserverZoneMetadataParams) (CustomNameserverZoneMetadata, error) { if rc.Level != ZoneRouteLevel { return CustomNameserverZoneMetadata{}, ErrRequiredZoneLevelResourceContainer @@ -190,7 +190,7 @@ func (api *API) GetCustomNameserverZoneMetadata(ctx context.Context, rc *Resourc // UpdateCustomNameserverZoneMetadata set metadata for custom nameservers on a zone. // -// API documentation: https://developers.cloudflare.com/api/operations/account-level-custom-nameservers-usage-for-a-zone-set-account-custom-nameserver-related-zone-metadata +// API documentation: https://developers.cloudflare.com/api/resources/zones/subresources/custom_nameservers/methods/update/ func (api *API) UpdateCustomNameserverZoneMetadata(ctx context.Context, rc *ResourceContainer, params UpdateCustomNameserverZoneMetadataParams) error { if rc.Level != ZoneRouteLevel { return ErrRequiredZoneLevelResourceContainer diff --git a/d1.go b/d1.go index 08a3ecc51fb..5cd375052ad 100644 --- a/d1.go +++ b/d1.go @@ -71,7 +71,7 @@ type QueryD1Response struct { // ListD1Databases returns all databases for an account. // -// API reference: https://developers.cloudflare.com/api/operations/cloudflare-d1-list-databases +// API reference: https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/list/ func (api *API) ListD1Databases(ctx context.Context, rc *ResourceContainer, params ListD1DatabasesParams) ([]D1Database, *ResultInfo, error) { if rc.Identifier == "" { return []D1Database{}, &ResultInfo{}, ErrMissingAccountID @@ -113,7 +113,7 @@ func (api *API) ListD1Databases(ctx context.Context, rc *ResourceContainer, para // CreateD1Database creates a new database for an account. // -// API reference: https://developers.cloudflare.com/api/operations/cloudflare-d1-create-database +// API reference: https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/create/ func (api *API) CreateD1Database(ctx context.Context, rc *ResourceContainer, params CreateD1DatabaseParams) (D1Database, error) { if rc.Identifier == "" { return D1Database{}, ErrMissingAccountID @@ -135,7 +135,7 @@ func (api *API) CreateD1Database(ctx context.Context, rc *ResourceContainer, par // DeleteD1Database deletes a database for an account. // -// API reference: https://developers.cloudflare.com/api/operations/cloudflare-d1-delete-database +// API reference: https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/delete/ func (api *API) DeleteD1Database(ctx context.Context, rc *ResourceContainer, databaseID string) error { if rc.Identifier == "" { return ErrMissingAccountID @@ -153,7 +153,7 @@ func (api *API) DeleteD1Database(ctx context.Context, rc *ResourceContainer, dat // GetD1Database returns a database for an account. // -// API reference: https://developers.cloudflare.com/api/operations/cloudflare-d1-get-database +// API reference: https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/get/ func (api *API) GetD1Database(ctx context.Context, rc *ResourceContainer, databaseID string) (D1Database, error) { if rc.Identifier == "" { return D1Database{}, ErrMissingAccountID @@ -175,7 +175,7 @@ func (api *API) GetD1Database(ctx context.Context, rc *ResourceContainer, databa // QueryD1Database queries a database for an account. // -// API reference: https://developers.cloudflare.com/api/operations/cloudflare-d1-query-database +// API reference: https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/query/ func (api *API) QueryD1Database(ctx context.Context, rc *ResourceContainer, params QueryD1DatabaseParams) ([]D1Result, error) { if rc.Identifier == "" { return []D1Result{}, ErrMissingAccountID diff --git a/dcv_delegation.go b/dcv_delegation.go index db66db27363..fab16b03396 100644 --- a/dcv_delegation.go +++ b/dcv_delegation.go @@ -23,7 +23,7 @@ type GetDCVDelegationParams struct{} // GetDCVDelegation gets a zone DCV Delegation UUID. // -// API documentation: https://developers.cloudflare.com/api/operations/dcv-delegation-uuid-get +// API documentation: https://developers.cloudflare.com/api/resources/dcv_delegation/methods/get/ func (api *API) GetDCVDelegation(ctx context.Context, rc *ResourceContainer, params GetDCVDelegationParams) (DCVDelegation, ResultInfo, error) { uri := fmt.Sprintf("/zones/%s/dcv_delegation/uuid", rc.Identifier) diff --git a/devices_dex.go b/devices_dex.go index 4c9ef5070e9..60108ca7281 100644 --- a/devices_dex.go +++ b/devices_dex.go @@ -58,7 +58,7 @@ type UpdateDeviceDexTestParams struct { // ListDexTests returns all Device Dex Tests for a given account. // -// API reference : https://developers.cloudflare.com/api/operations/device-dex-test-details +// API reference : https://developers.cloudflare.com/api/resources/zero_trust/subresources/devices/subresources/dex_tests/methods/list/ func (api *API) ListDexTests(ctx context.Context, rc *ResourceContainer, params ListDeviceDexTestParams) (DeviceDexTests, error) { if rc.Level != AccountRouteLevel { return DeviceDexTests{}, ErrRequiredAccountLevelResourceContainer @@ -82,7 +82,7 @@ func (api *API) ListDexTests(ctx context.Context, rc *ResourceContainer, params // CreateDeviceDexTest created a new Device Dex Test // -// API reference: https://developers.cloudflare.com/api/operations/device-dex-test-create-device-dex-test +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/devices/subresources/dex_tests/methods/create/ func (api *API) CreateDeviceDexTest(ctx context.Context, rc *ResourceContainer, params CreateDeviceDexTestParams) (DeviceDexTest, error) { if rc.Level != AccountRouteLevel { return DeviceDexTest{}, ErrRequiredAccountLevelResourceContainer @@ -105,7 +105,7 @@ func (api *API) CreateDeviceDexTest(ctx context.Context, rc *ResourceContainer, // UpdateDeviceDexTest Updates a Device Dex Test. // -// API reference: https://developers.cloudflare.com/api/operations/device-dex-test-update-device-dex-test +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/devices/subresources/dex_tests/methods/update/ func (api *API) UpdateDeviceDexTest(ctx context.Context, rc *ResourceContainer, params UpdateDeviceDexTestParams) (DeviceDexTest, error) { if rc.Level != AccountRouteLevel { return DeviceDexTest{}, ErrRequiredAccountLevelResourceContainer @@ -129,7 +129,7 @@ func (api *API) UpdateDeviceDexTest(ctx context.Context, rc *ResourceContainer, // GetDeviceDexTest gets a single Device Dex Test. // -// API reference: https://developers.cloudflare.com/api/operations/device-dex-test-get-device-dex-test +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/devices/subresources/dex_tests/methods/get/ func (api *API) GetDeviceDexTest(ctx context.Context, rc *ResourceContainer, testID string) (DeviceDexTest, error) { if rc.Level != AccountRouteLevel { return DeviceDexTest{}, ErrRequiredAccountLevelResourceContainer @@ -152,7 +152,7 @@ func (api *API) GetDeviceDexTest(ctx context.Context, rc *ResourceContainer, tes // DeleteDexTest deletes a Device Dex Test. // -// API reference: https://developers.cloudflare.com/api/operations/device-dex-test-delete-device-dex-test +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/devices/subresources/dex_tests/methods/delete/ func (api *API) DeleteDexTest(ctx context.Context, rc *ResourceContainer, testID string) (DeviceDexTests, error) { if rc.Level != AccountRouteLevel { return DeviceDexTests{}, ErrRequiredAccountLevelResourceContainer diff --git a/dlp_dataset.go b/dlp_dataset.go index 09cf86416c7..5462976c6ff 100644 --- a/dlp_dataset.go +++ b/dlp_dataset.go @@ -43,7 +43,7 @@ type DLPDatasetListResponse struct { // ListDLPDatasets returns all the DLP datasets associated with an account. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-datasets-read-all +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/list/ func (api *API) ListDLPDatasets(ctx context.Context, rc *ResourceContainer, params ListDLPDatasetsParams) ([]DLPDataset, error) { if rc.Identifier == "" { return nil, nil @@ -72,7 +72,7 @@ type DLPDatasetGetResponse struct { // GetDLPDataset returns a DLP dataset based on the dataset ID. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-datasets-read +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/get/ func (api *API) GetDLPDataset(ctx context.Context, rc *ResourceContainer, datasetID string) (DLPDataset, error) { if rc.Identifier == "" { return DLPDataset{}, nil @@ -118,7 +118,7 @@ type CreateDLPDatasetResponse struct { // CreateDLPDataset creates a DLP dataset. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-datasets-create +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/create/ func (api *API) CreateDLPDataset(ctx context.Context, rc *ResourceContainer, params CreateDLPDatasetParams) (CreateDLPDatasetResult, error) { if rc.Identifier == "" { return CreateDLPDatasetResult{}, nil @@ -142,7 +142,7 @@ func (api *API) CreateDLPDataset(ctx context.Context, rc *ResourceContainer, par // DeleteDLPDataset deletes a DLP dataset. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-datasets-delete +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/delete/ func (api *API) DeleteDLPDataset(ctx context.Context, rc *ResourceContainer, datasetID string) error { if rc.Identifier == "" { return ErrMissingResourceIdentifier @@ -170,7 +170,7 @@ type UpdateDLPDatasetResponse struct { // UpdateDLPDataset updates the details of a DLP dataset. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-datasets-update +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/update/ func (api *API) UpdateDLPDataset(ctx context.Context, rc *ResourceContainer, params UpdateDLPDatasetParams) (DLPDataset, error) { if rc.Identifier == "" { return DLPDataset{}, nil @@ -212,7 +212,7 @@ type CreateDLPDatasetUploadParams struct { // CreateDLPDatasetUpload creates a new upload version for the specified DLP dataset. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-datasets-create-version +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/create/-version func (api *API) CreateDLPDatasetUpload(ctx context.Context, rc *ResourceContainer, params CreateDLPDatasetUploadParams) (CreateDLPDatasetUploadResult, error) { if rc.Identifier == "" { return CreateDLPDatasetUploadResult{}, nil @@ -251,7 +251,7 @@ type UploadDLPDatasetVersionResponse struct { // UploadDLPDatasetVersion uploads a new version of the specified DLP dataset. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-datasets-upload-version +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/subresources/upload/methods/edit/ func (api *API) UploadDLPDatasetVersion(ctx context.Context, rc *ResourceContainer, params UploadDLPDatasetVersionParams) (DLPDataset, error) { if rc.Identifier == "" { return DLPDataset{}, nil diff --git a/dns.go b/dns.go index 0c36efd429a..6549e60d136 100644 --- a/dns.go +++ b/dns.go @@ -347,7 +347,7 @@ func (api *API) DeleteDNSRecord(ctx context.Context, rc *ResourceContainer, reco // ExportDNSRecords returns all DNS records for a zone in the BIND format. // -// API reference: https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-export-dns-records +// API reference: https://developers.cloudflare.com/api/resources/dns/subresources/records/methods/export/ func (api *API) ExportDNSRecords(ctx context.Context, rc *ResourceContainer, params ExportDNSRecordsParams) (string, error) { if rc.Level != ZoneRouteLevel { return "", ErrRequiredZoneLevelResourceContainer @@ -376,7 +376,7 @@ func (api *API) ExportDNSRecords(ctx context.Context, rc *ResourceContainer, par // two separate API calls (one for proxied and one for non-proxied) instead of // making the end user know about this detail. // -// API reference: https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-import-dns-records +// API reference: https://developers.cloudflare.com/api/resources/dns/subresources/records/methods/import/ func (api *API) ImportDNSRecords(ctx context.Context, rc *ResourceContainer, params ImportDNSRecordsParams) error { if rc.Level != ZoneRouteLevel { return ErrRequiredZoneLevelResourceContainer diff --git a/gateway_categories.go b/gateway_categories.go index da23a74e180..5c6027f038a 100644 --- a/gateway_categories.go +++ b/gateway_categories.go @@ -35,7 +35,7 @@ type ListGatewayCategoriesParams struct { // ListGatewayCategories returns all gateway categories within an account. // -// API reference: https://developers.cloudflare.com/api/operations/zero-trust-gateway-categories-list-categories +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/categories/methods/list/ func (api *API) ListGatewayCategories(ctx context.Context, rc *ResourceContainer, params ListGatewayCategoriesParams) ([]GatewayCategory, ResultInfo, error) { uri := fmt.Sprintf("/accounts/%s/gateway/categories", rc.Identifier) diff --git a/hyperdrive.go b/hyperdrive.go index bd1912efa42..42bdf68e8dc 100644 --- a/hyperdrive.go +++ b/hyperdrive.go @@ -76,7 +76,7 @@ type ListHyperdriveConfigParams struct{} // ListHyperdriveConfigs returns the Hyperdrive configs owned by an account. // -// API reference: https://developers.cloudflare.com/api/operations/list-hyperdrive +// API reference: https://developers.cloudflare.com/api/resources/hyperdrive/subresources/configs/methods/list/ func (api *API) ListHyperdriveConfigs(ctx context.Context, rc *ResourceContainer, params ListHyperdriveConfigParams) ([]HyperdriveConfig, error) { if rc.Identifier == "" { return []HyperdriveConfig{}, ErrMissingAccountID @@ -100,7 +100,7 @@ func (api *API) ListHyperdriveConfigs(ctx context.Context, rc *ResourceContainer // CreateHyperdriveConfig creates a new Hyperdrive config. // -// API reference: https://developers.cloudflare.com/api/operations/create-hyperdrive +// API reference: https://developers.cloudflare.com/api/resources/hyperdrive/subresources/configs/methods/create/ func (api *API) CreateHyperdriveConfig(ctx context.Context, rc *ResourceContainer, params CreateHyperdriveConfigParams) (HyperdriveConfig, error) { if rc.Identifier == "" { return HyperdriveConfig{}, ErrMissingAccountID @@ -128,7 +128,7 @@ func (api *API) CreateHyperdriveConfig(ctx context.Context, rc *ResourceContaine // DeleteHyperdriveConfig deletes a Hyperdrive config. // -// API reference: https://developers.cloudflare.com/api/operations/delete-hyperdrive +// API reference: https://developers.cloudflare.com/api/resources/hyperdrive/subresources/configs/methods/delete/ func (api *API) DeleteHyperdriveConfig(ctx context.Context, rc *ResourceContainer, hyperdriveID string) error { if rc.Identifier == "" { return ErrMissingAccountID @@ -148,7 +148,7 @@ func (api *API) DeleteHyperdriveConfig(ctx context.Context, rc *ResourceContaine // GetHyperdriveConfig returns a single Hyperdrive config based on the ID. // -// API reference: https://developers.cloudflare.com/api/operations/get-hyperdrive +// API reference: https://developers.cloudflare.com/api/resources/hyperdrive/subresources/configs/methods/get/ func (api *API) GetHyperdriveConfig(ctx context.Context, rc *ResourceContainer, hyperdriveID string) (HyperdriveConfig, error) { if rc.Identifier == "" { return HyperdriveConfig{}, ErrMissingAccountID @@ -175,7 +175,7 @@ func (api *API) GetHyperdriveConfig(ctx context.Context, rc *ResourceContainer, // UpdateHyperdriveConfig updates a Hyperdrive config. // -// API reference: https://developers.cloudflare.com/api/operations/update-hyperdrive +// API reference: https://developers.cloudflare.com/api/resources/hyperdrive/subresources/configs/methods/update/ func (api *API) UpdateHyperdriveConfig(ctx context.Context, rc *ResourceContainer, params UpdateHyperdriveConfigParams) (HyperdriveConfig, error) { if rc.Identifier == "" { return HyperdriveConfig{}, ErrMissingAccountID diff --git a/images_variants.go b/images_variants.go index 2949551166e..b363278c5a5 100644 --- a/images_variants.go +++ b/images_variants.go @@ -55,7 +55,7 @@ type ImagesVariantResponse struct { // Lists existing variants. // -// API Reference: https://developers.cloudflare.com/api/operations/cloudflare-images-variants-list-variants +// API Reference: https://developers.cloudflare.com/api/resources/images/subresources/v1/subresources/variants/methods/list/ func (api *API) ListImagesVariants(ctx context.Context, rc *ResourceContainer, params ListImageVariantsParams) (ListImageVariantsResult, error) { if rc.Identifier == "" { return ListImageVariantsResult{}, ErrMissingAccountID @@ -78,7 +78,7 @@ func (api *API) ListImagesVariants(ctx context.Context, rc *ResourceContainer, p // Fetch details for a single variant. // -// API Reference: https://developers.cloudflare.com/api/operations/cloudflare-images-variants-variant-details +// API Reference: https://developers.cloudflare.com/api/resources/images/subresources/v1/subresources/variants/methods/get/ func (api *API) GetImagesVariant(ctx context.Context, rc *ResourceContainer, variantID string) (ImagesVariant, error) { if rc.Identifier == "" { return ImagesVariant{}, ErrMissingAccountID @@ -101,7 +101,7 @@ func (api *API) GetImagesVariant(ctx context.Context, rc *ResourceContainer, var // Specify variants that allow you to resize images for different use cases. // -// API Reference: https://developers.cloudflare.com/api/operations/cloudflare-images-variants-create-a-variant +// API Reference: https://developers.cloudflare.com/api/resources/images/subresources/v1/subresources/variants/methods/create/ func (api *API) CreateImagesVariant(ctx context.Context, rc *ResourceContainer, params CreateImagesVariantParams) (ImagesVariant, error) { if rc.Identifier == "" { return ImagesVariant{}, ErrMissingAccountID @@ -124,7 +124,7 @@ func (api *API) CreateImagesVariant(ctx context.Context, rc *ResourceContainer, // Deleting a variant purges the cache for all images associated with the variant. // -// API Reference: https://developers.cloudflare.com/api/operations/cloudflare-images-variants-variant-details +// API Reference: https://developers.cloudflare.com/api/resources/images/subresources/v1/subresources/variants/methods/get/ func (api *API) DeleteImagesVariant(ctx context.Context, rc *ResourceContainer, variantID string) error { if rc.Identifier == "" { return ErrMissingAccountID @@ -141,7 +141,7 @@ func (api *API) DeleteImagesVariant(ctx context.Context, rc *ResourceContainer, // Updating a variant purges the cache for all images associated with the variant. // -// API Reference: https://developers.cloudflare.com/api/operations/cloudflare-images-variants-variant-details +// API Reference: https://developers.cloudflare.com/api/resources/images/subresources/v1/subresources/variants/methods/get/ func (api *API) UpdateImagesVariant(ctx context.Context, rc *ResourceContainer, params UpdateImagesVariantParams) (ImagesVariant, error) { if rc.Identifier == "" { return ImagesVariant{}, ErrMissingAccountID diff --git a/infrastructure_access_target.go b/infrastructure_access_target.go index 0c6a72a8666..1597142ef7b 100644 --- a/infrastructure_access_target.go +++ b/infrastructure_access_target.go @@ -69,7 +69,7 @@ type InfrastructureAccessTargetListParams struct { // ListInfrastructureAccessTargets returns all infrastructure access targets within an account. // -// Account API reference: https://developers.cloudflare.com/api/operations/infra-targets-list +// Account API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/infrastructure/subresources/targets/methods/list/ func (api *API) ListInfrastructureAccessTargets(ctx context.Context, rc *ResourceContainer, params InfrastructureAccessTargetListParams) ([]InfrastructureAccessTarget, *ResultInfo, error) { if rc.Identifier == "" { return []InfrastructureAccessTarget{}, &ResultInfo{}, ErrMissingAccountID @@ -117,7 +117,7 @@ func (api *API) ListInfrastructureAccessTargets(ctx context.Context, rc *Resourc // CreateInfrastructureAccessTarget creates a new infrastructure access target. // -// Account API reference: https://developers.cloudflare.com/api/operations/infra-targets-post +// Account API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/infrastructure/subresources/targets/methods/create/ func (api *API) CreateInfrastructureAccessTarget(ctx context.Context, rc *ResourceContainer, params CreateInfrastructureAccessTargetParams) (InfrastructureAccessTarget, error) { if rc.Identifier == "" { return InfrastructureAccessTarget{}, ErrMissingAccountID @@ -141,7 +141,7 @@ func (api *API) CreateInfrastructureAccessTarget(ctx context.Context, rc *Resour // UpdateInfrastructureAccessTarget updates an existing infrastructure access target. // -// Account API reference: https://developers.cloudflare.com/api/operations/infra-targets-put +// Account API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/infrastructure/subresources/targets/methods/update/ func (api *API) UpdateInfrastructureAccessTarget(ctx context.Context, rc *ResourceContainer, params UpdateInfrastructureAccessTargetParams) (InfrastructureAccessTarget, error) { if rc.Identifier == "" { return InfrastructureAccessTarget{}, ErrMissingAccountID @@ -175,7 +175,7 @@ func (api *API) UpdateInfrastructureAccessTarget(ctx context.Context, rc *Resour // GetInfrastructureAccessTarget returns a single infrastructure access target based on target ID // ID for either account or zone. // -// Account API reference: https://developers.cloudflare.com/api/operations/infra-targets-get +// Account API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/infrastructure/subresources/targets/methods/get/ func (api *API) GetInfrastructureAccessTarget(ctx context.Context, rc *ResourceContainer, targetID string) (InfrastructureAccessTarget, error) { if rc.Identifier == "" { return InfrastructureAccessTarget{}, ErrMissingAccountID @@ -208,7 +208,7 @@ func (api *API) GetInfrastructureAccessTarget(ctx context.Context, rc *ResourceC // DeleteInfrastructureAccessTarget deletes an infrastructure access target. // -// Account API reference: https://developers.cloudflare.com/api/operations/infra-targets-delete +// Account API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/infrastructure/subresources/targets/methods/delete/ func (api *API) DeleteInfrastructureAccessTarget(ctx context.Context, rc *ResourceContainer, targetID string) error { if rc.Identifier == "" { return ErrMissingAccountID diff --git a/leaked_credential_check.go b/leaked_credential_check.go index 85ee35074ad..60ab72c17d9 100644 --- a/leaked_credential_check.go +++ b/leaked_credential_check.go @@ -65,7 +65,7 @@ type LeakedCredentialCheckUpdateDetectionResponse struct { // LeakCredentialCheckGetStatus returns whether Leaked credential check is enabled or not. It is false by default. // -// API reference: https://developers.cloudflare.com/api/operations/waf-product-api-leaked-credentials-get-status +// API reference: https://developers.cloudflare.com/api/resources/leaked_credential_checks/methods/get/ func (api *API) LeakedCredentialCheckGetStatus(ctx context.Context, rc *ResourceContainer, params LeakedCredentialCheckGetStatusParams) (LeakedCredentialCheckStatus, error) { if rc.Identifier == "" { return LeakedCredentialCheckStatus{}, ErrMissingZoneID @@ -85,7 +85,7 @@ func (api *API) LeakedCredentialCheckGetStatus(ctx context.Context, rc *Resource // LeakedCredentialCheckSetStatus enable or disable the Leak Credential Check. Returns the status. // -// API reference: https://developers.cloudflare.com/api/operations/waf-product-api-leaked-credentials-set-status +// API reference: https://developers.cloudflare.com/api/resources/leaked_credential_checks/methods/create/ func (api *API) LeakedCredentialCheckSetStatus(ctx context.Context, rc *ResourceContainer, params LeakCredentialCheckSetStatusParams) (LeakedCredentialCheckStatus, error) { if rc.Identifier == "" { return LeakedCredentialCheckStatus{}, ErrMissingZoneID @@ -105,7 +105,7 @@ func (api *API) LeakedCredentialCheckSetStatus(ctx context.Context, rc *Resource // LeakedCredentialCheckListDetections lists user-defined detection patterns for Leaked Credential Checks. // -// API reference: https://developers.cloudflare.com/api/operations/waf-product-api-leaked-credentials-list-detections +// API reference: https://developers.cloudflare.com/api/resources/leaked_credential_checks/subresources/detections/methods/list/ func (api *API) LeakedCredentialCheckListDetections(ctx context.Context, rc *ResourceContainer, params LeakedCredentialCheckListDetectionsParams) ([]LeakedCredentialCheckDetectionEntry, error) { if rc.Identifier == "" { return []LeakedCredentialCheckDetectionEntry{}, ErrMissingZoneID @@ -125,7 +125,7 @@ func (api *API) LeakedCredentialCheckListDetections(ctx context.Context, rc *Res // LeakedCredentialCheckCreateDetection creates user-defined detection pattern for Leaked Credential Checks // -// API reference: https://developers.cloudflare.com/api/operations/waf-product-api-leaked-credentials-create-detection +// API reference: https://developers.cloudflare.com/api/resources/leaked_credential_checks/subresources/detections/methods/create/ func (api *API) LeakedCredentialCheckCreateDetection(ctx context.Context, rc *ResourceContainer, params LeakedCredentialCheckCreateDetectionParams) (LeakedCredentialCheckDetectionEntry, error) { if rc.Identifier == "" { return LeakedCredentialCheckDetectionEntry{}, ErrMissingZoneID @@ -145,7 +145,7 @@ func (api *API) LeakedCredentialCheckCreateDetection(ctx context.Context, rc *Re // LeakedCredentialCheckDeleteDetection removes user-defined detection pattern for Leaked Credential Checks // -// API reference: https://developers.cloudflare.com/api/operations/waf-product-api-leaked-credentials-delete-detection +// API reference: https://developers.cloudflare.com/api/resources/leaked_credential_checks/subresources/detections/methods/delete/ func (api *API) LeakedCredentialCheckDeleteDetection(ctx context.Context, rc *ResourceContainer, params LeakedCredentialCheckDeleteDetectionParams) (LeakedCredentialCheckDeleteDetectionResponse, error) { if rc.Identifier == "" { return LeakedCredentialCheckDeleteDetectionResponse{}, ErrMissingZoneID @@ -168,7 +168,7 @@ func (api *API) LeakedCredentialCheckDeleteDetection(ctx context.Context, rc *Re // LeakedCredentialCheckUpdateDetection updates user-defined detection pattern for Leaked Credential Checks. Returns updated detection. // -// API reference: https://developers.cloudflare.com/api/operations/waf-product-api-leaked-credentials-update-detection +// API reference: https://developers.cloudflare.com/api/resources/leaked_credential_checks/subresources/detections/methods/update/ func (api *API) LeakedCredentialCheckUpdateDetection(ctx context.Context, rc *ResourceContainer, params LeakedCredentialCheckUpdateDetectionParams) (LeakedCredentialCheckDetectionEntry, error) { if rc.Identifier == "" { return LeakedCredentialCheckDetectionEntry{}, ErrMissingZoneID diff --git a/per_hostname_tls_settings.go b/per_hostname_tls_settings.go index 19c159819c6..da27934040f 100644 --- a/per_hostname_tls_settings.go +++ b/per_hostname_tls_settings.go @@ -60,7 +60,7 @@ var ( // ListHostnameTLSSettings returns a list of all user-created tls setting values for the specified setting and hostnames. // -// API reference: https://developers.cloudflare.com/api/operations/per-hostname-tls-settings-list +// API reference: https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/get/ func (api *API) ListHostnameTLSSettings(ctx context.Context, rc *ResourceContainer, params ListHostnameTLSSettingsParams) ([]HostnameTLSSetting, ResultInfo, error) { if rc.Identifier == "" { return []HostnameTLSSetting{}, ResultInfo{}, ErrMissingZoneID @@ -83,7 +83,7 @@ func (api *API) ListHostnameTLSSettings(ctx context.Context, rc *ResourceContain // UpdateHostnameTLSSetting will update the per-hostname tls setting for the specified hostname. // -// API reference: https://developers.cloudflare.com/api/operations/per-hostname-tls-settings-put +// API reference: https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/update/ func (api *API) UpdateHostnameTLSSetting(ctx context.Context, rc *ResourceContainer, params UpdateHostnameTLSSettingParams) (HostnameTLSSetting, error) { if rc.Identifier == "" { return HostnameTLSSetting{}, ErrMissingZoneID @@ -109,7 +109,7 @@ func (api *API) UpdateHostnameTLSSetting(ctx context.Context, rc *ResourceContai // DeleteHostnameTLSSetting will delete the specified per-hostname tls setting. // -// API reference: https://developers.cloudflare.com/api/operations/per-hostname-tls-settings-delete +// API reference: https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/delete/ func (api *API) DeleteHostnameTLSSetting(ctx context.Context, rc *ResourceContainer, params DeleteHostnameTLSSettingParams) (HostnameTLSSetting, error) { if rc.Identifier == "" { return HostnameTLSSetting{}, ErrMissingZoneID @@ -177,7 +177,7 @@ type DeleteHostnameTLSSettingCiphersParams struct { // ListHostnameTLSSettingsCiphers returns a list of all user-created tls setting ciphers values for the specified setting and hostnames. // Ciphers functions are separate due to the API returning a list of strings as the value, rather than a string (as is the case for the other tls settings). // -// API reference: https://developers.cloudflare.com/api/operations/per-hostname-tls-settings-list +// API reference: https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/get/ func (api *API) ListHostnameTLSSettingsCiphers(ctx context.Context, rc *ResourceContainer, params ListHostnameTLSSettingsCiphersParams) ([]HostnameTLSSettingCiphers, ResultInfo, error) { if rc.Identifier == "" { return []HostnameTLSSettingCiphers{}, ResultInfo{}, ErrMissingZoneID @@ -198,7 +198,7 @@ func (api *API) ListHostnameTLSSettingsCiphers(ctx context.Context, rc *Resource // UpdateHostnameTLSSettingCiphers will update the per-hostname ciphers tls setting for the specified hostname. // Ciphers functions are separate due to the API returning a list of strings as the value, rather than a string (as is the case for the other tls settings). // -// API reference: https://developers.cloudflare.com/api/operations/per-hostname-tls-settings-put +// API reference: https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/update/ func (api *API) UpdateHostnameTLSSettingCiphers(ctx context.Context, rc *ResourceContainer, params UpdateHostnameTLSSettingCiphersParams) (HostnameTLSSettingCiphers, error) { if rc.Identifier == "" { return HostnameTLSSettingCiphers{}, ErrMissingZoneID @@ -222,7 +222,7 @@ func (api *API) UpdateHostnameTLSSettingCiphers(ctx context.Context, rc *Resourc // DeleteHostnameTLSSettingCiphers will delete the specified per-hostname ciphers tls setting value. // Ciphers functions are separate due to the API returning a list of strings as the value, rather than a string (as is the case for the other tls settings). // -// API reference: https://developers.cloudflare.com/api/operations/per-hostname-tls-settings-delete +// API reference: https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/delete/ func (api *API) DeleteHostnameTLSSettingCiphers(ctx context.Context, rc *ResourceContainer, params DeleteHostnameTLSSettingCiphersParams) (HostnameTLSSettingCiphers, error) { if rc.Identifier == "" { return HostnameTLSSettingCiphers{}, ErrMissingZoneID diff --git a/regional_tiered_cache.go b/regional_tiered_cache.go index eb3254be2bd..aac714ad856 100644 --- a/regional_tiered_cache.go +++ b/regional_tiered_cache.go @@ -38,7 +38,7 @@ type UpdateRegionalTieredCacheParams struct { // GetRegionalTieredCache returns information about the current regional tiered // cache settings. // -// API reference: https://developers.cloudflare.com/api/operations/zone-cache-settings-get-regional-tiered-cache-setting +// API reference: https://developers.cloudflare.com/api/resources/cache/subresources/regional_tiered_cache/methods/get/ func (api *API) GetRegionalTieredCache(ctx context.Context, rc *ResourceContainer, params GetRegionalTieredCacheParams) (RegionalTieredCache, error) { if rc.Level != ZoneRouteLevel { return RegionalTieredCache{}, ErrRequiredZoneLevelResourceContainer @@ -62,7 +62,7 @@ func (api *API) GetRegionalTieredCache(ctx context.Context, rc *ResourceContaine // UpdateRegionalTieredCache updates the regional tiered cache setting for a // zone. // -// API reference: https://developers.cloudflare.com/api/operations/zone-cache-settings-change-regional-tiered-cache-setting +// API reference: https://developers.cloudflare.com/api/resources/cache/subresources/regional_tiered_cache/methods/edit/ func (api *API) UpdateRegionalTieredCache(ctx context.Context, rc *ResourceContainer, params UpdateRegionalTieredCacheParams) (RegionalTieredCache, error) { if rc.Level != ZoneRouteLevel { return RegionalTieredCache{}, ErrRequiredZoneLevelResourceContainer diff --git a/rulesets.go b/rulesets.go index 1573bebb00d..07262700e33 100644 --- a/rulesets.go +++ b/rulesets.go @@ -751,7 +751,7 @@ type DeleteRulesetRuleParams struct { // ResourceContainer type provided. // // API reference: https://developers.cloudflare.com/api/operations/listAccountRulesets -// API reference: https://developers.cloudflare.com/api/operations/listZoneRulesets +// API reference: https://developers.cloudflare.com/api/resources/rulesets/methods/list/ func (api *API) ListRulesets(ctx context.Context, rc *ResourceContainer, params ListRulesetsParams) ([]Ruleset, error) { uri := fmt.Sprintf("/%s/%s/rulesets", rc.Level, rc.Identifier) @@ -771,7 +771,7 @@ func (api *API) ListRulesets(ctx context.Context, rc *ResourceContainer, params // GetRuleset fetches a single ruleset. // // API reference: https://developers.cloudflare.com/api/operations/getAccountRuleset -// API reference: https://developers.cloudflare.com/api/operations/getZoneRuleset +// API reference: https://developers.cloudflare.com/api/resources/rulesets/methods/get/ func (api *API) GetRuleset(ctx context.Context, rc *ResourceContainer, rulesetID string) (Ruleset, error) { uri := fmt.Sprintf("/%s/%s/rulesets/%s", rc.Level, rc.Identifier, rulesetID) res, err := api.makeRequestContext(ctx, http.MethodGet, uri, nil) @@ -790,7 +790,7 @@ func (api *API) GetRuleset(ctx context.Context, rc *ResourceContainer, rulesetID // CreateRuleset creates a new ruleset. // // API reference: https://developers.cloudflare.com/api/operations/createAccountRuleset -// API reference: https://developers.cloudflare.com/api/operations/createZoneRuleset +// API reference: https://developers.cloudflare.com/api/resources/rulesets/methods/create/ func (api *API) CreateRuleset(ctx context.Context, rc *ResourceContainer, params CreateRulesetParams) (Ruleset, error) { uri := fmt.Sprintf("/%s/%s/rulesets", rc.Level, rc.Identifier) res, err := api.makeRequestContext(ctx, http.MethodPost, uri, params) @@ -809,7 +809,7 @@ func (api *API) CreateRuleset(ctx context.Context, rc *ResourceContainer, params // DeleteRuleset removes a ruleset based on the ruleset ID. // // API reference: https://developers.cloudflare.com/api/operations/deleteAccountRuleset -// API reference: https://developers.cloudflare.com/api/operations/deleteZoneRuleset +// API reference: https://developers.cloudflare.com/api/resources/rulesets/methods/delete/ func (api *API) DeleteRuleset(ctx context.Context, rc *ResourceContainer, rulesetID string) error { uri := fmt.Sprintf("/%s/%s/rulesets/%s", rc.Level, rc.Identifier, rulesetID) res, err := api.makeRequestContext(ctx, http.MethodDelete, uri, nil) @@ -830,7 +830,7 @@ func (api *API) DeleteRuleset(ctx context.Context, rc *ResourceContainer, rulese // UpdateRuleset updates a ruleset based on the ruleset ID. // // API reference: https://developers.cloudflare.com/api/operations/updateAccountRuleset -// API reference: https://developers.cloudflare.com/api/operations/updateZoneRuleset +// API reference: https://developers.cloudflare.com/api/resources/rulesets/methods/update/ func (api *API) UpdateRuleset(ctx context.Context, rc *ResourceContainer, params UpdateRulesetParams) (Ruleset, error) { if params.ID == "" { return Ruleset{}, ErrMissingResourceIdentifier @@ -853,7 +853,7 @@ func (api *API) UpdateRuleset(ctx context.Context, rc *ResourceContainer, params // DeleteRulesetRule removes a ruleset rule based on the ruleset ID + // ruleset rule ID. // -// API reference: https://developers.cloudflare.com/api/operations/deleteZoneRulesetRule +// API reference: https://developers.cloudflare.com/api/resources/rulesets/methods/delete/ func (api *API) DeleteRulesetRule(ctx context.Context, rc *ResourceContainer, params DeleteRulesetRuleParams) error { uri := fmt.Sprintf("/%s/%s/rulesets/%s/rules/%s", rc.Level, rc.Identifier, params.RulesetID, params.RulesetRuleID) res, err := api.makeRequestContext(ctx, http.MethodDelete, uri, nil) @@ -874,7 +874,7 @@ func (api *API) DeleteRulesetRule(ctx context.Context, rc *ResourceContainer, pa // GetEntrypointRuleset returns an entry point ruleset base on the phase. // // API reference: https://developers.cloudflare.com/api/operations/getAccountEntrypointRuleset -// API reference: https://developers.cloudflare.com/api/operations/getZoneEntrypointRuleset +// API reference: https://developers.cloudflare.com/api/resources/rulesets/subresources/phases/methods/get/ func (api *API) GetEntrypointRuleset(ctx context.Context, rc *ResourceContainer, phase string) (Ruleset, error) { uri := fmt.Sprintf("/%s/%s/rulesets/phases/%s/entrypoint", rc.Level, rc.Identifier, phase) res, err := api.makeRequestContext(ctx, http.MethodGet, uri, nil) @@ -894,7 +894,7 @@ func (api *API) GetEntrypointRuleset(ctx context.Context, rc *ResourceContainer, // phase. // // API reference: https://developers.cloudflare.com/api/operations/updateAccountEntrypointRuleset -// API reference: https://developers.cloudflare.com/api/operations/updateZoneEntrypointRuleset +// API reference: https://developers.cloudflare.com/api/resources/rulesets/subresources/phases/methods/update/ func (api *API) UpdateEntrypointRuleset(ctx context.Context, rc *ResourceContainer, params UpdateEntrypointRulesetParams) (Ruleset, error) { if params.Phase == "" { return Ruleset{}, ErrMissingRulesetPhase diff --git a/stream.go b/stream.go index 38806499624..b01f4b90e17 100644 --- a/stream.go +++ b/stream.go @@ -411,7 +411,7 @@ func (api *API) StreamListVideos(ctx context.Context, params StreamListParameter // StreamInitiateTUSVideoUpload generates a direct upload TUS url for a video. // -// API Reference: https://developers.cloudflare.com/api/operations/stream-videos-initiate-video-uploads-using-tus +// API Reference: https://developers.cloudflare.com/api/resources/stream/methods/create/ func (api *API) StreamInitiateTUSVideoUpload(ctx context.Context, rc *ResourceContainer, params StreamInitiateTUSUploadParameters) (StreamInitiateTUSUploadResponse, error) { if rc.Level != AccountRouteLevel { return StreamInitiateTUSUploadResponse{}, ErrRequiredAccountLevelResourceContainer diff --git a/teams_accounts.go b/teams_accounts.go index 03660558821..051f9dcb6d2 100644 --- a/teams_accounts.go +++ b/teams_accounts.go @@ -245,7 +245,7 @@ func (api *API) TeamsAccountLoggingConfiguration(ctx context.Context, accountID // TeamsAccountConnectivityConfiguration returns zero trust account connectivity settings. // -// API reference: https://developers.cloudflare.com/api/operations/zero-trust-accounts-get-connectivity-settings +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/connectivity_settings/methods/get/ func (api *API) TeamsAccountConnectivityConfiguration(ctx context.Context, accountID string) (TeamsConnectivitySettings, error) { uri := fmt.Sprintf("/accounts/%s/zerotrust/connectivity_settings", accountID) @@ -325,7 +325,7 @@ func (api *API) TeamsAccountDeviceUpdateConfiguration(ctx context.Context, accou // TeamsAccountConnectivityUpdateConfiguration updates zero trust account connectivity settings. // -// API reference: https://developers.cloudflare.com/api/operations/zero-trust-accounts-patch-connectivity-settings +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/connectivity_settings/methods/edit/ func (api *API) TeamsAccountConnectivityUpdateConfiguration(ctx context.Context, accountID string, settings TeamsConnectivitySettings) (TeamsConnectivitySettings, error) { uri := fmt.Sprintf("/accounts/%s/zerotrust/connectivity_settings", accountID) diff --git a/teams_certificates.go b/teams_certificates.go index 00e6f1063ad..9ca9da711da 100644 --- a/teams_certificates.go +++ b/teams_certificates.go @@ -41,7 +41,7 @@ type TeamsCertificatesResponse struct { // TeamsCertificates returns all certificates in an account // -// API reference: https://developers.cloudflare.com/api/operations/zero-trust-certificates-list-zero-trust-certificates +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/list/ func (api *API) TeamsCertificates(ctx context.Context, accountID string) ([]TeamsCertificate, error) { uri := fmt.Sprintf("/accounts/%s/gateway/certificates", accountID) @@ -61,7 +61,7 @@ func (api *API) TeamsCertificates(ctx context.Context, accountID string) ([]Team // TeamsCertificate returns teams account certificate. // -// API reference: https://developers.cloudflare.com/api/operations/zero-trust-certificates-zero-trust-certificate-details +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/get/ func (api *API) TeamsCertificate(ctx context.Context, accountID string, certificateId string) (TeamsCertificate, error) { uri := fmt.Sprintf("/accounts/%s/gateway/certificates/%s", accountID, certificateId) @@ -81,7 +81,7 @@ func (api *API) TeamsCertificate(ctx context.Context, accountID string, certific // TeamsGenerateCertificate generates a new gateway managed certificate // -// API reference: https://developers.cloudflare.com/api/operations/zero-trust-certificates-create-zero-trust-certificate +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/create/ func (api *API) TeamsGenerateCertificate(ctx context.Context, accountID string, certificateRequest TeamsCertificateCreateRequest) (TeamsCertificate, error) { uri := fmt.Sprintf("/accounts/%s/gateway/certificates", accountID) @@ -105,7 +105,7 @@ func (api *API) TeamsGenerateCertificate(ctx context.Context, accountID string, // TeamsActivateCertificate activates a certificate // -// API reference: https://developers.cloudflare.com/api/operations/zero-trust-certificates-activate-zero-trust-certificate +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/activate/ func (api *API) TeamsActivateCertificate(ctx context.Context, accountID string, certificateId string) (TeamsCertificate, error) { uri := fmt.Sprintf("/accounts/%s/gateway/certificates/%s/activate", accountID, certificateId) @@ -125,7 +125,7 @@ func (api *API) TeamsActivateCertificate(ctx context.Context, accountID string, // TeamsDectivateCertificate deactivates a certificate // -// API reference: https://developers.cloudflare.com/api/operations/zero-trust-certificates-deactivate-zero-trust-certificate +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/deactivate/ func (api *API) TeamsDeactivateCertificate(ctx context.Context, accountID string, certificateId string) (TeamsCertificate, error) { uri := fmt.Sprintf("/accounts/%s/gateway/certificates/%s/deactivate", accountID, certificateId) @@ -145,7 +145,7 @@ func (api *API) TeamsDeactivateCertificate(ctx context.Context, accountID string // TeamsDeleteCertificate deletes a certificate. // -// API reference: https://developers.cloudflare.com/api/operations/zero-trust-certificates-delete-zero-trust-certificate +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/delete/ func (api *API) TeamsDeleteCertificate(ctx context.Context, accountID string, certificateId string) error { uri := fmt.Sprintf("/accounts/%s/gateway/certificates/%s", accountID, certificateId) diff --git a/workers.go b/workers.go index 2ffc492dde8..9eaf6973c9f 100644 --- a/workers.go +++ b/workers.go @@ -234,7 +234,7 @@ type Placement struct { // DeleteWorker deletes a single Worker. // -// API reference: https://developers.cloudflare.com/api/operations/worker-script-delete-worker +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/delete/ func (api *API) DeleteWorker(ctx context.Context, rc *ResourceContainer, params DeleteWorkerParams) error { if rc.Level != AccountRouteLevel { return ErrRequiredAccountLevelResourceContainer @@ -267,7 +267,7 @@ func (api *API) DeleteWorker(ctx context.Context, rc *ResourceContainer, params // GetWorker fetch raw script content for your worker returns string containing // worker code js. // -// API reference: https://developers.cloudflare.com/api/operations/worker-script-download-worker +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/get/ func (api *API) GetWorker(ctx context.Context, rc *ResourceContainer, scriptName string) (WorkerScriptResponse, error) { return api.GetWorkerWithDispatchNamespace(ctx, rc, scriptName, "") } @@ -275,7 +275,7 @@ func (api *API) GetWorker(ctx context.Context, rc *ResourceContainer, scriptName // GetWorker fetch raw script content for your worker returns string containing // worker code js. // -// API reference: https://developers.cloudflare.com/api/operations/worker-script-download-worker +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/get/ func (api *API) GetWorkerWithDispatchNamespace(ctx context.Context, rc *ResourceContainer, scriptName string, dispatchNamespace string) (WorkerScriptResponse, error) { if rc.Level != AccountRouteLevel { return WorkerScriptResponse{}, ErrRequiredAccountLevelResourceContainer @@ -321,7 +321,7 @@ func (api *API) GetWorkerWithDispatchNamespace(ctx context.Context, rc *Resource // ListWorkers returns list of Workers for given account. // -// API reference: https://developers.cloudflare.com/api/operations/worker-script-list-workers +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/list/ func (api *API) ListWorkers(ctx context.Context, rc *ResourceContainer, params ListWorkersParams) (WorkerListResponse, *ResultInfo, error) { if rc.Level != AccountRouteLevel { return WorkerListResponse{}, &ResultInfo{}, ErrRequiredAccountLevelResourceContainer @@ -348,7 +348,7 @@ func (api *API) ListWorkers(ctx context.Context, rc *ResourceContainer, params L // UploadWorker pushes raw script content for your Worker. // -// API reference: https://developers.cloudflare.com/api/operations/worker-script-upload-worker-module +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/update/ func (api *API) UploadWorker(ctx context.Context, rc *ResourceContainer, params CreateWorkerParams) (WorkerScriptResponse, error) { if rc.Level != AccountRouteLevel { return WorkerScriptResponse{}, ErrRequiredAccountLevelResourceContainer @@ -395,7 +395,7 @@ func (api *API) UploadWorker(ctx context.Context, rc *ResourceContainer, params // GetWorkersScriptContent returns the pure script content of a worker. // -// API reference: https://developers.cloudflare.com/api/operations/worker-script-get-content +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/content/methods/get/ func (api *API) GetWorkersScriptContent(ctx context.Context, rc *ResourceContainer, scriptName string) (string, error) { if rc.Level != AccountRouteLevel { return "", ErrRequiredAccountLevelResourceContainer @@ -416,7 +416,7 @@ func (api *API) GetWorkersScriptContent(ctx context.Context, rc *ResourceContain // UpdateWorkersScriptContent pushes only script content, no metadata. // -// API reference: https://developers.cloudflare.com/api/operations/worker-script-put-content +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/content/methods/update/ func (api *API) UpdateWorkersScriptContent(ctx context.Context, rc *ResourceContainer, params UpdateWorkersScriptContentParams) (WorkerScriptResponse, error) { if rc.Level != AccountRouteLevel { return WorkerScriptResponse{}, ErrRequiredAccountLevelResourceContainer diff --git a/workers_account_settings.go b/workers_account_settings.go index 55e0d30e705..eb7b9dfad5b 100644 --- a/workers_account_settings.go +++ b/workers_account_settings.go @@ -32,7 +32,7 @@ type WorkersAccountSettingsResponse struct { // CreateWorkersAccountSettings sets the account settings for Workers. // -// API reference: https://developers.cloudflare.com/api/operations/worker-account-settings-create-worker-account-settings +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/account_settings/methods/update/ func (api *API) CreateWorkersAccountSettings(ctx context.Context, rc *ResourceContainer, params CreateWorkersAccountSettingsParameters) (WorkersAccountSettings, error) { if rc.Identifier == "" { return WorkersAccountSettings{}, ErrMissingAccountID @@ -58,7 +58,7 @@ func (api *API) CreateWorkersAccountSettings(ctx context.Context, rc *ResourceCo // WorkersAccountSettings returns the current account settings for Workers. // -// API reference: https://developers.cloudflare.com/api/operations/worker-account-settings-fetch-worker-account-settings +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/account_settings/methods/get/ func (api *API) WorkersAccountSettings(ctx context.Context, rc *ResourceContainer, params WorkersAccountSettingsParameters) (WorkersAccountSettings, error) { if rc.Identifier == "" { return WorkersAccountSettings{}, ErrMissingAccountID diff --git a/workers_cron_triggers.go b/workers_cron_triggers.go index c231c994c9f..f426c8629cb 100644 --- a/workers_cron_triggers.go +++ b/workers_cron_triggers.go @@ -40,7 +40,7 @@ type UpdateWorkerCronTriggersParams struct { // ListWorkerCronTriggers fetches all available cron triggers for a single Worker // script. // -// API reference: https://developers.cloudflare.com/api/operations/worker-cron-trigger-get-cron-triggers +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/schedules/methods/get/ func (api *API) ListWorkerCronTriggers(ctx context.Context, rc *ResourceContainer, params ListWorkerCronTriggersParams) ([]WorkerCronTrigger, error) { if rc.Level != AccountRouteLevel { return []WorkerCronTrigger{}, ErrRequiredAccountLevelResourceContainer @@ -66,7 +66,7 @@ func (api *API) ListWorkerCronTriggers(ctx context.Context, rc *ResourceContaine // UpdateWorkerCronTriggers updates a single schedule for a Worker cron trigger. // -// API reference: https://developers.cloudflare.com/api/operations/worker-cron-trigger-update-cron-triggers +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/schedules/methods/update/ func (api *API) UpdateWorkerCronTriggers(ctx context.Context, rc *ResourceContainer, params UpdateWorkerCronTriggersParams) ([]WorkerCronTrigger, error) { if rc.Level != AccountRouteLevel { return []WorkerCronTrigger{}, ErrRequiredAccountLevelResourceContainer diff --git a/workers_domain.go b/workers_domain.go index a70954284fb..8bd58016cf2 100644 --- a/workers_domain.go +++ b/workers_domain.go @@ -53,7 +53,7 @@ type WorkersDomainListResponse struct { // ListWorkersDomains lists all Worker Domains. // -// API reference: https://developers.cloudflare.com/api/operations/worker-domain-list-domains +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/domains/methods/list/ func (api *API) ListWorkersDomains(ctx context.Context, rc *ResourceContainer, params ListWorkersDomainParams) ([]WorkersDomain, error) { if rc.Identifier == "" { return []WorkersDomain{}, ErrMissingAccountID @@ -75,7 +75,7 @@ func (api *API) ListWorkersDomains(ctx context.Context, rc *ResourceContainer, p // AttachWorkersDomain attaches a worker to a zone and hostname. // -// API reference: https://developers.cloudflare.com/api/operations/worker-domain-attach-to-domain +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/domains/methods/update/ func (api *API) AttachWorkersDomain(ctx context.Context, rc *ResourceContainer, domain AttachWorkersDomainParams) (WorkersDomain, error) { if rc.Identifier == "" { return WorkersDomain{}, ErrMissingAccountID @@ -113,7 +113,7 @@ func (api *API) AttachWorkersDomain(ctx context.Context, rc *ResourceContainer, // GetWorkersDomain gets a single Worker Domain. // -// API reference: https://developers.cloudflare.com/api/operations/worker-domain-get-a-domain +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/domains/methods/get/ func (api *API) GetWorkersDomain(ctx context.Context, rc *ResourceContainer, domainID string) (WorkersDomain, error) { if rc.Identifier == "" { return WorkersDomain{}, ErrMissingAccountID @@ -135,7 +135,7 @@ func (api *API) GetWorkersDomain(ctx context.Context, rc *ResourceContainer, dom // DetachWorkersDomain detaches a worker from a zone and hostname. // -// API reference: https://developers.cloudflare.com/api/operations/worker-domain-detach-from-domain +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/domains/methods/delete/ func (api *API) DetachWorkersDomain(ctx context.Context, rc *ResourceContainer, domainID string) error { if rc.Identifier == "" { return ErrMissingAccountID diff --git a/workers_for_platforms.go b/workers_for_platforms.go index eda77eaee29..4809933c794 100644 --- a/workers_for_platforms.go +++ b/workers_for_platforms.go @@ -34,7 +34,7 @@ type CreateWorkersForPlatformsDispatchNamespaceParams struct { // ListWorkersForPlatformsDispatchNamespaces lists the dispatch namespaces. // -// API reference: https://developers.cloudflare.com/api/operations/namespace-worker-list +// API reference: https://developers.cloudflare.com/api/resources/workers_for_platforms/subresources/dispatch/subresources/namespaces/methods/list/ func (api *API) ListWorkersForPlatformsDispatchNamespaces(ctx context.Context, rc *ResourceContainer) (*ListWorkersForPlatformsDispatchNamespaceResponse, error) { if rc.Level != AccountRouteLevel { return nil, ErrRequiredAccountLevelResourceContainer @@ -62,7 +62,7 @@ func (api *API) ListWorkersForPlatformsDispatchNamespaces(ctx context.Context, r // GetWorkersForPlatformsDispatchNamespace gets a specific dispatch namespace. // -// API reference: https://developers.cloudflare.com/api/operations/namespace-worker-get-namespace +// API reference: https://developers.cloudflare.com/api/resources/workers_for_platforms/subresources/dispatch/subresources/namespaces/methods/get/ func (api *API) GetWorkersForPlatformsDispatchNamespace(ctx context.Context, rc *ResourceContainer, name string) (*GetWorkersForPlatformsDispatchNamespaceResponse, error) { if rc.Level != AccountRouteLevel { return nil, ErrRequiredAccountLevelResourceContainer @@ -90,7 +90,7 @@ func (api *API) GetWorkersForPlatformsDispatchNamespace(ctx context.Context, rc // CreateWorkersForPlatformsDispatchNamespace creates a new dispatch namespace. // -// API reference: https://developers.cloudflare.com/api/operations/namespace-worker-create +// API reference: https://developers.cloudflare.com/api/resources/workers_for_platforms/subresources/dispatch/subresources/namespaces/methods/create/ func (api *API) CreateWorkersForPlatformsDispatchNamespace(ctx context.Context, rc *ResourceContainer, params CreateWorkersForPlatformsDispatchNamespaceParams) (*GetWorkersForPlatformsDispatchNamespaceResponse, error) { if rc.Level != AccountRouteLevel { return nil, ErrRequiredAccountLevelResourceContainer @@ -118,7 +118,7 @@ func (api *API) CreateWorkersForPlatformsDispatchNamespace(ctx context.Context, // DeleteWorkersForPlatformsDispatchNamespace deletes a dispatch namespace. // -// API reference: https://developers.cloudflare.com/api/operations/namespace-worker-delete-namespace +// API reference: https://developers.cloudflare.com/api/resources/workers_for_platforms/subresources/dispatch/subresources/namespaces/methods/delete/ func (api *API) DeleteWorkersForPlatformsDispatchNamespace(ctx context.Context, rc *ResourceContainer, name string) error { if rc.Level != AccountRouteLevel { return ErrRequiredAccountLevelResourceContainer diff --git a/workers_kv.go b/workers_kv.go index d7e1f04010e..f7b29567bb4 100644 --- a/workers_kv.go +++ b/workers_kv.go @@ -105,7 +105,7 @@ type ListWorkersKVsParams struct { // A 400 is returned if the account already owns a namespace with this title. // A namespace must be explicitly deleted to be replaced. // -// API reference: https://developers.cloudflare.com/api/operations/workers-kv-namespace-create-a-namespace +// API reference: https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/create/ func (api *API) CreateWorkersKVNamespace(ctx context.Context, rc *ResourceContainer, params CreateWorkersKVNamespaceParams) (WorkersKVNamespaceResponse, error) { if rc.Level != AccountRouteLevel { return WorkersKVNamespaceResponse{}, ErrRequiredAccountLevelResourceContainer @@ -130,7 +130,7 @@ func (api *API) CreateWorkersKVNamespace(ctx context.Context, rc *ResourceContai // ListWorkersKVNamespaces lists storage namespaces. // -// API reference: https://developers.cloudflare.com/api/operations/workers-kv-namespace-list-namespaces +// API reference: https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/list/ func (api *API) ListWorkersKVNamespaces(ctx context.Context, rc *ResourceContainer, params ListWorkersKVNamespacesParams) ([]WorkersKVNamespace, *ResultInfo, error) { if rc.Level != AccountRouteLevel { return []WorkersKVNamespace{}, &ResultInfo{}, ErrRequiredAccountLevelResourceContainer @@ -180,7 +180,7 @@ func (api *API) ListWorkersKVNamespaces(ctx context.Context, rc *ResourceContain // DeleteWorkersKVNamespace deletes the namespace corresponding to the given ID. // -// API reference: https://developers.cloudflare.com/api/operations/workers-kv-namespace-remove-a-namespace +// API reference: https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/delete/ func (api *API) DeleteWorkersKVNamespace(ctx context.Context, rc *ResourceContainer, namespaceID string) (Response, error) { uri := fmt.Sprintf("/accounts/%s/storage/kv/namespaces/%s", rc.Identifier, namespaceID) res, err := api.makeRequestContext(ctx, http.MethodDelete, uri, nil) @@ -198,7 +198,7 @@ func (api *API) DeleteWorkersKVNamespace(ctx context.Context, rc *ResourceContai // UpdateWorkersKVNamespace modifies a KV namespace based on the ID. // -// API reference: https://developers.cloudflare.com/api/operations/workers-kv-namespace-rename-a-namespace +// API reference: https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/update/ func (api *API) UpdateWorkersKVNamespace(ctx context.Context, rc *ResourceContainer, params UpdateWorkersKVNamespaceParams) (Response, error) { if rc.Level != AccountRouteLevel { return Response{}, ErrRequiredAccountLevelResourceContainer @@ -224,7 +224,7 @@ func (api *API) UpdateWorkersKVNamespace(ctx context.Context, rc *ResourceContai // WriteWorkersKVEntry writes a single KV value based on the key. // -// API reference: https://developers.cloudflare.com/api/operations/workers-kv-namespace-write-key-value-pair-with-metadata +// API reference: https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/values/methods/update/ func (api *API) WriteWorkersKVEntry(ctx context.Context, rc *ResourceContainer, params WriteWorkersKVEntryParams) (Response, error) { if rc.Level != AccountRouteLevel { return Response{}, ErrRequiredAccountLevelResourceContainer @@ -252,7 +252,7 @@ func (api *API) WriteWorkersKVEntry(ctx context.Context, rc *ResourceContainer, // WriteWorkersKVEntries writes multiple KVs at once. // -// API reference: https://developers.cloudflare.com/api/operations/workers-kv-namespace-write-multiple-key-value-pairs +// API reference: https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/bulk_update/ func (api *API) WriteWorkersKVEntries(ctx context.Context, rc *ResourceContainer, params WriteWorkersKVEntriesParams) (Response, error) { if rc.Level != AccountRouteLevel { return Response{}, ErrRequiredAccountLevelResourceContainer @@ -281,7 +281,7 @@ func (api *API) WriteWorkersKVEntries(ctx context.Context, rc *ResourceContainer // GetWorkersKV returns the value associated with the given key in the // given namespace. // -// API reference: https://developers.cloudflare.com/api/operations/workers-kv-namespace-read-key-value-pair +// API reference: https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/values/methods/get/ func (api API) GetWorkersKV(ctx context.Context, rc *ResourceContainer, params GetWorkersKVParams) ([]byte, error) { if rc.Level != AccountRouteLevel { return []byte(``), ErrRequiredAccountLevelResourceContainer @@ -300,7 +300,7 @@ func (api API) GetWorkersKV(ctx context.Context, rc *ResourceContainer, params G // DeleteWorkersKVEntry deletes a key and value for a provided storage namespace. // -// API reference: https://developers.cloudflare.com/api/operations/workers-kv-namespace-delete-key-value-pair +// API reference: https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/values/methods/delete/ func (api API) DeleteWorkersKVEntry(ctx context.Context, rc *ResourceContainer, params DeleteWorkersKVEntryParams) (Response, error) { if rc.Level != AccountRouteLevel { return Response{}, ErrRequiredAccountLevelResourceContainer @@ -324,7 +324,7 @@ func (api API) DeleteWorkersKVEntry(ctx context.Context, rc *ResourceContainer, // DeleteWorkersKVEntries deletes multiple KVs at once. // -// API reference: https://developers.cloudflare.com/api/operations/workers-kv-namespace-delete-multiple-key-value-pairs +// API reference: https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/bulk_delete/ func (api *API) DeleteWorkersKVEntries(ctx context.Context, rc *ResourceContainer, params DeleteWorkersKVEntriesParams) (Response, error) { if rc.Level != AccountRouteLevel { return Response{}, ErrRequiredAccountLevelResourceContainer @@ -351,7 +351,7 @@ func (api *API) DeleteWorkersKVEntries(ctx context.Context, rc *ResourceContaine // ListWorkersKVKeys lists a namespace's keys. // -// API Reference: https://developers.cloudflare.com/api/operations/workers-kv-namespace-list-a-namespace'-s-keys +// API Reference: https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/keys/methods/list/ func (api API) ListWorkersKVKeys(ctx context.Context, rc *ResourceContainer, params ListWorkersKVsParams) (ListStorageKeysResponse, error) { if rc.Level != AccountRouteLevel { return ListStorageKeysResponse{}, ErrRequiredAccountLevelResourceContainer diff --git a/workers_subdomain.go b/workers_subdomain.go index 4fc2e7c4db2..c735d3a4510 100644 --- a/workers_subdomain.go +++ b/workers_subdomain.go @@ -19,7 +19,7 @@ type WorkersSubdomainResponse struct { // WorkersCreateSubdomain Creates a Workers subdomain for an account. // -// API reference: https://developers.cloudflare.com/api/operations/worker-subdomain-create-subdomain +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/subdomains/methods/update/ func (api *API) WorkersCreateSubdomain(ctx context.Context, rc *ResourceContainer, params WorkersSubdomain) (WorkersSubdomain, error) { if rc.Identifier == "" { return WorkersSubdomain{}, ErrMissingAccountID @@ -39,7 +39,7 @@ func (api *API) WorkersCreateSubdomain(ctx context.Context, rc *ResourceContaine // WorkersGetSubdomain Creates a Workers subdomain for an account. // -// API reference: https://developers.cloudflare.com/api/operations/worker-subdomain-get-subdomain +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/subdomains/methods/get/ func (api *API) WorkersGetSubdomain(ctx context.Context, rc *ResourceContainer) (WorkersSubdomain, error) { if rc.Identifier == "" { return WorkersSubdomain{}, ErrMissingAccountID diff --git a/workers_tail.go b/workers_tail.go index 733bc98dcd7..95ed617a23e 100644 --- a/workers_tail.go +++ b/workers_tail.go @@ -38,7 +38,7 @@ type ListWorkersTailResponse struct { // StartWorkersTail Starts a tail that receives logs and exception from a Worker. // -// API reference: https://developers.cloudflare.com/api/operations/worker-tail-logs-start-tail +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/tail/methods/create/ func (api *API) StartWorkersTail(ctx context.Context, rc *ResourceContainer, scriptName string) (WorkersTail, error) { if rc.Identifier == "" { return WorkersTail{}, ErrMissingAccountID @@ -64,7 +64,7 @@ func (api *API) StartWorkersTail(ctx context.Context, rc *ResourceContainer, scr // ListWorkersTail Get list of tails currently deployed on a Worker. // -// API reference: https://developers.cloudflare.com/api/operations/worker-tail-logs-list-tails +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/tail/methods/get/ func (api *API) ListWorkersTail(ctx context.Context, rc *ResourceContainer, params ListWorkersTailParameters) (WorkersTail, error) { if rc.Identifier == "" { return WorkersTail{}, ErrMissingAccountID @@ -90,7 +90,7 @@ func (api *API) ListWorkersTail(ctx context.Context, rc *ResourceContainer, para // DeleteWorkersTail Deletes a tail from a Worker. // -// API reference: https://developers.cloudflare.com/api/operations/worker-tail-logs-delete-tail +// API reference: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/tail/methods/delete/ func (api *API) DeleteWorkersTail(ctx context.Context, rc *ResourceContainer, scriptName, tailID string) error { if rc.Identifier == "" { return ErrMissingAccountID diff --git a/zone_hold.go b/zone_hold.go index c7f30ccc42a..9e05b891d08 100644 --- a/zone_hold.go +++ b/zone_hold.go @@ -41,7 +41,7 @@ type GetZoneHoldParams struct{} // CreateZoneHold enforces a zone hold on the zone, blocking the creation and // activation of zone. // -// API reference: https://developers.cloudflare.com/api/operations/zones-0-hold-post +// API reference: https://developers.cloudflare.com/api/resources/zones/subresources/holds/methods/create/ func (api *API) CreateZoneHold(ctx context.Context, rc *ResourceContainer, params CreateZoneHoldParams) (ZoneHold, error) { if rc.Level != ZoneRouteLevel { return ZoneHold{}, ErrRequiredZoneLevelResourceContainer @@ -65,7 +65,7 @@ func (api *API) CreateZoneHold(ctx context.Context, rc *ResourceContainer, param // DeleteZoneHold removes enforcement of a zone hold on the zone, permanently or // temporarily, allowing the creation and activation of zones with this hostname. // -// API reference:https://developers.cloudflare.com/api/operations/zones-0-hold-delete +// API reference:https://developers.cloudflare.com/api/resources/zones/subresources/holds/methods/delete/ func (api *API) DeleteZoneHold(ctx context.Context, rc *ResourceContainer, params DeleteZoneHoldParams) (ZoneHold, error) { if rc.Level != ZoneRouteLevel { return ZoneHold{}, ErrRequiredZoneLevelResourceContainer @@ -89,7 +89,7 @@ func (api *API) DeleteZoneHold(ctx context.Context, rc *ResourceContainer, param // GetZoneHold retrieves whether the zone is subject to a zone hold, and the // metadata about the hold. // -// API reference: https://developers.cloudflare.com/api/operations/zones-0-hold-get +// API reference: https://developers.cloudflare.com/api/resources/zones/subresources/holds/methods/get/ func (api *API) GetZoneHold(ctx context.Context, rc *ResourceContainer, params GetZoneHoldParams) (ZoneHold, error) { if rc.Level != ZoneRouteLevel { return ZoneHold{}, ErrRequiredZoneLevelResourceContainer diff --git a/zt_risk_score_integration.go b/zt_risk_score_integration.go index a80ef1da69f..b741c1808ad 100644 --- a/zt_risk_score_integration.go +++ b/zt_risk_score_integration.go @@ -58,7 +58,7 @@ type ListRiskScoreIntegrationParams struct{} // GetRiskScoreIntegration returns a single Risk Score Integration by its ID. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-zt-risk-score-integration-get +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/risk_scoring/subresources/integrations/methods/get/ func (api *API) GetRiskScoreIntegration(ctx context.Context, rc *ResourceContainer, integrationID string) (RiskScoreIntegration, error) { if rc.Identifier == "" { return RiskScoreIntegration{}, ErrMissingResourceIdentifier @@ -86,7 +86,7 @@ func (api *API) GetRiskScoreIntegration(ctx context.Context, rc *ResourceContain // ListRiskScoreIntegrations returns all Risk Score Integrations for an account. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-zt-risk-score-integration-list +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/risk_scoring/subresources/integrations/methods/list/ func (api *API) ListRiskScoreIntegrations(ctx context.Context, rc *ResourceContainer, params ListRiskScoreIntegrationParams) ([]RiskScoreIntegration, error) { if rc.Identifier == "" { return []RiskScoreIntegration{}, ErrMissingResourceIdentifier @@ -110,7 +110,7 @@ func (api *API) ListRiskScoreIntegrations(ctx context.Context, rc *ResourceConta // CreateRiskScoreIntegration creates a new Risk Score Integration. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-zt-risk-score-integration-create +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/risk_scoring/subresources/integrations/methods/create/ func (api *API) CreateRiskScoreIntegration(ctx context.Context, rc *ResourceContainer, params RiskScoreIntegrationCreateRequest) (RiskScoreIntegration, error) { if rc.Identifier == "" { return RiskScoreIntegration{}, ErrMissingResourceIdentifier @@ -135,7 +135,7 @@ func (api *API) CreateRiskScoreIntegration(ctx context.Context, rc *ResourceCont // UpdateRiskScoreIntegration updates a Risk Score Integration. // // Can be used to disable or active the integration using the "active" boolean property. -// API reference: https://developers.cloudflare.com/api/operations/dlp-zt-risk-score-integration-update +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/risk_scoring/subresources/integrations/methods/update/ func (api *API) UpdateRiskScoreIntegration(ctx context.Context, rc *ResourceContainer, integrationID string, params RiskScoreIntegrationUpdateRequest) (RiskScoreIntegration, error) { if rc.Identifier == "" { return RiskScoreIntegration{}, ErrMissingResourceIdentifier @@ -163,7 +163,7 @@ func (api *API) UpdateRiskScoreIntegration(ctx context.Context, rc *ResourceCont // DeleteRiskScoreIntegration deletes a Risk Score Integration. // -// API reference: https://developers.cloudflare.com/api/operations/dlp-zt-risk-score-integration-delete +// API reference: https://developers.cloudflare.com/api/resources/zero_trust/subresources/risk_scoring/subresources/integrations/methods/delete/ func (api *API) DeleteRiskScoreIntegration(ctx context.Context, rc *ResourceContainer, integrationID string) error { if rc.Identifier == "" { return ErrMissingResourceIdentifier