google-api-client 0.23.9 → 0.24.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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2030 -58
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +878 -43
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +604 -0
  7. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  8. data/generated/google/apis/adexperiencereport_v1/classes.rb +0 -1
  9. data/generated/google/apis/admin_directory_v1.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/classes.rb +8 -2
  11. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  12. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  13. data/generated/google/apis/androidenterprise_v1/classes.rb +108 -5
  14. data/generated/google/apis/androidenterprise_v1/representations.rb +60 -0
  15. data/generated/google/apis/appengine_v1.rb +1 -1
  16. data/generated/google/apis/appengine_v1/classes.rb +1 -1
  17. data/generated/google/apis/appengine_v1/service.rb +3 -3
  18. data/generated/google/apis/appengine_v1beta.rb +1 -1
  19. data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
  20. data/generated/google/apis/appengine_v1beta/service.rb +3 -3
  21. data/generated/google/apis/classroom_v1.rb +1 -1
  22. data/generated/google/apis/classroom_v1/classes.rb +14 -14
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  26. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  27. data/generated/google/apis/cloudtrace_v1/classes.rb +3 -2
  28. data/generated/google/apis/composer_v1.rb +1 -1
  29. data/generated/google/apis/composer_v1/classes.rb +1 -1
  30. data/generated/google/apis/composer_v1/service.rb +6 -6
  31. data/generated/google/apis/composer_v1beta1.rb +1 -1
  32. data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
  33. data/generated/google/apis/dataproc_v1.rb +1 -1
  34. data/generated/google/apis/dataproc_v1/classes.rb +475 -0
  35. data/generated/google/apis/dataproc_v1/representations.rb +188 -0
  36. data/generated/google/apis/dataproc_v1/service.rb +550 -0
  37. data/generated/google/apis/dlp_v2.rb +1 -1
  38. data/generated/google/apis/dlp_v2/classes.rb +21 -21
  39. data/generated/google/apis/file_v1beta1.rb +34 -0
  40. data/generated/google/apis/file_v1beta1/classes.rb +810 -0
  41. data/generated/google/apis/file_v1beta1/representations.rb +298 -0
  42. data/generated/google/apis/file_v1beta1/service.rb +472 -0
  43. data/generated/google/apis/jobs_v3.rb +1 -1
  44. data/generated/google/apis/jobs_v3/classes.rb +16 -17
  45. data/generated/google/apis/logging_v2.rb +1 -1
  46. data/generated/google/apis/logging_v2/classes.rb +8 -9
  47. data/generated/google/apis/logging_v2/service.rb +9 -9
  48. data/generated/google/apis/logging_v2beta1.rb +1 -1
  49. data/generated/google/apis/logging_v2beta1/classes.rb +8 -9
  50. data/generated/google/apis/logging_v2beta1/service.rb +1 -1
  51. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  52. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +14 -14
  53. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  54. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +142 -98
  55. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  56. data/generated/google/apis/servicecontrol_v1/classes.rb +0 -2
  57. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  58. data/generated/google/apis/servicemanagement_v1/classes.rb +142 -98
  59. data/generated/google/apis/serviceusage_v1.rb +1 -1
  60. data/generated/google/apis/serviceusage_v1/classes.rb +142 -98
  61. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  62. data/generated/google/apis/serviceusage_v1beta1/classes.rb +142 -98
  63. data/generated/google/apis/serviceuser_v1.rb +1 -1
  64. data/generated/google/apis/serviceuser_v1/classes.rb +142 -98
  65. data/generated/google/apis/speech_v1.rb +1 -1
  66. data/generated/google/apis/speech_v1/classes.rb +91 -0
  67. data/generated/google/apis/speech_v1/representations.rb +18 -0
  68. data/generated/google/apis/speech_v1/service.rb +47 -0
  69. data/generated/google/apis/speech_v1beta1.rb +1 -1
  70. data/generated/google/apis/speech_v1beta1/classes.rb +25 -0
  71. data/generated/google/apis/speech_v1beta1/representations.rb +15 -0
  72. data/generated/google/apis/speech_v1beta1/service.rb +47 -0
  73. data/generated/google/apis/sqladmin_v1beta4.rb +3 -3
  74. data/generated/google/apis/sqladmin_v1beta4/classes.rb +34 -31
  75. data/generated/google/apis/sqladmin_v1beta4/service.rb +8 -8
  76. data/generated/google/apis/storage_v1.rb +1 -1
  77. data/generated/google/apis/storage_v1/classes.rb +3 -4
  78. data/generated/google/apis/storage_v1/service.rb +2 -1
  79. data/generated/google/apis/storage_v1beta2.rb +1 -1
  80. data/generated/google/apis/storage_v1beta2/classes.rb +1 -2
  81. data/generated/google/apis/storage_v1beta2/service.rb +2 -1
  82. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  83. data/generated/google/apis/storagetransfer_v1/classes.rb +21 -21
  84. data/generated/google/apis/testing_v1.rb +1 -1
  85. data/generated/google/apis/testing_v1/classes.rb +308 -14
  86. data/generated/google/apis/testing_v1/representations.rb +136 -0
  87. data/generated/google/apis/vision_v1.rb +1 -1
  88. data/generated/google/apis/vision_v1/classes.rb +156 -2
  89. data/generated/google/apis/vision_v1/representations.rb +60 -0
  90. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  91. data/generated/google/apis/vision_v1p1beta1/classes.rb +156 -2
  92. data/generated/google/apis/vision_v1p1beta1/representations.rb +60 -0
  93. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  94. data/generated/google/apis/vision_v1p2beta1/classes.rb +156 -2
  95. data/generated/google/apis/vision_v1p2beta1/representations.rb +60 -0
  96. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  97. data/lib/google/apis/version.rb +1 -1
  98. metadata +6 -14
  99. data/generated/google/apis/adexchangeseller_v1.rb +0 -37
  100. data/generated/google/apis/adexchangeseller_v1/classes.rb +0 -557
  101. data/generated/google/apis/adexchangeseller_v1/representations.rb +0 -248
  102. data/generated/google/apis/adexchangeseller_v1/service.rb +0 -544
  103. data/generated/google/apis/adexchangeseller_v1_1.rb +0 -37
  104. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +0 -842
  105. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +0 -364
  106. data/generated/google/apis/adexchangeseller_v1_1/service.rb +0 -735
  107. data/generated/google/apis/adexchangeseller_v2_0.rb +0 -37
  108. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +0 -792
  109. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +0 -347
  110. data/generated/google/apis/adexchangeseller_v2_0/service.rb +0 -638
@@ -839,6 +839,610 @@ module Google
839
839
  execute_or_queue_command(command, &block)
840
840
  end
841
841
 
842
+ # List finalized proposals, regardless if a proposal is being renegotiated.
843
+ # A filter expression (PQL query) may be specified to filter the results.
844
+ # The notes will not be returned.
845
+ # @param [String] account_id
846
+ # Account ID of the buyer.
847
+ # @param [String] filter
848
+ # An optional PQL filter query used to query for proposals.
849
+ # Nested repeated fields, such as proposal.deals.targetingCriterion,
850
+ # cannot be filtered.
851
+ # @param [String] filter_syntax
852
+ # Syntax the filter is written in. Current implementation defaults to PQL
853
+ # but in the future it will be LIST_FILTER.
854
+ # @param [Fixnum] page_size
855
+ # Requested page size. The server may return fewer results than requested.
856
+ # If unspecified, the server will pick an appropriate default.
857
+ # @param [String] page_token
858
+ # The page token as returned from ListProposalsResponse.
859
+ # @param [String] fields
860
+ # Selector specifying which fields to include in a partial response.
861
+ # @param [String] quota_user
862
+ # Available to use for quota purposes for server-side applications. Can be any
863
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
864
+ # @param [Google::Apis::RequestOptions] options
865
+ # Request-specific options
866
+ #
867
+ # @yield [result, err] Result & error if block supplied
868
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse] parsed result object
869
+ # @yieldparam err [StandardError] error object if request failed
870
+ #
871
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse]
872
+ #
873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
876
+ def list_account_finalized_proposals(account_id, filter: nil, filter_syntax: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
877
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/finalizedProposals', options)
878
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse::Representation
879
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse
880
+ command.params['accountId'] = account_id unless account_id.nil?
881
+ command.query['filter'] = filter unless filter.nil?
882
+ command.query['filterSyntax'] = filter_syntax unless filter_syntax.nil?
883
+ command.query['pageSize'] = page_size unless page_size.nil?
884
+ command.query['pageToken'] = page_token unless page_token.nil?
885
+ command.query['fields'] = fields unless fields.nil?
886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
887
+ execute_or_queue_command(command, &block)
888
+ end
889
+
890
+ # Gets the requested product by ID.
891
+ # @param [String] account_id
892
+ # Account ID of the buyer.
893
+ # @param [String] product_id
894
+ # The ID for the product to get the head revision for.
895
+ # @param [String] fields
896
+ # Selector specifying which fields to include in a partial response.
897
+ # @param [String] quota_user
898
+ # Available to use for quota purposes for server-side applications. Can be any
899
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
900
+ # @param [Google::Apis::RequestOptions] options
901
+ # Request-specific options
902
+ #
903
+ # @yield [result, err] Result & error if block supplied
904
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Product] parsed result object
905
+ # @yieldparam err [StandardError] error object if request failed
906
+ #
907
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Product]
908
+ #
909
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
910
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
911
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
912
+ def get_account_product(account_id, product_id, fields: nil, quota_user: nil, options: nil, &block)
913
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/products/{productId}', options)
914
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Product::Representation
915
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Product
916
+ command.params['accountId'] = account_id unless account_id.nil?
917
+ command.params['productId'] = product_id unless product_id.nil?
918
+ command.query['fields'] = fields unless fields.nil?
919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
920
+ execute_or_queue_command(command, &block)
921
+ end
922
+
923
+ # List all products visible to the buyer (optionally filtered by the
924
+ # specified PQL query).
925
+ # @param [String] account_id
926
+ # Account ID of the buyer.
927
+ # @param [String] filter
928
+ # An optional PQL query used to query for products. See
929
+ # https://developers.google.com/doubleclick-publishers/docs/pqlreference
930
+ # for documentation about PQL and examples.
931
+ # Nested repeated fields, such as product.targetingCriterion.inclusions,
932
+ # cannot be filtered.
933
+ # @param [Fixnum] page_size
934
+ # Requested page size. The server may return fewer results than requested.
935
+ # If unspecified, the server will pick an appropriate default.
936
+ # @param [String] page_token
937
+ # The page token as returned from ListProductsResponse.
938
+ # @param [String] fields
939
+ # Selector specifying which fields to include in a partial response.
940
+ # @param [String] quota_user
941
+ # Available to use for quota purposes for server-side applications. Can be any
942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
943
+ # @param [Google::Apis::RequestOptions] options
944
+ # Request-specific options
945
+ #
946
+ # @yield [result, err] Result & error if block supplied
947
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListProductsResponse] parsed result object
948
+ # @yieldparam err [StandardError] error object if request failed
949
+ #
950
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListProductsResponse]
951
+ #
952
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
953
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
954
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
955
+ def list_account_products(account_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
956
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/products', options)
957
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListProductsResponse::Representation
958
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListProductsResponse
959
+ command.params['accountId'] = account_id unless account_id.nil?
960
+ command.query['filter'] = filter unless filter.nil?
961
+ command.query['pageSize'] = page_size unless page_size.nil?
962
+ command.query['pageToken'] = page_token unless page_token.nil?
963
+ command.query['fields'] = fields unless fields.nil?
964
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
965
+ execute_or_queue_command(command, &block)
966
+ end
967
+
968
+ # Mark the proposal as accepted at the given revision number. If the number
969
+ # does not match the server's revision number an `ABORTED` error message will
970
+ # be returned. This call updates the proposal_state from `PROPOSED` to
971
+ # `BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`.
972
+ # @param [String] account_id
973
+ # Account ID of the buyer.
974
+ # @param [String] proposal_id
975
+ # The ID of the proposal to accept.
976
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::AcceptProposalRequest] accept_proposal_request_object
977
+ # @param [String] fields
978
+ # Selector specifying which fields to include in a partial response.
979
+ # @param [String] quota_user
980
+ # Available to use for quota purposes for server-side applications. Can be any
981
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
982
+ # @param [Google::Apis::RequestOptions] options
983
+ # Request-specific options
984
+ #
985
+ # @yield [result, err] Result & error if block supplied
986
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
987
+ # @yieldparam err [StandardError] error object if request failed
988
+ #
989
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
990
+ #
991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
994
+ def accept_proposal(account_id, proposal_id, accept_proposal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
995
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:accept', options)
996
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AcceptProposalRequest::Representation
997
+ command.request_object = accept_proposal_request_object
998
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
999
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
1000
+ command.params['accountId'] = account_id unless account_id.nil?
1001
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1002
+ command.query['fields'] = fields unless fields.nil?
1003
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1004
+ execute_or_queue_command(command, &block)
1005
+ end
1006
+
1007
+ # Create a new note and attach it to the proposal. The note is assigned
1008
+ # a unique ID by the server.
1009
+ # The proposal revision number will not increase when associated with a
1010
+ # new note.
1011
+ # @param [String] account_id
1012
+ # Account ID of the buyer.
1013
+ # @param [String] proposal_id
1014
+ # The ID of the proposal to attach the note to.
1015
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::AddNoteRequest] add_note_request_object
1016
+ # @param [String] fields
1017
+ # Selector specifying which fields to include in a partial response.
1018
+ # @param [String] quota_user
1019
+ # Available to use for quota purposes for server-side applications. Can be any
1020
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1021
+ # @param [Google::Apis::RequestOptions] options
1022
+ # Request-specific options
1023
+ #
1024
+ # @yield [result, err] Result & error if block supplied
1025
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Note] parsed result object
1026
+ # @yieldparam err [StandardError] error object if request failed
1027
+ #
1028
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Note]
1029
+ #
1030
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1031
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1032
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1033
+ def add_proposal_note(account_id, proposal_id, add_note_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1034
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:addNote', options)
1035
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddNoteRequest::Representation
1036
+ command.request_object = add_note_request_object
1037
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Note::Representation
1038
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Note
1039
+ command.params['accountId'] = account_id unless account_id.nil?
1040
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1041
+ command.query['fields'] = fields unless fields.nil?
1042
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1043
+ execute_or_queue_command(command, &block)
1044
+ end
1045
+
1046
+ # Cancel an ongoing negotiation on a proposal. This does not cancel or end
1047
+ # serving for the deals if the proposal has been finalized, but only cancels
1048
+ # a negotiation unilaterally.
1049
+ # @param [String] account_id
1050
+ # Account ID of the buyer.
1051
+ # @param [String] proposal_id
1052
+ # The ID of the proposal to cancel negotiation for.
1053
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::CancelNegotiationRequest] cancel_negotiation_request_object
1054
+ # @param [String] fields
1055
+ # Selector specifying which fields to include in a partial response.
1056
+ # @param [String] quota_user
1057
+ # Available to use for quota purposes for server-side applications. Can be any
1058
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1059
+ # @param [Google::Apis::RequestOptions] options
1060
+ # Request-specific options
1061
+ #
1062
+ # @yield [result, err] Result & error if block supplied
1063
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
1064
+ # @yieldparam err [StandardError] error object if request failed
1065
+ #
1066
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
1067
+ #
1068
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1069
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1070
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1071
+ def cancel_proposal_negotiation(account_id, proposal_id, cancel_negotiation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1072
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:cancelNegotiation', options)
1073
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::CancelNegotiationRequest::Representation
1074
+ command.request_object = cancel_negotiation_request_object
1075
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
1076
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
1077
+ command.params['accountId'] = account_id unless account_id.nil?
1078
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1079
+ command.query['fields'] = fields unless fields.nil?
1080
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1081
+ execute_or_queue_command(command, &block)
1082
+ end
1083
+
1084
+ # Update the given proposal to indicate that setup has been completed.
1085
+ # This method is called by the buyer when the line items have been created
1086
+ # on their end for a finalized proposal and all the required creatives
1087
+ # have been uploaded using the creatives API. This call updates the
1088
+ # `is_setup_completed` bit on the proposal and also notifies the seller.
1089
+ # The server will advance the revision number of the most recent proposal.
1090
+ # @param [String] account_id
1091
+ # Account ID of the buyer.
1092
+ # @param [String] proposal_id
1093
+ # The ID of the proposal to mark as setup completed.
1094
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::CompleteSetupRequest] complete_setup_request_object
1095
+ # @param [String] fields
1096
+ # Selector specifying which fields to include in a partial response.
1097
+ # @param [String] quota_user
1098
+ # Available to use for quota purposes for server-side applications. Can be any
1099
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1100
+ # @param [Google::Apis::RequestOptions] options
1101
+ # Request-specific options
1102
+ #
1103
+ # @yield [result, err] Result & error if block supplied
1104
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
1105
+ # @yieldparam err [StandardError] error object if request failed
1106
+ #
1107
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
1108
+ #
1109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1112
+ def complete_proposal_setup(account_id, proposal_id, complete_setup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1113
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:completeSetup', options)
1114
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::CompleteSetupRequest::Representation
1115
+ command.request_object = complete_setup_request_object
1116
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
1117
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
1118
+ command.params['accountId'] = account_id unless account_id.nil?
1119
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1120
+ command.query['fields'] = fields unless fields.nil?
1121
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1122
+ execute_or_queue_command(command, &block)
1123
+ end
1124
+
1125
+ # Create the given proposal. Each created proposal and any deals it contains
1126
+ # are assigned a unique ID by the server.
1127
+ # @param [String] account_id
1128
+ # Account ID of the buyer.
1129
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Proposal] proposal_object
1130
+ # @param [String] fields
1131
+ # Selector specifying which fields to include in a partial response.
1132
+ # @param [String] quota_user
1133
+ # Available to use for quota purposes for server-side applications. Can be any
1134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1135
+ # @param [Google::Apis::RequestOptions] options
1136
+ # Request-specific options
1137
+ #
1138
+ # @yield [result, err] Result & error if block supplied
1139
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
1140
+ # @yieldparam err [StandardError] error object if request failed
1141
+ #
1142
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
1143
+ #
1144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1147
+ def create_account_proposal(account_id, proposal_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1148
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals', options)
1149
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
1150
+ command.request_object = proposal_object
1151
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
1152
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
1153
+ command.params['accountId'] = account_id unless account_id.nil?
1154
+ command.query['fields'] = fields unless fields.nil?
1155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1156
+ execute_or_queue_command(command, &block)
1157
+ end
1158
+
1159
+ # Gets a proposal given its ID. The proposal is returned at its head
1160
+ # revision.
1161
+ # @param [String] account_id
1162
+ # Account ID of the buyer.
1163
+ # @param [String] proposal_id
1164
+ # The unique ID of the proposal
1165
+ # @param [String] fields
1166
+ # Selector specifying which fields to include in a partial response.
1167
+ # @param [String] quota_user
1168
+ # Available to use for quota purposes for server-side applications. Can be any
1169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1170
+ # @param [Google::Apis::RequestOptions] options
1171
+ # Request-specific options
1172
+ #
1173
+ # @yield [result, err] Result & error if block supplied
1174
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
1175
+ # @yieldparam err [StandardError] error object if request failed
1176
+ #
1177
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
1178
+ #
1179
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1180
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1181
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1182
+ def get_account_proposal(account_id, proposal_id, fields: nil, quota_user: nil, options: nil, &block)
1183
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/proposals/{proposalId}', options)
1184
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
1185
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
1186
+ command.params['accountId'] = account_id unless account_id.nil?
1187
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1188
+ command.query['fields'] = fields unless fields.nil?
1189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1190
+ execute_or_queue_command(command, &block)
1191
+ end
1192
+
1193
+ # List proposals. A filter expression (PQL query) may be specified to
1194
+ # filter the results. To retrieve all finalized proposals, regardless if a
1195
+ # proposal is being renegotiated, see the FinalizedProposals resource.
1196
+ # Note that Bidder/ChildSeat relationships differ from the usual behavior.
1197
+ # A Bidder account can only see its child seats' proposals by specifying
1198
+ # the ChildSeat's accountId in the request path.
1199
+ # @param [String] account_id
1200
+ # Account ID of the buyer.
1201
+ # @param [String] filter
1202
+ # An optional PQL filter query used to query for proposals.
1203
+ # Nested repeated fields, such as proposal.deals.targetingCriterion,
1204
+ # cannot be filtered.
1205
+ # @param [String] filter_syntax
1206
+ # Syntax the filter is written in. Current implementation defaults to PQL
1207
+ # but in the future it will be LIST_FILTER.
1208
+ # @param [Fixnum] page_size
1209
+ # Requested page size. The server may return fewer results than requested.
1210
+ # If unspecified, the server will pick an appropriate default.
1211
+ # @param [String] page_token
1212
+ # The page token as returned from ListProposalsResponse.
1213
+ # @param [String] fields
1214
+ # Selector specifying which fields to include in a partial response.
1215
+ # @param [String] quota_user
1216
+ # Available to use for quota purposes for server-side applications. Can be any
1217
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1218
+ # @param [Google::Apis::RequestOptions] options
1219
+ # Request-specific options
1220
+ #
1221
+ # @yield [result, err] Result & error if block supplied
1222
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse] parsed result object
1223
+ # @yieldparam err [StandardError] error object if request failed
1224
+ #
1225
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse]
1226
+ #
1227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1230
+ def list_account_proposals(account_id, filter: nil, filter_syntax: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1231
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/proposals', options)
1232
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse::Representation
1233
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse
1234
+ command.params['accountId'] = account_id unless account_id.nil?
1235
+ command.query['filter'] = filter unless filter.nil?
1236
+ command.query['filterSyntax'] = filter_syntax unless filter_syntax.nil?
1237
+ command.query['pageSize'] = page_size unless page_size.nil?
1238
+ command.query['pageToken'] = page_token unless page_token.nil?
1239
+ command.query['fields'] = fields unless fields.nil?
1240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1241
+ execute_or_queue_command(command, &block)
1242
+ end
1243
+
1244
+ # Update the given proposal to pause serving.
1245
+ # This method will set the
1246
+ # `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all
1247
+ # deals in the proposal.
1248
+ # It is a no-op to pause an already-paused proposal.
1249
+ # It is an error to call PauseProposal for a proposal that is not
1250
+ # finalized or renegotiating.
1251
+ # @param [String] account_id
1252
+ # Account ID of the buyer.
1253
+ # @param [String] proposal_id
1254
+ # The ID of the proposal to pause.
1255
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::PauseProposalRequest] pause_proposal_request_object
1256
+ # @param [String] fields
1257
+ # Selector specifying which fields to include in a partial response.
1258
+ # @param [String] quota_user
1259
+ # Available to use for quota purposes for server-side applications. Can be any
1260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1261
+ # @param [Google::Apis::RequestOptions] options
1262
+ # Request-specific options
1263
+ #
1264
+ # @yield [result, err] Result & error if block supplied
1265
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
1266
+ # @yieldparam err [StandardError] error object if request failed
1267
+ #
1268
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
1269
+ #
1270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1273
+ def pause_proposal(account_id, proposal_id, pause_proposal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1274
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:pause', options)
1275
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::PauseProposalRequest::Representation
1276
+ command.request_object = pause_proposal_request_object
1277
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
1278
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
1279
+ command.params['accountId'] = account_id unless account_id.nil?
1280
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1281
+ command.query['fields'] = fields unless fields.nil?
1282
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1283
+ execute_or_queue_command(command, &block)
1284
+ end
1285
+
1286
+ # Update the given proposal to resume serving.
1287
+ # This method will set the
1288
+ # `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all
1289
+ # deals in the proposal.
1290
+ # Note that if the `has_seller_paused` bit is also set, serving will not
1291
+ # resume until the seller also resumes.
1292
+ # It is a no-op to resume an already-running proposal.
1293
+ # It is an error to call ResumeProposal for a proposal that is not
1294
+ # finalized or renegotiating.
1295
+ # @param [String] account_id
1296
+ # Account ID of the buyer.
1297
+ # @param [String] proposal_id
1298
+ # The ID of the proposal to resume.
1299
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ResumeProposalRequest] resume_proposal_request_object
1300
+ # @param [String] fields
1301
+ # Selector specifying which fields to include in a partial response.
1302
+ # @param [String] quota_user
1303
+ # Available to use for quota purposes for server-side applications. Can be any
1304
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1305
+ # @param [Google::Apis::RequestOptions] options
1306
+ # Request-specific options
1307
+ #
1308
+ # @yield [result, err] Result & error if block supplied
1309
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
1310
+ # @yieldparam err [StandardError] error object if request failed
1311
+ #
1312
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
1313
+ #
1314
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1315
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1316
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1317
+ def resume_proposal(account_id, proposal_id, resume_proposal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1318
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:resume', options)
1319
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ResumeProposalRequest::Representation
1320
+ command.request_object = resume_proposal_request_object
1321
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
1322
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
1323
+ command.params['accountId'] = account_id unless account_id.nil?
1324
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1325
+ command.query['fields'] = fields unless fields.nil?
1326
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1327
+ execute_or_queue_command(command, &block)
1328
+ end
1329
+
1330
+ # Update the given proposal at the client known revision number. If the
1331
+ # server revision has advanced since the passed-in
1332
+ # `proposal.proposal_revision`, an `ABORTED` error message will be returned.
1333
+ # Only the buyer-modifiable fields of the proposal will be updated.
1334
+ # Note that the deals in the proposal will be updated to match the passed-in
1335
+ # copy.
1336
+ # If a passed-in deal does not have a `deal_id`, the server will assign a new
1337
+ # unique ID and create the deal.
1338
+ # If passed-in deal has a `deal_id`, it will be updated to match the
1339
+ # passed-in copy.
1340
+ # Any existing deals not present in the passed-in proposal will be deleted.
1341
+ # It is an error to pass in a deal with a `deal_id` not present at head.
1342
+ # @param [String] account_id
1343
+ # Account ID of the buyer.
1344
+ # @param [String] proposal_id
1345
+ # The unique ID of the proposal.
1346
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Proposal] proposal_object
1347
+ # @param [String] fields
1348
+ # Selector specifying which fields to include in a partial response.
1349
+ # @param [String] quota_user
1350
+ # Available to use for quota purposes for server-side applications. Can be any
1351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1352
+ # @param [Google::Apis::RequestOptions] options
1353
+ # Request-specific options
1354
+ #
1355
+ # @yield [result, err] Result & error if block supplied
1356
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
1357
+ # @yieldparam err [StandardError] error object if request failed
1358
+ #
1359
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
1360
+ #
1361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1364
+ def update_account_proposal(account_id, proposal_id, proposal_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1365
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/proposals/{proposalId}', options)
1366
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
1367
+ command.request_object = proposal_object
1368
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
1369
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
1370
+ command.params['accountId'] = account_id unless account_id.nil?
1371
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1372
+ command.query['fields'] = fields unless fields.nil?
1373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1374
+ execute_or_queue_command(command, &block)
1375
+ end
1376
+
1377
+ # Gets the requested publisher profile by id.
1378
+ # @param [String] account_id
1379
+ # Account ID of the buyer.
1380
+ # @param [String] publisher_profile_id
1381
+ # The id for the publisher profile to get.
1382
+ # @param [String] fields
1383
+ # Selector specifying which fields to include in a partial response.
1384
+ # @param [String] quota_user
1385
+ # Available to use for quota purposes for server-side applications. Can be any
1386
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1387
+ # @param [Google::Apis::RequestOptions] options
1388
+ # Request-specific options
1389
+ #
1390
+ # @yield [result, err] Result & error if block supplied
1391
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::PublisherProfile] parsed result object
1392
+ # @yieldparam err [StandardError] error object if request failed
1393
+ #
1394
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::PublisherProfile]
1395
+ #
1396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1399
+ def get_account_publisher_profile(account_id, publisher_profile_id, fields: nil, quota_user: nil, options: nil, &block)
1400
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/publisherProfiles/{publisherProfileId}', options)
1401
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::PublisherProfile::Representation
1402
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::PublisherProfile
1403
+ command.params['accountId'] = account_id unless account_id.nil?
1404
+ command.params['publisherProfileId'] = publisher_profile_id unless publisher_profile_id.nil?
1405
+ command.query['fields'] = fields unless fields.nil?
1406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1407
+ execute_or_queue_command(command, &block)
1408
+ end
1409
+
1410
+ # List all publisher profiles visible to the buyer
1411
+ # @param [String] account_id
1412
+ # Account ID of the buyer.
1413
+ # @param [Fixnum] page_size
1414
+ # Specify the number of results to include per page.
1415
+ # @param [String] page_token
1416
+ # The page token as return from ListPublisherProfilesResponse.
1417
+ # @param [String] fields
1418
+ # Selector specifying which fields to include in a partial response.
1419
+ # @param [String] quota_user
1420
+ # Available to use for quota purposes for server-side applications. Can be any
1421
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1422
+ # @param [Google::Apis::RequestOptions] options
1423
+ # Request-specific options
1424
+ #
1425
+ # @yield [result, err] Result & error if block supplied
1426
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListPublisherProfilesResponse] parsed result object
1427
+ # @yieldparam err [StandardError] error object if request failed
1428
+ #
1429
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListPublisherProfilesResponse]
1430
+ #
1431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1434
+ def list_account_publisher_profiles(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1435
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/publisherProfiles', options)
1436
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListPublisherProfilesResponse::Representation
1437
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListPublisherProfilesResponse
1438
+ command.params['accountId'] = account_id unless account_id.nil?
1439
+ command.query['pageSize'] = page_size unless page_size.nil?
1440
+ command.query['pageToken'] = page_token unless page_token.nil?
1441
+ command.query['fields'] = fields unless fields.nil?
1442
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1443
+ execute_or_queue_command(command, &block)
1444
+ end
1445
+
842
1446
  # Creates the specified filter set for the account with the given account ID.
843
1447
  # @param [String] owner_name
844
1448
  # Name of the owner (bidder or account) of the filter set to be created.