@google-shopping/quota 0.7.0 → 0.8.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/README.md +27 -94
- package/build/protos/protos.d.ts +4 -518
- package/build/protos/protos.js +51 -1724
- package/build/protos/protos.json +22 -193
- package/build/src/index.d.ts +3 -3
- package/build/src/index.js +1 -1
- package/build/src/index.js.map +1 -1
- package/build/src/v1/gapic_metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
|
|
2
|
-
[//]: # "
|
|
2
|
+
[//]: # "The comments you see below are used to generate those parts of the template in later states."
|
|
3
3
|
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
|
|
4
4
|
|
|
5
|
-
# [Merchant API:
|
|
6
|
-
|
|
7
|
-
[](https://cloud.google.com/terms/launch-stages)
|
|
8
|
-
[](https://www.npmjs.org/package/@google-shopping/quota)
|
|
9
|
-
|
|
5
|
+
# [Merchant API: Nodejs Client][homepage]
|
|
10
6
|
|
|
7
|
+
This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
|
|
8
|
+
unless absolutely necessary (e.g. because of critical security issues) or with
|
|
9
|
+
an extensive deprecation period. Issues and requests against **stable** libraries
|
|
10
|
+
are addressed with the highest priority
|
|
11
11
|
|
|
12
|
+
[](https://www.npmjs.org/package/@google-shopping/quota)
|
|
12
13
|
|
|
13
14
|
Merchant API client for Node.js
|
|
14
15
|
|
|
16
|
+
[//]: # "partials.introduction"
|
|
15
17
|
|
|
16
18
|
A comprehensive list of changes in each version may be found in
|
|
17
|
-
[the CHANGELOG]
|
|
19
|
+
[the CHANGELOG][homepage_changelog].
|
|
18
20
|
|
|
19
|
-
* [Merchant API
|
|
20
|
-
* [Merchant API Documentation]
|
|
21
|
-
* [github.com/googleapis/google-cloud-node/packages/google-shopping-merchant-quota](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-quota)
|
|
21
|
+
* [Merchant API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/quota/latest)
|
|
22
|
+
* [Merchant API Documentation](https://developers.google.com/merchant/api)
|
|
22
23
|
|
|
23
24
|
Read more about the client libraries for Cloud APIs, including the older
|
|
24
25
|
Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
@@ -27,18 +28,15 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
|
27
28
|
|
|
28
29
|
**Table of contents:**
|
|
29
30
|
|
|
30
|
-
|
|
31
31
|
* [Quickstart](#quickstart)
|
|
32
32
|
* [Before you begin](#before-you-begin)
|
|
33
33
|
* [Installing the client library](#installing-the-client-library)
|
|
34
|
-
|
|
35
|
-
* [Samples](#samples)
|
|
34
|
+
|
|
36
35
|
* [Versioning](#versioning)
|
|
37
36
|
* [Contributing](#contributing)
|
|
38
37
|
* [License](#license)
|
|
39
38
|
|
|
40
39
|
## Quickstart
|
|
41
|
-
|
|
42
40
|
### Before you begin
|
|
43
41
|
|
|
44
42
|
1. [Select or create a Cloud Platform project][projects].
|
|
@@ -46,78 +44,25 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
|
46
44
|
1. [Enable the Merchant API API][enable_api].
|
|
47
45
|
1. [Set up authentication][auth] so you can access the
|
|
48
46
|
API from your local workstation.
|
|
49
|
-
|
|
50
47
|
### Installing the client library
|
|
51
48
|
|
|
52
49
|
```bash
|
|
53
50
|
npm install @google-shopping/quota
|
|
54
51
|
```
|
|
55
52
|
|
|
56
|
-
|
|
57
|
-
### Using the client library
|
|
58
|
-
|
|
59
|
-
```javascript
|
|
60
|
-
/**
|
|
61
|
-
* This snippet has been automatically generated and should be regarded as a code template only.
|
|
62
|
-
* It will require modifications to work.
|
|
63
|
-
* It may require correct/in-range values for request initialization.
|
|
64
|
-
* TODO(developer): Uncomment these variables before running the sample.
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* Required. The merchant account who owns the collection of method quotas
|
|
68
|
-
* Format: accounts/{account}
|
|
69
|
-
*/
|
|
70
|
-
// const parent = 'abc123'
|
|
71
|
-
/**
|
|
72
|
-
* Optional. The maximum number of quotas to return in the response, used
|
|
73
|
-
* for paging. Defaults to 500; values above 1000 will be coerced to 1000.
|
|
74
|
-
*/
|
|
75
|
-
// const pageSize = 1234
|
|
76
|
-
/**
|
|
77
|
-
* Optional. Token (if provided) to retrieve the subsequent page. All other
|
|
78
|
-
* parameters must match the original call that provided the page token.
|
|
79
|
-
*/
|
|
80
|
-
// const pageToken = 'abc123'
|
|
81
|
-
|
|
82
|
-
// Imports the Quota library
|
|
83
|
-
const {QuotaServiceClient} = require('@google-shopping/quota').v1beta;
|
|
84
|
-
|
|
85
|
-
// Instantiates a client
|
|
86
|
-
const quotaClient = new QuotaServiceClient();
|
|
87
|
-
|
|
88
|
-
async function callListQuotaGroups() {
|
|
89
|
-
// Construct request
|
|
90
|
-
const request = {
|
|
91
|
-
parent,
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
// Run request
|
|
95
|
-
const iterable = quotaClient.listQuotaGroupsAsync(request);
|
|
96
|
-
for await (const response of iterable) {
|
|
97
|
-
console.log(response);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
callListQuotaGroups();
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
|
|
53
|
+
[//]: # "partials.body"
|
|
106
54
|
|
|
107
55
|
## Samples
|
|
108
56
|
|
|
109
|
-
Samples are in the [`samples/`]
|
|
110
|
-
|
|
111
|
-
| Sample | Source Code | Try it |
|
|
112
|
-
| --------------------------- | --------------------------------- | ------ |
|
|
113
|
-
| Quota_service.list_quota_groups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/samples/generated/v1/quota_service.list_quota_groups.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-quota/samples/generated/v1/quota_service.list_quota_groups.js,packages/google-shopping-merchant-quota/samples/README.md) |
|
|
114
|
-
| Quota_service.list_quota_groups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/samples/generated/v1beta/quota_service.list_quota_groups.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-quota/samples/generated/v1beta/quota_service.list_quota_groups.js,packages/google-shopping-merchant-quota/samples/README.md) |
|
|
115
|
-
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-quota/samples/quickstart.js,packages/google-shopping-merchant-quota/samples/README.md) |
|
|
116
|
-
|
|
57
|
+
Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
|
|
117
58
|
|
|
59
|
+
| Sample | Source Code |
|
|
60
|
+
| --------------------------- | --------------------------------- |
|
|
61
|
+
| list quota groups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/samples/generated/v1/quota_service.list_quota_groups.js) |
|
|
62
|
+
| shopping | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/samples/generated/v1/snippet_metadata_google.shopping.merchant.quota.v1.json) |
|
|
63
|
+
| list quota groups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/samples/generated/v1beta/quota_service.list_quota_groups.js) |
|
|
64
|
+
| shopping | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.quota.v1beta.json) |
|
|
118
65
|
|
|
119
|
-
The [Merchant API Node.js Client API Reference][client-docs] documentation
|
|
120
|
-
also contains samples.
|
|
121
66
|
|
|
122
67
|
## Supported Node.js Versions
|
|
123
68
|
|
|
@@ -144,41 +89,29 @@ for versions compatible with Node.js 8.
|
|
|
144
89
|
|
|
145
90
|
This library follows [Semantic Versioning](http://semver.org/).
|
|
146
91
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
This library is considered to be in **preview**. This means it is still a
|
|
154
|
-
work-in-progress and under active development. Any release is subject to
|
|
155
|
-
backwards-incompatible changes at any time.
|
|
156
|
-
|
|
157
|
-
|
|
158
92
|
More Information: [Google Cloud Platform Launch Stages][launch_stages]
|
|
159
93
|
|
|
160
94
|
[launch_stages]: https://cloud.google.com/terms/launch-stages
|
|
161
95
|
|
|
162
96
|
## Contributing
|
|
163
97
|
|
|
164
|
-
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
|
|
98
|
+
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/CONTRIBUTING.md).
|
|
165
99
|
|
|
166
|
-
Please note that this `README.md
|
|
100
|
+
Please note that this `README.md`
|
|
167
101
|
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
|
|
168
|
-
are generated from a central template.
|
|
169
|
-
to its templates in
|
|
170
|
-
[directory](https://github.com/googleapis/synthtool).
|
|
102
|
+
are generated from a central template.
|
|
171
103
|
|
|
172
104
|
## License
|
|
173
105
|
|
|
174
106
|
Apache Version 2.0
|
|
175
107
|
|
|
176
|
-
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
|
|
108
|
+
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/LICENSE)
|
|
177
109
|
|
|
178
|
-
[client-docs]: https://cloud.google.com/nodejs/docs/reference/merchantapi/latest
|
|
179
|
-
[product-docs]: https://developers.google.com/merchant/api
|
|
180
110
|
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
|
|
181
111
|
[projects]: https://console.cloud.google.com/project
|
|
182
112
|
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
|
|
183
113
|
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=merchantapi.googleapis.com
|
|
184
114
|
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
|
|
115
|
+
[homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/samples
|
|
116
|
+
[homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota/CHANGELOG.md
|
|
117
|
+
[homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-quota
|