@googleapis/merchantapi 6.0.1 → 9.0.0
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 +43 -0
- package/README.md +9 -0
- package/accounts_v1beta.ts +6894 -534
- package/build/accounts_v1beta.d.ts +4933 -137
- package/build/accounts_v1beta.js +679 -26
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +336 -1
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +412 -6
- package/build/datasources_v1beta.js.map +1 -1
- package/build/inventories_v1beta.d.ts +336 -2
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1beta.d.ts +367 -1
- package/build/issueresolution_v1beta.js +48 -0
- package/build/issueresolution_v1beta.js.map +1 -1
- package/build/lfp_v1beta.d.ts +436 -3
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1beta.d.ts +272 -1
- package/build/notifications_v1beta.js.map +1 -1
- package/build/ordertracking_v1beta.d.ts +75 -1
- package/build/ordertracking_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +352 -45
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1beta.d.ts +171 -4
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1beta.d.ts +52 -1
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +58 -1
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +434 -2
- package/build/reviews_v1beta.js.map +1 -1
- package/conversions_v1beta.ts +336 -1
- package/datasources_v1beta.ts +412 -6
- package/inventories_v1beta.ts +336 -2
- package/issueresolution_v1beta.ts +465 -1
- package/lfp_v1beta.ts +436 -3
- package/notifications_v1beta.ts +272 -1
- package/ordertracking_v1beta.ts +75 -1
- package/package.json +1 -1
- package/products_v1beta.ts +352 -45
- package/promotions_v1beta.ts +171 -4
- package/quota_v1beta.ts +52 -1
- package/reports_v1beta.ts +58 -1
- package/reviews_v1beta.ts +434 -2
|
@@ -311,7 +311,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
311
311
|
nextPageToken?: string | null;
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
|
-
* The local inventory data source.
|
|
314
|
+
* The local inventory data source type is only available for file inputs and can't be used to create API local inventory data sources.
|
|
315
315
|
*/
|
|
316
316
|
export interface Schema$LocalInventoryDataSource {
|
|
317
317
|
/**
|
|
@@ -404,7 +404,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
404
404
|
*/
|
|
405
405
|
eventTime?: string | null;
|
|
406
406
|
/**
|
|
407
|
-
* Optional. The product expiration time. This field will not
|
|
407
|
+
* Optional. The product expiration time. This field will not be set if the notification is sent for a product deletion event.
|
|
408
408
|
*/
|
|
409
409
|
expirationTime?: string | null;
|
|
410
410
|
/**
|
|
@@ -437,9 +437,6 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
437
437
|
*/
|
|
438
438
|
targetCountry?: string | null;
|
|
439
439
|
}
|
|
440
|
-
/**
|
|
441
|
-
* The regional inventory data source.
|
|
442
|
-
*/
|
|
443
440
|
export interface Schema$RegionalInventoryDataSource {
|
|
444
441
|
/**
|
|
445
442
|
* Required. Immutable. The two-letter ISO 639-1 language of the items to which the regional inventory is provided.
|
|
@@ -499,6 +496,82 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
499
496
|
constructor(context: APIRequestContext);
|
|
500
497
|
/**
|
|
501
498
|
* Creates the new data source configuration for the given account. This method always creates a new data source.
|
|
499
|
+
* @example
|
|
500
|
+
* ```js
|
|
501
|
+
* // Before running the sample:
|
|
502
|
+
* // - Enable the API at:
|
|
503
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
504
|
+
* // - Login into gcloud by running:
|
|
505
|
+
* // ```sh
|
|
506
|
+
* // $ gcloud auth application-default login
|
|
507
|
+
* // ```
|
|
508
|
+
* // - Install the npm module by running:
|
|
509
|
+
* // ```sh
|
|
510
|
+
* // $ npm install googleapis
|
|
511
|
+
* // ```
|
|
512
|
+
*
|
|
513
|
+
* const {google} = require('googleapis');
|
|
514
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
515
|
+
*
|
|
516
|
+
* async function main() {
|
|
517
|
+
* const auth = new google.auth.GoogleAuth({
|
|
518
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
519
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
520
|
+
* });
|
|
521
|
+
*
|
|
522
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
523
|
+
* const authClient = await auth.getClient();
|
|
524
|
+
* google.options({auth: authClient});
|
|
525
|
+
*
|
|
526
|
+
* // Do the magic
|
|
527
|
+
* const res = await merchantapi.accounts.dataSources.create({
|
|
528
|
+
* // Required. The account where this data source will be created. Format: `accounts/{account\}`
|
|
529
|
+
* parent: 'accounts/my-account',
|
|
530
|
+
*
|
|
531
|
+
* // Request body metadata
|
|
532
|
+
* requestBody: {
|
|
533
|
+
* // request body parameters
|
|
534
|
+
* // {
|
|
535
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
536
|
+
* // "displayName": "my_displayName",
|
|
537
|
+
* // "fileInput": {},
|
|
538
|
+
* // "input": "my_input",
|
|
539
|
+
* // "localInventoryDataSource": {},
|
|
540
|
+
* // "merchantReviewDataSource": {},
|
|
541
|
+
* // "name": "my_name",
|
|
542
|
+
* // "primaryProductDataSource": {},
|
|
543
|
+
* // "productReviewDataSource": {},
|
|
544
|
+
* // "promotionDataSource": {},
|
|
545
|
+
* // "regionalInventoryDataSource": {},
|
|
546
|
+
* // "supplementalProductDataSource": {}
|
|
547
|
+
* // }
|
|
548
|
+
* },
|
|
549
|
+
* });
|
|
550
|
+
* console.log(res.data);
|
|
551
|
+
*
|
|
552
|
+
* // Example response
|
|
553
|
+
* // {
|
|
554
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
555
|
+
* // "displayName": "my_displayName",
|
|
556
|
+
* // "fileInput": {},
|
|
557
|
+
* // "input": "my_input",
|
|
558
|
+
* // "localInventoryDataSource": {},
|
|
559
|
+
* // "merchantReviewDataSource": {},
|
|
560
|
+
* // "name": "my_name",
|
|
561
|
+
* // "primaryProductDataSource": {},
|
|
562
|
+
* // "productReviewDataSource": {},
|
|
563
|
+
* // "promotionDataSource": {},
|
|
564
|
+
* // "regionalInventoryDataSource": {},
|
|
565
|
+
* // "supplementalProductDataSource": {}
|
|
566
|
+
* // }
|
|
567
|
+
* }
|
|
568
|
+
*
|
|
569
|
+
* main().catch(e => {
|
|
570
|
+
* console.error(e);
|
|
571
|
+
* throw e;
|
|
572
|
+
* });
|
|
573
|
+
*
|
|
574
|
+
* ```
|
|
502
575
|
*
|
|
503
576
|
* @param params - Parameters for request
|
|
504
577
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -513,6 +586,50 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
513
586
|
create(callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
514
587
|
/**
|
|
515
588
|
* Deletes a data source from your Merchant Center account.
|
|
589
|
+
* @example
|
|
590
|
+
* ```js
|
|
591
|
+
* // Before running the sample:
|
|
592
|
+
* // - Enable the API at:
|
|
593
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
594
|
+
* // - Login into gcloud by running:
|
|
595
|
+
* // ```sh
|
|
596
|
+
* // $ gcloud auth application-default login
|
|
597
|
+
* // ```
|
|
598
|
+
* // - Install the npm module by running:
|
|
599
|
+
* // ```sh
|
|
600
|
+
* // $ npm install googleapis
|
|
601
|
+
* // ```
|
|
602
|
+
*
|
|
603
|
+
* const {google} = require('googleapis');
|
|
604
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
605
|
+
*
|
|
606
|
+
* async function main() {
|
|
607
|
+
* const auth = new google.auth.GoogleAuth({
|
|
608
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
609
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
610
|
+
* });
|
|
611
|
+
*
|
|
612
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
613
|
+
* const authClient = await auth.getClient();
|
|
614
|
+
* google.options({auth: authClient});
|
|
615
|
+
*
|
|
616
|
+
* // Do the magic
|
|
617
|
+
* const res = await merchantapi.accounts.dataSources.delete({
|
|
618
|
+
* // Required. The name of the data source to delete. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
619
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
620
|
+
* });
|
|
621
|
+
* console.log(res.data);
|
|
622
|
+
*
|
|
623
|
+
* // Example response
|
|
624
|
+
* // {}
|
|
625
|
+
* }
|
|
626
|
+
*
|
|
627
|
+
* main().catch(e => {
|
|
628
|
+
* console.error(e);
|
|
629
|
+
* throw e;
|
|
630
|
+
* });
|
|
631
|
+
*
|
|
632
|
+
* ```
|
|
516
633
|
*
|
|
517
634
|
* @param params - Parameters for request
|
|
518
635
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -527,6 +644,56 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
527
644
|
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
528
645
|
/**
|
|
529
646
|
* Performs the data fetch immediately (even outside fetch schedule) on a data source from your Merchant Center Account. If you need to call this method more than once per day, you should use the Products service to update your product data instead. This method only works on data sources with a file input set.
|
|
647
|
+
* @example
|
|
648
|
+
* ```js
|
|
649
|
+
* // Before running the sample:
|
|
650
|
+
* // - Enable the API at:
|
|
651
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
652
|
+
* // - Login into gcloud by running:
|
|
653
|
+
* // ```sh
|
|
654
|
+
* // $ gcloud auth application-default login
|
|
655
|
+
* // ```
|
|
656
|
+
* // - Install the npm module by running:
|
|
657
|
+
* // ```sh
|
|
658
|
+
* // $ npm install googleapis
|
|
659
|
+
* // ```
|
|
660
|
+
*
|
|
661
|
+
* const {google} = require('googleapis');
|
|
662
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
663
|
+
*
|
|
664
|
+
* async function main() {
|
|
665
|
+
* const auth = new google.auth.GoogleAuth({
|
|
666
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
667
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
668
|
+
* });
|
|
669
|
+
*
|
|
670
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
671
|
+
* const authClient = await auth.getClient();
|
|
672
|
+
* google.options({auth: authClient});
|
|
673
|
+
*
|
|
674
|
+
* // Do the magic
|
|
675
|
+
* const res = await merchantapi.accounts.dataSources.fetch({
|
|
676
|
+
* // Required. The name of the data source resource to fetch. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
677
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
678
|
+
*
|
|
679
|
+
* // Request body metadata
|
|
680
|
+
* requestBody: {
|
|
681
|
+
* // request body parameters
|
|
682
|
+
* // {}
|
|
683
|
+
* },
|
|
684
|
+
* });
|
|
685
|
+
* console.log(res.data);
|
|
686
|
+
*
|
|
687
|
+
* // Example response
|
|
688
|
+
* // {}
|
|
689
|
+
* }
|
|
690
|
+
*
|
|
691
|
+
* main().catch(e => {
|
|
692
|
+
* console.error(e);
|
|
693
|
+
* throw e;
|
|
694
|
+
* });
|
|
695
|
+
*
|
|
696
|
+
* ```
|
|
530
697
|
*
|
|
531
698
|
* @param params - Parameters for request
|
|
532
699
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -541,6 +708,63 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
541
708
|
fetch(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
542
709
|
/**
|
|
543
710
|
* Retrieves the data source configuration for the given account.
|
|
711
|
+
* @example
|
|
712
|
+
* ```js
|
|
713
|
+
* // Before running the sample:
|
|
714
|
+
* // - Enable the API at:
|
|
715
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
716
|
+
* // - Login into gcloud by running:
|
|
717
|
+
* // ```sh
|
|
718
|
+
* // $ gcloud auth application-default login
|
|
719
|
+
* // ```
|
|
720
|
+
* // - Install the npm module by running:
|
|
721
|
+
* // ```sh
|
|
722
|
+
* // $ npm install googleapis
|
|
723
|
+
* // ```
|
|
724
|
+
*
|
|
725
|
+
* const {google} = require('googleapis');
|
|
726
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
727
|
+
*
|
|
728
|
+
* async function main() {
|
|
729
|
+
* const auth = new google.auth.GoogleAuth({
|
|
730
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
731
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
732
|
+
* });
|
|
733
|
+
*
|
|
734
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
735
|
+
* const authClient = await auth.getClient();
|
|
736
|
+
* google.options({auth: authClient});
|
|
737
|
+
*
|
|
738
|
+
* // Do the magic
|
|
739
|
+
* const res = await merchantapi.accounts.dataSources.get({
|
|
740
|
+
* // Required. The name of the data source to retrieve. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
741
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
742
|
+
* });
|
|
743
|
+
* console.log(res.data);
|
|
744
|
+
*
|
|
745
|
+
* // Example response
|
|
746
|
+
* // {
|
|
747
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
748
|
+
* // "displayName": "my_displayName",
|
|
749
|
+
* // "fileInput": {},
|
|
750
|
+
* // "input": "my_input",
|
|
751
|
+
* // "localInventoryDataSource": {},
|
|
752
|
+
* // "merchantReviewDataSource": {},
|
|
753
|
+
* // "name": "my_name",
|
|
754
|
+
* // "primaryProductDataSource": {},
|
|
755
|
+
* // "productReviewDataSource": {},
|
|
756
|
+
* // "promotionDataSource": {},
|
|
757
|
+
* // "regionalInventoryDataSource": {},
|
|
758
|
+
* // "supplementalProductDataSource": {}
|
|
759
|
+
* // }
|
|
760
|
+
* }
|
|
761
|
+
*
|
|
762
|
+
* main().catch(e => {
|
|
763
|
+
* console.error(e);
|
|
764
|
+
* throw e;
|
|
765
|
+
* });
|
|
766
|
+
*
|
|
767
|
+
* ```
|
|
544
768
|
*
|
|
545
769
|
* @param params - Parameters for request
|
|
546
770
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -555,6 +779,57 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
555
779
|
get(callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
556
780
|
/**
|
|
557
781
|
* Lists the configurations for data sources for the given account.
|
|
782
|
+
* @example
|
|
783
|
+
* ```js
|
|
784
|
+
* // Before running the sample:
|
|
785
|
+
* // - Enable the API at:
|
|
786
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
787
|
+
* // - Login into gcloud by running:
|
|
788
|
+
* // ```sh
|
|
789
|
+
* // $ gcloud auth application-default login
|
|
790
|
+
* // ```
|
|
791
|
+
* // - Install the npm module by running:
|
|
792
|
+
* // ```sh
|
|
793
|
+
* // $ npm install googleapis
|
|
794
|
+
* // ```
|
|
795
|
+
*
|
|
796
|
+
* const {google} = require('googleapis');
|
|
797
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
798
|
+
*
|
|
799
|
+
* async function main() {
|
|
800
|
+
* const auth = new google.auth.GoogleAuth({
|
|
801
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
802
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
803
|
+
* });
|
|
804
|
+
*
|
|
805
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
806
|
+
* const authClient = await auth.getClient();
|
|
807
|
+
* google.options({auth: authClient});
|
|
808
|
+
*
|
|
809
|
+
* // Do the magic
|
|
810
|
+
* const res = await merchantapi.accounts.dataSources.list({
|
|
811
|
+
* // Optional. The maximum number of data sources to return. The service may return fewer than this value. The maximum value is 1000; values above 1000 will be coerced to 1000. If unspecified, the maximum number of data sources will be returned.
|
|
812
|
+
* pageSize: 'placeholder-value',
|
|
813
|
+
* // Optional. A page token, received from a previous `ListDataSources` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDataSources` must match the call that provided the page token.
|
|
814
|
+
* pageToken: 'placeholder-value',
|
|
815
|
+
* // Required. The account to list data sources for. Format: `accounts/{account\}`
|
|
816
|
+
* parent: 'accounts/my-account',
|
|
817
|
+
* });
|
|
818
|
+
* console.log(res.data);
|
|
819
|
+
*
|
|
820
|
+
* // Example response
|
|
821
|
+
* // {
|
|
822
|
+
* // "dataSources": [],
|
|
823
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
824
|
+
* // }
|
|
825
|
+
* }
|
|
826
|
+
*
|
|
827
|
+
* main().catch(e => {
|
|
828
|
+
* console.error(e);
|
|
829
|
+
* throw e;
|
|
830
|
+
* });
|
|
831
|
+
*
|
|
832
|
+
* ```
|
|
558
833
|
*
|
|
559
834
|
* @param params - Parameters for request
|
|
560
835
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -569,6 +844,84 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
569
844
|
list(callback: BodyResponseCallback<Schema$ListDataSourcesResponse>): void;
|
|
570
845
|
/**
|
|
571
846
|
* Updates the existing data source configuration. The fields that are set in the update mask but not provided in the resource will be deleted.
|
|
847
|
+
* @example
|
|
848
|
+
* ```js
|
|
849
|
+
* // Before running the sample:
|
|
850
|
+
* // - Enable the API at:
|
|
851
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
852
|
+
* // - Login into gcloud by running:
|
|
853
|
+
* // ```sh
|
|
854
|
+
* // $ gcloud auth application-default login
|
|
855
|
+
* // ```
|
|
856
|
+
* // - Install the npm module by running:
|
|
857
|
+
* // ```sh
|
|
858
|
+
* // $ npm install googleapis
|
|
859
|
+
* // ```
|
|
860
|
+
*
|
|
861
|
+
* const {google} = require('googleapis');
|
|
862
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
863
|
+
*
|
|
864
|
+
* async function main() {
|
|
865
|
+
* const auth = new google.auth.GoogleAuth({
|
|
866
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
867
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
868
|
+
* });
|
|
869
|
+
*
|
|
870
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
871
|
+
* const authClient = await auth.getClient();
|
|
872
|
+
* google.options({auth: authClient});
|
|
873
|
+
*
|
|
874
|
+
* // Do the magic
|
|
875
|
+
* const res = await merchantapi.accounts.dataSources.patch({
|
|
876
|
+
* // Required. Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
877
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
878
|
+
* // Required. The list of data source fields to be updated. Fields specified in the update mask without a value specified in the body will be deleted from the data source. Providing special "*" value for full data source replacement is not supported. For example, If you insert `updateMask=displayName` in the request, it will only update the `displayName` leaving all other fields untouched.
|
|
879
|
+
* updateMask: 'placeholder-value',
|
|
880
|
+
*
|
|
881
|
+
* // Request body metadata
|
|
882
|
+
* requestBody: {
|
|
883
|
+
* // request body parameters
|
|
884
|
+
* // {
|
|
885
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
886
|
+
* // "displayName": "my_displayName",
|
|
887
|
+
* // "fileInput": {},
|
|
888
|
+
* // "input": "my_input",
|
|
889
|
+
* // "localInventoryDataSource": {},
|
|
890
|
+
* // "merchantReviewDataSource": {},
|
|
891
|
+
* // "name": "my_name",
|
|
892
|
+
* // "primaryProductDataSource": {},
|
|
893
|
+
* // "productReviewDataSource": {},
|
|
894
|
+
* // "promotionDataSource": {},
|
|
895
|
+
* // "regionalInventoryDataSource": {},
|
|
896
|
+
* // "supplementalProductDataSource": {}
|
|
897
|
+
* // }
|
|
898
|
+
* },
|
|
899
|
+
* });
|
|
900
|
+
* console.log(res.data);
|
|
901
|
+
*
|
|
902
|
+
* // Example response
|
|
903
|
+
* // {
|
|
904
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
905
|
+
* // "displayName": "my_displayName",
|
|
906
|
+
* // "fileInput": {},
|
|
907
|
+
* // "input": "my_input",
|
|
908
|
+
* // "localInventoryDataSource": {},
|
|
909
|
+
* // "merchantReviewDataSource": {},
|
|
910
|
+
* // "name": "my_name",
|
|
911
|
+
* // "primaryProductDataSource": {},
|
|
912
|
+
* // "productReviewDataSource": {},
|
|
913
|
+
* // "promotionDataSource": {},
|
|
914
|
+
* // "regionalInventoryDataSource": {},
|
|
915
|
+
* // "supplementalProductDataSource": {}
|
|
916
|
+
* // }
|
|
917
|
+
* }
|
|
918
|
+
*
|
|
919
|
+
* main().catch(e => {
|
|
920
|
+
* console.error(e);
|
|
921
|
+
* throw e;
|
|
922
|
+
* });
|
|
923
|
+
*
|
|
924
|
+
* ```
|
|
572
925
|
*
|
|
573
926
|
* @param params - Parameters for request
|
|
574
927
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -634,7 +987,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
634
987
|
*/
|
|
635
988
|
name?: string;
|
|
636
989
|
/**
|
|
637
|
-
* Required. The list of data source fields to be updated. Fields specified in the update mask without a value specified in the body will be deleted from the data source. Providing special "*" value for full data source replacement is not supported.
|
|
990
|
+
* Required. The list of data source fields to be updated. Fields specified in the update mask without a value specified in the body will be deleted from the data source. Providing special "*" value for full data source replacement is not supported. For example, If you insert `updateMask=displayName` in the request, it will only update the `displayName` leaving all other fields untouched.
|
|
638
991
|
*/
|
|
639
992
|
updateMask?: string;
|
|
640
993
|
/**
|
|
@@ -647,6 +1000,59 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
647
1000
|
constructor(context: APIRequestContext);
|
|
648
1001
|
/**
|
|
649
1002
|
* Gets the latest data source file upload. Only the `latest` alias is accepted for a file upload.
|
|
1003
|
+
* @example
|
|
1004
|
+
* ```js
|
|
1005
|
+
* // Before running the sample:
|
|
1006
|
+
* // - Enable the API at:
|
|
1007
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
1008
|
+
* // - Login into gcloud by running:
|
|
1009
|
+
* // ```sh
|
|
1010
|
+
* // $ gcloud auth application-default login
|
|
1011
|
+
* // ```
|
|
1012
|
+
* // - Install the npm module by running:
|
|
1013
|
+
* // ```sh
|
|
1014
|
+
* // $ npm install googleapis
|
|
1015
|
+
* // ```
|
|
1016
|
+
*
|
|
1017
|
+
* const {google} = require('googleapis');
|
|
1018
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
1019
|
+
*
|
|
1020
|
+
* async function main() {
|
|
1021
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1022
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1023
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
1024
|
+
* });
|
|
1025
|
+
*
|
|
1026
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1027
|
+
* const authClient = await auth.getClient();
|
|
1028
|
+
* google.options({auth: authClient});
|
|
1029
|
+
*
|
|
1030
|
+
* // Do the magic
|
|
1031
|
+
* const res = await merchantapi.accounts.dataSources.fileUploads.get({
|
|
1032
|
+
* // Required. The name of the data source file upload to retrieve. Format: `accounts/{account\}/dataSources/{datasource\}/fileUploads/latest`
|
|
1033
|
+
* name: 'accounts/my-account/dataSources/my-dataSource/fileUploads/my-fileUpload',
|
|
1034
|
+
* });
|
|
1035
|
+
* console.log(res.data);
|
|
1036
|
+
*
|
|
1037
|
+
* // Example response
|
|
1038
|
+
* // {
|
|
1039
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
1040
|
+
* // "issues": [],
|
|
1041
|
+
* // "itemsCreated": "my_itemsCreated",
|
|
1042
|
+
* // "itemsTotal": "my_itemsTotal",
|
|
1043
|
+
* // "itemsUpdated": "my_itemsUpdated",
|
|
1044
|
+
* // "name": "my_name",
|
|
1045
|
+
* // "processingState": "my_processingState",
|
|
1046
|
+
* // "uploadTime": "my_uploadTime"
|
|
1047
|
+
* // }
|
|
1048
|
+
* }
|
|
1049
|
+
*
|
|
1050
|
+
* main().catch(e => {
|
|
1051
|
+
* console.error(e);
|
|
1052
|
+
* throw e;
|
|
1053
|
+
* });
|
|
1054
|
+
*
|
|
1055
|
+
* ```
|
|
650
1056
|
*
|
|
651
1057
|
* @param params - Parameters for request
|
|
652
1058
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasources_v1beta.js","sourceRoot":"","sources":["../datasources_v1beta.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,8BAA8B,
|
|
1
|
+
{"version":3,"file":"datasources_v1beta.js","sourceRoot":"","sources":["../datasources_v1beta.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,8BAA8B,CAknD9C;AAlnDD,WAAiB,8BAA8B;IAgE7C;;;;;;;;;;OAUG;IACH,MAAa,WAAW;QAItB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MA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