@@ -9624,10 +9624,41 @@ def test_parse_cx_security_settings_path():
9624
9624
assert expected == actual
9625
9625
9626
9626
9627
- def test_document_path ():
9627
+ def test_data_store_path ():
9628
9628
project = "whelk"
9629
- knowledge_base = "octopus"
9630
- document = "oyster"
9629
+ location = "octopus"
9630
+ collection = "oyster"
9631
+ data_store = "nudibranch"
9632
+ expected = "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}" .format (
9633
+ project = project ,
9634
+ location = location ,
9635
+ collection = collection ,
9636
+ data_store = data_store ,
9637
+ )
9638
+ actual = ConversationsClient .data_store_path (
9639
+ project , location , collection , data_store
9640
+ )
9641
+ assert expected == actual
9642
+
9643
+
9644
+ def test_parse_data_store_path ():
9645
+ expected = {
9646
+ "project" : "cuttlefish" ,
9647
+ "location" : "mussel" ,
9648
+ "collection" : "winkle" ,
9649
+ "data_store" : "nautilus" ,
9650
+ }
9651
+ path = ConversationsClient .data_store_path (** expected )
9652
+
9653
+ # Check that the path construction is reversible.
9654
+ actual = ConversationsClient .parse_data_store_path (path )
9655
+ assert expected == actual
9656
+
9657
+
9658
+ def test_document_path ():
9659
+ project = "scallop"
9660
+ knowledge_base = "abalone"
9661
+ document = "squid"
9631
9662
expected = "projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}" .format (
9632
9663
project = project ,
9633
9664
knowledge_base = knowledge_base ,
@@ -9639,9 +9670,9 @@ def test_document_path():
9639
9670
9640
9671
def test_parse_document_path ():
9641
9672
expected = {
9642
- "project" : "nudibranch " ,
9643
- "knowledge_base" : "cuttlefish " ,
9644
- "document" : "mussel " ,
9673
+ "project" : "clam " ,
9674
+ "knowledge_base" : "whelk " ,
9675
+ "document" : "octopus " ,
9645
9676
}
9646
9677
path = ConversationsClient .document_path (** expected )
9647
9678
@@ -9651,9 +9682,9 @@ def test_parse_document_path():
9651
9682
9652
9683
9653
9684
def test_generator_path ():
9654
- project = "winkle "
9655
- location = "nautilus "
9656
- generator = "scallop "
9685
+ project = "oyster "
9686
+ location = "nudibranch "
9687
+ generator = "cuttlefish "
9657
9688
expected = "projects/{project}/locations/{location}/generators/{generator}" .format (
9658
9689
project = project ,
9659
9690
location = location ,
@@ -9665,9 +9696,9 @@ def test_generator_path():
9665
9696
9666
9697
def test_parse_generator_path ():
9667
9698
expected = {
9668
- "project" : "abalone " ,
9669
- "location" : "squid " ,
9670
- "generator" : "clam " ,
9699
+ "project" : "mussel " ,
9700
+ "location" : "winkle " ,
9701
+ "generator" : "nautilus " ,
9671
9702
}
9672
9703
path = ConversationsClient .generator_path (** expected )
9673
9704
@@ -9677,8 +9708,8 @@ def test_parse_generator_path():
9677
9708
9678
9709
9679
9710
def test_knowledge_base_path ():
9680
- project = "whelk "
9681
- knowledge_base = "octopus "
9711
+ project = "scallop "
9712
+ knowledge_base = "abalone "
9682
9713
expected = "projects/{project}/knowledgeBases/{knowledge_base}" .format (
9683
9714
project = project ,
9684
9715
knowledge_base = knowledge_base ,
@@ -9689,8 +9720,8 @@ def test_knowledge_base_path():
9689
9720
9690
9721
def test_parse_knowledge_base_path ():
9691
9722
expected = {
9692
- "project" : "oyster " ,
9693
- "knowledge_base" : "nudibranch " ,
9723
+ "project" : "squid " ,
9724
+ "knowledge_base" : "clam " ,
9694
9725
}
9695
9726
path = ConversationsClient .knowledge_base_path (** expected )
9696
9727
@@ -9700,9 +9731,9 @@ def test_parse_knowledge_base_path():
9700
9731
9701
9732
9702
9733
def test_message_path ():
9703
- project = "cuttlefish "
9704
- conversation = "mussel "
9705
- message = "winkle "
9734
+ project = "whelk "
9735
+ conversation = "octopus "
9736
+ message = "oyster "
9706
9737
expected = (
9707
9738
"projects/{project}/conversations/{conversation}/messages/{message}" .format (
9708
9739
project = project ,
@@ -9716,9 +9747,9 @@ def test_message_path():
9716
9747
9717
9748
def test_parse_message_path ():
9718
9749
expected = {
9719
- "project" : "nautilus " ,
9720
- "conversation" : "scallop " ,
9721
- "message" : "abalone " ,
9750
+ "project" : "nudibranch " ,
9751
+ "conversation" : "cuttlefish " ,
9752
+ "message" : "mussel " ,
9722
9753
}
9723
9754
path = ConversationsClient .message_path (** expected )
9724
9755
@@ -9728,9 +9759,9 @@ def test_parse_message_path():
9728
9759
9729
9760
9730
9761
def test_phrase_set_path ():
9731
- project = "squid "
9732
- location = "clam "
9733
- phrase_set = "whelk "
9762
+ project = "winkle "
9763
+ location = "nautilus "
9764
+ phrase_set = "scallop "
9734
9765
expected = "projects/{project}/locations/{location}/phraseSets/{phrase_set}" .format (
9735
9766
project = project ,
9736
9767
location = location ,
@@ -9742,9 +9773,9 @@ def test_phrase_set_path():
9742
9773
9743
9774
def test_parse_phrase_set_path ():
9744
9775
expected = {
9745
- "project" : "octopus " ,
9746
- "location" : "oyster " ,
9747
- "phrase_set" : "nudibranch " ,
9776
+ "project" : "abalone " ,
9777
+ "location" : "squid " ,
9778
+ "phrase_set" : "clam " ,
9748
9779
}
9749
9780
path = ConversationsClient .phrase_set_path (** expected )
9750
9781
@@ -9754,7 +9785,7 @@ def test_parse_phrase_set_path():
9754
9785
9755
9786
9756
9787
def test_common_billing_account_path ():
9757
- billing_account = "cuttlefish "
9788
+ billing_account = "whelk "
9758
9789
expected = "billingAccounts/{billing_account}" .format (
9759
9790
billing_account = billing_account ,
9760
9791
)
@@ -9764,7 +9795,7 @@ def test_common_billing_account_path():
9764
9795
9765
9796
def test_parse_common_billing_account_path ():
9766
9797
expected = {
9767
- "billing_account" : "mussel " ,
9798
+ "billing_account" : "octopus " ,
9768
9799
}
9769
9800
path = ConversationsClient .common_billing_account_path (** expected )
9770
9801
@@ -9774,7 +9805,7 @@ def test_parse_common_billing_account_path():
9774
9805
9775
9806
9776
9807
def test_common_folder_path ():
9777
- folder = "winkle "
9808
+ folder = "oyster "
9778
9809
expected = "folders/{folder}" .format (
9779
9810
folder = folder ,
9780
9811
)
@@ -9784,7 +9815,7 @@ def test_common_folder_path():
9784
9815
9785
9816
def test_parse_common_folder_path ():
9786
9817
expected = {
9787
- "folder" : "nautilus " ,
9818
+ "folder" : "nudibranch " ,
9788
9819
}
9789
9820
path = ConversationsClient .common_folder_path (** expected )
9790
9821
@@ -9794,7 +9825,7 @@ def test_parse_common_folder_path():
9794
9825
9795
9826
9796
9827
def test_common_organization_path ():
9797
- organization = "scallop "
9828
+ organization = "cuttlefish "
9798
9829
expected = "organizations/{organization}" .format (
9799
9830
organization = organization ,
9800
9831
)
@@ -9804,7 +9835,7 @@ def test_common_organization_path():
9804
9835
9805
9836
def test_parse_common_organization_path ():
9806
9837
expected = {
9807
- "organization" : "abalone " ,
9838
+ "organization" : "mussel " ,
9808
9839
}
9809
9840
path = ConversationsClient .common_organization_path (** expected )
9810
9841
@@ -9814,7 +9845,7 @@ def test_parse_common_organization_path():
9814
9845
9815
9846
9816
9847
def test_common_project_path ():
9817
- project = "squid "
9848
+ project = "winkle "
9818
9849
expected = "projects/{project}" .format (
9819
9850
project = project ,
9820
9851
)
@@ -9824,7 +9855,7 @@ def test_common_project_path():
9824
9855
9825
9856
def test_parse_common_project_path ():
9826
9857
expected = {
9827
- "project" : "clam " ,
9858
+ "project" : "nautilus " ,
9828
9859
}
9829
9860
path = ConversationsClient .common_project_path (** expected )
9830
9861
@@ -9834,8 +9865,8 @@ def test_parse_common_project_path():
9834
9865
9835
9866
9836
9867
def test_common_location_path ():
9837
- project = "whelk "
9838
- location = "octopus "
9868
+ project = "scallop "
9869
+ location = "abalone "
9839
9870
expected = "projects/{project}/locations/{location}" .format (
9840
9871
project = project ,
9841
9872
location = location ,
@@ -9846,8 +9877,8 @@ def test_common_location_path():
9846
9877
9847
9878
def test_parse_common_location_path ():
9848
9879
expected = {
9849
- "project" : "oyster " ,
9850
- "location" : "nudibranch " ,
9880
+ "project" : "squid " ,
9881
+ "location" : "clam " ,
9851
9882
}
9852
9883
path = ConversationsClient .common_location_path (** expected )
9853
9884
0 commit comments