google-api-client 0.45.0 → 0.45.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +56 -0
  3. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  6. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  7. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  8. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  9. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
  10. data/generated/google/apis/apigateway_v1alpha2.rb +34 -0
  11. data/generated/google/apis/apigateway_v1alpha2/classes.rb +633 -0
  12. data/generated/google/apis/apigateway_v1alpha2/representations.rb +250 -0
  13. data/generated/google/apis/apigateway_v1alpha2/service.rb +623 -0
  14. data/generated/google/apis/apigee_v1.rb +1 -1
  15. data/generated/google/apis/apigee_v1/classes.rb +0 -6
  16. data/generated/google/apis/apigee_v1/representations.rb +0 -1
  17. data/generated/google/apis/apigee_v1/service.rb +1 -5
  18. data/generated/google/apis/appsmarket_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2.rb +1 -1
  20. data/generated/google/apis/bigquery_v2/classes.rb +22 -0
  21. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  22. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  23. data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
  24. data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
  25. data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
  26. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  27. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
  28. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
  29. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/classes.rb +2 -1
  32. data/generated/google/apis/chat_v1.rb +1 -1
  33. data/generated/google/apis/chat_v1/classes.rb +76 -2
  34. data/generated/google/apis/chat_v1/representations.rb +35 -0
  35. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  36. data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
  37. data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
  38. data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
  39. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  40. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
  41. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  42. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  43. data/generated/google/apis/cloudidentity_v1/classes.rb +0 -34
  44. data/generated/google/apis/cloudidentity_v1/representations.rb +0 -17
  45. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +185 -0
  47. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
  48. data/generated/google/apis/cloudidentity_v1beta1/service.rb +164 -0
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  51. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  53. data/generated/google/apis/content_v2_1.rb +1 -1
  54. data/generated/google/apis/content_v2_1/service.rb +1 -1
  55. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  56. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
  57. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3/classes.rb +20 -8
  59. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  60. data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
  61. data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
  62. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  63. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
  64. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
  65. data/generated/google/apis/dialogflow_v2.rb +1 -1
  66. data/generated/google/apis/dialogflow_v2/classes.rb +73 -0
  67. data/generated/google/apis/dialogflow_v2/representations.rb +51 -0
  68. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  69. data/generated/google/apis/dialogflow_v2beta1/classes.rb +73 -0
  70. data/generated/google/apis/dialogflow_v2beta1/representations.rb +51 -0
  71. data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
  72. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  73. data/generated/google/apis/dialogflow_v3beta1/classes.rb +142 -0
  74. data/generated/google/apis/dialogflow_v3beta1/representations.rb +83 -0
  75. data/generated/google/apis/displayvideo_v1.rb +1 -1
  76. data/generated/google/apis/displayvideo_v1/classes.rb +8 -0
  77. data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
  78. data/generated/google/apis/dlp_v2.rb +1 -1
  79. data/generated/google/apis/dlp_v2/classes.rb +26 -0
  80. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  81. data/generated/google/apis/dlp_v2/service.rb +328 -328
  82. data/generated/google/apis/firestore_v1.rb +1 -1
  83. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  84. data/generated/google/apis/gmail_v1.rb +1 -1
  85. data/generated/google/apis/gmail_v1/service.rb +1 -1
  86. data/generated/google/apis/healthcare_v1.rb +1 -1
  87. data/generated/google/apis/healthcare_v1/classes.rb +3 -1
  88. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  89. data/generated/google/apis/healthcare_v1beta1/classes.rb +1014 -16
  90. data/generated/google/apis/healthcare_v1beta1/representations.rb +453 -0
  91. data/generated/google/apis/healthcare_v1beta1/service.rb +1226 -0
  92. data/generated/google/apis/logging_v2.rb +1 -1
  93. data/generated/google/apis/logging_v2/classes.rb +98 -55
  94. data/generated/google/apis/logging_v2/representations.rb +32 -0
  95. data/generated/google/apis/logging_v2/service.rb +1214 -264
  96. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  97. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
  98. data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
  99. data/generated/google/apis/people_v1.rb +1 -1
  100. data/generated/google/apis/people_v1/service.rb +8 -6
  101. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  102. data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
  103. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  104. data/generated/google/apis/run_v1.rb +1 -1
  105. data/generated/google/apis/run_v1/classes.rb +0 -124
  106. data/generated/google/apis/run_v1/representations.rb +0 -61
  107. data/generated/google/apis/run_v1/service.rb +0 -342
  108. data/generated/google/apis/searchconsole_v1.rb +7 -1
  109. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  110. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  111. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  112. data/generated/google/apis/securitycenter_v1.rb +1 -1
  113. data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
  114. data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
  115. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  116. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
  117. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
  118. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  119. data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
  120. data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
  121. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  122. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -2
  123. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  124. data/generated/google/apis/servicecontrol_v2/classes.rb +1 -2
  125. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  126. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
  127. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
  128. data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
  129. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  130. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
  131. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +174 -0
  132. data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
  133. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  134. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  135. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  136. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  137. data/generated/google/apis/sqladmin_v1beta4/classes.rb +83 -52
  138. data/generated/google/apis/sqladmin_v1beta4/representations.rb +33 -17
  139. data/generated/google/apis/storage_v1.rb +1 -1
  140. data/generated/google/apis/sts_v1beta.rb +1 -1
  141. data/generated/google/apis/sts_v1beta/classes.rb +4 -1
  142. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  143. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  144. data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
  145. data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
  146. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  147. data/generated/google/apis/youtube_v3.rb +1 -1
  148. data/generated/google/apis/youtube_v3/classes.rb +0 -134
  149. data/generated/google/apis/youtube_v3/representations.rb +0 -55
  150. data/generated/google/apis/youtube_v3/service.rb +2 -2
  151. data/lib/google/apis/version.rb +1 -1
  152. metadata +15 -3
@@ -1051,6 +1051,178 @@ module Google
1051
1051
  execute_or_queue_command(command, &block)
1052
1052
  end
1053
1053
 
1054
+ # Checks if a particular data_id of a User data mapping in the given Consent
1055
+ # store is consented for a given use.
1056
+ # @param [String] consent_store
1057
+ # Name of the Consent store where the requested data_id is stored, of the form `
1058
+ # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1059
+ # consentStores/`consent_store_id``.
1060
+ # @param [Google::Apis::HealthcareV1beta1::CheckDataAccessRequest] check_data_access_request_object
1061
+ # @param [String] fields
1062
+ # Selector specifying which fields to include in a partial response.
1063
+ # @param [String] quota_user
1064
+ # Available to use for quota purposes for server-side applications. Can be any
1065
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1066
+ # @param [Google::Apis::RequestOptions] options
1067
+ # Request-specific options
1068
+ #
1069
+ # @yield [result, err] Result & error if block supplied
1070
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::CheckDataAccessResponse] parsed result object
1071
+ # @yieldparam err [StandardError] error object if request failed
1072
+ #
1073
+ # @return [Google::Apis::HealthcareV1beta1::CheckDataAccessResponse]
1074
+ #
1075
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1076
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1077
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1078
+ def check_consent_store_data_access(consent_store, check_data_access_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1079
+ command = make_simple_command(:post, 'v1beta1/{+consentStore}:checkDataAccess', options)
1080
+ command.request_representation = Google::Apis::HealthcareV1beta1::CheckDataAccessRequest::Representation
1081
+ command.request_object = check_data_access_request_object
1082
+ command.response_representation = Google::Apis::HealthcareV1beta1::CheckDataAccessResponse::Representation
1083
+ command.response_class = Google::Apis::HealthcareV1beta1::CheckDataAccessResponse
1084
+ command.params['consentStore'] = consent_store unless consent_store.nil?
1085
+ command.query['fields'] = fields unless fields.nil?
1086
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1087
+ execute_or_queue_command(command, &block)
1088
+ end
1089
+
1090
+ # Creates a new Consent store in the parent dataset. Attempting to create a
1091
+ # consent store with the same ID as an existing store fails with an
1092
+ # ALREADY_EXISTS error.
1093
+ # @param [String] parent
1094
+ # Required. The name of the dataset this Consent store belongs to.
1095
+ # @param [Google::Apis::HealthcareV1beta1::ConsentStore] consent_store_object
1096
+ # @param [String] consent_store_id
1097
+ # The ID of the consent store to create. The string must match the following
1098
+ # regex: `[\p`L`\p`N`_\-\.]`1,256``.
1099
+ # @param [String] fields
1100
+ # Selector specifying which fields to include in a partial response.
1101
+ # @param [String] quota_user
1102
+ # Available to use for quota purposes for server-side applications. Can be any
1103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1104
+ # @param [Google::Apis::RequestOptions] options
1105
+ # Request-specific options
1106
+ #
1107
+ # @yield [result, err] Result & error if block supplied
1108
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentStore] parsed result object
1109
+ # @yieldparam err [StandardError] error object if request failed
1110
+ #
1111
+ # @return [Google::Apis::HealthcareV1beta1::ConsentStore]
1112
+ #
1113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1116
+ def create_project_location_dataset_consent_store(parent, consent_store_object = nil, consent_store_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1117
+ command = make_simple_command(:post, 'v1beta1/{+parent}/consentStores', options)
1118
+ command.request_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation
1119
+ command.request_object = consent_store_object
1120
+ command.response_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation
1121
+ command.response_class = Google::Apis::HealthcareV1beta1::ConsentStore
1122
+ command.params['parent'] = parent unless parent.nil?
1123
+ command.query['consentStoreId'] = consent_store_id unless consent_store_id.nil?
1124
+ command.query['fields'] = fields unless fields.nil?
1125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1126
+ execute_or_queue_command(command, &block)
1127
+ end
1128
+
1129
+ # Deletes the specified Consent store and removes all consent data in the
1130
+ # specified consent store.
1131
+ # @param [String] name
1132
+ # Required. The resource name of the Consent store to delete.
1133
+ # @param [String] fields
1134
+ # Selector specifying which fields to include in a partial response.
1135
+ # @param [String] quota_user
1136
+ # Available to use for quota purposes for server-side applications. Can be any
1137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1138
+ # @param [Google::Apis::RequestOptions] options
1139
+ # Request-specific options
1140
+ #
1141
+ # @yield [result, err] Result & error if block supplied
1142
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1143
+ # @yieldparam err [StandardError] error object if request failed
1144
+ #
1145
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1146
+ #
1147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1150
+ def delete_project_location_dataset_consent_store(name, fields: nil, quota_user: nil, options: nil, &block)
1151
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1152
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1153
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1154
+ command.params['name'] = name unless name.nil?
1155
+ command.query['fields'] = fields unless fields.nil?
1156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1157
+ execute_or_queue_command(command, &block)
1158
+ end
1159
+
1160
+ # Evaluates the end user's Consents for all matching User data mappings. Note:
1161
+ # User data mappings are indexed asynchronously, so there might be a slight
1162
+ # delay between the time a mapping is created or updated and when it is included
1163
+ # in the results of EvaluateUserConsents.
1164
+ # @param [String] consent_store
1165
+ # Name of the Consent store to retrieve user data mappings from.
1166
+ # @param [Google::Apis::HealthcareV1beta1::EvaluateUserConsentsRequest] evaluate_user_consents_request_object
1167
+ # @param [String] fields
1168
+ # Selector specifying which fields to include in a partial response.
1169
+ # @param [String] quota_user
1170
+ # Available to use for quota purposes for server-side applications. Can be any
1171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1172
+ # @param [Google::Apis::RequestOptions] options
1173
+ # Request-specific options
1174
+ #
1175
+ # @yield [result, err] Result & error if block supplied
1176
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse] parsed result object
1177
+ # @yieldparam err [StandardError] error object if request failed
1178
+ #
1179
+ # @return [Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse]
1180
+ #
1181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1184
+ def evaluate_consent_store_user_consents(consent_store, evaluate_user_consents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1185
+ command = make_simple_command(:post, 'v1beta1/{+consentStore}:evaluateUserConsents', options)
1186
+ command.request_representation = Google::Apis::HealthcareV1beta1::EvaluateUserConsentsRequest::Representation
1187
+ command.request_object = evaluate_user_consents_request_object
1188
+ command.response_representation = Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse::Representation
1189
+ command.response_class = Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse
1190
+ command.params['consentStore'] = consent_store unless consent_store.nil?
1191
+ command.query['fields'] = fields unless fields.nil?
1192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1193
+ execute_or_queue_command(command, &block)
1194
+ end
1195
+
1196
+ # Gets the specified Consent store.
1197
+ # @param [String] name
1198
+ # Required. The resource name of the Consent store to get.
1199
+ # @param [String] fields
1200
+ # Selector specifying which fields to include in a partial response.
1201
+ # @param [String] quota_user
1202
+ # Available to use for quota purposes for server-side applications. Can be any
1203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1204
+ # @param [Google::Apis::RequestOptions] options
1205
+ # Request-specific options
1206
+ #
1207
+ # @yield [result, err] Result & error if block supplied
1208
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentStore] parsed result object
1209
+ # @yieldparam err [StandardError] error object if request failed
1210
+ #
1211
+ # @return [Google::Apis::HealthcareV1beta1::ConsentStore]
1212
+ #
1213
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1214
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1215
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1216
+ def get_project_location_dataset_consent_store(name, fields: nil, quota_user: nil, options: nil, &block)
1217
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1218
+ command.response_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation
1219
+ command.response_class = Google::Apis::HealthcareV1beta1::ConsentStore
1220
+ command.params['name'] = name unless name.nil?
1221
+ command.query['fields'] = fields unless fields.nil?
1222
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1223
+ execute_or_queue_command(command, &block)
1224
+ end
1225
+
1054
1226
  # Gets the access control policy for a resource. Returns an empty policy if the
1055
1227
  # resource exists and does not have a policy set.
1056
1228
  # @param [String] resource
@@ -1092,6 +1264,139 @@ module Google
1092
1264
  execute_or_queue_command(command, &block)
1093
1265
  end
1094
1266
 
1267
+ # Lists the Consent stores in the given dataset.
1268
+ # @param [String] parent
1269
+ # Required. Name of the dataset.
1270
+ # @param [String] filter
1271
+ # Restricts the stores returned to those matching a filter. Syntax: https://
1272
+ # cloud.google.com/appengine/docs/standard/python/search/query_strings. Only
1273
+ # filtering on labels is supported. For example, `labels.key=value`.
1274
+ # @param [Fixnum] page_size
1275
+ # Limit on the number of Consent stores to return in a single response. If zero
1276
+ # the default page size of 100 is used.
1277
+ # @param [String] page_token
1278
+ # Token to retrieve the next page of results or empty to get the first page.
1279
+ # @param [String] fields
1280
+ # Selector specifying which fields to include in a partial response.
1281
+ # @param [String] quota_user
1282
+ # Available to use for quota purposes for server-side applications. Can be any
1283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1284
+ # @param [Google::Apis::RequestOptions] options
1285
+ # Request-specific options
1286
+ #
1287
+ # @yield [result, err] Result & error if block supplied
1288
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentStoresResponse] parsed result object
1289
+ # @yieldparam err [StandardError] error object if request failed
1290
+ #
1291
+ # @return [Google::Apis::HealthcareV1beta1::ListConsentStoresResponse]
1292
+ #
1293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1296
+ def list_project_location_dataset_consent_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1297
+ command = make_simple_command(:get, 'v1beta1/{+parent}/consentStores', options)
1298
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentStoresResponse::Representation
1299
+ command.response_class = Google::Apis::HealthcareV1beta1::ListConsentStoresResponse
1300
+ command.params['parent'] = parent unless parent.nil?
1301
+ command.query['filter'] = filter unless filter.nil?
1302
+ command.query['pageSize'] = page_size unless page_size.nil?
1303
+ command.query['pageToken'] = page_token unless page_token.nil?
1304
+ command.query['fields'] = fields unless fields.nil?
1305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1306
+ execute_or_queue_command(command, &block)
1307
+ end
1308
+
1309
+ # Updates the specified Consent store.
1310
+ # @param [String] name
1311
+ # Resource name of the Consent store, of the form `projects/`project_id`/
1312
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id``
1313
+ # .
1314
+ # @param [Google::Apis::HealthcareV1beta1::ConsentStore] consent_store_object
1315
+ # @param [String] update_mask
1316
+ # The update mask that applies to the resource. For the `FieldMask` definition,
1317
+ # see https://developers.google.com/protocol-buffers/docs/reference/google.
1318
+ # protobuf#fieldmask. The `labels` field is allowed to be updated.
1319
+ # @param [String] fields
1320
+ # Selector specifying which fields to include in a partial response.
1321
+ # @param [String] quota_user
1322
+ # Available to use for quota purposes for server-side applications. Can be any
1323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1324
+ # @param [Google::Apis::RequestOptions] options
1325
+ # Request-specific options
1326
+ #
1327
+ # @yield [result, err] Result & error if block supplied
1328
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentStore] parsed result object
1329
+ # @yieldparam err [StandardError] error object if request failed
1330
+ #
1331
+ # @return [Google::Apis::HealthcareV1beta1::ConsentStore]
1332
+ #
1333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1336
+ def patch_project_location_dataset_consent_store(name, consent_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1337
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1338
+ command.request_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation
1339
+ command.request_object = consent_store_object
1340
+ command.response_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation
1341
+ command.response_class = Google::Apis::HealthcareV1beta1::ConsentStore
1342
+ command.params['name'] = name unless name.nil?
1343
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1344
+ command.query['fields'] = fields unless fields.nil?
1345
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1346
+ execute_or_queue_command(command, &block)
1347
+ end
1348
+
1349
+ # Queries all data_ids that are consented for a given use in the given Consent
1350
+ # store and writes them to a specified destination. The returned Operation
1351
+ # includes a progress counter for the number of User data mappings processed.
1352
+ # Errors are logged to Cloud Logging (see [Viewing logs] (/healthcare/docs/how-
1353
+ # tos/logging)). For example, the following sample log entry shows a `failed to
1354
+ # evaluate consent policy` error that occurred during a QueryAccessibleData call
1355
+ # to consent store `projects/`project_id`/locations/`location_id`/datasets/`
1356
+ # dataset_id`/consentStores/`consent_store_id``. ```json jsonPayload: ` @type: "
1357
+ # type.googleapis.com/google.cloud.healthcare.logging.
1358
+ # QueryAccessibleDataLogEntry" error: ` code: 9 message: "failed to evaluate
1359
+ # consent policy" ` resourceName: "projects/`project_id`/locations/`location_id`/
1360
+ # datasets/`dataset_id`/consentStores/`consent_store_id`/consents/`consent_id`" `
1361
+ # logName: "projects/`project_id`/logs/healthcare.googleapis.com%
1362
+ # 2Fquery_accessible_data" operation: ` id: "projects/`project_id`/locations/`
1363
+ # location_id`/datasets/`dataset_id`/operations/`operation_id`" producer: "
1364
+ # healthcare.googleapis.com/QueryAccessibleData" ` receiveTimestamp: "TIMESTAMP"
1365
+ # resource: ` labels: ` consent_store_id: "`consent_store_id`" dataset_id: "`
1366
+ # dataset_id`" location: "`location_id`" project_id: "`project_id`" ` type: "
1367
+ # healthcare_consent_store" ` severity: "ERROR" timestamp: "TIMESTAMP" ```
1368
+ # @param [String] consent_store
1369
+ # Name of the Consent store to retrieve user data mappings from.
1370
+ # @param [Google::Apis::HealthcareV1beta1::QueryAccessibleDataRequest] query_accessible_data_request_object
1371
+ # @param [String] fields
1372
+ # Selector specifying which fields to include in a partial response.
1373
+ # @param [String] quota_user
1374
+ # Available to use for quota purposes for server-side applications. Can be any
1375
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1376
+ # @param [Google::Apis::RequestOptions] options
1377
+ # Request-specific options
1378
+ #
1379
+ # @yield [result, err] Result & error if block supplied
1380
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
1381
+ # @yieldparam err [StandardError] error object if request failed
1382
+ #
1383
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
1384
+ #
1385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1388
+ def query_consent_store_accessible_data(consent_store, query_accessible_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1389
+ command = make_simple_command(:post, 'v1beta1/{+consentStore}:queryAccessibleData', options)
1390
+ command.request_representation = Google::Apis::HealthcareV1beta1::QueryAccessibleDataRequest::Representation
1391
+ command.request_object = query_accessible_data_request_object
1392
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
1393
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
1394
+ command.params['consentStore'] = consent_store unless consent_store.nil?
1395
+ command.query['fields'] = fields unless fields.nil?
1396
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1397
+ execute_or_queue_command(command, &block)
1398
+ end
1399
+
1095
1400
  # Sets the access control policy on the specified resource. Replaces any
1096
1401
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1097
1402
  # PERMISSION_DENIED` errors.
@@ -1166,6 +1471,927 @@ module Google
1166
1471
  execute_or_queue_command(command, &block)
1167
1472
  end
1168
1473
 
1474
+ # Creates a new Attribute definition in the parent Consent store.
1475
+ # @param [String] parent
1476
+ # Required. The name of the consent store that this Attribute definition belongs
1477
+ # to.
1478
+ # @param [Google::Apis::HealthcareV1beta1::AttributeDefinition] attribute_definition_object
1479
+ # @param [String] attribute_definition_id
1480
+ # Required. The ID of the Attribute definition to create. The string must match
1481
+ # the following regex: `_a-zA-Z`0,255`` and must not be a reserved keyword
1482
+ # within the Common Expression Language as listed on https://github.com/google/
1483
+ # cel-spec/blob/master/doc/langdef.md.
1484
+ # @param [String] fields
1485
+ # Selector specifying which fields to include in a partial response.
1486
+ # @param [String] quota_user
1487
+ # Available to use for quota purposes for server-side applications. Can be any
1488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1489
+ # @param [Google::Apis::RequestOptions] options
1490
+ # Request-specific options
1491
+ #
1492
+ # @yield [result, err] Result & error if block supplied
1493
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::AttributeDefinition] parsed result object
1494
+ # @yieldparam err [StandardError] error object if request failed
1495
+ #
1496
+ # @return [Google::Apis::HealthcareV1beta1::AttributeDefinition]
1497
+ #
1498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1501
+ def create_project_location_dataset_consent_store_attribute_definition(parent, attribute_definition_object = nil, attribute_definition_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1502
+ command = make_simple_command(:post, 'v1beta1/{+parent}/attributeDefinitions', options)
1503
+ command.request_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation
1504
+ command.request_object = attribute_definition_object
1505
+ command.response_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation
1506
+ command.response_class = Google::Apis::HealthcareV1beta1::AttributeDefinition
1507
+ command.params['parent'] = parent unless parent.nil?
1508
+ command.query['attributeDefinitionId'] = attribute_definition_id unless attribute_definition_id.nil?
1509
+ command.query['fields'] = fields unless fields.nil?
1510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1511
+ execute_or_queue_command(command, &block)
1512
+ end
1513
+
1514
+ # Deletes the specified Attribute definition. Fails if it is referenced by the
1515
+ # latest revision of any Consent or User data mapping.
1516
+ # @param [String] name
1517
+ # Required. The resource name of the Attribute definition to delete.
1518
+ # @param [String] fields
1519
+ # Selector specifying which fields to include in a partial response.
1520
+ # @param [String] quota_user
1521
+ # Available to use for quota purposes for server-side applications. Can be any
1522
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1523
+ # @param [Google::Apis::RequestOptions] options
1524
+ # Request-specific options
1525
+ #
1526
+ # @yield [result, err] Result & error if block supplied
1527
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1528
+ # @yieldparam err [StandardError] error object if request failed
1529
+ #
1530
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1531
+ #
1532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1535
+ def delete_project_location_dataset_consent_store_attribute_definition(name, fields: nil, quota_user: nil, options: nil, &block)
1536
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1537
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1538
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1539
+ command.params['name'] = name unless name.nil?
1540
+ command.query['fields'] = fields unless fields.nil?
1541
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1542
+ execute_or_queue_command(command, &block)
1543
+ end
1544
+
1545
+ # Gets the specified Attribute definition.
1546
+ # @param [String] name
1547
+ # Required. The resource name of the Attribute definition to get.
1548
+ # @param [String] fields
1549
+ # Selector specifying which fields to include in a partial response.
1550
+ # @param [String] quota_user
1551
+ # Available to use for quota purposes for server-side applications. Can be any
1552
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1553
+ # @param [Google::Apis::RequestOptions] options
1554
+ # Request-specific options
1555
+ #
1556
+ # @yield [result, err] Result & error if block supplied
1557
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::AttributeDefinition] parsed result object
1558
+ # @yieldparam err [StandardError] error object if request failed
1559
+ #
1560
+ # @return [Google::Apis::HealthcareV1beta1::AttributeDefinition]
1561
+ #
1562
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1563
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1564
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1565
+ def get_project_location_dataset_consent_store_attribute_definition(name, fields: nil, quota_user: nil, options: nil, &block)
1566
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1567
+ command.response_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation
1568
+ command.response_class = Google::Apis::HealthcareV1beta1::AttributeDefinition
1569
+ command.params['name'] = name unless name.nil?
1570
+ command.query['fields'] = fields unless fields.nil?
1571
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1572
+ execute_or_queue_command(command, &block)
1573
+ end
1574
+
1575
+ # Lists the Attribute definitions in the given Consent store.
1576
+ # @param [String] parent
1577
+ # Required. Name of the Consent store to retrieve attribute definitions from.
1578
+ # @param [String] filter
1579
+ # Restricts the attributes returned to those matching a filter. Syntax: https://
1580
+ # cloud.google.com/appengine/docs/standard/python/search/query_strings. The only
1581
+ # field available for filtering is `category`.
1582
+ # @param [Fixnum] page_size
1583
+ # Limit on the number of attribute definitions to return in a single response.
1584
+ # If zero the default page size of 100 is used.
1585
+ # @param [String] page_token
1586
+ # Token to retrieve the next page of results or empty to get the first page.
1587
+ # @param [String] fields
1588
+ # Selector specifying which fields to include in a partial response.
1589
+ # @param [String] quota_user
1590
+ # Available to use for quota purposes for server-side applications. Can be any
1591
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1592
+ # @param [Google::Apis::RequestOptions] options
1593
+ # Request-specific options
1594
+ #
1595
+ # @yield [result, err] Result & error if block supplied
1596
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse] parsed result object
1597
+ # @yieldparam err [StandardError] error object if request failed
1598
+ #
1599
+ # @return [Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse]
1600
+ #
1601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1604
+ def list_project_location_dataset_consent_store_attribute_definitions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1605
+ command = make_simple_command(:get, 'v1beta1/{+parent}/attributeDefinitions', options)
1606
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse::Representation
1607
+ command.response_class = Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse
1608
+ command.params['parent'] = parent unless parent.nil?
1609
+ command.query['filter'] = filter unless filter.nil?
1610
+ command.query['pageSize'] = page_size unless page_size.nil?
1611
+ command.query['pageToken'] = page_token unless page_token.nil?
1612
+ command.query['fields'] = fields unless fields.nil?
1613
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1614
+ execute_or_queue_command(command, &block)
1615
+ end
1616
+
1617
+ # Updates the specified Attribute definition.
1618
+ # @param [String] name
1619
+ # Resource name of the attribute definition, of the form `projects/`project_id`/
1620
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
1621
+ # attributeDefinitions/`attribute_definition_id``.
1622
+ # @param [Google::Apis::HealthcareV1beta1::AttributeDefinition] attribute_definition_object
1623
+ # @param [String] update_mask
1624
+ # The update mask that applies to the resource. For the `FieldMask` definition,
1625
+ # see https://developers.google.com/protocol-buffers/docs/reference/google.
1626
+ # protobuf#fieldmask. The `description`, `possible_values`, `
1627
+ # consent_default_values`, and `data_mapping_default_value` fields are allowed
1628
+ # to be updated. The updated `possible_values` must contain all values from the
1629
+ # previous `possible_values`.
1630
+ # @param [String] fields
1631
+ # Selector specifying which fields to include in a partial response.
1632
+ # @param [String] quota_user
1633
+ # Available to use for quota purposes for server-side applications. Can be any
1634
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1635
+ # @param [Google::Apis::RequestOptions] options
1636
+ # Request-specific options
1637
+ #
1638
+ # @yield [result, err] Result & error if block supplied
1639
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::AttributeDefinition] parsed result object
1640
+ # @yieldparam err [StandardError] error object if request failed
1641
+ #
1642
+ # @return [Google::Apis::HealthcareV1beta1::AttributeDefinition]
1643
+ #
1644
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1645
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1646
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1647
+ def patch_project_location_dataset_consent_store_attribute_definition(name, attribute_definition_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1648
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1649
+ command.request_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation
1650
+ command.request_object = attribute_definition_object
1651
+ command.response_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation
1652
+ command.response_class = Google::Apis::HealthcareV1beta1::AttributeDefinition
1653
+ command.params['name'] = name unless name.nil?
1654
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1655
+ command.query['fields'] = fields unless fields.nil?
1656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1657
+ execute_or_queue_command(command, &block)
1658
+ end
1659
+
1660
+ # Creates a new Consent artifact in the parent Consent store.
1661
+ # @param [String] parent
1662
+ # Required. The name of the Consent store this consent artifact belongs to.
1663
+ # @param [Google::Apis::HealthcareV1beta1::ConsentArtifact] consent_artifact_object
1664
+ # @param [String] fields
1665
+ # Selector specifying which fields to include in a partial response.
1666
+ # @param [String] quota_user
1667
+ # Available to use for quota purposes for server-side applications. Can be any
1668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1669
+ # @param [Google::Apis::RequestOptions] options
1670
+ # Request-specific options
1671
+ #
1672
+ # @yield [result, err] Result & error if block supplied
1673
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentArtifact] parsed result object
1674
+ # @yieldparam err [StandardError] error object if request failed
1675
+ #
1676
+ # @return [Google::Apis::HealthcareV1beta1::ConsentArtifact]
1677
+ #
1678
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1679
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1680
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1681
+ def create_project_location_dataset_consent_store_consent_artifact(parent, consent_artifact_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1682
+ command = make_simple_command(:post, 'v1beta1/{+parent}/consentArtifacts', options)
1683
+ command.request_representation = Google::Apis::HealthcareV1beta1::ConsentArtifact::Representation
1684
+ command.request_object = consent_artifact_object
1685
+ command.response_representation = Google::Apis::HealthcareV1beta1::ConsentArtifact::Representation
1686
+ command.response_class = Google::Apis::HealthcareV1beta1::ConsentArtifact
1687
+ command.params['parent'] = parent unless parent.nil?
1688
+ command.query['fields'] = fields unless fields.nil?
1689
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1690
+ execute_or_queue_command(command, &block)
1691
+ end
1692
+
1693
+ # Deletes the specified Consent artifact. Fails if it is referenced by the
1694
+ # latest revision of any Consent.
1695
+ # @param [String] name
1696
+ # Required. The resource name of the consent artifact to delete.
1697
+ # @param [String] fields
1698
+ # Selector specifying which fields to include in a partial response.
1699
+ # @param [String] quota_user
1700
+ # Available to use for quota purposes for server-side applications. Can be any
1701
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1702
+ # @param [Google::Apis::RequestOptions] options
1703
+ # Request-specific options
1704
+ #
1705
+ # @yield [result, err] Result & error if block supplied
1706
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1707
+ # @yieldparam err [StandardError] error object if request failed
1708
+ #
1709
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1710
+ #
1711
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1712
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1713
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1714
+ def delete_project_location_dataset_consent_store_consent_artifact(name, fields: nil, quota_user: nil, options: nil, &block)
1715
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1716
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1717
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1718
+ command.params['name'] = name unless name.nil?
1719
+ command.query['fields'] = fields unless fields.nil?
1720
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1721
+ execute_or_queue_command(command, &block)
1722
+ end
1723
+
1724
+ # Gets the specified Consent artifact.
1725
+ # @param [String] name
1726
+ # Required. The resource name of the consent artifact to retrieve.
1727
+ # @param [String] fields
1728
+ # Selector specifying which fields to include in a partial response.
1729
+ # @param [String] quota_user
1730
+ # Available to use for quota purposes for server-side applications. Can be any
1731
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1732
+ # @param [Google::Apis::RequestOptions] options
1733
+ # Request-specific options
1734
+ #
1735
+ # @yield [result, err] Result & error if block supplied
1736
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentArtifact] parsed result object
1737
+ # @yieldparam err [StandardError] error object if request failed
1738
+ #
1739
+ # @return [Google::Apis::HealthcareV1beta1::ConsentArtifact]
1740
+ #
1741
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1742
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1743
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1744
+ def get_project_location_dataset_consent_store_consent_artifact(name, fields: nil, quota_user: nil, options: nil, &block)
1745
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1746
+ command.response_representation = Google::Apis::HealthcareV1beta1::ConsentArtifact::Representation
1747
+ command.response_class = Google::Apis::HealthcareV1beta1::ConsentArtifact
1748
+ command.params['name'] = name unless name.nil?
1749
+ command.query['fields'] = fields unless fields.nil?
1750
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1751
+ execute_or_queue_command(command, &block)
1752
+ end
1753
+
1754
+ # Lists the Consent artifacts in the given Consent store.
1755
+ # @param [String] parent
1756
+ # Required. Name of the Consent store to retrieve consent artifacts from.
1757
+ # @param [String] filter
1758
+ # Restricts the artifacts returned to those matching a filter. Syntax: https://
1759
+ # cloud.google.com/appengine/docs/standard/python/search/query_strings The
1760
+ # fields available for filtering are: - user_id - consent_content_version
1761
+ # @param [Fixnum] page_size
1762
+ # Limit on the number of consent artifacts to return in a single response. If
1763
+ # zero the default page size of 100 is used.
1764
+ # @param [String] page_token
1765
+ # The next_page_token value returned from the previous List request, if any.
1766
+ # @param [String] fields
1767
+ # Selector specifying which fields to include in a partial response.
1768
+ # @param [String] quota_user
1769
+ # Available to use for quota purposes for server-side applications. Can be any
1770
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1771
+ # @param [Google::Apis::RequestOptions] options
1772
+ # Request-specific options
1773
+ #
1774
+ # @yield [result, err] Result & error if block supplied
1775
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse] parsed result object
1776
+ # @yieldparam err [StandardError] error object if request failed
1777
+ #
1778
+ # @return [Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse]
1779
+ #
1780
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1781
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1782
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1783
+ def list_project_location_dataset_consent_store_consent_artifacts(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1784
+ command = make_simple_command(:get, 'v1beta1/{+parent}/consentArtifacts', options)
1785
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse::Representation
1786
+ command.response_class = Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse
1787
+ command.params['parent'] = parent unless parent.nil?
1788
+ command.query['filter'] = filter unless filter.nil?
1789
+ command.query['pageSize'] = page_size unless page_size.nil?
1790
+ command.query['pageToken'] = page_token unless page_token.nil?
1791
+ command.query['fields'] = fields unless fields.nil?
1792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1793
+ execute_or_queue_command(command, &block)
1794
+ end
1795
+
1796
+ # Activates the latest revision of the specified Consent by committing a new
1797
+ # revision with `state` updated to `ACTIVE`. If the latest revision of the given
1798
+ # consent is in the `ACTIVE` state, no new revision is committed. A
1799
+ # FAILED_PRECONDITION error occurs if the latest revision of the given consent
1800
+ # is in the `REJECTED` or `REVOKED` state.
1801
+ # @param [String] name
1802
+ # Required. The resource name of the consent to activate, of the form `projects/`
1803
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
1804
+ # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if `
1805
+ # revision_id` is specified in the name.
1806
+ # @param [Google::Apis::HealthcareV1beta1::ActivateConsentRequest] activate_consent_request_object
1807
+ # @param [String] fields
1808
+ # Selector specifying which fields to include in a partial response.
1809
+ # @param [String] quota_user
1810
+ # Available to use for quota purposes for server-side applications. Can be any
1811
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1812
+ # @param [Google::Apis::RequestOptions] options
1813
+ # Request-specific options
1814
+ #
1815
+ # @yield [result, err] Result & error if block supplied
1816
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
1817
+ # @yieldparam err [StandardError] error object if request failed
1818
+ #
1819
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
1820
+ #
1821
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1822
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1823
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1824
+ def activate_consent(name, activate_consent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1825
+ command = make_simple_command(:post, 'v1beta1/{+name}:activate', options)
1826
+ command.request_representation = Google::Apis::HealthcareV1beta1::ActivateConsentRequest::Representation
1827
+ command.request_object = activate_consent_request_object
1828
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
1829
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
1830
+ command.params['name'] = name unless name.nil?
1831
+ command.query['fields'] = fields unless fields.nil?
1832
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1833
+ execute_or_queue_command(command, &block)
1834
+ end
1835
+
1836
+ # Creates a new Consent in the parent Consent store.
1837
+ # @param [String] parent
1838
+ # Required. Name of the consent store.
1839
+ # @param [Google::Apis::HealthcareV1beta1::Consent] consent_object
1840
+ # @param [String] fields
1841
+ # Selector specifying which fields to include in a partial response.
1842
+ # @param [String] quota_user
1843
+ # Available to use for quota purposes for server-side applications. Can be any
1844
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1845
+ # @param [Google::Apis::RequestOptions] options
1846
+ # Request-specific options
1847
+ #
1848
+ # @yield [result, err] Result & error if block supplied
1849
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
1850
+ # @yieldparam err [StandardError] error object if request failed
1851
+ #
1852
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
1853
+ #
1854
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1855
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1856
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1857
+ def create_project_location_dataset_consent_store_consent(parent, consent_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1858
+ command = make_simple_command(:post, 'v1beta1/{+parent}/consents', options)
1859
+ command.request_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
1860
+ command.request_object = consent_object
1861
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
1862
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
1863
+ command.params['parent'] = parent unless parent.nil?
1864
+ command.query['fields'] = fields unless fields.nil?
1865
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1866
+ execute_or_queue_command(command, &block)
1867
+ end
1868
+
1869
+ # Deletes the Consent and its revisions. To keep a record of the Consent but
1870
+ # mark it inactive, see [RevokeConsent]. To delete a revision of a Consent, see [
1871
+ # DeleteConsentRevision]. This operation does not delete the related consent
1872
+ # artifact.
1873
+ # @param [String] name
1874
+ # Required. The resource name of the consent to delete, of the form `projects/`
1875
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
1876
+ # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if `
1877
+ # revision_id` is specified in the name.
1878
+ # @param [String] fields
1879
+ # Selector specifying which fields to include in a partial response.
1880
+ # @param [String] quota_user
1881
+ # Available to use for quota purposes for server-side applications. Can be any
1882
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1883
+ # @param [Google::Apis::RequestOptions] options
1884
+ # Request-specific options
1885
+ #
1886
+ # @yield [result, err] Result & error if block supplied
1887
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1888
+ # @yieldparam err [StandardError] error object if request failed
1889
+ #
1890
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1891
+ #
1892
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1893
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1894
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1895
+ def delete_project_location_dataset_consent_store_consent(name, fields: nil, quota_user: nil, options: nil, &block)
1896
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1897
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1898
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1899
+ command.params['name'] = name unless name.nil?
1900
+ command.query['fields'] = fields unless fields.nil?
1901
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1902
+ execute_or_queue_command(command, &block)
1903
+ end
1904
+
1905
+ # Deletes the specified revision of a Consent. An INVALID_ARGUMENT error occurs
1906
+ # if the specified revision is the latest revision.
1907
+ # @param [String] name
1908
+ # Required. The resource name of the consent revision to delete, of the form `
1909
+ # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1910
+ # consentStores/`consent_store_id`/consents/`consent_id`@`revision_id``. An
1911
+ # INVALID_ARGUMENT error occurs if `revision_id` is not specified in the name.
1912
+ # @param [String] fields
1913
+ # Selector specifying which fields to include in a partial response.
1914
+ # @param [String] quota_user
1915
+ # Available to use for quota purposes for server-side applications. Can be any
1916
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1917
+ # @param [Google::Apis::RequestOptions] options
1918
+ # Request-specific options
1919
+ #
1920
+ # @yield [result, err] Result & error if block supplied
1921
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1922
+ # @yieldparam err [StandardError] error object if request failed
1923
+ #
1924
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1925
+ #
1926
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1927
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1928
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1929
+ def delete_project_location_dataset_consent_store_consent_revision(name, fields: nil, quota_user: nil, options: nil, &block)
1930
+ command = make_simple_command(:delete, 'v1beta1/{+name}:deleteRevision', options)
1931
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1932
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1933
+ command.params['name'] = name unless name.nil?
1934
+ command.query['fields'] = fields unless fields.nil?
1935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1936
+ execute_or_queue_command(command, &block)
1937
+ end
1938
+
1939
+ # Gets the specified revision of a Consent, or the latest revision if `
1940
+ # revision_id` is not specified in the resource name.
1941
+ # @param [String] name
1942
+ # Required. The resource name of the consent to retrieve, of the form `projects/`
1943
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
1944
+ # consent_store_id`/consents/`consent_id``. In order to retrieve a previous
1945
+ # revision of the consent, also provide the revision ID: `projects/`project_id`/
1946
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
1947
+ # consents/`consent_id`@`revision_id``
1948
+ # @param [String] fields
1949
+ # Selector specifying which fields to include in a partial response.
1950
+ # @param [String] quota_user
1951
+ # Available to use for quota purposes for server-side applications. Can be any
1952
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1953
+ # @param [Google::Apis::RequestOptions] options
1954
+ # Request-specific options
1955
+ #
1956
+ # @yield [result, err] Result & error if block supplied
1957
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
1958
+ # @yieldparam err [StandardError] error object if request failed
1959
+ #
1960
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
1961
+ #
1962
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1963
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1964
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1965
+ def get_project_location_dataset_consent_store_consent(name, fields: nil, quota_user: nil, options: nil, &block)
1966
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1967
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
1968
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
1969
+ command.params['name'] = name unless name.nil?
1970
+ command.query['fields'] = fields unless fields.nil?
1971
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1972
+ execute_or_queue_command(command, &block)
1973
+ end
1974
+
1975
+ # Lists the Consent in the given Consent store, returning each consent's latest
1976
+ # revision.
1977
+ # @param [String] parent
1978
+ # Required. Name of the Consent store to retrieve consents from.
1979
+ # @param [String] filter
1980
+ # Restricts the consents returned to those matching a filter. Syntax: https://
1981
+ # cloud.google.com/appengine/docs/standard/python/search/query_strings The
1982
+ # fields available for filtering are: - user_id - consent_artifact - state -
1983
+ # state_change_time
1984
+ # @param [Fixnum] page_size
1985
+ # Limit on the number of consents to return in a single response. If zero the
1986
+ # default page size of 100 is used.
1987
+ # @param [String] page_token
1988
+ # The next_page_token value returned from the previous List request, if any.
1989
+ # @param [String] fields
1990
+ # Selector specifying which fields to include in a partial response.
1991
+ # @param [String] quota_user
1992
+ # Available to use for quota purposes for server-side applications. Can be any
1993
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1994
+ # @param [Google::Apis::RequestOptions] options
1995
+ # Request-specific options
1996
+ #
1997
+ # @yield [result, err] Result & error if block supplied
1998
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentsResponse] parsed result object
1999
+ # @yieldparam err [StandardError] error object if request failed
2000
+ #
2001
+ # @return [Google::Apis::HealthcareV1beta1::ListConsentsResponse]
2002
+ #
2003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2006
+ def list_project_location_dataset_consent_store_consents(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2007
+ command = make_simple_command(:get, 'v1beta1/{+parent}/consents', options)
2008
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentsResponse::Representation
2009
+ command.response_class = Google::Apis::HealthcareV1beta1::ListConsentsResponse
2010
+ command.params['parent'] = parent unless parent.nil?
2011
+ command.query['filter'] = filter unless filter.nil?
2012
+ command.query['pageSize'] = page_size unless page_size.nil?
2013
+ command.query['pageToken'] = page_token unless page_token.nil?
2014
+ command.query['fields'] = fields unless fields.nil?
2015
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2016
+ execute_or_queue_command(command, &block)
2017
+ end
2018
+
2019
+ # Lists the revisions of the given Consent in reverse chronological order.
2020
+ # @param [String] name
2021
+ # Required. The resource name of the consent to retrieve revisions for.
2022
+ # @param [String] filter
2023
+ # Restricts the revisions returned to those matching a filter. Syntax: https://
2024
+ # cloud.google.com/appengine/docs/standard/python/search/query_strings. Fields/
2025
+ # functions available for filtering are: - user_id - consent_artifact - state -
2026
+ # revision_create_time
2027
+ # @param [Fixnum] page_size
2028
+ # Limit on the number of revisions to return in a single response. If zero the
2029
+ # default page size of 100 is used.
2030
+ # @param [String] page_token
2031
+ # Token to retrieve the next page of results or empty if there are no more
2032
+ # results in the list.
2033
+ # @param [String] fields
2034
+ # Selector specifying which fields to include in a partial response.
2035
+ # @param [String] quota_user
2036
+ # Available to use for quota purposes for server-side applications. Can be any
2037
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2038
+ # @param [Google::Apis::RequestOptions] options
2039
+ # Request-specific options
2040
+ #
2041
+ # @yield [result, err] Result & error if block supplied
2042
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse] parsed result object
2043
+ # @yieldparam err [StandardError] error object if request failed
2044
+ #
2045
+ # @return [Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse]
2046
+ #
2047
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2048
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2049
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2050
+ def list_project_location_dataset_consent_store_consent_revisions(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2051
+ command = make_simple_command(:get, 'v1beta1/{+name}:listRevisions', options)
2052
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse::Representation
2053
+ command.response_class = Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse
2054
+ command.params['name'] = name unless name.nil?
2055
+ command.query['filter'] = filter unless filter.nil?
2056
+ command.query['pageSize'] = page_size unless page_size.nil?
2057
+ command.query['pageToken'] = page_token unless page_token.nil?
2058
+ command.query['fields'] = fields unless fields.nil?
2059
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2060
+ execute_or_queue_command(command, &block)
2061
+ end
2062
+
2063
+ # Updates the latest revision of the specified Consent by committing a new
2064
+ # revision with the changes. A FAILED_PRECONDITION error occurs if the latest
2065
+ # revision of the given consent is in the `REJECTED` or `REVOKED` state.
2066
+ # @param [String] name
2067
+ # Resource name of the Consent, of the form `projects/`project_id`/locations/`
2068
+ # location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/consents/`
2069
+ # consent_id``.
2070
+ # @param [Google::Apis::HealthcareV1beta1::Consent] consent_object
2071
+ # @param [String] update_mask
2072
+ # The update mask to apply to the resource. For the `FieldMask` definition, see
2073
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
2074
+ # fieldmask. The `user_id`, `policies`, and `consent_artifact` fields can be
2075
+ # updated.
2076
+ # @param [String] fields
2077
+ # Selector specifying which fields to include in a partial response.
2078
+ # @param [String] quota_user
2079
+ # Available to use for quota purposes for server-side applications. Can be any
2080
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2081
+ # @param [Google::Apis::RequestOptions] options
2082
+ # Request-specific options
2083
+ #
2084
+ # @yield [result, err] Result & error if block supplied
2085
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
2086
+ # @yieldparam err [StandardError] error object if request failed
2087
+ #
2088
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
2089
+ #
2090
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2091
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2092
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2093
+ def patch_project_location_dataset_consent_store_consent(name, consent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2094
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2095
+ command.request_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
2096
+ command.request_object = consent_object
2097
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
2098
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
2099
+ command.params['name'] = name unless name.nil?
2100
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2101
+ command.query['fields'] = fields unless fields.nil?
2102
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2103
+ execute_or_queue_command(command, &block)
2104
+ end
2105
+
2106
+ # Rejects the latest revision of the specified Consent by committing a new
2107
+ # revision with `state` updated to `REJECTED`. If the latest revision of the
2108
+ # given consent is in the `REJECTED` state, no new revision is committed. A
2109
+ # FAILED_PRECONDITION error occurs if the latest revision of the given consent
2110
+ # is in the `ACTIVE` or `REVOKED` state.
2111
+ # @param [String] name
2112
+ # Required. The resource name of the consent to reject, of the form `projects/`
2113
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
2114
+ # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if `
2115
+ # revision_id` is specified in the name.
2116
+ # @param [Google::Apis::HealthcareV1beta1::RejectConsentRequest] reject_consent_request_object
2117
+ # @param [String] fields
2118
+ # Selector specifying which fields to include in a partial response.
2119
+ # @param [String] quota_user
2120
+ # Available to use for quota purposes for server-side applications. Can be any
2121
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2122
+ # @param [Google::Apis::RequestOptions] options
2123
+ # Request-specific options
2124
+ #
2125
+ # @yield [result, err] Result & error if block supplied
2126
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
2127
+ # @yieldparam err [StandardError] error object if request failed
2128
+ #
2129
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
2130
+ #
2131
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2132
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2133
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2134
+ def reject_consent(name, reject_consent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2135
+ command = make_simple_command(:post, 'v1beta1/{+name}:reject', options)
2136
+ command.request_representation = Google::Apis::HealthcareV1beta1::RejectConsentRequest::Representation
2137
+ command.request_object = reject_consent_request_object
2138
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
2139
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
2140
+ command.params['name'] = name unless name.nil?
2141
+ command.query['fields'] = fields unless fields.nil?
2142
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2143
+ execute_or_queue_command(command, &block)
2144
+ end
2145
+
2146
+ # Revokes the latest revision of the specified Consent by committing a new
2147
+ # revision with `state` updated to `REVOKED`. If the latest revision of the
2148
+ # given consent is in the `REVOKED` state, no new revision is committed. A
2149
+ # FAILED_PRECONDITION error occurs if the latest revision of the given consent
2150
+ # is in `DRAFT` or `REJECTED` state.
2151
+ # @param [String] name
2152
+ # Required. The resource name of the consent to revoke, of the form `projects/`
2153
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
2154
+ # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if `
2155
+ # revision_id` is specified in the name.
2156
+ # @param [Google::Apis::HealthcareV1beta1::RevokeConsentRequest] revoke_consent_request_object
2157
+ # @param [String] fields
2158
+ # Selector specifying which fields to include in a partial response.
2159
+ # @param [String] quota_user
2160
+ # Available to use for quota purposes for server-side applications. Can be any
2161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2162
+ # @param [Google::Apis::RequestOptions] options
2163
+ # Request-specific options
2164
+ #
2165
+ # @yield [result, err] Result & error if block supplied
2166
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
2167
+ # @yieldparam err [StandardError] error object if request failed
2168
+ #
2169
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
2170
+ #
2171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2174
+ def revoke_consent(name, revoke_consent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2175
+ command = make_simple_command(:post, 'v1beta1/{+name}:revoke', options)
2176
+ command.request_representation = Google::Apis::HealthcareV1beta1::RevokeConsentRequest::Representation
2177
+ command.request_object = revoke_consent_request_object
2178
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
2179
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
2180
+ command.params['name'] = name unless name.nil?
2181
+ command.query['fields'] = fields unless fields.nil?
2182
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2183
+ execute_or_queue_command(command, &block)
2184
+ end
2185
+
2186
+ # Archives the specified User data mapping.
2187
+ # @param [String] name
2188
+ # The resource name of the user data mapping to archive.
2189
+ # @param [Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingRequest] archive_user_data_mapping_request_object
2190
+ # @param [String] fields
2191
+ # Selector specifying which fields to include in a partial response.
2192
+ # @param [String] quota_user
2193
+ # Available to use for quota purposes for server-side applications. Can be any
2194
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2195
+ # @param [Google::Apis::RequestOptions] options
2196
+ # Request-specific options
2197
+ #
2198
+ # @yield [result, err] Result & error if block supplied
2199
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse] parsed result object
2200
+ # @yieldparam err [StandardError] error object if request failed
2201
+ #
2202
+ # @return [Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse]
2203
+ #
2204
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2205
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2206
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2207
+ def archive_user_data_mapping(name, archive_user_data_mapping_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2208
+ command = make_simple_command(:post, 'v1beta1/{+name}:archive', options)
2209
+ command.request_representation = Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingRequest::Representation
2210
+ command.request_object = archive_user_data_mapping_request_object
2211
+ command.response_representation = Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse::Representation
2212
+ command.response_class = Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse
2213
+ command.params['name'] = name unless name.nil?
2214
+ command.query['fields'] = fields unless fields.nil?
2215
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2216
+ execute_or_queue_command(command, &block)
2217
+ end
2218
+
2219
+ # Creates a new User data mapping in the parent Consent store.
2220
+ # @param [String] parent
2221
+ # Required. Name of the consent store.
2222
+ # @param [Google::Apis::HealthcareV1beta1::UserDataMapping] user_data_mapping_object
2223
+ # @param [String] fields
2224
+ # Selector specifying which fields to include in a partial response.
2225
+ # @param [String] quota_user
2226
+ # Available to use for quota purposes for server-side applications. Can be any
2227
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2228
+ # @param [Google::Apis::RequestOptions] options
2229
+ # Request-specific options
2230
+ #
2231
+ # @yield [result, err] Result & error if block supplied
2232
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::UserDataMapping] parsed result object
2233
+ # @yieldparam err [StandardError] error object if request failed
2234
+ #
2235
+ # @return [Google::Apis::HealthcareV1beta1::UserDataMapping]
2236
+ #
2237
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2238
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2239
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2240
+ def create_project_location_dataset_consent_store_user_data_mapping(parent, user_data_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2241
+ command = make_simple_command(:post, 'v1beta1/{+parent}/userDataMappings', options)
2242
+ command.request_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation
2243
+ command.request_object = user_data_mapping_object
2244
+ command.response_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation
2245
+ command.response_class = Google::Apis::HealthcareV1beta1::UserDataMapping
2246
+ command.params['parent'] = parent unless parent.nil?
2247
+ command.query['fields'] = fields unless fields.nil?
2248
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2249
+ execute_or_queue_command(command, &block)
2250
+ end
2251
+
2252
+ # Deletes the specified User data mapping.
2253
+ # @param [String] name
2254
+ # Required. The resource name of the user data mapping to delete.
2255
+ # @param [String] fields
2256
+ # Selector specifying which fields to include in a partial response.
2257
+ # @param [String] quota_user
2258
+ # Available to use for quota purposes for server-side applications. Can be any
2259
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2260
+ # @param [Google::Apis::RequestOptions] options
2261
+ # Request-specific options
2262
+ #
2263
+ # @yield [result, err] Result & error if block supplied
2264
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
2265
+ # @yieldparam err [StandardError] error object if request failed
2266
+ #
2267
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
2268
+ #
2269
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2270
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2271
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2272
+ def delete_project_location_dataset_consent_store_user_data_mapping(name, fields: nil, quota_user: nil, options: nil, &block)
2273
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2274
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
2275
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
2276
+ command.params['name'] = name unless name.nil?
2277
+ command.query['fields'] = fields unless fields.nil?
2278
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2279
+ execute_or_queue_command(command, &block)
2280
+ end
2281
+
2282
+ # Gets the specified User data mapping.
2283
+ # @param [String] name
2284
+ # Required. The resource name of the user data mapping to retrieve.
2285
+ # @param [String] fields
2286
+ # Selector specifying which fields to include in a partial response.
2287
+ # @param [String] quota_user
2288
+ # Available to use for quota purposes for server-side applications. Can be any
2289
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2290
+ # @param [Google::Apis::RequestOptions] options
2291
+ # Request-specific options
2292
+ #
2293
+ # @yield [result, err] Result & error if block supplied
2294
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::UserDataMapping] parsed result object
2295
+ # @yieldparam err [StandardError] error object if request failed
2296
+ #
2297
+ # @return [Google::Apis::HealthcareV1beta1::UserDataMapping]
2298
+ #
2299
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2300
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2301
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2302
+ def get_project_location_dataset_consent_store_user_data_mapping(name, fields: nil, quota_user: nil, options: nil, &block)
2303
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2304
+ command.response_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation
2305
+ command.response_class = Google::Apis::HealthcareV1beta1::UserDataMapping
2306
+ command.params['name'] = name unless name.nil?
2307
+ command.query['fields'] = fields unless fields.nil?
2308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2309
+ execute_or_queue_command(command, &block)
2310
+ end
2311
+
2312
+ # Lists the User data mappings in the given Consent store.
2313
+ # @param [String] parent
2314
+ # Required. Name of the Consent store to retrieve user data mappings from.
2315
+ # @param [String] filter
2316
+ # Restricts the user data mappings returned to those matching a filter. Syntax:
2317
+ # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
2318
+ # The fields available for filtering are: - data_id - user_id - archived -
2319
+ # archive_time
2320
+ # @param [Fixnum] page_size
2321
+ # Limit on the number of user data mappings to return in a single response. If
2322
+ # zero the default page size of 100 is used.
2323
+ # @param [String] page_token
2324
+ # Token to retrieve the next page of results or empty to get the first page.
2325
+ # @param [String] fields
2326
+ # Selector specifying which fields to include in a partial response.
2327
+ # @param [String] quota_user
2328
+ # Available to use for quota purposes for server-side applications. Can be any
2329
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2330
+ # @param [Google::Apis::RequestOptions] options
2331
+ # Request-specific options
2332
+ #
2333
+ # @yield [result, err] Result & error if block supplied
2334
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse] parsed result object
2335
+ # @yieldparam err [StandardError] error object if request failed
2336
+ #
2337
+ # @return [Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse]
2338
+ #
2339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2342
+ def list_project_location_dataset_consent_store_user_data_mappings(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2343
+ command = make_simple_command(:get, 'v1beta1/{+parent}/userDataMappings', options)
2344
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse::Representation
2345
+ command.response_class = Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse
2346
+ command.params['parent'] = parent unless parent.nil?
2347
+ command.query['filter'] = filter unless filter.nil?
2348
+ command.query['pageSize'] = page_size unless page_size.nil?
2349
+ command.query['pageToken'] = page_token unless page_token.nil?
2350
+ command.query['fields'] = fields unless fields.nil?
2351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2352
+ execute_or_queue_command(command, &block)
2353
+ end
2354
+
2355
+ # Updates the specified User data mapping.
2356
+ # @param [String] name
2357
+ # Resource name of the User data mapping, of the form `projects/`project_id`/
2358
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
2359
+ # userDataMappings/`user_data_mapping_id``.
2360
+ # @param [Google::Apis::HealthcareV1beta1::UserDataMapping] user_data_mapping_object
2361
+ # @param [String] update_mask
2362
+ # The update mask that applies to the resource. For the `FieldMask` definition,
2363
+ # see https://developers.google.com/protocol-buffers/docs/reference/google.
2364
+ # protobuf#fieldmask.
2365
+ # @param [String] fields
2366
+ # Selector specifying which fields to include in a partial response.
2367
+ # @param [String] quota_user
2368
+ # Available to use for quota purposes for server-side applications. Can be any
2369
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2370
+ # @param [Google::Apis::RequestOptions] options
2371
+ # Request-specific options
2372
+ #
2373
+ # @yield [result, err] Result & error if block supplied
2374
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::UserDataMapping] parsed result object
2375
+ # @yieldparam err [StandardError] error object if request failed
2376
+ #
2377
+ # @return [Google::Apis::HealthcareV1beta1::UserDataMapping]
2378
+ #
2379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2382
+ def patch_project_location_dataset_consent_store_user_data_mapping(name, user_data_mapping_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2383
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2384
+ command.request_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation
2385
+ command.request_object = user_data_mapping_object
2386
+ command.response_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation
2387
+ command.response_class = Google::Apis::HealthcareV1beta1::UserDataMapping
2388
+ command.params['name'] = name unless name.nil?
2389
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2390
+ command.query['fields'] = fields unless fields.nil?
2391
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2392
+ execute_or_queue_command(command, &block)
2393
+ end
2394
+
1169
2395
  # Creates a new DICOM store within the parent dataset.
1170
2396
  # @param [String] parent
1171
2397
  # The name of the dataset this DICOM store belongs to.