google-api-client 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +41 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +9 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1 -1
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +238 -10
  9. data/generated/google/apis/admin_directory_v1/representations.rb +101 -0
  10. data/generated/google/apis/admin_directory_v1/service.rb +529 -1
  11. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  12. data/generated/google/apis/androidmanagement_v1/classes.rb +7 -0
  13. data/generated/google/apis/androidmanagement_v1/representations.rb +1 -0
  14. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  15. data/generated/google/apis/androidpublisher_v1_1/classes.rb +9 -0
  16. data/generated/google/apis/androidpublisher_v1_1/representations.rb +1 -0
  17. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  18. data/generated/google/apis/androidpublisher_v2/classes.rb +34 -0
  19. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  20. data/generated/google/apis/appengine_v1.rb +1 -1
  21. data/generated/google/apis/appengine_v1/classes.rb +21 -17
  22. data/generated/google/apis/appengine_v1beta.rb +1 -1
  23. data/generated/google/apis/appengine_v1beta/classes.rb +21 -17
  24. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  25. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +2 -2
  26. data/generated/google/apis/calendar_v3.rb +1 -1
  27. data/generated/google/apis/calendar_v3/classes.rb +326 -0
  28. data/generated/google/apis/calendar_v3/representations.rb +118 -0
  29. data/generated/google/apis/calendar_v3/service.rb +28 -4
  30. data/generated/google/apis/classroom_v1.rb +1 -1
  31. data/generated/google/apis/classroom_v1/classes.rb +69 -0
  32. data/generated/google/apis/classroom_v1/representations.rb +31 -0
  33. data/generated/google/apis/classroom_v1/service.rb +88 -0
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +49 -0
  36. data/generated/google/apis/cloudbuild_v1/representations.rb +20 -0
  37. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  38. data/generated/google/apis/cloudfunctions_v1/classes.rb +9 -12
  39. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  40. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +25 -0
  41. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +4 -0
  42. data/generated/google/apis/cloudresourcemanager_v1/service.rb +8 -3
  43. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  44. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +7 -3
  45. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +8 -6
  47. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +19 -13
  48. data/generated/google/apis/cloudshell_v1.rb +35 -0
  49. data/generated/google/apis/cloudshell_v1/classes.rb +409 -0
  50. data/generated/google/apis/cloudshell_v1/representations.rb +161 -0
  51. data/generated/google/apis/cloudshell_v1/service.rb +214 -0
  52. data/generated/google/apis/cloudshell_v1alpha1.rb +35 -0
  53. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +403 -0
  54. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +160 -0
  55. data/generated/google/apis/cloudshell_v1alpha1/service.rb +237 -0
  56. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  57. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +106 -13
  58. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +31 -1
  59. data/generated/google/apis/cloudtasks_v2beta2/service.rb +63 -8
  60. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  61. data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
  62. data/generated/google/apis/container_v1.rb +2 -2
  63. data/generated/google/apis/container_v1/classes.rb +6 -7
  64. data/generated/google/apis/container_v1/service.rb +2 -2
  65. data/generated/google/apis/container_v1beta1.rb +2 -2
  66. data/generated/google/apis/container_v1beta1/classes.rb +4 -4
  67. data/generated/google/apis/container_v1beta1/service.rb +3 -3
  68. data/generated/google/apis/content_v2.rb +1 -1
  69. data/generated/google/apis/content_v2/classes.rb +257 -0
  70. data/generated/google/apis/content_v2/representations.rb +114 -0
  71. data/generated/google/apis/content_v2/service.rb +84 -0
  72. data/generated/google/apis/content_v2sandbox.rb +1 -1
  73. data/generated/google/apis/content_v2sandbox/classes.rb +257 -0
  74. data/generated/google/apis/content_v2sandbox/representations.rb +114 -0
  75. data/generated/google/apis/content_v2sandbox/service.rb +84 -0
  76. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  77. data/generated/google/apis/dialogflow_v2beta1/classes.rb +16 -0
  78. data/generated/google/apis/digitalassetlinks_v1.rb +32 -0
  79. data/generated/google/apis/digitalassetlinks_v1/classes.rb +305 -0
  80. data/generated/google/apis/digitalassetlinks_v1/representations.rb +133 -0
  81. data/generated/google/apis/digitalassetlinks_v1/service.rb +324 -0
  82. data/generated/google/apis/dlp_v2beta2.rb +36 -0
  83. data/generated/google/apis/dlp_v2beta2/classes.rb +5475 -0
  84. data/generated/google/apis/dlp_v2beta2/representations.rb +2734 -0
  85. data/generated/google/apis/dlp_v2beta2/service.rb +1135 -0
  86. data/generated/google/apis/drive_v2.rb +1 -1
  87. data/generated/google/apis/drive_v2/service.rb +25 -16
  88. data/generated/google/apis/drive_v3.rb +1 -1
  89. data/generated/google/apis/drive_v3/service.rb +1 -1
  90. data/generated/google/apis/monitoring_v3.rb +1 -1
  91. data/generated/google/apis/monitoring_v3/classes.rb +50 -1
  92. data/generated/google/apis/monitoring_v3/representations.rb +16 -0
  93. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  94. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +6 -5
  95. data/generated/google/apis/slides_v1.rb +4 -1
  96. data/generated/google/apis/speech_v1.rb +1 -4
  97. data/generated/google/apis/speech_v1beta1.rb +1 -4
  98. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  99. data/generated/google/apis/streetviewpublish_v1/classes.rb +0 -2
  100. data/generated/google/apis/streetviewpublish_v1/service.rb +6 -0
  101. data/generated/google/apis/testing_v1.rb +1 -1
  102. data/generated/google/apis/testing_v1/classes.rb +81 -0
  103. data/generated/google/apis/testing_v1/representations.rb +45 -0
  104. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  105. data/generated/google/apis/youtube_v3.rb +1 -1
  106. data/generated/google/apis/youtube_v3/classes.rb +0 -6
  107. data/generated/google/apis/youtube_v3/representations.rb +0 -1
  108. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  109. data/generated/google/apis/youtubereporting_v1/classes.rb +576 -19
  110. data/generated/google/apis/youtubereporting_v1/representations.rb +218 -12
  111. data/generated/google/apis/youtubereporting_v1/service.rb +4 -4
  112. data/lib/google/apis/version.rb +1 -1
  113. metadata +18 -2
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class OrderMerchantProvidedAnnotation
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class OrderPaymentMethod
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -232,6 +238,12 @@ module Google
232
238
  include Google::Apis::Core::JsonObjectSupport
233
239
  end
234
240
 
241
+ class OrdersCustomBatchRequestEntrySetLineItemMetadata
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
235
247
  class OrdersCustomBatchRequestEntryShipLineItems
236
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
249
 
@@ -244,6 +256,12 @@ module Google
244
256
  include Google::Apis::Core::JsonObjectSupport
245
257
  end
246
258
 
259
+ class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
247
265
  class OrdersCustomBatchRequestEntryUpdateShipment
248
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
267
 
@@ -304,6 +322,18 @@ module Google
304
322
  include Google::Apis::Core::JsonObjectSupport
305
323
  end
306
324
 
325
+ class OrdersSetLineItemMetadataRequest
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class OrdersSetLineItemMetadataResponse
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
307
337
  class OrdersShipLineItemsRequest
308
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
339
 
@@ -316,6 +346,18 @@ module Google
316
346
  include Google::Apis::Core::JsonObjectSupport
317
347
  end
318
348
 
349
+ class OrdersUpdateLineItemShippingDetailsRequest
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class OrdersUpdateLineItemShippingDetailsResponse
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
319
361
  class OrdersUpdateMerchantOrderIdRequest
320
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
363
 
@@ -477,6 +519,8 @@ module Google
477
519
  class OrderLineItem
478
520
  # @private
479
521
  class Representation < Google::Apis::Core::JsonRepresentation
522
+ collection :annotations, as: 'annotations', class: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation::Representation
523
+
480
524
  collection :cancellations, as: 'cancellations', class: Google::Apis::ContentV2sandbox::OrderCancellation, decorator: Google::Apis::ContentV2sandbox::OrderCancellation::Representation
481
525
 
482
526
  property :id, as: 'id'
@@ -561,6 +605,14 @@ module Google
561
605
  end
562
606
  end
563
607
 
608
+ class OrderMerchantProvidedAnnotation
609
+ # @private
610
+ class Representation < Google::Apis::Core::JsonRepresentation
611
+ property :key, as: 'key'
612
+ property :value, as: 'value'
613
+ end
614
+ end
615
+
564
616
  class OrderPaymentMethod
565
617
  # @private
566
618
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -754,8 +806,12 @@ module Google
754
806
 
755
807
  property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem::Representation
756
808
 
809
+ property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation
810
+
757
811
  property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems::Representation
758
812
 
813
+ property :update_line_item_shipping_details, as: 'updateLineItemShippingDetails', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails::Representation
814
+
759
815
  property :update_shipment, as: 'updateShipment', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateShipment, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateShipment::Representation
760
816
 
761
817
  end
@@ -811,6 +867,16 @@ module Google
811
867
  end
812
868
  end
813
869
 
870
+ class OrdersCustomBatchRequestEntrySetLineItemMetadata
871
+ # @private
872
+ class Representation < Google::Apis::Core::JsonRepresentation
873
+ collection :annotations, as: 'annotations', class: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation::Representation
874
+
875
+ property :line_item_id, as: 'lineItemId'
876
+ property :product_id, as: 'productId'
877
+ end
878
+ end
879
+
814
880
  class OrdersCustomBatchRequestEntryShipLineItems
815
881
  # @private
816
882
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -833,6 +899,16 @@ module Google
833
899
  end
834
900
  end
835
901
 
902
+ class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
903
+ # @private
904
+ class Representation < Google::Apis::Core::JsonRepresentation
905
+ property :deliver_by_date, as: 'deliverByDate'
906
+ property :line_item_id, as: 'lineItemId'
907
+ property :product_id, as: 'productId'
908
+ property :ship_by_date, as: 'shipByDate'
909
+ end
910
+ end
911
+
836
912
  class OrdersCustomBatchRequestEntryUpdateShipment
837
913
  # @private
838
914
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -936,6 +1012,25 @@ module Google
936
1012
  end
937
1013
  end
938
1014
 
1015
+ class OrdersSetLineItemMetadataRequest
1016
+ # @private
1017
+ class Representation < Google::Apis::Core::JsonRepresentation
1018
+ collection :annotations, as: 'annotations', class: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation::Representation
1019
+
1020
+ property :line_item_id, as: 'lineItemId'
1021
+ property :operation_id, as: 'operationId'
1022
+ property :product_id, as: 'productId'
1023
+ end
1024
+ end
1025
+
1026
+ class OrdersSetLineItemMetadataResponse
1027
+ # @private
1028
+ class Representation < Google::Apis::Core::JsonRepresentation
1029
+ property :execution_status, as: 'executionStatus'
1030
+ property :kind, as: 'kind'
1031
+ end
1032
+ end
1033
+
939
1034
  class OrdersShipLineItemsRequest
940
1035
  # @private
941
1036
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -958,6 +1053,25 @@ module Google
958
1053
  end
959
1054
  end
960
1055
 
1056
+ class OrdersUpdateLineItemShippingDetailsRequest
1057
+ # @private
1058
+ class Representation < Google::Apis::Core::JsonRepresentation
1059
+ property :deliver_by_date, as: 'deliverByDate'
1060
+ property :line_item_id, as: 'lineItemId'
1061
+ property :operation_id, as: 'operationId'
1062
+ property :product_id, as: 'productId'
1063
+ property :ship_by_date, as: 'shipByDate'
1064
+ end
1065
+ end
1066
+
1067
+ class OrdersUpdateLineItemShippingDetailsResponse
1068
+ # @private
1069
+ class Representation < Google::Apis::Core::JsonRepresentation
1070
+ property :execution_status, as: 'executionStatus'
1071
+ property :kind, as: 'kind'
1072
+ end
1073
+ end
1074
+
961
1075
  class OrdersUpdateMerchantOrderIdRequest
962
1076
  # @private
963
1077
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -570,6 +570,48 @@ module Google
570
570
  execute_or_queue_command(command, &block)
571
571
  end
572
572
 
573
+ # Sets (overrides) merchant provided annotations on the line item.
574
+ # @param [Fixnum] merchant_id
575
+ # The ID of the account that manages the order. This cannot be a multi-client
576
+ # account.
577
+ # @param [String] order_id
578
+ # The ID of the order.
579
+ # @param [Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataRequest] orders_set_line_item_metadata_request_object
580
+ # @param [String] fields
581
+ # Selector specifying which fields to include in a partial response.
582
+ # @param [String] quota_user
583
+ # Available to use for quota purposes for server-side applications. Can be any
584
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
585
+ # Overrides userIp if both are provided.
586
+ # @param [String] user_ip
587
+ # IP address of the site where the request originates. Use this if you want to
588
+ # enforce per-user limits.
589
+ # @param [Google::Apis::RequestOptions] options
590
+ # Request-specific options
591
+ #
592
+ # @yield [result, err] Result & error if block supplied
593
+ # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse] parsed result object
594
+ # @yieldparam err [StandardError] error object if request failed
595
+ #
596
+ # @return [Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse]
597
+ #
598
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
599
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
600
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
601
+ def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
602
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
603
+ command.request_representation = Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataRequest::Representation
604
+ command.request_object = orders_set_line_item_metadata_request_object
605
+ command.response_representation = Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse::Representation
606
+ command.response_class = Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse
607
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
608
+ command.params['orderId'] = order_id unless order_id.nil?
609
+ command.query['fields'] = fields unless fields.nil?
610
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
611
+ command.query['userIp'] = user_ip unless user_ip.nil?
612
+ execute_or_queue_command(command, &block)
613
+ end
614
+
573
615
  # Marks line item(s) as shipped.
574
616
  # @param [Fixnum] merchant_id
575
617
  # The ID of the account that manages the order. This cannot be a multi-client
@@ -612,6 +654,48 @@ module Google
612
654
  execute_or_queue_command(command, &block)
613
655
  end
614
656
 
657
+ # Updates ship by and delivery by dates for a line item.
658
+ # @param [Fixnum] merchant_id
659
+ # The ID of the account that manages the order. This cannot be a multi-client
660
+ # account.
661
+ # @param [String] order_id
662
+ # The ID of the order.
663
+ # @param [Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsRequest] orders_update_line_item_shipping_details_request_object
664
+ # @param [String] fields
665
+ # Selector specifying which fields to include in a partial response.
666
+ # @param [String] quota_user
667
+ # Available to use for quota purposes for server-side applications. Can be any
668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
669
+ # Overrides userIp if both are provided.
670
+ # @param [String] user_ip
671
+ # IP address of the site where the request originates. Use this if you want to
672
+ # enforce per-user limits.
673
+ # @param [Google::Apis::RequestOptions] options
674
+ # Request-specific options
675
+ #
676
+ # @yield [result, err] Result & error if block supplied
677
+ # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse] parsed result object
678
+ # @yieldparam err [StandardError] error object if request failed
679
+ #
680
+ # @return [Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse]
681
+ #
682
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
683
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
684
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
685
+ def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
686
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
687
+ command.request_representation = Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsRequest::Representation
688
+ command.request_object = orders_update_line_item_shipping_details_request_object
689
+ command.response_representation = Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse::Representation
690
+ command.response_class = Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse
691
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
692
+ command.params['orderId'] = order_id unless order_id.nil?
693
+ command.query['fields'] = fields unless fields.nil?
694
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
695
+ command.query['userIp'] = user_ip unless user_ip.nil?
696
+ execute_or_queue_command(command, &block)
697
+ end
698
+
615
699
  # Updates the merchant order ID for a given order.
616
700
  # @param [Fixnum] merchant_id
617
701
  # The ID of the account that manages the order. This cannot be a multi-client
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/dialogflow-enterprise/
27
27
  module DialogflowV2beta1
28
28
  VERSION = 'V2beta1'
29
- REVISION = '20171204'
29
+ REVISION = '20171212'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -739,6 +739,14 @@ module Google
739
739
  include Google::Apis::Core::Hashable
740
740
 
741
741
  # The agent to import.
742
+ # Example for how to import an agent via the command line:
743
+ # curl -H "Authorization: Bearer "$(gcloud auth print-access-token) \
744
+ # -H "Content-Type: application/json; charset=utf-8" \
745
+ # --data "`
746
+ # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
747
+ # `" \
748
+ # "https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:
749
+ # import"
742
750
  # Corresponds to the JSON property `agentContent`
743
751
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
744
752
  # @return [String]
@@ -2231,6 +2239,14 @@ module Google
2231
2239
  include Google::Apis::Core::Hashable
2232
2240
 
2233
2241
  # The agent to restore.
2242
+ # Example for how to restore an agent via the command line:
2243
+ # curl -H "Authorization: Bearer "$(gcloud auth print-access-token) \
2244
+ # -H "Content-Type: application/json; charset=utf-8" \
2245
+ # --data "`
2246
+ # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
2247
+ # `" \
2248
+ # "https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:
2249
+ # restore"
2234
2250
  # Corresponds to the JSON property `agentContent`
2235
2251
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
2236
2252
  # @return [String]
@@ -0,0 +1,32 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/digitalassetlinks_v1/service.rb'
16
+ require 'google/apis/digitalassetlinks_v1/classes.rb'
17
+ require 'google/apis/digitalassetlinks_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Digital Asset Links API
22
+ #
23
+ # API for discovering relationships between online assets such as web sites or
24
+ # mobile apps.
25
+ #
26
+ # @see https://developers.google.com/digital-asset-links/
27
+ module DigitalassetlinksV1
28
+ VERSION = 'V1'
29
+ REVISION = '20171207'
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,305 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DigitalassetlinksV1
24
+
25
+ # Describes an android app asset.
26
+ class AndroidAppAsset
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Describes an X509 certificate.
30
+ # Corresponds to the JSON property `certificate`
31
+ # @return [Google::Apis::DigitalassetlinksV1::CertificateInfo]
32
+ attr_accessor :certificate
33
+
34
+ # Android App assets are naturally identified by their Java package name.
35
+ # For example, the Google Maps app uses the package name
36
+ # `com.google.android.apps.maps`.
37
+ # REQUIRED
38
+ # Corresponds to the JSON property `packageName`
39
+ # @return [String]
40
+ attr_accessor :package_name
41
+
42
+ def initialize(**args)
43
+ update!(**args)
44
+ end
45
+
46
+ # Update properties of this object
47
+ def update!(**args)
48
+ @certificate = args[:certificate] if args.key?(:certificate)
49
+ @package_name = args[:package_name] if args.key?(:package_name)
50
+ end
51
+ end
52
+
53
+ # Uniquely identifies an asset.
54
+ # A digital asset is an identifiable and addressable online entity that
55
+ # typically provides some service or content. Examples of assets are websites,
56
+ # Android apps, Twitter feeds, and Plus Pages.
57
+ class Asset
58
+ include Google::Apis::Core::Hashable
59
+
60
+ # Describes an android app asset.
61
+ # Corresponds to the JSON property `androidApp`
62
+ # @return [Google::Apis::DigitalassetlinksV1::AndroidAppAsset]
63
+ attr_accessor :android_app
64
+
65
+ # Describes a web asset.
66
+ # Corresponds to the JSON property `web`
67
+ # @return [Google::Apis::DigitalassetlinksV1::WebAsset]
68
+ attr_accessor :web
69
+
70
+ def initialize(**args)
71
+ update!(**args)
72
+ end
73
+
74
+ # Update properties of this object
75
+ def update!(**args)
76
+ @android_app = args[:android_app] if args.key?(:android_app)
77
+ @web = args[:web] if args.key?(:web)
78
+ end
79
+ end
80
+
81
+ # Describes an X509 certificate.
82
+ class CertificateInfo
83
+ include Google::Apis::Core::Hashable
84
+
85
+ # The uppercase SHA-265 fingerprint of the certificate. From the PEM
86
+ # certificate, it can be acquired like this:
87
+ # $ keytool -printcert -file $CERTFILE | grep SHA256:
88
+ # SHA256: 14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83: \
89
+ # 42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5
90
+ # or like this:
91
+ # $ openssl x509 -in $CERTFILE -noout -fingerprint -sha256
92
+ # SHA256 Fingerprint=14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64: \
93
+ # 16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5
94
+ # In this example, the contents of this field would be `14:6D:E9:83:C5:73:
95
+ # 06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:
96
+ # 44:E5`.
97
+ # If these tools are not available to you, you can convert the PEM
98
+ # certificate into the DER format, compute the SHA-256 hash of that string
99
+ # and represent the result as a hexstring (that is, uppercase hexadecimal
100
+ # representations of each octet, separated by colons).
101
+ # Corresponds to the JSON property `sha256Fingerprint`
102
+ # @return [String]
103
+ attr_accessor :sha256_fingerprint
104
+
105
+ def initialize(**args)
106
+ update!(**args)
107
+ end
108
+
109
+ # Update properties of this object
110
+ def update!(**args)
111
+ @sha256_fingerprint = args[:sha256_fingerprint] if args.key?(:sha256_fingerprint)
112
+ end
113
+ end
114
+
115
+ # Response message for the CheckAssetLinks call.
116
+ class CheckResponse
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # Human-readable message containing information intended to help end users
120
+ # understand, reproduce and debug the result.
121
+ # The message will be in English and we are currently not planning to offer
122
+ # any translations.
123
+ # Please note that no guarantees are made about the contents or format of
124
+ # this string. Any aspect of it may be subject to change without notice.
125
+ # You should not attempt to programmatically parse this data. For
126
+ # programmatic access, use the error_code field below.
127
+ # Corresponds to the JSON property `debugString`
128
+ # @return [String]
129
+ attr_accessor :debug_string
130
+
131
+ # Error codes that describe the result of the Check operation.
132
+ # Corresponds to the JSON property `errorCode`
133
+ # @return [Array<String>]
134
+ attr_accessor :error_code
135
+
136
+ # Set to true if the assets specified in the request are linked by the
137
+ # relation specified in the request.
138
+ # Corresponds to the JSON property `linked`
139
+ # @return [Boolean]
140
+ attr_accessor :linked
141
+ alias_method :linked?, :linked
142
+
143
+ # From serving time, how much longer the response should be considered valid
144
+ # barring further updates.
145
+ # REQUIRED
146
+ # Corresponds to the JSON property `maxAge`
147
+ # @return [String]
148
+ attr_accessor :max_age
149
+
150
+ def initialize(**args)
151
+ update!(**args)
152
+ end
153
+
154
+ # Update properties of this object
155
+ def update!(**args)
156
+ @debug_string = args[:debug_string] if args.key?(:debug_string)
157
+ @error_code = args[:error_code] if args.key?(:error_code)
158
+ @linked = args[:linked] if args.key?(:linked)
159
+ @max_age = args[:max_age] if args.key?(:max_age)
160
+ end
161
+ end
162
+
163
+ # Response message for the List call.
164
+ class ListResponse
165
+ include Google::Apis::Core::Hashable
166
+
167
+ # Human-readable message containing information intended to help end users
168
+ # understand, reproduce and debug the result.
169
+ # The message will be in English and we are currently not planning to offer
170
+ # any translations.
171
+ # Please note that no guarantees are made about the contents or format of
172
+ # this string. Any aspect of it may be subject to change without notice.
173
+ # You should not attempt to programmatically parse this data. For
174
+ # programmatic access, use the error_code field below.
175
+ # Corresponds to the JSON property `debugString`
176
+ # @return [String]
177
+ attr_accessor :debug_string
178
+
179
+ # Error codes that describe the result of the List operation.
180
+ # Corresponds to the JSON property `errorCode`
181
+ # @return [Array<String>]
182
+ attr_accessor :error_code
183
+
184
+ # From serving time, how much longer the response should be considered valid
185
+ # barring further updates.
186
+ # REQUIRED
187
+ # Corresponds to the JSON property `maxAge`
188
+ # @return [String]
189
+ attr_accessor :max_age
190
+
191
+ # A list of all the matching statements that have been found.
192
+ # Corresponds to the JSON property `statements`
193
+ # @return [Array<Google::Apis::DigitalassetlinksV1::Statement>]
194
+ attr_accessor :statements
195
+
196
+ def initialize(**args)
197
+ update!(**args)
198
+ end
199
+
200
+ # Update properties of this object
201
+ def update!(**args)
202
+ @debug_string = args[:debug_string] if args.key?(:debug_string)
203
+ @error_code = args[:error_code] if args.key?(:error_code)
204
+ @max_age = args[:max_age] if args.key?(:max_age)
205
+ @statements = args[:statements] if args.key?(:statements)
206
+ end
207
+ end
208
+
209
+ # Describes a reliable statement that has been made about the relationship
210
+ # between a source asset and a target asset.
211
+ # Statements are always made by the source asset, either directly or by
212
+ # delegating to a statement list that is stored elsewhere.
213
+ # For more detailed definitions of statements and assets, please refer
214
+ # to our [API documentation landing
215
+ # page](/digital-asset-links/v1/getting-started).
216
+ class Statement
217
+ include Google::Apis::Core::Hashable
218
+
219
+ # The relation identifies the use of the statement as intended by the source
220
+ # asset's owner (that is, the person or entity who issued the statement).
221
+ # Every complete statement has a relation.
222
+ # We identify relations with strings of the format `<kind>/<detail>`, where
223
+ # `<kind>` must be one of a set of pre-defined purpose categories, and
224
+ # `<detail>` is a free-form lowercase alphanumeric string that describes the
225
+ # specific use case of the statement.
226
+ # Refer to [our API documentation](/digital-asset-links/v1/relation-strings)
227
+ # for the current list of supported relations.
228
+ # Example: `delegate_permission/common.handle_all_urls`
229
+ # REQUIRED
230
+ # Corresponds to the JSON property `relation`
231
+ # @return [String]
232
+ attr_accessor :relation
233
+
234
+ # Uniquely identifies an asset.
235
+ # A digital asset is an identifiable and addressable online entity that
236
+ # typically provides some service or content. Examples of assets are websites,
237
+ # Android apps, Twitter feeds, and Plus Pages.
238
+ # Corresponds to the JSON property `source`
239
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
240
+ attr_accessor :source
241
+
242
+ # Uniquely identifies an asset.
243
+ # A digital asset is an identifiable and addressable online entity that
244
+ # typically provides some service or content. Examples of assets are websites,
245
+ # Android apps, Twitter feeds, and Plus Pages.
246
+ # Corresponds to the JSON property `target`
247
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
248
+ attr_accessor :target
249
+
250
+ def initialize(**args)
251
+ update!(**args)
252
+ end
253
+
254
+ # Update properties of this object
255
+ def update!(**args)
256
+ @relation = args[:relation] if args.key?(:relation)
257
+ @source = args[:source] if args.key?(:source)
258
+ @target = args[:target] if args.key?(:target)
259
+ end
260
+ end
261
+
262
+ # Describes a web asset.
263
+ class WebAsset
264
+ include Google::Apis::Core::Hashable
265
+
266
+ # Web assets are identified by a URL that contains only the scheme, hostname
267
+ # and port parts. The format is
268
+ # http[s]://<hostname>[:<port>]
269
+ # Hostnames must be fully qualified: they must end in a single period
270
+ # ("`.`").
271
+ # Only the schemes "http" and "https" are currently allowed.
272
+ # Port numbers are given as a decimal number, and they must be omitted if the
273
+ # standard port numbers are used: 80 for http and 443 for https.
274
+ # We call this limited URL the "site". All URLs that share the same scheme,
275
+ # hostname and port are considered to be a part of the site and thus belong
276
+ # to the web asset.
277
+ # Example: the asset with the site `https://www.google.com` contains all
278
+ # these URLs:
279
+ # * `https://www.google.com/`
280
+ # * `https://www.google.com:443/`
281
+ # * `https://www.google.com/foo`
282
+ # * `https://www.google.com/foo?bar`
283
+ # * `https://www.google.com/foo#bar`
284
+ # * `https://user@password:www.google.com/`
285
+ # But it does not contain these URLs:
286
+ # * `http://www.google.com/` (wrong scheme)
287
+ # * `https://google.com/` (hostname does not match)
288
+ # * `https://www.google.com:444/` (port does not match)
289
+ # REQUIRED
290
+ # Corresponds to the JSON property `site`
291
+ # @return [String]
292
+ attr_accessor :site
293
+
294
+ def initialize(**args)
295
+ update!(**args)
296
+ end
297
+
298
+ # Update properties of this object
299
+ def update!(**args)
300
+ @site = args[:site] if args.key?(:site)
301
+ end
302
+ end
303
+ end
304
+ end
305
+ end