@googleapis/merchantapi 6.0.1 → 8.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 +32 -0
- package/README.md +9 -0
- package/accounts_v1beta.ts +6214 -358
- package/build/accounts_v1beta.d.ts +4685 -141
- package/build/accounts_v1beta.js +560 -12
- 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 +411 -2
- 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 +347 -44
- 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 +426 -2
- package/build/reviews_v1beta.js.map +1 -1
- package/conversions_v1beta.ts +336 -1
- package/datasources_v1beta.ts +411 -2
- 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 +347 -44
- package/promotions_v1beta.ts +171 -4
- package/quota_v1beta.ts +52 -1
- package/reports_v1beta.ts +58 -1
- package/reviews_v1beta.ts +426 -2
|
@@ -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
|
/**
|
|
@@ -499,6 +499,82 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
499
499
|
constructor(context: APIRequestContext);
|
|
500
500
|
/**
|
|
501
501
|
* Creates the new data source configuration for the given account. This method always creates a new data source.
|
|
502
|
+
* @example
|
|
503
|
+
* ```js
|
|
504
|
+
* // Before running the sample:
|
|
505
|
+
* // - Enable the API at:
|
|
506
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
507
|
+
* // - Login into gcloud by running:
|
|
508
|
+
* // ```sh
|
|
509
|
+
* // $ gcloud auth application-default login
|
|
510
|
+
* // ```
|
|
511
|
+
* // - Install the npm module by running:
|
|
512
|
+
* // ```sh
|
|
513
|
+
* // $ npm install googleapis
|
|
514
|
+
* // ```
|
|
515
|
+
*
|
|
516
|
+
* const {google} = require('googleapis');
|
|
517
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
518
|
+
*
|
|
519
|
+
* async function main() {
|
|
520
|
+
* const auth = new google.auth.GoogleAuth({
|
|
521
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
522
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
523
|
+
* });
|
|
524
|
+
*
|
|
525
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
526
|
+
* const authClient = await auth.getClient();
|
|
527
|
+
* google.options({auth: authClient});
|
|
528
|
+
*
|
|
529
|
+
* // Do the magic
|
|
530
|
+
* const res = await merchantapi.accounts.dataSources.create({
|
|
531
|
+
* // Required. The account where this data source will be created. Format: `accounts/{account\}`
|
|
532
|
+
* parent: 'accounts/my-account',
|
|
533
|
+
*
|
|
534
|
+
* // Request body metadata
|
|
535
|
+
* requestBody: {
|
|
536
|
+
* // request body parameters
|
|
537
|
+
* // {
|
|
538
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
539
|
+
* // "displayName": "my_displayName",
|
|
540
|
+
* // "fileInput": {},
|
|
541
|
+
* // "input": "my_input",
|
|
542
|
+
* // "localInventoryDataSource": {},
|
|
543
|
+
* // "merchantReviewDataSource": {},
|
|
544
|
+
* // "name": "my_name",
|
|
545
|
+
* // "primaryProductDataSource": {},
|
|
546
|
+
* // "productReviewDataSource": {},
|
|
547
|
+
* // "promotionDataSource": {},
|
|
548
|
+
* // "regionalInventoryDataSource": {},
|
|
549
|
+
* // "supplementalProductDataSource": {}
|
|
550
|
+
* // }
|
|
551
|
+
* },
|
|
552
|
+
* });
|
|
553
|
+
* console.log(res.data);
|
|
554
|
+
*
|
|
555
|
+
* // Example response
|
|
556
|
+
* // {
|
|
557
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
558
|
+
* // "displayName": "my_displayName",
|
|
559
|
+
* // "fileInput": {},
|
|
560
|
+
* // "input": "my_input",
|
|
561
|
+
* // "localInventoryDataSource": {},
|
|
562
|
+
* // "merchantReviewDataSource": {},
|
|
563
|
+
* // "name": "my_name",
|
|
564
|
+
* // "primaryProductDataSource": {},
|
|
565
|
+
* // "productReviewDataSource": {},
|
|
566
|
+
* // "promotionDataSource": {},
|
|
567
|
+
* // "regionalInventoryDataSource": {},
|
|
568
|
+
* // "supplementalProductDataSource": {}
|
|
569
|
+
* // }
|
|
570
|
+
* }
|
|
571
|
+
*
|
|
572
|
+
* main().catch(e => {
|
|
573
|
+
* console.error(e);
|
|
574
|
+
* throw e;
|
|
575
|
+
* });
|
|
576
|
+
*
|
|
577
|
+
* ```
|
|
502
578
|
*
|
|
503
579
|
* @param params - Parameters for request
|
|
504
580
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -513,6 +589,50 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
513
589
|
create(callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
514
590
|
/**
|
|
515
591
|
* Deletes a data source from your Merchant Center account.
|
|
592
|
+
* @example
|
|
593
|
+
* ```js
|
|
594
|
+
* // Before running the sample:
|
|
595
|
+
* // - Enable the API at:
|
|
596
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
597
|
+
* // - Login into gcloud by running:
|
|
598
|
+
* // ```sh
|
|
599
|
+
* // $ gcloud auth application-default login
|
|
600
|
+
* // ```
|
|
601
|
+
* // - Install the npm module by running:
|
|
602
|
+
* // ```sh
|
|
603
|
+
* // $ npm install googleapis
|
|
604
|
+
* // ```
|
|
605
|
+
*
|
|
606
|
+
* const {google} = require('googleapis');
|
|
607
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
608
|
+
*
|
|
609
|
+
* async function main() {
|
|
610
|
+
* const auth = new google.auth.GoogleAuth({
|
|
611
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
612
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
613
|
+
* });
|
|
614
|
+
*
|
|
615
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
616
|
+
* const authClient = await auth.getClient();
|
|
617
|
+
* google.options({auth: authClient});
|
|
618
|
+
*
|
|
619
|
+
* // Do the magic
|
|
620
|
+
* const res = await merchantapi.accounts.dataSources.delete({
|
|
621
|
+
* // Required. The name of the data source to delete. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
622
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
623
|
+
* });
|
|
624
|
+
* console.log(res.data);
|
|
625
|
+
*
|
|
626
|
+
* // Example response
|
|
627
|
+
* // {}
|
|
628
|
+
* }
|
|
629
|
+
*
|
|
630
|
+
* main().catch(e => {
|
|
631
|
+
* console.error(e);
|
|
632
|
+
* throw e;
|
|
633
|
+
* });
|
|
634
|
+
*
|
|
635
|
+
* ```
|
|
516
636
|
*
|
|
517
637
|
* @param params - Parameters for request
|
|
518
638
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -527,6 +647,56 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
527
647
|
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
528
648
|
/**
|
|
529
649
|
* 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.
|
|
650
|
+
* @example
|
|
651
|
+
* ```js
|
|
652
|
+
* // Before running the sample:
|
|
653
|
+
* // - Enable the API at:
|
|
654
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
655
|
+
* // - Login into gcloud by running:
|
|
656
|
+
* // ```sh
|
|
657
|
+
* // $ gcloud auth application-default login
|
|
658
|
+
* // ```
|
|
659
|
+
* // - Install the npm module by running:
|
|
660
|
+
* // ```sh
|
|
661
|
+
* // $ npm install googleapis
|
|
662
|
+
* // ```
|
|
663
|
+
*
|
|
664
|
+
* const {google} = require('googleapis');
|
|
665
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
666
|
+
*
|
|
667
|
+
* async function main() {
|
|
668
|
+
* const auth = new google.auth.GoogleAuth({
|
|
669
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
670
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
671
|
+
* });
|
|
672
|
+
*
|
|
673
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
674
|
+
* const authClient = await auth.getClient();
|
|
675
|
+
* google.options({auth: authClient});
|
|
676
|
+
*
|
|
677
|
+
* // Do the magic
|
|
678
|
+
* const res = await merchantapi.accounts.dataSources.fetch({
|
|
679
|
+
* // Required. The name of the data source resource to fetch. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
680
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
681
|
+
*
|
|
682
|
+
* // Request body metadata
|
|
683
|
+
* requestBody: {
|
|
684
|
+
* // request body parameters
|
|
685
|
+
* // {}
|
|
686
|
+
* },
|
|
687
|
+
* });
|
|
688
|
+
* console.log(res.data);
|
|
689
|
+
*
|
|
690
|
+
* // Example response
|
|
691
|
+
* // {}
|
|
692
|
+
* }
|
|
693
|
+
*
|
|
694
|
+
* main().catch(e => {
|
|
695
|
+
* console.error(e);
|
|
696
|
+
* throw e;
|
|
697
|
+
* });
|
|
698
|
+
*
|
|
699
|
+
* ```
|
|
530
700
|
*
|
|
531
701
|
* @param params - Parameters for request
|
|
532
702
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -541,6 +711,63 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
541
711
|
fetch(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
542
712
|
/**
|
|
543
713
|
* Retrieves the data source configuration for the given account.
|
|
714
|
+
* @example
|
|
715
|
+
* ```js
|
|
716
|
+
* // Before running the sample:
|
|
717
|
+
* // - Enable the API at:
|
|
718
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
719
|
+
* // - Login into gcloud by running:
|
|
720
|
+
* // ```sh
|
|
721
|
+
* // $ gcloud auth application-default login
|
|
722
|
+
* // ```
|
|
723
|
+
* // - Install the npm module by running:
|
|
724
|
+
* // ```sh
|
|
725
|
+
* // $ npm install googleapis
|
|
726
|
+
* // ```
|
|
727
|
+
*
|
|
728
|
+
* const {google} = require('googleapis');
|
|
729
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
730
|
+
*
|
|
731
|
+
* async function main() {
|
|
732
|
+
* const auth = new google.auth.GoogleAuth({
|
|
733
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
734
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
735
|
+
* });
|
|
736
|
+
*
|
|
737
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
738
|
+
* const authClient = await auth.getClient();
|
|
739
|
+
* google.options({auth: authClient});
|
|
740
|
+
*
|
|
741
|
+
* // Do the magic
|
|
742
|
+
* const res = await merchantapi.accounts.dataSources.get({
|
|
743
|
+
* // Required. The name of the data source to retrieve. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
744
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
745
|
+
* });
|
|
746
|
+
* console.log(res.data);
|
|
747
|
+
*
|
|
748
|
+
* // Example response
|
|
749
|
+
* // {
|
|
750
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
751
|
+
* // "displayName": "my_displayName",
|
|
752
|
+
* // "fileInput": {},
|
|
753
|
+
* // "input": "my_input",
|
|
754
|
+
* // "localInventoryDataSource": {},
|
|
755
|
+
* // "merchantReviewDataSource": {},
|
|
756
|
+
* // "name": "my_name",
|
|
757
|
+
* // "primaryProductDataSource": {},
|
|
758
|
+
* // "productReviewDataSource": {},
|
|
759
|
+
* // "promotionDataSource": {},
|
|
760
|
+
* // "regionalInventoryDataSource": {},
|
|
761
|
+
* // "supplementalProductDataSource": {}
|
|
762
|
+
* // }
|
|
763
|
+
* }
|
|
764
|
+
*
|
|
765
|
+
* main().catch(e => {
|
|
766
|
+
* console.error(e);
|
|
767
|
+
* throw e;
|
|
768
|
+
* });
|
|
769
|
+
*
|
|
770
|
+
* ```
|
|
544
771
|
*
|
|
545
772
|
* @param params - Parameters for request
|
|
546
773
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -555,6 +782,57 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
555
782
|
get(callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
556
783
|
/**
|
|
557
784
|
* Lists the configurations for data sources for the given account.
|
|
785
|
+
* @example
|
|
786
|
+
* ```js
|
|
787
|
+
* // Before running the sample:
|
|
788
|
+
* // - Enable the API at:
|
|
789
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
790
|
+
* // - Login into gcloud by running:
|
|
791
|
+
* // ```sh
|
|
792
|
+
* // $ gcloud auth application-default login
|
|
793
|
+
* // ```
|
|
794
|
+
* // - Install the npm module by running:
|
|
795
|
+
* // ```sh
|
|
796
|
+
* // $ npm install googleapis
|
|
797
|
+
* // ```
|
|
798
|
+
*
|
|
799
|
+
* const {google} = require('googleapis');
|
|
800
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
801
|
+
*
|
|
802
|
+
* async function main() {
|
|
803
|
+
* const auth = new google.auth.GoogleAuth({
|
|
804
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
805
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
806
|
+
* });
|
|
807
|
+
*
|
|
808
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
809
|
+
* const authClient = await auth.getClient();
|
|
810
|
+
* google.options({auth: authClient});
|
|
811
|
+
*
|
|
812
|
+
* // Do the magic
|
|
813
|
+
* const res = await merchantapi.accounts.dataSources.list({
|
|
814
|
+
* // 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.
|
|
815
|
+
* pageSize: 'placeholder-value',
|
|
816
|
+
* // 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.
|
|
817
|
+
* pageToken: 'placeholder-value',
|
|
818
|
+
* // Required. The account to list data sources for. Format: `accounts/{account\}`
|
|
819
|
+
* parent: 'accounts/my-account',
|
|
820
|
+
* });
|
|
821
|
+
* console.log(res.data);
|
|
822
|
+
*
|
|
823
|
+
* // Example response
|
|
824
|
+
* // {
|
|
825
|
+
* // "dataSources": [],
|
|
826
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
827
|
+
* // }
|
|
828
|
+
* }
|
|
829
|
+
*
|
|
830
|
+
* main().catch(e => {
|
|
831
|
+
* console.error(e);
|
|
832
|
+
* throw e;
|
|
833
|
+
* });
|
|
834
|
+
*
|
|
835
|
+
* ```
|
|
558
836
|
*
|
|
559
837
|
* @param params - Parameters for request
|
|
560
838
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -569,6 +847,84 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
569
847
|
list(callback: BodyResponseCallback<Schema$ListDataSourcesResponse>): void;
|
|
570
848
|
/**
|
|
571
849
|
* Updates the existing data source configuration. The fields that are set in the update mask but not provided in the resource will be deleted.
|
|
850
|
+
* @example
|
|
851
|
+
* ```js
|
|
852
|
+
* // Before running the sample:
|
|
853
|
+
* // - Enable the API at:
|
|
854
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
855
|
+
* // - Login into gcloud by running:
|
|
856
|
+
* // ```sh
|
|
857
|
+
* // $ gcloud auth application-default login
|
|
858
|
+
* // ```
|
|
859
|
+
* // - Install the npm module by running:
|
|
860
|
+
* // ```sh
|
|
861
|
+
* // $ npm install googleapis
|
|
862
|
+
* // ```
|
|
863
|
+
*
|
|
864
|
+
* const {google} = require('googleapis');
|
|
865
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
866
|
+
*
|
|
867
|
+
* async function main() {
|
|
868
|
+
* const auth = new google.auth.GoogleAuth({
|
|
869
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
870
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
871
|
+
* });
|
|
872
|
+
*
|
|
873
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
874
|
+
* const authClient = await auth.getClient();
|
|
875
|
+
* google.options({auth: authClient});
|
|
876
|
+
*
|
|
877
|
+
* // Do the magic
|
|
878
|
+
* const res = await merchantapi.accounts.dataSources.patch({
|
|
879
|
+
* // Required. Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
880
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
881
|
+
* // 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.
|
|
882
|
+
* updateMask: 'placeholder-value',
|
|
883
|
+
*
|
|
884
|
+
* // Request body metadata
|
|
885
|
+
* requestBody: {
|
|
886
|
+
* // request body parameters
|
|
887
|
+
* // {
|
|
888
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
889
|
+
* // "displayName": "my_displayName",
|
|
890
|
+
* // "fileInput": {},
|
|
891
|
+
* // "input": "my_input",
|
|
892
|
+
* // "localInventoryDataSource": {},
|
|
893
|
+
* // "merchantReviewDataSource": {},
|
|
894
|
+
* // "name": "my_name",
|
|
895
|
+
* // "primaryProductDataSource": {},
|
|
896
|
+
* // "productReviewDataSource": {},
|
|
897
|
+
* // "promotionDataSource": {},
|
|
898
|
+
* // "regionalInventoryDataSource": {},
|
|
899
|
+
* // "supplementalProductDataSource": {}
|
|
900
|
+
* // }
|
|
901
|
+
* },
|
|
902
|
+
* });
|
|
903
|
+
* console.log(res.data);
|
|
904
|
+
*
|
|
905
|
+
* // Example response
|
|
906
|
+
* // {
|
|
907
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
908
|
+
* // "displayName": "my_displayName",
|
|
909
|
+
* // "fileInput": {},
|
|
910
|
+
* // "input": "my_input",
|
|
911
|
+
* // "localInventoryDataSource": {},
|
|
912
|
+
* // "merchantReviewDataSource": {},
|
|
913
|
+
* // "name": "my_name",
|
|
914
|
+
* // "primaryProductDataSource": {},
|
|
915
|
+
* // "productReviewDataSource": {},
|
|
916
|
+
* // "promotionDataSource": {},
|
|
917
|
+
* // "regionalInventoryDataSource": {},
|
|
918
|
+
* // "supplementalProductDataSource": {}
|
|
919
|
+
* // }
|
|
920
|
+
* }
|
|
921
|
+
*
|
|
922
|
+
* main().catch(e => {
|
|
923
|
+
* console.error(e);
|
|
924
|
+
* throw e;
|
|
925
|
+
* });
|
|
926
|
+
*
|
|
927
|
+
* ```
|
|
572
928
|
*
|
|
573
929
|
* @param params - Parameters for request
|
|
574
930
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -634,7 +990,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
634
990
|
*/
|
|
635
991
|
name?: string;
|
|
636
992
|
/**
|
|
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.
|
|
993
|
+
* 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
994
|
*/
|
|
639
995
|
updateMask?: string;
|
|
640
996
|
/**
|
|
@@ -647,6 +1003,59 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
647
1003
|
constructor(context: APIRequestContext);
|
|
648
1004
|
/**
|
|
649
1005
|
* Gets the latest data source file upload. Only the `latest` alias is accepted for a file upload.
|
|
1006
|
+
* @example
|
|
1007
|
+
* ```js
|
|
1008
|
+
* // Before running the sample:
|
|
1009
|
+
* // - Enable the API at:
|
|
1010
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
1011
|
+
* // - Login into gcloud by running:
|
|
1012
|
+
* // ```sh
|
|
1013
|
+
* // $ gcloud auth application-default login
|
|
1014
|
+
* // ```
|
|
1015
|
+
* // - Install the npm module by running:
|
|
1016
|
+
* // ```sh
|
|
1017
|
+
* // $ npm install googleapis
|
|
1018
|
+
* // ```
|
|
1019
|
+
*
|
|
1020
|
+
* const {google} = require('googleapis');
|
|
1021
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
1022
|
+
*
|
|
1023
|
+
* async function main() {
|
|
1024
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1025
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1026
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
1027
|
+
* });
|
|
1028
|
+
*
|
|
1029
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1030
|
+
* const authClient = await auth.getClient();
|
|
1031
|
+
* google.options({auth: authClient});
|
|
1032
|
+
*
|
|
1033
|
+
* // Do the magic
|
|
1034
|
+
* const res = await merchantapi.accounts.dataSources.fileUploads.get({
|
|
1035
|
+
* // Required. The name of the data source file upload to retrieve. Format: `accounts/{account\}/dataSources/{datasource\}/fileUploads/latest`
|
|
1036
|
+
* name: 'accounts/my-account/dataSources/my-dataSource/fileUploads/my-fileUpload',
|
|
1037
|
+
* });
|
|
1038
|
+
* console.log(res.data);
|
|
1039
|
+
*
|
|
1040
|
+
* // Example response
|
|
1041
|
+
* // {
|
|
1042
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
1043
|
+
* // "issues": [],
|
|
1044
|
+
* // "itemsCreated": "my_itemsCreated",
|
|
1045
|
+
* // "itemsTotal": "my_itemsTotal",
|
|
1046
|
+
* // "itemsUpdated": "my_itemsUpdated",
|
|
1047
|
+
* // "name": "my_name",
|
|
1048
|
+
* // "processingState": "my_processingState",
|
|
1049
|
+
* // "uploadTime": "my_uploadTime"
|
|
1050
|
+
* // }
|
|
1051
|
+
* }
|
|
1052
|
+
*
|
|
1053
|
+
* main().catch(e => {
|
|
1054
|
+
* console.error(e);
|
|
1055
|
+
* throw e;
|
|
1056
|
+
* });
|
|
1057
|
+
*
|
|
1058
|
+
* ```
|
|
650
1059
|
*
|
|
651
1060
|
* @param params - Parameters for request
|
|
652
1061
|
* @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;A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