@googleapis/policyanalyzer 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/build/v1.d.ts +0 -51
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +0 -51
- package/build/v1beta1.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/v1.ts +0 -51
- package/v1beta1.ts +0 -51
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/policyanalyzer-v1.0.0...policyanalyzer-v1.0.1) (2023-08-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **policyanalyzer:** update the API ([98148bf](https://github.com/googleapis/google-api-nodejs-client/commit/98148bf5d9b84151fac1ff2a1928dde35e94e18c))
|
|
9
|
+
|
|
3
10
|
## 1.0.0 (2022-12-22)
|
|
4
11
|
|
|
5
12
|
|
package/build/v1.d.ts
CHANGED
|
@@ -137,57 +137,6 @@ export declare namespace policyanalyzer_v1 {
|
|
|
137
137
|
constructor(context: APIRequestContext);
|
|
138
138
|
/**
|
|
139
139
|
* Queries policy activities on Google Cloud resources.
|
|
140
|
-
* @example
|
|
141
|
-
* ```js
|
|
142
|
-
* // Before running the sample:
|
|
143
|
-
* // - Enable the API at:
|
|
144
|
-
* // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
|
|
145
|
-
* // - Login into gcloud by running:
|
|
146
|
-
* // `$ gcloud auth application-default login`
|
|
147
|
-
* // - Install the npm module by running:
|
|
148
|
-
* // `$ npm install googleapis`
|
|
149
|
-
*
|
|
150
|
-
* const {google} = require('googleapis');
|
|
151
|
-
* const policyanalyzer = google.policyanalyzer('v1');
|
|
152
|
-
*
|
|
153
|
-
* async function main() {
|
|
154
|
-
* const auth = new google.auth.GoogleAuth({
|
|
155
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
156
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
157
|
-
* });
|
|
158
|
-
*
|
|
159
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
160
|
-
* const authClient = await auth.getClient();
|
|
161
|
-
* google.options({auth: authClient});
|
|
162
|
-
*
|
|
163
|
-
* // Do the magic
|
|
164
|
-
* const res =
|
|
165
|
-
* await policyanalyzer.projects.locations.activityTypes.activities.query({
|
|
166
|
-
* // Optional. Filter expression to restrict the activities returned. For serviceAccountLastAuthentication activities, supported filters are: - `activities.full_resource_name {=\} [STRING]` - `activities.fullResourceName {=\} [STRING]` where `[STRING]` is the full resource name of the service account. For serviceAccountKeyLastAuthentication activities, supported filters are: - `activities.full_resource_name {=\} [STRING]` - `activities.fullResourceName {=\} [STRING]` where `[STRING]` is the full resource name of the service account key.
|
|
167
|
-
* filter: 'placeholder-value',
|
|
168
|
-
* // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
|
|
169
|
-
* pageSize: 'placeholder-value',
|
|
170
|
-
* // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
|
|
171
|
-
* pageToken: 'placeholder-value',
|
|
172
|
-
* // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations: https://cloud.google.com/about/locations/
|
|
173
|
-
* parent:
|
|
174
|
-
* 'projects/my-project/locations/my-location/activityTypes/my-activityType',
|
|
175
|
-
* });
|
|
176
|
-
* console.log(res.data);
|
|
177
|
-
*
|
|
178
|
-
* // Example response
|
|
179
|
-
* // {
|
|
180
|
-
* // "activities": [],
|
|
181
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
182
|
-
* // }
|
|
183
|
-
* }
|
|
184
|
-
*
|
|
185
|
-
* main().catch(e => {
|
|
186
|
-
* console.error(e);
|
|
187
|
-
* throw e;
|
|
188
|
-
* });
|
|
189
|
-
*
|
|
190
|
-
* ```
|
|
191
140
|
*
|
|
192
141
|
* @param params - Parameters for request
|
|
193
142
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/build/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,iBAAiB,CAgSjC;AAhSD,WAAiB,iBAAiB;IAgEhC;;;;;;;;;;OAUG;IACH,MAAa,cAAc;QAIzB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,C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AG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GACX,OAAO,CAAC,OAAO,IAAI,wCAAwC,CAAC;YAC9D,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,gCAAgC,CAAC,CAAC,OAAO,CACvD,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,KAAK;iBACd,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,QAAQ,CAAC;gBAC1B,UAAU,EAAE,CAAC,QAAQ,CAAC;gBACtB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IAvGY,sEAAoD,uDAuGhE,CAAA;AAqBH,CAAC,EAhSgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAgSjC"}
|
package/build/v1beta1.d.ts
CHANGED
|
@@ -137,57 +137,6 @@ export declare namespace policyanalyzer_v1beta1 {
|
|
|
137
137
|
constructor(context: APIRequestContext);
|
|
138
138
|
/**
|
|
139
139
|
* Queries policy activities on GCP resources.
|
|
140
|
-
* @example
|
|
141
|
-
* ```js
|
|
142
|
-
* // Before running the sample:
|
|
143
|
-
* // - Enable the API at:
|
|
144
|
-
* // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
|
|
145
|
-
* // - Login into gcloud by running:
|
|
146
|
-
* // `$ gcloud auth application-default login`
|
|
147
|
-
* // - Install the npm module by running:
|
|
148
|
-
* // `$ npm install googleapis`
|
|
149
|
-
*
|
|
150
|
-
* const {google} = require('googleapis');
|
|
151
|
-
* const policyanalyzer = google.policyanalyzer('v1beta1');
|
|
152
|
-
*
|
|
153
|
-
* async function main() {
|
|
154
|
-
* const auth = new google.auth.GoogleAuth({
|
|
155
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
156
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
157
|
-
* });
|
|
158
|
-
*
|
|
159
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
160
|
-
* const authClient = await auth.getClient();
|
|
161
|
-
* google.options({auth: authClient});
|
|
162
|
-
*
|
|
163
|
-
* // Do the magic
|
|
164
|
-
* const res =
|
|
165
|
-
* await policyanalyzer.projects.locations.activityTypes.activities.query({
|
|
166
|
-
* // Optional. Optional filter expression to restrict the activities returned. Supported filters are: - service_account_last_authn.full_resource_name {=\} - service_account_key_last_authn.full_resource_name {=\}
|
|
167
|
-
* filter: 'placeholder-value',
|
|
168
|
-
* // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
|
|
169
|
-
* pageSize: 'placeholder-value',
|
|
170
|
-
* // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
|
|
171
|
-
* pageToken: 'placeholder-value',
|
|
172
|
-
* // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/
|
|
173
|
-
* parent:
|
|
174
|
-
* 'projects/my-project/locations/my-location/activityTypes/my-activityType',
|
|
175
|
-
* });
|
|
176
|
-
* console.log(res.data);
|
|
177
|
-
*
|
|
178
|
-
* // Example response
|
|
179
|
-
* // {
|
|
180
|
-
* // "activities": [],
|
|
181
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
182
|
-
* // }
|
|
183
|
-
* }
|
|
184
|
-
*
|
|
185
|
-
* main().catch(e => {
|
|
186
|
-
* console.error(e);
|
|
187
|
-
* throw e;
|
|
188
|
-
* });
|
|
189
|
-
*
|
|
190
|
-
* ```
|
|
191
140
|
*
|
|
192
141
|
* @param params - Parameters for request
|
|
193
142
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/build/v1beta1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1beta1.js","sourceRoot":"","sources":["../v1beta1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"v1beta1.js","sourceRoot":"","sources":["../v1beta1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,sBAAsB,CAgStC;AAhSD,WAAiB,sBAAsB;IAgErC;;;;;;;;;;OAUG;IACH,MAAa,cAAc;QAIzB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,CAAC;KACF;IAZY,qCAAc,iBAY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AAwC,CAAC;YAC9D,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,qCAAqC,CAAC,CAAC,OAAO,CAC5D,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,KAAK;iBACd,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,QAAQ,CAAC;gBAC1B,UAAU,EAAE,CAAC,QAAQ,CAAC;gBACtB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IAvGY,2EAAoD,uDAuGhE,CAAA;AAqBH,CAAC,EAhSgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAgStC"}
|
package/index.ts
CHANGED
|
@@ -33,7 +33,7 @@ export function policyanalyzer(
|
|
|
33
33
|
options: policyanalyzer_v1beta1.Options
|
|
34
34
|
): policyanalyzer_v1beta1.Policyanalyzer;
|
|
35
35
|
export function policyanalyzer<
|
|
36
|
-
T = policyanalyzer_v1.Policyanalyzer | policyanalyzer_v1beta1.Policyanalyzer
|
|
36
|
+
T = policyanalyzer_v1.Policyanalyzer | policyanalyzer_v1beta1.Policyanalyzer,
|
|
37
37
|
>(
|
|
38
38
|
this: GoogleConfigurable,
|
|
39
39
|
versionOrOptions:
|
package/package.json
CHANGED
package/v1.ts
CHANGED
|
@@ -207,57 +207,6 @@ export namespace policyanalyzer_v1 {
|
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* Queries policy activities on Google Cloud resources.
|
|
210
|
-
* @example
|
|
211
|
-
* ```js
|
|
212
|
-
* // Before running the sample:
|
|
213
|
-
* // - Enable the API at:
|
|
214
|
-
* // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
|
|
215
|
-
* // - Login into gcloud by running:
|
|
216
|
-
* // `$ gcloud auth application-default login`
|
|
217
|
-
* // - Install the npm module by running:
|
|
218
|
-
* // `$ npm install googleapis`
|
|
219
|
-
*
|
|
220
|
-
* const {google} = require('googleapis');
|
|
221
|
-
* const policyanalyzer = google.policyanalyzer('v1');
|
|
222
|
-
*
|
|
223
|
-
* async function main() {
|
|
224
|
-
* const auth = new google.auth.GoogleAuth({
|
|
225
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
226
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
227
|
-
* });
|
|
228
|
-
*
|
|
229
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
230
|
-
* const authClient = await auth.getClient();
|
|
231
|
-
* google.options({auth: authClient});
|
|
232
|
-
*
|
|
233
|
-
* // Do the magic
|
|
234
|
-
* const res =
|
|
235
|
-
* await policyanalyzer.projects.locations.activityTypes.activities.query({
|
|
236
|
-
* // Optional. Filter expression to restrict the activities returned. For serviceAccountLastAuthentication activities, supported filters are: - `activities.full_resource_name {=\} [STRING]` - `activities.fullResourceName {=\} [STRING]` where `[STRING]` is the full resource name of the service account. For serviceAccountKeyLastAuthentication activities, supported filters are: - `activities.full_resource_name {=\} [STRING]` - `activities.fullResourceName {=\} [STRING]` where `[STRING]` is the full resource name of the service account key.
|
|
237
|
-
* filter: 'placeholder-value',
|
|
238
|
-
* // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
|
|
239
|
-
* pageSize: 'placeholder-value',
|
|
240
|
-
* // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
|
|
241
|
-
* pageToken: 'placeholder-value',
|
|
242
|
-
* // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations: https://cloud.google.com/about/locations/
|
|
243
|
-
* parent:
|
|
244
|
-
* 'projects/my-project/locations/my-location/activityTypes/my-activityType',
|
|
245
|
-
* });
|
|
246
|
-
* console.log(res.data);
|
|
247
|
-
*
|
|
248
|
-
* // Example response
|
|
249
|
-
* // {
|
|
250
|
-
* // "activities": [],
|
|
251
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
252
|
-
* // }
|
|
253
|
-
* }
|
|
254
|
-
*
|
|
255
|
-
* main().catch(e => {
|
|
256
|
-
* console.error(e);
|
|
257
|
-
* throw e;
|
|
258
|
-
* });
|
|
259
|
-
*
|
|
260
|
-
* ```
|
|
261
210
|
*
|
|
262
211
|
* @param params - Parameters for request
|
|
263
212
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/v1beta1.ts
CHANGED
|
@@ -207,57 +207,6 @@ export namespace policyanalyzer_v1beta1 {
|
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* Queries policy activities on GCP resources.
|
|
210
|
-
* @example
|
|
211
|
-
* ```js
|
|
212
|
-
* // Before running the sample:
|
|
213
|
-
* // - Enable the API at:
|
|
214
|
-
* // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
|
|
215
|
-
* // - Login into gcloud by running:
|
|
216
|
-
* // `$ gcloud auth application-default login`
|
|
217
|
-
* // - Install the npm module by running:
|
|
218
|
-
* // `$ npm install googleapis`
|
|
219
|
-
*
|
|
220
|
-
* const {google} = require('googleapis');
|
|
221
|
-
* const policyanalyzer = google.policyanalyzer('v1beta1');
|
|
222
|
-
*
|
|
223
|
-
* async function main() {
|
|
224
|
-
* const auth = new google.auth.GoogleAuth({
|
|
225
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
226
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
227
|
-
* });
|
|
228
|
-
*
|
|
229
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
230
|
-
* const authClient = await auth.getClient();
|
|
231
|
-
* google.options({auth: authClient});
|
|
232
|
-
*
|
|
233
|
-
* // Do the magic
|
|
234
|
-
* const res =
|
|
235
|
-
* await policyanalyzer.projects.locations.activityTypes.activities.query({
|
|
236
|
-
* // Optional. Optional filter expression to restrict the activities returned. Supported filters are: - service_account_last_authn.full_resource_name {=\} - service_account_key_last_authn.full_resource_name {=\}
|
|
237
|
-
* filter: 'placeholder-value',
|
|
238
|
-
* // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
|
|
239
|
-
* pageSize: 'placeholder-value',
|
|
240
|
-
* // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
|
|
241
|
-
* pageToken: 'placeholder-value',
|
|
242
|
-
* // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/
|
|
243
|
-
* parent:
|
|
244
|
-
* 'projects/my-project/locations/my-location/activityTypes/my-activityType',
|
|
245
|
-
* });
|
|
246
|
-
* console.log(res.data);
|
|
247
|
-
*
|
|
248
|
-
* // Example response
|
|
249
|
-
* // {
|
|
250
|
-
* // "activities": [],
|
|
251
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
252
|
-
* // }
|
|
253
|
-
* }
|
|
254
|
-
*
|
|
255
|
-
* main().catch(e => {
|
|
256
|
-
* console.error(e);
|
|
257
|
-
* throw e;
|
|
258
|
-
* });
|
|
259
|
-
*
|
|
260
|
-
* ```
|
|
261
210
|
*
|
|
262
211
|
* @param params - Parameters for request
|
|
263
212
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|