You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 764376f
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
fix(access-policies): tell callers to drop policies when the feature is off (#3090)
Copy file name to clipboardExpand all lines: src/Batch/BatchSubmitParams.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ final class BatchSubmitParams implements BaseModel
47
47
publicScrape|Crawl$input;
48
48
49
49
/**
50
-
* Access policy IDs to apply to every page. A URL must pass every policy.
50
+
* Access policy IDs to apply to every page. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
51
51
*
52
52
* @var list<string>|null $policies
53
53
*/
@@ -144,7 +144,7 @@ public function withInput(Scrape|array|Crawl $input): self
144
144
}
145
145
146
146
/**
147
-
* Access policy IDs to apply to every page. A URL must pass every policy.
147
+
* Access policy IDs to apply to every page. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
Copy file name to clipboardExpand all lines: src/Brand/BrandRetrieveParams.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ final class BrandRetrieveParams implements BaseModel
87
87
public ?bool$maxSpeed;
88
88
89
89
/**
90
-
* Access policy IDs to apply. A URL must pass every policy.
90
+
* Access policy IDs to apply. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
91
91
*
92
92
* @var list<string>|null $policies
93
93
*/
@@ -348,7 +348,7 @@ public function withMaxSpeed(bool $maxSpeed): self
348
348
}
349
349
350
350
/**
351
-
* Access policy IDs to apply. A URL must pass every policy.
351
+
* Access policy IDs to apply. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
Copy file name to clipboardExpand all lines: src/Monitors/MonitorCreateParams.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ final class MonitorCreateParams implements BaseModel
81
81
public ?string$mode;
82
82
83
83
/**
84
-
* Access policy IDs to apply to every run.
84
+
* Access policy IDs to apply to every run. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
85
85
*
86
86
* @var list<string>|null $policies
87
87
*/
@@ -218,7 +218,7 @@ public function withMode(Mode|string $mode): self
218
218
}
219
219
220
220
/**
221
-
* Access policy IDs to apply to every run.
221
+
* Access policy IDs to apply to every run. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
Copy file name to clipboardExpand all lines: src/Monitors/MonitorUpdateParams.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ final class MonitorUpdateParams implements BaseModel
64
64
public ?string$name;
65
65
66
66
/**
67
-
* Access policy IDs to apply to every run. Send an empty list to remove them.
67
+
* Access policy IDs to apply to every run. Send an empty list to remove them. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
68
68
*
69
69
* @var list<string>|null $policies
70
70
*/
@@ -175,7 +175,7 @@ public function withName(string $name): self
175
175
}
176
176
177
177
/**
178
-
* Access policy IDs to apply to every run. Send an empty list to remove them.
178
+
* Access policy IDs to apply to every run. Send an empty list to remove them. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
Copy file name to clipboardExpand all lines: src/News/NewsSearchParams.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ final class NewsSearchParams implements BaseModel
68
68
public ?int$limit;
69
69
70
70
/**
71
-
* Access policy IDs to apply. A URL must pass every policy.
71
+
* Access policy IDs to apply. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
72
72
*
73
73
* @var list<string>|null $policies
74
74
*/
@@ -192,7 +192,7 @@ public function withLimit(int $limit): self
192
192
}
193
193
194
194
/**
195
-
* Access policy IDs to apply. A URL must pass every policy.
195
+
* Access policy IDs to apply. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
Copy file name to clipboardExpand all lines: src/ServiceContracts/BatchContract.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ public function getResults(
111
111
* @api
112
112
*
113
113
* @param InputShape $input body param: Choose a URL list or a site crawl
114
-
* @param list<string> $policies Body param: Access policy IDs to apply to every page. A URL must pass every policy.
114
+
* @param list<string> $policies Body param: Access policy IDs to apply to every page. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
115
115
* @param list<string> $tags Body param: Tags stored on the batch. Filter the batch list by them later.
116
116
* @param Webhook|WebhookShape $webhook Body param: Where to send the batch's final-status event. Omit `retry` for one attempt; `{}` uses the default retry schedule.
117
117
* @param string $webhookURL Body param: Legacy URL notified when the batch finishes. Preserves one best-effort attempt. Cannot be combined with webhook.
* @param int $maxAgeMs Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. `0` refreshes.
41
41
* @param bool $maxSpeed Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data.
42
-
* @param list<string> $policies Access policy IDs to apply. A URL must pass every policy.
42
+
* @param list<string> $policies Access policy IDs to apply. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
43
43
* @param list<string> $tags labels for filtering usage in the dashboard
44
44
* @param TimeoutOpts|TimeoutOptsShape $timeoutOpts request deadline and what to return when it passes
45
45
* @param Zdr|value-of<Zdr> $zdr `enabled` disables request logs and traces and omits request and response content from usage logs. Brand data and hosted assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
Copy file name to clipboardExpand all lines: src/ServiceContracts/MonitorsContract.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ interface MonitorsContract
56
56
* @param TargetShape $target what to watch: a page, a sitemap, data extracted from a site, or web search results
57
57
* @param ChangeDetectionShape $changeDetection How changes are judged. Defaults to `semantic` for extract and search targets and page targets with `instructions`, otherwise `exact`.
* @param list<string> $policies access policy IDs to apply to every run
59
+
* @param list<string> $policies Access policy IDs to apply to every run. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
60
60
* @param Schedule|ScheduleShape $schedule Run the monitor on a fixed interval defined by a frequency and a unit, e.g. every 6 hours or every 2 days. The total interval (frequency × unit) must be between 10 minutes and 1 year.
61
61
* @param list<string> $tags labels for filtering monitors, their changes, and their usage
62
62
* @param Webhook|WebhookShape|null $webhook Webhook destination and delivery settings. Null means no webhook is configured.
@@ -95,7 +95,7 @@ public function retrieve(
95
95
* @param string $monitorID ID of the monitor
96
96
* @param ChangeDetectionShape1 $changeDetection How changes are judged. Defaults to `semantic` for extract and search targets and page targets with `instructions`, otherwise `exact`.
97
97
* @param string $name display name for the monitor
98
-
* @param list<string> $policies Access policy IDs to apply to every run. Send an empty list to remove them.
98
+
* @param list<string> $policies Access policy IDs to apply to every run. Send an empty list to remove them. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
99
99
* @param \ContextDev\Monitors\MonitorUpdateParams\Schedule|ScheduleShape1 $schedule Run the monitor on a fixed interval defined by a frequency and a unit, e.g. every 6 hours or every 2 days. The total interval (frequency × unit) must be between 10 minutes and 1 year.
100
100
* @param Status|value-of<Status> $status set `paused` to stop scheduled runs or `active` to resume them
101
101
* @param list<string> $tags labels for filtering monitors, their changes, and their usage
Copy file name to clipboardExpand all lines: src/ServiceContracts/NewsContract.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ interface NewsContract
27
27
* @param string|null $cursor opaque next_cursor from the previous response, or null for the first page
28
28
* @param FilterBy|FilterByShape $filterBy Optional result filters. Use at most one of sourceDomain, sourceCountry, articleLanguage, or articleType. A date range may accompany that category; date.from must not exceed date.to.
29
29
* @param int $limit Maximum results to return. Defaults to 10.
30
-
* @param list<string> $policies Access policy IDs to apply. A URL must pass every policy.
30
+
* @param list<string> $policies Access policy IDs to apply. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
31
31
* @param SortBy|SortByShape $sortBy Result ordering. Defaults to newest for entity searches. Natural-language searches are always ordered by relevance.
32
32
* @param list<string> $tags labels for filtering usage in the dashboard
Copy file name to clipboardExpand all lines: src/ServiceContracts/UtilityContract.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ interface UtilityContract
24
24
*
25
25
* @param IdentifierShape $identifier Identifier of the target to prefetch. Provide exactly one of domain or email.
26
26
* @param Type|value-of<Type> $type data to prefetch
27
-
* @param list<string> $policies Access policy IDs to apply. A URL must pass every policy.
27
+
* @param list<string> $policies Access policy IDs to apply. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.
28
28
* @param list<string> $tags labels for filtering usage in the dashboard
29
29
* @param TimeoutOpts|TimeoutOptsShape $timeoutOpts request deadline and what to return when it passes
0 commit comments