From d3b9abfbb2f5d7d2b40df24c802296217f67cbb1 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 23 Sep 2020 00:39:06 +0000 Subject: [PATCH] Autogenerated update (2020-09-23) Update: - apigee_v1 - calendar_v3 - cloudbuild_v1 - cloudidentity_v1 - cloudidentity_v1beta1 - dfareporting_v3_3 - dfareporting_v3_4 - dialogflow_v2 - dialogflow_v2beta1 - dialogflow_v3beta1 - dlp_v2 - gmail_v1 - healthcare_v1 - healthcare_v1beta1 - oslogin_v1alpha - realtimebidding_v1 - websecurityscanner_v1 - websecurityscanner_v1beta - youtube_v3 --- api_names_out.yaml | 376 +++++ generated/google/apis/apigee_v1.rb | 2 +- generated/google/apis/apigee_v1/classes.rb | 6 - .../google/apis/apigee_v1/representations.rb | 1 - generated/google/apis/apigee_v1/service.rb | 6 +- generated/google/apis/calendar_v3.rb | 2 +- generated/google/apis/calendar_v3/classes.rb | 3 +- generated/google/apis/cloudbuild_v1.rb | 2 +- .../google/apis/cloudbuild_v1/classes.rb | 34 - .../apis/cloudbuild_v1/representations.rb | 15 - .../google/apis/cloudbuild_v1/service.rb | 11 +- generated/google/apis/cloudidentity_v1.rb | 2 +- .../google/apis/cloudidentity_v1/classes.rb | 34 - .../apis/cloudidentity_v1/representations.rb | 17 - .../google/apis/cloudidentity_v1beta1.rb | 2 +- .../apis/cloudidentity_v1beta1/classes.rb | 185 +++ .../cloudidentity_v1beta1/representations.rb | 94 ++ .../apis/cloudidentity_v1beta1/service.rb | 164 +++ generated/google/apis/dfareporting_v3_3.rb | 2 +- .../google/apis/dfareporting_v3_3/classes.rb | 164 --- .../apis/dfareporting_v3_3/representations.rb | 42 - generated/google/apis/dfareporting_v3_4.rb | 2 +- .../google/apis/dfareporting_v3_4/classes.rb | 164 --- .../apis/dfareporting_v3_4/representations.rb | 42 - generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 73 + .../apis/dialogflow_v2/representations.rb | 51 + generated/google/apis/dialogflow_v2beta1.rb | 2 +- .../google/apis/dialogflow_v2beta1/classes.rb | 73 + .../dialogflow_v2beta1/representations.rb | 51 + .../google/apis/dialogflow_v2beta1/service.rb | 12 +- generated/google/apis/dialogflow_v3beta1.rb | 2 +- .../google/apis/dialogflow_v3beta1/classes.rb | 142 ++ .../dialogflow_v3beta1/representations.rb | 83 ++ generated/google/apis/dlp_v2.rb | 2 +- generated/google/apis/dlp_v2/classes.rb | 26 + .../google/apis/dlp_v2/representations.rb | 16 + generated/google/apis/dlp_v2/service.rb | 656 ++++----- generated/google/apis/gmail_v1.rb | 2 +- generated/google/apis/gmail_v1/service.rb | 2 +- generated/google/apis/healthcare_v1.rb | 2 +- .../google/apis/healthcare_v1/classes.rb | 4 +- generated/google/apis/healthcare_v1beta1.rb | 2 +- .../google/apis/healthcare_v1beta1/classes.rb | 1000 +++++++++++++- .../healthcare_v1beta1/representations.rb | 453 ++++++ .../google/apis/healthcare_v1beta1/service.rb | 1226 +++++++++++++++++ generated/google/apis/oslogin_v1alpha.rb | 2 +- .../google/apis/oslogin_v1alpha/classes.rb | 4 +- .../google/apis/oslogin_v1alpha/service.rb | 26 +- generated/google/apis/realtimebidding_v1.rb | 2 +- .../google/apis/realtimebidding_v1/classes.rb | 8 +- .../google/apis/realtimebidding_v1/service.rb | 5 +- .../google/apis/smartdevicemanagement_v1.rb | 35 + .../apis/smartdevicemanagement_v1/classes.rb | 313 +++++ .../representations.rb | 174 +++ .../apis/smartdevicemanagement_v1/service.rb | 312 +++++ .../google/apis/websecurityscanner_v1.rb | 2 +- .../google/apis/websecurityscanner_v1beta.rb | 2 +- generated/google/apis/youtube_v3.rb | 2 +- generated/google/apis/youtube_v3/service.rb | 4 +- 60 files changed, 5238 insertions(+), 907 deletions(-) create mode 100644 generated/google/apis/smartdevicemanagement_v1.rb create mode 100644 generated/google/apis/smartdevicemanagement_v1/classes.rb create mode 100644 generated/google/apis/smartdevicemanagement_v1/representations.rb create mode 100644 generated/google/apis/smartdevicemanagement_v1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index 065c33c45..7fbab7c11 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -20758,6 +20758,7 @@ "/cloudbuild:v1/cloudbuild.projects.locations.builds.cancel/name": name "/cloudbuild:v1/cloudbuild.projects.locations.builds.create": create_build "/cloudbuild:v1/cloudbuild.projects.locations.builds.create/parent": parent +"/cloudbuild:v1/cloudbuild.projects.locations.builds.create/projectId": project_id "/cloudbuild:v1/cloudbuild.projects.locations.builds.get": get_project_location_build "/cloudbuild:v1/cloudbuild.projects.locations.builds.get/id": id "/cloudbuild:v1/cloudbuild.projects.locations.builds.get/name": name @@ -22204,6 +22205,8 @@ "/cloudidentity:v1beta1/CancelWipeDeviceUserRequest/customer": customer "/cloudidentity:v1beta1/CancelWipeDeviceUserResponse": cancel_wipe_device_user_response "/cloudidentity:v1beta1/CancelWipeDeviceUserResponse/deviceUser": device_user +"/cloudidentity:v1beta1/CheckTransitiveMembershipResponse": check_transitive_membership_response +"/cloudidentity:v1beta1/CheckTransitiveMembershipResponse/hasMembership": has_membership "/cloudidentity:v1beta1/ClientState": client_state "/cloudidentity:v1beta1/ClientState/assetTags": asset_tags "/cloudidentity:v1beta1/ClientState/assetTags/asset_tag": asset_tag @@ -22387,6 +22390,15 @@ "/cloudidentity:v1beta1/Group/name": name "/cloudidentity:v1beta1/Group/parent": parent "/cloudidentity:v1beta1/Group/updateTime": update_time +"/cloudidentity:v1beta1/GroupRelation": group_relation +"/cloudidentity:v1beta1/GroupRelation/displayName": display_name +"/cloudidentity:v1beta1/GroupRelation/group": group +"/cloudidentity:v1beta1/GroupRelation/groupKey": group_key +"/cloudidentity:v1beta1/GroupRelation/labels": labels +"/cloudidentity:v1beta1/GroupRelation/labels/label": label +"/cloudidentity:v1beta1/GroupRelation/relationType": relation_type +"/cloudidentity:v1beta1/GroupRelation/roles": roles +"/cloudidentity:v1beta1/GroupRelation/roles/role": role "/cloudidentity:v1beta1/ListClientStatesResponse": list_client_states_response "/cloudidentity:v1beta1/ListClientStatesResponse/clientStates": client_states "/cloudidentity:v1beta1/ListClientStatesResponse/clientStates/client_state": client_state @@ -22420,6 +22432,13 @@ "/cloudidentity:v1beta1/LookupSelfDeviceUsersResponse/names": names "/cloudidentity:v1beta1/LookupSelfDeviceUsersResponse/names/name": name "/cloudidentity:v1beta1/LookupSelfDeviceUsersResponse/nextPageToken": next_page_token +"/cloudidentity:v1beta1/MemberRelation": member_relation +"/cloudidentity:v1beta1/MemberRelation/member": member +"/cloudidentity:v1beta1/MemberRelation/preferredMemberKey": preferred_member_key +"/cloudidentity:v1beta1/MemberRelation/preferredMemberKey/preferred_member_key": preferred_member_key +"/cloudidentity:v1beta1/MemberRelation/relationType": relation_type +"/cloudidentity:v1beta1/MemberRelation/roles": roles +"/cloudidentity:v1beta1/MemberRelation/roles/role": role "/cloudidentity:v1beta1/Membership": membership "/cloudidentity:v1beta1/Membership/createTime": create_time "/cloudidentity:v1beta1/Membership/memberKey": member_key @@ -22457,12 +22476,22 @@ "/cloudidentity:v1beta1/SearchGroupsResponse/groups": groups "/cloudidentity:v1beta1/SearchGroupsResponse/groups/group": group "/cloudidentity:v1beta1/SearchGroupsResponse/nextPageToken": next_page_token +"/cloudidentity:v1beta1/SearchTransitiveGroupsResponse": search_transitive_groups_response +"/cloudidentity:v1beta1/SearchTransitiveGroupsResponse/memberships": memberships +"/cloudidentity:v1beta1/SearchTransitiveGroupsResponse/memberships/membership": membership +"/cloudidentity:v1beta1/SearchTransitiveGroupsResponse/nextPageToken": next_page_token +"/cloudidentity:v1beta1/SearchTransitiveMembershipsResponse": search_transitive_memberships_response +"/cloudidentity:v1beta1/SearchTransitiveMembershipsResponse/memberships": memberships +"/cloudidentity:v1beta1/SearchTransitiveMembershipsResponse/memberships/membership": membership +"/cloudidentity:v1beta1/SearchTransitiveMembershipsResponse/nextPageToken": next_page_token "/cloudidentity:v1beta1/Status": status "/cloudidentity:v1beta1/Status/code": code "/cloudidentity:v1beta1/Status/details": details "/cloudidentity:v1beta1/Status/details/detail": detail "/cloudidentity:v1beta1/Status/details/detail/detail": detail "/cloudidentity:v1beta1/Status/message": message +"/cloudidentity:v1beta1/TransitiveMembershipRole": transitive_membership_role +"/cloudidentity:v1beta1/TransitiveMembershipRole/role": role "/cloudidentity:v1beta1/UpdateMembershipRolesParams": update_membership_roles_params "/cloudidentity:v1beta1/UpdateMembershipRolesParams/fieldMask": field_mask "/cloudidentity:v1beta1/UpdateMembershipRolesParams/membershipRole": membership_role @@ -22541,12 +22570,18 @@ "/cloudidentity:v1beta1/cloudidentity.groups.lookup": lookup_group "/cloudidentity:v1beta1/cloudidentity.groups.lookup/groupKey.id": group_key_id "/cloudidentity:v1beta1/cloudidentity.groups.lookup/groupKey.namespace": group_key_namespace +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.checkTransitiveMembership": check_group_membership_transitive_membership +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.checkTransitiveMembership/parent": parent +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.checkTransitiveMembership/query": query "/cloudidentity:v1beta1/cloudidentity.groups.memberships.create": create_group_membership "/cloudidentity:v1beta1/cloudidentity.groups.memberships.create/parent": parent "/cloudidentity:v1beta1/cloudidentity.groups.memberships.delete": delete_group_membership "/cloudidentity:v1beta1/cloudidentity.groups.memberships.delete/name": name "/cloudidentity:v1beta1/cloudidentity.groups.memberships.get": get_group_membership "/cloudidentity:v1beta1/cloudidentity.groups.memberships.get/name": name +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.getMembershipGraph": get_group_membership_membership_graph +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.getMembershipGraph/parent": parent +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.getMembershipGraph/query": query "/cloudidentity:v1beta1/cloudidentity.groups.memberships.list": list_group_memberships "/cloudidentity:v1beta1/cloudidentity.groups.memberships.list/pageSize": page_size "/cloudidentity:v1beta1/cloudidentity.groups.memberships.list/pageToken": page_token @@ -22558,6 +22593,15 @@ "/cloudidentity:v1beta1/cloudidentity.groups.memberships.lookup/parent": parent "/cloudidentity:v1beta1/cloudidentity.groups.memberships.modifyMembershipRoles": modify_membership_roles "/cloudidentity:v1beta1/cloudidentity.groups.memberships.modifyMembershipRoles/name": name +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.searchTransitiveGroups": search_group_membership_transitive_groups +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.searchTransitiveGroups/pageSize": page_size +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.searchTransitiveGroups/pageToken": page_token +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.searchTransitiveGroups/parent": parent +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.searchTransitiveGroups/query": query +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.searchTransitiveMemberships": search_group_membership_transitive_memberships +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.searchTransitiveMemberships/pageSize": page_size +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.searchTransitiveMemberships/pageToken": page_token +"/cloudidentity:v1beta1/cloudidentity.groups.memberships.searchTransitiveMemberships/parent": parent "/cloudidentity:v1beta1/cloudidentity.groups.patch": patch_group "/cloudidentity:v1beta1/cloudidentity.groups.patch/name": name "/cloudidentity:v1beta1/cloudidentity.groups.patch/updateMask": update_mask @@ -83632,8 +83676,16 @@ "/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportAgentResponse": google_cloud_dialogflow_v3alpha1_export_agent_response "/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentContent": agent_content "/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentUri": agent_uri +"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata": google_cloud_dialogflow_v3alpha1_export_test_cases_metadata +"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportTestCasesResponse": google_cloud_dialogflow_v3alpha1_export_test_cases_response +"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportTestCasesResponse/content": content +"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportTestCasesResponse/gcsUri": gcs_uri "/dialogflow:v2/GoogleCloudDialogflowV3alpha1ImportAgentResponse": google_cloud_dialogflow_v3alpha1_import_agent_response "/dialogflow:v2/GoogleCloudDialogflowV3alpha1ImportAgentResponse/agent": agent +"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata": google_cloud_dialogflow_v3alpha1_import_test_cases_metadata +"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ImportTestCasesResponse": google_cloud_dialogflow_v3alpha1_import_test_cases_response +"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ImportTestCasesResponse/names": names +"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ImportTestCasesResponse/names/name": name "/dialogflow:v2/GoogleLongrunningListOperationsResponse": google_longrunning_list_operations_response "/dialogflow:v2/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token "/dialogflow:v2/GoogleLongrunningListOperationsResponse/operations": operations @@ -85047,8 +85099,16 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse": google_cloud_dialogflow_v3alpha1_export_agent_response "/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentContent": agent_content "/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentUri": agent_uri +"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata": google_cloud_dialogflow_v3alpha1_export_test_cases_metadata +"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportTestCasesResponse": google_cloud_dialogflow_v3alpha1_export_test_cases_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportTestCasesResponse/content": content +"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportTestCasesResponse/gcsUri": gcs_uri "/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ImportAgentResponse": google_cloud_dialogflow_v3alpha1_import_agent_response "/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ImportAgentResponse/agent": agent +"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata": google_cloud_dialogflow_v3alpha1_import_test_cases_metadata +"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ImportTestCasesResponse": google_cloud_dialogflow_v3alpha1_import_test_cases_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ImportTestCasesResponse/names": names +"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ImportTestCasesResponse/names/name": name "/dialogflow:v2beta1/GoogleLongrunningListOperationsResponse": google_longrunning_list_operations_response "/dialogflow:v2beta1/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token "/dialogflow:v2beta1/GoogleLongrunningListOperationsResponse/operations": operations @@ -85887,6 +85947,8 @@ "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1EventHandler/targetFlow": target_flow "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1EventHandler/targetPage": target_page "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1EventHandler/triggerFulfillment": trigger_fulfillment +"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1EventInput": google_cloud_dialogflow_cx_v3beta1_event_input +"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1EventInput/event": event "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1ExportAgentRequest": google_cloud_dialogflow_cx_v3beta1_export_agent_request "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1ExportAgentRequest/agentUri": agent_uri "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1ExportAgentResponse": google_cloud_dialogflow_cx_v3beta1_export_agent_response @@ -86079,10 +86141,12 @@ "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo/value": value "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryInput": google_cloud_dialogflow_cx_v3beta1_query_input "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryInput/audio": audio +"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryInput/event": event "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryInput/intent": intent "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryInput/languageCode": language_code "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryInput/text": text "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryParameters": google_cloud_dialogflow_cx_v3beta1_query_parameters +"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryParameters/analyzeQueryTextSentiment": analyze_query_text_sentiment "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryParameters/geoLocation": geo_location "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryParameters/parameters": parameters "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryParameters/parameters/parameter": parameter @@ -86103,6 +86167,7 @@ "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryResult/parameters/parameter": parameter "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryResult/responseMessages": response_messages "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryResult/responseMessages/response_message": response_message +"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryResult/sentimentAnalysisResult": sentiment_analysis_result "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryResult/text": text "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryResult/transcript": transcript "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1QueryResult/triggerEvent": trigger_event @@ -86154,6 +86219,9 @@ "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1RestoreAgentRequest": google_cloud_dialogflow_cx_v3beta1_restore_agent_request "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1RestoreAgentRequest/agentContent": agent_content "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1RestoreAgentRequest/agentUri": agent_uri +"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult": google_cloud_dialogflow_cx_v3beta1_sentiment_analysis_result +"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult/magnitude": magnitude +"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult/score": score "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1SessionEntityType": google_cloud_dialogflow_cx_v3beta1_session_entity_type "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1SessionEntityType/entities": entities "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1SessionEntityType/entities/entity": entity @@ -86873,8 +86941,16 @@ "/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse": google_cloud_dialogflow_v3alpha1_export_agent_response "/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentContent": agent_content "/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentUri": agent_uri +"/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata": google_cloud_dialogflow_v3alpha1_export_test_cases_metadata +"/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ExportTestCasesResponse": google_cloud_dialogflow_v3alpha1_export_test_cases_response +"/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ExportTestCasesResponse/content": content +"/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ExportTestCasesResponse/gcsUri": gcs_uri "/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ImportAgentResponse": google_cloud_dialogflow_v3alpha1_import_agent_response "/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ImportAgentResponse/agent": agent +"/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata": google_cloud_dialogflow_v3alpha1_import_test_cases_metadata +"/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ImportTestCasesResponse": google_cloud_dialogflow_v3alpha1_import_test_cases_response +"/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ImportTestCasesResponse/names": names +"/dialogflow:v3beta1/GoogleCloudDialogflowV3alpha1ImportTestCasesResponse/names/name": name "/dialogflow:v3beta1/GoogleLongrunningListOperationsResponse": google_longrunning_list_operations_response "/dialogflow:v3beta1/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token "/dialogflow:v3beta1/GoogleLongrunningListOperationsResponse/operations": operations @@ -88881,6 +88957,7 @@ "/dlp:v2/GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails/kMapEstimationResult": k_map_estimation_result "/dlp:v2/GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails/lDiversityResult": l_diversity_result "/dlp:v2/GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails/numericalStatsResult": numerical_stats_result +"/dlp:v2/GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails/requestedOptions": requested_options "/dlp:v2/GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails/requestedPrivacyMetric": requested_privacy_metric "/dlp:v2/GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails/requestedSourceTable": requested_source_table "/dlp:v2/GooglePrivacyDlpV2AuxiliaryTable": google_privacy_dlp_v2_auxiliary_table @@ -89509,6 +89586,8 @@ "/dlp:v2/GooglePrivacyDlpV2RequestedOptions": google_privacy_dlp_v2_requested_options "/dlp:v2/GooglePrivacyDlpV2RequestedOptions/jobConfig": job_config "/dlp:v2/GooglePrivacyDlpV2RequestedOptions/snapshotInspectTemplate": snapshot_inspect_template +"/dlp:v2/GooglePrivacyDlpV2RequestedRiskAnalysisOptions": google_privacy_dlp_v2_requested_risk_analysis_options +"/dlp:v2/GooglePrivacyDlpV2RequestedRiskAnalysisOptions/jobConfig": job_config "/dlp:v2/GooglePrivacyDlpV2Result": google_privacy_dlp_v2_result "/dlp:v2/GooglePrivacyDlpV2Result/hybridStats": hybrid_stats "/dlp:v2/GooglePrivacyDlpV2Result/infoTypeStats": info_type_stats @@ -104557,6 +104636,10 @@ "/healthcare:v1alpha2/healthcare.projects.locations.list/pageToken": page_token "/healthcare:v1alpha2/key": key "/healthcare:v1alpha2/quotaUser": quota_user +"/healthcare:v1beta1/ActivateConsentRequest": activate_consent_request +"/healthcare:v1beta1/ActivateConsentRequest/consentArtifact": consent_artifact +"/healthcare:v1beta1/ActivateConsentRequest/expireTime": expire_time +"/healthcare:v1beta1/ActivateConsentRequest/ttl": ttl "/healthcare:v1beta1/Annotation": annotation "/healthcare:v1beta1/Annotation/annotationSource": annotation_source "/healthcare:v1beta1/Annotation/customData": custom_data @@ -104574,6 +104657,21 @@ "/healthcare:v1beta1/AnnotationStore/labels": labels "/healthcare:v1beta1/AnnotationStore/labels/label": label "/healthcare:v1beta1/AnnotationStore/name": name +"/healthcare:v1beta1/ArchiveUserDataMappingRequest": archive_user_data_mapping_request +"/healthcare:v1beta1/ArchiveUserDataMappingResponse": archive_user_data_mapping_response +"/healthcare:v1beta1/Attribute": attribute +"/healthcare:v1beta1/Attribute/attributeDefinitionId": attribute_definition_id +"/healthcare:v1beta1/Attribute/values": values +"/healthcare:v1beta1/Attribute/values/value": value +"/healthcare:v1beta1/AttributeDefinition": attribute_definition +"/healthcare:v1beta1/AttributeDefinition/allowedValues": allowed_values +"/healthcare:v1beta1/AttributeDefinition/allowedValues/allowed_value": allowed_value +"/healthcare:v1beta1/AttributeDefinition/category": category +"/healthcare:v1beta1/AttributeDefinition/consentDefaultValues": consent_default_values +"/healthcare:v1beta1/AttributeDefinition/consentDefaultValues/consent_default_value": consent_default_value +"/healthcare:v1beta1/AttributeDefinition/dataMappingDefaultValue": data_mapping_default_value +"/healthcare:v1beta1/AttributeDefinition/description": description +"/healthcare:v1beta1/AttributeDefinition/name": name "/healthcare:v1beta1/AuditConfig": audit_config "/healthcare:v1beta1/AuditConfig/auditLogConfigs": audit_log_configs "/healthcare:v1beta1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config @@ -104594,8 +104692,51 @@ "/healthcare:v1beta1/CancelOperationRequest": cancel_operation_request "/healthcare:v1beta1/CharacterMaskConfig": character_mask_config "/healthcare:v1beta1/CharacterMaskConfig/maskingCharacter": masking_character +"/healthcare:v1beta1/CheckDataAccessRequest": check_data_access_request +"/healthcare:v1beta1/CheckDataAccessRequest/consentList": consent_list +"/healthcare:v1beta1/CheckDataAccessRequest/dataId": data_id +"/healthcare:v1beta1/CheckDataAccessRequest/requestAttributes": request_attributes +"/healthcare:v1beta1/CheckDataAccessRequest/requestAttributes/request_attribute": request_attribute +"/healthcare:v1beta1/CheckDataAccessRequest/responseView": response_view +"/healthcare:v1beta1/CheckDataAccessResponse": check_data_access_response +"/healthcare:v1beta1/CheckDataAccessResponse/consentDetails": consent_details +"/healthcare:v1beta1/CheckDataAccessResponse/consentDetails/consent_detail": consent_detail +"/healthcare:v1beta1/CheckDataAccessResponse/consented": consented "/healthcare:v1beta1/CloudHealthcareSource": cloud_healthcare_source "/healthcare:v1beta1/CloudHealthcareSource/name": name +"/healthcare:v1beta1/Consent": consent +"/healthcare:v1beta1/Consent/consentArtifact": consent_artifact +"/healthcare:v1beta1/Consent/expireTime": expire_time +"/healthcare:v1beta1/Consent/name": name +"/healthcare:v1beta1/Consent/policies": policies +"/healthcare:v1beta1/Consent/policies/policy": policy +"/healthcare:v1beta1/Consent/revisionCreateTime": revision_create_time +"/healthcare:v1beta1/Consent/revisionId": revision_id +"/healthcare:v1beta1/Consent/state": state +"/healthcare:v1beta1/Consent/ttl": ttl +"/healthcare:v1beta1/Consent/userId": user_id +"/healthcare:v1beta1/ConsentArtifact": consent_artifact +"/healthcare:v1beta1/ConsentArtifact/consentContentScreenshots": consent_content_screenshots +"/healthcare:v1beta1/ConsentArtifact/consentContentScreenshots/consent_content_screenshot": consent_content_screenshot +"/healthcare:v1beta1/ConsentArtifact/consentContentVersion": consent_content_version +"/healthcare:v1beta1/ConsentArtifact/guardianSignature": guardian_signature +"/healthcare:v1beta1/ConsentArtifact/metadata": metadata +"/healthcare:v1beta1/ConsentArtifact/metadata/metadatum": metadatum +"/healthcare:v1beta1/ConsentArtifact/name": name +"/healthcare:v1beta1/ConsentArtifact/userId": user_id +"/healthcare:v1beta1/ConsentArtifact/userSignature": user_signature +"/healthcare:v1beta1/ConsentArtifact/witnessSignature": witness_signature +"/healthcare:v1beta1/ConsentEvaluation": consent_evaluation +"/healthcare:v1beta1/ConsentEvaluation/evaluationResult": evaluation_result +"/healthcare:v1beta1/ConsentList": consent_list +"/healthcare:v1beta1/ConsentList/consents": consents +"/healthcare:v1beta1/ConsentList/consents/consent": consent +"/healthcare:v1beta1/ConsentStore": consent_store +"/healthcare:v1beta1/ConsentStore/defaultConsentTtl": default_consent_ttl +"/healthcare:v1beta1/ConsentStore/enableConsentCreateOnUpdate": enable_consent_create_on_update +"/healthcare:v1beta1/ConsentStore/labels": labels +"/healthcare:v1beta1/ConsentStore/labels/label": label +"/healthcare:v1beta1/ConsentStore/name": name "/healthcare:v1beta1/CreateMessageRequest": create_message_request "/healthcare:v1beta1/CreateMessageRequest/message": message "/healthcare:v1beta1/CryptoHashConfig": crypto_hash_config @@ -104666,6 +104807,20 @@ "/healthcare:v1beta1/EvaluateAnnotationStoreResponse/goldenCount": golden_count "/healthcare:v1beta1/EvaluateAnnotationStoreResponse/goldenStore": golden_store "/healthcare:v1beta1/EvaluateAnnotationStoreResponse/matchedCount": matched_count +"/healthcare:v1beta1/EvaluateUserConsentsRequest": evaluate_user_consents_request +"/healthcare:v1beta1/EvaluateUserConsentsRequest/consentList": consent_list +"/healthcare:v1beta1/EvaluateUserConsentsRequest/pageSize": page_size +"/healthcare:v1beta1/EvaluateUserConsentsRequest/pageToken": page_token +"/healthcare:v1beta1/EvaluateUserConsentsRequest/requestAttributes": request_attributes +"/healthcare:v1beta1/EvaluateUserConsentsRequest/requestAttributes/request_attribute": request_attribute +"/healthcare:v1beta1/EvaluateUserConsentsRequest/resourceAttributes": resource_attributes +"/healthcare:v1beta1/EvaluateUserConsentsRequest/resourceAttributes/resource_attribute": resource_attribute +"/healthcare:v1beta1/EvaluateUserConsentsRequest/responseView": response_view +"/healthcare:v1beta1/EvaluateUserConsentsRequest/userId": user_id +"/healthcare:v1beta1/EvaluateUserConsentsResponse": evaluate_user_consents_response +"/healthcare:v1beta1/EvaluateUserConsentsResponse/nextPageToken": next_page_token +"/healthcare:v1beta1/EvaluateUserConsentsResponse/results": results +"/healthcare:v1beta1/EvaluateUserConsentsResponse/results/result": result "/healthcare:v1beta1/ExportAnnotationsErrorDetails": export_annotations_error_details "/healthcare:v1beta1/ExportAnnotationsErrorDetails/annotationStore": annotation_store "/healthcare:v1beta1/ExportAnnotationsErrorDetails/errorCount": error_count @@ -104735,6 +104890,12 @@ "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationGcsDestination/uriPrefix": uri_prefix "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationGcsSource": google_cloud_healthcare_v1beta1_annotation_gcs_source "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationGcsSource/uri": uri +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1ConsentGcsDestination": google_cloud_healthcare_v1beta1_consent_gcs_destination +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1ConsentGcsDestination/uriPrefix": uri_prefix +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1ConsentPolicy": google_cloud_healthcare_v1beta1_consent_policy +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1ConsentPolicy/authorizationRule": authorization_rule +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1ConsentPolicy/resourceAttributes": resource_attributes +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1ConsentPolicy/resourceAttributes/resource_attribute": resource_attribute "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary": google_cloud_healthcare_v1beta1_deidentify_deidentify_dicom_store_summary "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary/failureResourceCount": failure_resource_count "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary/successResourceCount": success_resource_count @@ -104805,6 +104966,9 @@ "/healthcare:v1beta1/HttpBody/extensions": extensions "/healthcare:v1beta1/HttpBody/extensions/extension": extension "/healthcare:v1beta1/HttpBody/extensions/extension/extension": extension +"/healthcare:v1beta1/Image": image +"/healthcare:v1beta1/Image/gcsUri": gcs_uri +"/healthcare:v1beta1/Image/rawBytes": raw_bytes "/healthcare:v1beta1/ImageAnnotation": image_annotation "/healthcare:v1beta1/ImageAnnotation/boundingPolys": bounding_polys "/healthcare:v1beta1/ImageAnnotation/boundingPolys/bounding_poly": bounding_poly @@ -104858,6 +105022,26 @@ "/healthcare:v1beta1/ListAnnotationsResponse/annotations": annotations "/healthcare:v1beta1/ListAnnotationsResponse/annotations/annotation": annotation "/healthcare:v1beta1/ListAnnotationsResponse/nextPageToken": next_page_token +"/healthcare:v1beta1/ListAttributeDefinitionsResponse": list_attribute_definitions_response +"/healthcare:v1beta1/ListAttributeDefinitionsResponse/attributeDefinitions": attribute_definitions +"/healthcare:v1beta1/ListAttributeDefinitionsResponse/attributeDefinitions/attribute_definition": attribute_definition +"/healthcare:v1beta1/ListAttributeDefinitionsResponse/nextPageToken": next_page_token +"/healthcare:v1beta1/ListConsentArtifactsResponse": list_consent_artifacts_response +"/healthcare:v1beta1/ListConsentArtifactsResponse/consentArtifacts": consent_artifacts +"/healthcare:v1beta1/ListConsentArtifactsResponse/consentArtifacts/consent_artifact": consent_artifact +"/healthcare:v1beta1/ListConsentArtifactsResponse/nextPageToken": next_page_token +"/healthcare:v1beta1/ListConsentRevisionsResponse": list_consent_revisions_response +"/healthcare:v1beta1/ListConsentRevisionsResponse/consents": consents +"/healthcare:v1beta1/ListConsentRevisionsResponse/consents/consent": consent +"/healthcare:v1beta1/ListConsentRevisionsResponse/nextPageToken": next_page_token +"/healthcare:v1beta1/ListConsentStoresResponse": list_consent_stores_response +"/healthcare:v1beta1/ListConsentStoresResponse/consentStores": consent_stores +"/healthcare:v1beta1/ListConsentStoresResponse/consentStores/consent_store": consent_store +"/healthcare:v1beta1/ListConsentStoresResponse/nextPageToken": next_page_token +"/healthcare:v1beta1/ListConsentsResponse": list_consents_response +"/healthcare:v1beta1/ListConsentsResponse/consents": consents +"/healthcare:v1beta1/ListConsentsResponse/consents/consent": consent +"/healthcare:v1beta1/ListConsentsResponse/nextPageToken": next_page_token "/healthcare:v1beta1/ListDatasetsResponse": list_datasets_response "/healthcare:v1beta1/ListDatasetsResponse/datasets": datasets "/healthcare:v1beta1/ListDatasetsResponse/datasets/dataset": dataset @@ -104888,6 +105072,10 @@ "/healthcare:v1beta1/ListOperationsResponse/nextPageToken": next_page_token "/healthcare:v1beta1/ListOperationsResponse/operations": operations "/healthcare:v1beta1/ListOperationsResponse/operations/operation": operation +"/healthcare:v1beta1/ListUserDataMappingsResponse": list_user_data_mappings_response +"/healthcare:v1beta1/ListUserDataMappingsResponse/nextPageToken": next_page_token +"/healthcare:v1beta1/ListUserDataMappingsResponse/userDataMappings": user_data_mappings +"/healthcare:v1beta1/ListUserDataMappingsResponse/userDataMappings/user_data_mapping": user_data_mapping "/healthcare:v1beta1/Location": location "/healthcare:v1beta1/Location/displayName": display_name "/healthcare:v1beta1/Location/labels": labels @@ -104948,13 +105136,28 @@ "/healthcare:v1beta1/ProgressCounter/failure": failure "/healthcare:v1beta1/ProgressCounter/pending": pending "/healthcare:v1beta1/ProgressCounter/success": success +"/healthcare:v1beta1/QueryAccessibleDataRequest": query_accessible_data_request +"/healthcare:v1beta1/QueryAccessibleDataRequest/gcsDestination": gcs_destination +"/healthcare:v1beta1/QueryAccessibleDataRequest/requestAttributes": request_attributes +"/healthcare:v1beta1/QueryAccessibleDataRequest/requestAttributes/request_attribute": request_attribute +"/healthcare:v1beta1/QueryAccessibleDataRequest/resourceAttributes": resource_attributes +"/healthcare:v1beta1/QueryAccessibleDataRequest/resourceAttributes/resource_attribute": resource_attribute "/healthcare:v1beta1/RedactConfig": redact_config +"/healthcare:v1beta1/RejectConsentRequest": reject_consent_request +"/healthcare:v1beta1/RejectConsentRequest/consentArtifact": consent_artifact "/healthcare:v1beta1/ReplaceWithInfoTypeConfig": replace_with_info_type_config "/healthcare:v1beta1/ResourceAnnotation": resource_annotation "/healthcare:v1beta1/ResourceAnnotation/label": label "/healthcare:v1beta1/Resources": resources "/healthcare:v1beta1/Resources/resources": resources "/healthcare:v1beta1/Resources/resources/resource": resource +"/healthcare:v1beta1/Result": result +"/healthcare:v1beta1/Result/consentDetails": consent_details +"/healthcare:v1beta1/Result/consentDetails/consent_detail": consent_detail +"/healthcare:v1beta1/Result/consented": consented +"/healthcare:v1beta1/Result/dataId": data_id +"/healthcare:v1beta1/RevokeConsentRequest": revoke_consent_request +"/healthcare:v1beta1/RevokeConsentRequest/consentArtifact": consent_artifact "/healthcare:v1beta1/SchemaConfig": schema_config "/healthcare:v1beta1/SchemaConfig/recursiveStructureDepth": recursive_structure_depth "/healthcare:v1beta1/SchemaConfig/schemaType": schema_type @@ -104993,6 +105196,12 @@ "/healthcare:v1beta1/SetIamPolicyRequest": set_iam_policy_request "/healthcare:v1beta1/SetIamPolicyRequest/policy": policy "/healthcare:v1beta1/SetIamPolicyRequest/updateMask": update_mask +"/healthcare:v1beta1/Signature": signature +"/healthcare:v1beta1/Signature/image": image +"/healthcare:v1beta1/Signature/metadata": metadata +"/healthcare:v1beta1/Signature/metadata/metadatum": metadatum +"/healthcare:v1beta1/Signature/signatureTime": signature_time +"/healthcare:v1beta1/Signature/userId": user_id "/healthcare:v1beta1/Status": status "/healthcare:v1beta1/Status/code": code "/healthcare:v1beta1/Status/details": details @@ -105020,6 +105229,14 @@ "/healthcare:v1beta1/Type/fields/field": field "/healthcare:v1beta1/Type/name": name "/healthcare:v1beta1/Type/primitive": primitive +"/healthcare:v1beta1/UserDataMapping": user_data_mapping +"/healthcare:v1beta1/UserDataMapping/archiveTime": archive_time +"/healthcare:v1beta1/UserDataMapping/archived": archived +"/healthcare:v1beta1/UserDataMapping/dataId": data_id +"/healthcare:v1beta1/UserDataMapping/name": name +"/healthcare:v1beta1/UserDataMapping/resourceAttributes": resource_attributes +"/healthcare:v1beta1/UserDataMapping/resourceAttributes/resource_attribute": resource_attribute +"/healthcare:v1beta1/UserDataMapping/userId": user_id "/healthcare:v1beta1/VersionSource": version_source "/healthcare:v1beta1/VersionSource/mshField": msh_field "/healthcare:v1beta1/VersionSource/value": value @@ -105070,13 +105287,103 @@ "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.setIamPolicy/resource": resource "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.testIamPermissions": test_annotation_store_iam_permissions "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.testIamPermissions/resource": resource +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.create": create_project_location_dataset_consent_store_attribute_definition +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.create/attributeDefinitionId": attribute_definition_id +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.create/parent": parent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.delete": delete_project_location_dataset_consent_store_attribute_definition +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.delete/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.get": get_project_location_dataset_consent_store_attribute_definition +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.get/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.list": list_project_location_dataset_consent_store_attribute_definitions +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.list/filter": filter +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.list/pageSize": page_size +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.list/pageToken": page_token +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.list/parent": parent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.patch": patch_project_location_dataset_consent_store_attribute_definition +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.patch/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.attributeDefinitions.patch/updateMask": update_mask +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.checkDataAccess": check_consent_store_data_access +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.checkDataAccess/consentStore": consent_store +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.create": create_project_location_dataset_consent_store_consent_artifact +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.create/parent": parent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.delete": delete_project_location_dataset_consent_store_consent_artifact +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.delete/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.get": get_project_location_dataset_consent_store_consent_artifact +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.get/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.list": list_project_location_dataset_consent_store_consent_artifacts +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.list/filter": filter +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.list/pageSize": page_size +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.list/pageToken": page_token +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consentArtifacts.list/parent": parent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.activate": activate_consent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.activate/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.create": create_project_location_dataset_consent_store_consent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.create/parent": parent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.delete": delete_project_location_dataset_consent_store_consent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.delete/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.deleteRevision": delete_project_location_dataset_consent_store_consent_revision +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.deleteRevision/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.get": get_project_location_dataset_consent_store_consent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.get/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.list": list_project_location_dataset_consent_store_consents +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.list/filter": filter +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.list/pageSize": page_size +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.list/pageToken": page_token +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.list/parent": parent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.listRevisions": list_project_location_dataset_consent_store_consent_revisions +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.listRevisions/filter": filter +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.listRevisions/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.listRevisions/pageSize": page_size +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.listRevisions/pageToken": page_token +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.patch": patch_project_location_dataset_consent_store_consent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.patch/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.patch/updateMask": update_mask +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.reject": reject_consent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.reject/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.revoke": revoke_consent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.consents.revoke/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.create": create_project_location_dataset_consent_store +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.create/consentStoreId": consent_store_id +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.create/parent": parent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.delete": delete_project_location_dataset_consent_store +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.delete/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.evaluateUserConsents": evaluate_consent_store_user_consents +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.evaluateUserConsents/consentStore": consent_store +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.get": get_project_location_dataset_consent_store +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.get/name": name "/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.getIamPolicy": get_project_location_dataset_consent_store_iam_policy "/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version "/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.getIamPolicy/resource": resource +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.list": list_project_location_dataset_consent_stores +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.list/filter": filter +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.list/pageSize": page_size +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.list/pageToken": page_token +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.list/parent": parent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.patch": patch_project_location_dataset_consent_store +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.patch/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.patch/updateMask": update_mask +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.queryAccessibleData": query_consent_store_accessible_data +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.queryAccessibleData/consentStore": consent_store "/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.setIamPolicy": set_consent_store_iam_policy "/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.setIamPolicy/resource": resource "/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.testIamPermissions": test_consent_store_iam_permissions "/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.testIamPermissions/resource": resource +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.archive": archive_user_data_mapping +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.archive/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.create": create_project_location_dataset_consent_store_user_data_mapping +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.create/parent": parent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.delete": delete_project_location_dataset_consent_store_user_data_mapping +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.delete/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.get": get_project_location_dataset_consent_store_user_data_mapping +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.get/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.list": list_project_location_dataset_consent_store_user_data_mappings +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.list/filter": filter +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.list/pageSize": page_size +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.list/pageToken": page_token +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.list/parent": parent +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.patch": patch_project_location_dataset_consent_store_user_data_mapping +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.patch/name": name +"/healthcare:v1beta1/healthcare.projects.locations.datasets.consentStores.userDataMappings.patch/updateMask": update_mask "/healthcare:v1beta1/healthcare.projects.locations.datasets.create": create_project_location_dataset "/healthcare:v1beta1/healthcare.projects.locations.datasets.create/datasetId": dataset_id "/healthcare:v1beta1/healthcare.projects.locations.datasets.create/parent": parent @@ -133593,6 +133900,75 @@ "/slides:v1/slides.presentations.pages.getThumbnail/presentationId": presentation_id "/slides:v1/slides.presentations.pages.getThumbnail/thumbnailProperties.mimeType": thumbnail_properties_mime_type "/slides:v1/slides.presentations.pages.getThumbnail/thumbnailProperties.thumbnailSize": thumbnail_properties_thumbnail_size +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Device": google_home_enterprise_sdm_v1_device +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Device/assignee": assignee +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Device/name": name +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Device/parentRelations": parent_relations +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Device/parentRelations/parent_relation": parent_relation +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Device/traits": traits +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Device/traits/trait": trait +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Device/type": type +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest": google_home_enterprise_sdm_v1_execute_device_command_request +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest/command": command +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest/params": params +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest/params/param": param +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse": google_home_enterprise_sdm_v1_execute_device_command_response +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse/results": results +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse/results/result": result +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListDevicesResponse": google_home_enterprise_sdm_v1_list_devices_response +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListDevicesResponse/devices": devices +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListDevicesResponse/devices/device": device +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListDevicesResponse/nextPageToken": next_page_token +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListRoomsResponse": google_home_enterprise_sdm_v1_list_rooms_response +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListRoomsResponse/nextPageToken": next_page_token +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListRoomsResponse/rooms": rooms +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListRoomsResponse/rooms/room": room +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListStructuresResponse": google_home_enterprise_sdm_v1_list_structures_response +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListStructuresResponse/nextPageToken": next_page_token +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListStructuresResponse/structures": structures +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ListStructuresResponse/structures/structure": structure +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ParentRelation": google_home_enterprise_sdm_v1_parent_relation +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ParentRelation/displayName": display_name +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1ParentRelation/parent": parent +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Room": google_home_enterprise_sdm_v1_room +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Room/name": name +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Room/traits": traits +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Room/traits/trait": trait +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Structure": google_home_enterprise_sdm_v1_structure +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Structure/name": name +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Structure/parentRelations": parent_relations +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Structure/parentRelations/parent_relation": parent_relation +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Structure/traits": traits +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1Structure/traits/trait": trait +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1StructureParentRelation": google_home_enterprise_sdm_v1_structure_parent_relation +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1StructureParentRelation/displayName": display_name +"/smartdevicemanagement:v1/GoogleHomeEnterpriseSdmV1StructureParentRelation/parent": parent +"/smartdevicemanagement:v1/fields": fields +"/smartdevicemanagement:v1/key": key +"/smartdevicemanagement:v1/quotaUser": quota_user +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.devices.executeCommand": execute_enterprise_device_command +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.devices.executeCommand/name": name +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.devices.get": get_enterprise_device +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.devices.get/name": name +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.devices.list": list_enterprise_devices +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.devices.list/filter": filter +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.devices.list/pageSize": page_size +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.devices.list/pageToken": page_token +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.devices.list/parent": parent +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.devices.list/view": view +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.get": get_enterprise_structure +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.get/name": name +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.list": list_enterprise_structures +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.list/filter": filter +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.list/pageSize": page_size +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.list/pageToken": page_token +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.list/parent": parent +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.rooms.get": get_enterprise_structure_room +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.rooms.get/name": name +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.rooms.list": list_enterprise_structure_rooms +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.rooms.list/pageSize": page_size +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.rooms.list/pageToken": page_token +"/smartdevicemanagement:v1/smartdevicemanagement.enterprises.structures.rooms.list/parent": parent "/sourcerepo:v1/AuditConfig": audit_config "/sourcerepo:v1/AuditConfig/auditLogConfigs": audit_log_configs "/sourcerepo:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config diff --git a/generated/google/apis/apigee_v1.rb b/generated/google/apis/apigee_v1.rb index 4374b2f28..1a81e5ad8 100644 --- a/generated/google/apis/apigee_v1.rb +++ b/generated/google/apis/apigee_v1.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/apigee-api-management/ module ApigeeV1 VERSION = 'V1' - REVISION = '20200912' + REVISION = '20200921' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/apigee_v1/classes.rb b/generated/google/apis/apigee_v1/classes.rb index 3281ef74f..4109ba8dc 100644 --- a/generated/google/apis/apigee_v1/classes.rb +++ b/generated/google/apis/apigee_v1/classes.rb @@ -1612,11 +1612,6 @@ module Google # @return [String] attr_accessor :api_proxy - # Base path for the deployment. - # Corresponds to the JSON property `basePath` - # @return [String] - attr_accessor :base_path - # Time the API proxy was marked `deployed` in the control plane in millisconds # since epoch. # Corresponds to the JSON property `deployStartTime` @@ -1672,7 +1667,6 @@ module Google # Update properties of this object def update!(**args) @api_proxy = args[:api_proxy] if args.key?(:api_proxy) - @base_path = args[:base_path] if args.key?(:base_path) @deploy_start_time = args[:deploy_start_time] if args.key?(:deploy_start_time) @environment = args[:environment] if args.key?(:environment) @errors = args[:errors] if args.key?(:errors) diff --git a/generated/google/apis/apigee_v1/representations.rb b/generated/google/apis/apigee_v1/representations.rb index 75693ee8f..7e52ae741 100644 --- a/generated/google/apis/apigee_v1/representations.rb +++ b/generated/google/apis/apigee_v1/representations.rb @@ -1296,7 +1296,6 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :api_proxy, as: 'apiProxy' - property :base_path, as: 'basePath' property :deploy_start_time, :numeric_string => true, as: 'deployStartTime' property :environment, as: 'environment' collection :errors, as: 'errors', class: Google::Apis::ApigeeV1::GoogleRpcStatus, decorator: Google::Apis::ApigeeV1::GoogleRpcStatus::Representation diff --git a/generated/google/apis/apigee_v1/service.rb b/generated/google/apis/apigee_v1/service.rb index 4c6fd761c..398592905 100644 --- a/generated/google/apis/apigee_v1/service.rb +++ b/generated/google/apis/apigee_v1/service.rb @@ -3908,9 +3908,6 @@ module Google # @param [String] name # Name of the API proxy revision deployment in the following format: ` # organizations/`org`/environments/`env`/apis/`api`/revisions/`rev`` - # @param [String] basepath - # Base path where the API proxy revision should be deployed. Defaults to '/' if - # not provided. # @param [Boolean] override # Flag that specifies whether to force the deployment of the new revision over # the currently deployed revision by overriding conflict checks. @@ -3931,12 +3928,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def generate_organization_environment_api_revision_deployment_deploy_change_report(name, basepath: nil, override: nil, fields: nil, quota_user: nil, options: nil, &block) + def generate_organization_environment_api_revision_deployment_deploy_change_report(name, override: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}/deployments:generateDeployChangeReport', options) command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReport::Representation command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReport command.params['name'] = name unless name.nil? - command.query['basepath'] = basepath unless basepath.nil? command.query['override'] = override unless override.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 4257485a1..e9453a95e 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/calendar/firstapp module CalendarV3 VERSION = 'V3' - REVISION = '20200902' + REVISION = '20200917' # See, edit, share, and permanently delete all the calendars you can access using Google Calendar AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/calendar_v3/classes.rb b/generated/google/apis/calendar_v3/classes.rb index 20688ce77..d860e3dba 100644 --- a/generated/google/apis/calendar_v3/classes.rb +++ b/generated/google/apis/calendar_v3/classes.rb @@ -1044,7 +1044,8 @@ module Google attr_accessor :attachments # The attendees of the event. See the Events with attendees guide for more - # information on scheduling events with other calendar users. + # information on scheduling events with other calendar users. Service accounts + # need to use domain-wide delegation of authority to populate the attendee list. # Corresponds to the JSON property `attendees` # @return [Array] attr_accessor :attendees diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index bff5dc5d6..311a49c65 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20200910' + REVISION = '20200921' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index 83cb535ae..16f26b870 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -767,40 +767,6 @@ module Google end end - # Request to create a new build. - class CreateBuildRequest - include Google::Apis::Core::Hashable - - # A build resource in the Cloud Build API. At a high level, a `Build` describes - # where to find source code, how to build it (for example, the builder image to - # run on the source), and where to store the built artifacts. Fields can include - # the following variables, which will be expanded when the build is created: - $ - # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of - # the build. - $REPO_NAME: the source repository name specified by RepoSource. - - # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag - # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA - # specified by RepoSource or resolved from the specified branch or tag. - $ - # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. - # Corresponds to the JSON property `build` - # @return [Google::Apis::CloudbuildV1::Build] - attr_accessor :build - - # Required. ID of the project. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @build = args[:build] if args.key?(:build) - @project_id = args[:project_id] if args.key?(:project_id) - end - end - # A generic empty message that you can re-use to avoid defining duplicated empty # messages in your APIs. A typical example is to use it as the request or the # response type of an API method. For instance: service Foo ` rpc Bar(google. diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index 999fce6d7..c7f43f4d4 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -88,12 +88,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CreateBuildRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -425,15 +419,6 @@ module Google end end - class CreateBuildRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation - - property :project_id, as: 'projectId' - end - end - class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudbuild_v1/service.rb b/generated/google/apis/cloudbuild_v1/service.rb index 98d4bc918..6bb763853 100644 --- a/generated/google/apis/cloudbuild_v1/service.rb +++ b/generated/google/apis/cloudbuild_v1/service.rb @@ -367,7 +367,9 @@ module Google # @param [String] parent # The parent resource where this build will be created. Format: `projects/` # project`/locations/`location`` - # @param [Google::Apis::CloudbuildV1::CreateBuildRequest] create_build_request_object + # @param [Google::Apis::CloudbuildV1::Build] build_object + # @param [String] project_id + # Required. ID of the project. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -385,13 +387,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_build(parent, create_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_build(parent, build_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/builds', options) - command.request_representation = Google::Apis::CloudbuildV1::CreateBuildRequest::Representation - command.request_object = create_build_request_object + command.request_representation = Google::Apis::CloudbuildV1::Build::Representation + command.request_object = build_object command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation command.response_class = Google::Apis::CloudbuildV1::Operation command.params['parent'] = parent unless parent.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/cloudidentity_v1.rb b/generated/google/apis/cloudidentity_v1.rb index 24088f145..ac1988eca 100644 --- a/generated/google/apis/cloudidentity_v1.rb +++ b/generated/google/apis/cloudidentity_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1 VERSION = 'V1' - REVISION = '20200915' + REVISION = '20200919' # See your device details AUTH_CLOUD_IDENTITY_DEVICES_LOOKUP = 'https://www.googleapis.com/auth/cloud-identity.devices.lookup' diff --git a/generated/google/apis/cloudidentity_v1/classes.rb b/generated/google/apis/cloudidentity_v1/classes.rb index b563d6c45..cc57d4e4c 100644 --- a/generated/google/apis/cloudidentity_v1/classes.rb +++ b/generated/google/apis/cloudidentity_v1/classes.rb @@ -1139,13 +1139,6 @@ module Google # @return [Array] attr_accessor :remove_roles - # The `MembershipRole`s to be updated. Updating roles in the same request as - # adding or removing roles is not supported. Must not be set if either ` - # add_roles` or `remove_roles` is set. - # Corresponds to the JSON property `updateRolesParams` - # @return [Array] - attr_accessor :update_roles_params - def initialize(**args) update!(**args) end @@ -1154,7 +1147,6 @@ module Google def update!(**args) @add_roles = args[:add_roles] if args.key?(:add_roles) @remove_roles = args[:remove_roles] if args.key?(:remove_roles) - @update_roles_params = args[:update_roles_params] if args.key?(:update_roles_params) end end @@ -1303,32 +1295,6 @@ module Google @message = args[:message] if args.key?(:message) end end - - # The details of an update to a `MembershipRole`. - class UpdateMembershipRolesParams - include Google::Apis::Core::Hashable - - # The fully-qualified names of fields to update. May only contain the field ` - # expiry_detail`. - # Corresponds to the JSON property `fieldMask` - # @return [String] - attr_accessor :field_mask - - # Resource representing a role within a Membership. - # Corresponds to the JSON property `membershipRole` - # @return [Google::Apis::CloudidentityV1::MembershipRole] - attr_accessor :membership_role - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @field_mask = args[:field_mask] if args.key?(:field_mask) - @membership_role = args[:membership_role] if args.key?(:membership_role) - end - end end end end diff --git a/generated/google/apis/cloudidentity_v1/representations.rb b/generated/google/apis/cloudidentity_v1/representations.rb index 42e353d8d..a7cb854c1 100644 --- a/generated/google/apis/cloudidentity_v1/representations.rb +++ b/generated/google/apis/cloudidentity_v1/representations.rb @@ -226,12 +226,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class UpdateMembershipRolesParams - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class EntityKey # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -529,8 +523,6 @@ module Google collection :add_roles, as: 'addRoles', class: Google::Apis::CloudidentityV1::MembershipRole, decorator: Google::Apis::CloudidentityV1::MembershipRole::Representation collection :remove_roles, as: 'removeRoles' - collection :update_roles_params, as: 'updateRolesParams', class: Google::Apis::CloudidentityV1::UpdateMembershipRolesParams, decorator: Google::Apis::CloudidentityV1::UpdateMembershipRolesParams::Representation - end end @@ -571,15 +563,6 @@ module Google property :message, as: 'message' end end - - class UpdateMembershipRolesParams - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :field_mask, as: 'fieldMask' - property :membership_role, as: 'membershipRole', class: Google::Apis::CloudidentityV1::MembershipRole, decorator: Google::Apis::CloudidentityV1::MembershipRole::Representation - - end - end end end end diff --git a/generated/google/apis/cloudidentity_v1beta1.rb b/generated/google/apis/cloudidentity_v1beta1.rb index 375d610ad..0f44cad99 100644 --- a/generated/google/apis/cloudidentity_v1beta1.rb +++ b/generated/google/apis/cloudidentity_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1beta1 VERSION = 'V1beta1' - REVISION = '20200908' + REVISION = '20200919' # See your device details AUTH_CLOUD_IDENTITY_DEVICES_LOOKUP = 'https://www.googleapis.com/auth/cloud-identity.devices.lookup' diff --git a/generated/google/apis/cloudidentity_v1beta1/classes.rb b/generated/google/apis/cloudidentity_v1beta1/classes.rb index f87c4fec7..628ffc772 100644 --- a/generated/google/apis/cloudidentity_v1beta1/classes.rb +++ b/generated/google/apis/cloudidentity_v1beta1/classes.rb @@ -239,6 +239,29 @@ module Google end end + # The response message for MembershipsService.CheckTransitiveMembership. + class CheckTransitiveMembershipResponse + include Google::Apis::Core::Hashable + + # Response does not include the possible roles of a member since the behavior of + # this rpc is not all-or-nothing unlike the other rpcs. So, it may not be + # possible to list all the roles definitively, due to possible lack of + # authorization in some of the paths. + # Corresponds to the JSON property `hasMembership` + # @return [Boolean] + attr_accessor :has_membership + alias_method :has_membership?, :has_membership + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @has_membership = args[:has_membership] if args.key?(:has_membership) + end + end + # Represents the state associated with an API client calling the Devices API. # Resource representing ClientState and supports updates from API users class ClientState @@ -1494,6 +1517,58 @@ module Google end end + # Message representing a transitive group of a user or a group. + class GroupRelation + include Google::Apis::Core::Hashable + + # Display name for this group. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Resource name for this group. + # Corresponds to the JSON property `group` + # @return [String] + attr_accessor :group + + # A unique identifier for an entity in the Cloud Identity Groups API. An entity + # can represent either a group with an optional `namespace` or a user without a ` + # namespace`. The combination of `id` and `namespace` must be unique; however, + # the same `id` can be used with different `namespace`s. + # Corresponds to the JSON property `groupKey` + # @return [Google::Apis::CloudidentityV1beta1::EntityKey] + attr_accessor :group_key + + # Labels for Group resource. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The relation between the member and the transitive group. + # Corresponds to the JSON property `relationType` + # @return [String] + attr_accessor :relation_type + + # Membership roles of the member for the group. + # Corresponds to the JSON property `roles` + # @return [Array] + attr_accessor :roles + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @group = args[:group] if args.key?(:group) + @group_key = args[:group_key] if args.key?(:group_key) + @labels = args[:labels] if args.key?(:labels) + @relation_type = args[:relation_type] if args.key?(:relation_type) + @roles = args[:roles] if args.key?(:roles) + end + end + # Response message that is returned in LRO result of ListClientStates Operation. class ListClientStatesResponse include Google::Apis::Core::Hashable @@ -1698,6 +1773,44 @@ module Google end end + # Message representing a transitive membership of a group. + class MemberRelation + include Google::Apis::Core::Hashable + + # Resource name for this member if member is a GROUP, otherwise it is empty. + # Corresponds to the JSON property `member` + # @return [String] + attr_accessor :member + + # Entity key has an id and a namespace. In case of discussion forums, the id + # will be an email address without a namespace. + # Corresponds to the JSON property `preferredMemberKey` + # @return [Array] + attr_accessor :preferred_member_key + + # The relation between the group and the transitive member. + # Corresponds to the JSON property `relationType` + # @return [String] + attr_accessor :relation_type + + # The membership role details (i.e name of role and expiry time). + # Corresponds to the JSON property `roles` + # @return [Array] + attr_accessor :roles + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @member = args[:member] if args.key?(:member) + @preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key) + @relation_type = args[:relation_type] if args.key?(:relation_type) + @roles = args[:roles] if args.key?(:roles) + end + end + # A membership within the Cloud Identity Groups API. A `Membership` defines a # relationship between a `Group` and an entity belonging to that `Group`, # referred to as a "member". @@ -1964,6 +2077,58 @@ module Google end end + # The response message for MembershipsService.SearchTransitiveGroups. + class SearchTransitiveGroupsResponse + include Google::Apis::Core::Hashable + + # List of transitive groups satisfying the query. + # Corresponds to the JSON property `memberships` + # @return [Array] + attr_accessor :memberships + + # Token to retrieve the next page of results, or empty if there are no more + # results available for listing. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @memberships = args[:memberships] if args.key?(:memberships) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for MembershipsService.SearchTransitiveMemberships. + class SearchTransitiveMembershipsResponse + include Google::Apis::Core::Hashable + + # List of transitive members satisfying the query. + # Corresponds to the JSON property `memberships` + # @return [Array] + attr_accessor :memberships + + # Token to retrieve the next page of results, or empty if there are no more + # results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @memberships = args[:memberships] if args.key?(:memberships) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by [ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of @@ -2003,6 +2168,26 @@ module Google end end + # Message representing the role of a TransitiveMembership. + class TransitiveMembershipRole + include Google::Apis::Core::Hashable + + # TransitiveMembershipRole in string format. Currently supported + # TransitiveMembershipRoles: `"MEMBER"`, `"OWNER"`, and `"MANAGER"`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @role = args[:role] if args.key?(:role) + end + end + # The details of an update to a `MembershipRole`. class UpdateMembershipRolesParams include Google::Apis::Core::Hashable diff --git a/generated/google/apis/cloudidentity_v1beta1/representations.rb b/generated/google/apis/cloudidentity_v1beta1/representations.rb index 4c02fd2ef..7340bf1b0 100644 --- a/generated/google/apis/cloudidentity_v1beta1/representations.rb +++ b/generated/google/apis/cloudidentity_v1beta1/representations.rb @@ -76,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CheckTransitiveMembershipResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ClientState class Representation < Google::Apis::Core::JsonRepresentation; end @@ -214,6 +220,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GroupRelation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListClientStatesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -262,6 +274,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MemberRelation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Membership class Representation < Google::Apis::Core::JsonRepresentation; end @@ -304,12 +322,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SearchTransitiveGroupsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SearchTransitiveMembershipsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Status class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class TransitiveMembershipRole + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UpdateMembershipRolesParams class Representation < Google::Apis::Core::JsonRepresentation; end @@ -410,6 +446,13 @@ module Google end end + class CheckTransitiveMembershipResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :has_membership, as: 'hasMembership' + end + end + class ClientState # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -705,6 +748,20 @@ module Google end end + class GroupRelation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :group, as: 'group' + property :group_key, as: 'groupKey', class: Google::Apis::CloudidentityV1beta1::EntityKey, decorator: Google::Apis::CloudidentityV1beta1::EntityKey::Representation + + hash :labels, as: 'labels' + property :relation_type, as: 'relationType' + collection :roles, as: 'roles', class: Google::Apis::CloudidentityV1beta1::TransitiveMembershipRole, decorator: Google::Apis::CloudidentityV1beta1::TransitiveMembershipRole::Representation + + end + end + class ListClientStatesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -773,6 +830,18 @@ module Google end end + class MemberRelation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :member, as: 'member' + collection :preferred_member_key, as: 'preferredMemberKey', class: Google::Apis::CloudidentityV1beta1::EntityKey, decorator: Google::Apis::CloudidentityV1beta1::EntityKey::Representation + + property :relation_type, as: 'relationType' + collection :roles, as: 'roles', class: Google::Apis::CloudidentityV1beta1::TransitiveMembershipRole, decorator: Google::Apis::CloudidentityV1beta1::TransitiveMembershipRole::Representation + + end + end + class Membership # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -847,6 +916,24 @@ module Google end end + class SearchTransitiveGroupsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :memberships, as: 'memberships', class: Google::Apis::CloudidentityV1beta1::GroupRelation, decorator: Google::Apis::CloudidentityV1beta1::GroupRelation::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class SearchTransitiveMembershipsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :memberships, as: 'memberships', class: Google::Apis::CloudidentityV1beta1::MemberRelation, decorator: Google::Apis::CloudidentityV1beta1::MemberRelation::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class Status # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -856,6 +943,13 @@ module Google end end + class TransitiveMembershipRole + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :role, as: 'role' + end + end + class UpdateMembershipRolesParams # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudidentity_v1beta1/service.rb b/generated/google/apis/cloudidentity_v1beta1/service.rb index e1d3abf9c..7676f7d0c 100644 --- a/generated/google/apis/cloudidentity_v1beta1/service.rb +++ b/generated/google/apis/cloudidentity_v1beta1/service.rb @@ -992,6 +992,44 @@ module Google execute_or_queue_command(command, &block) end + # Check a potential member for membership in a group. + # @param [String] parent + # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # group to check the transitive membership in. Format: `groups/`group_id``, + # where `group_id` is the unique id assigned to the Group to which the + # Membership belongs to. + # @param [String] query + # Required. A CEL expression that MUST include member specification. This is a ` + # required` field. Example query: member_key_id == ‘member_key_id_value’ [ && + # member_key_namespace == ‘member_key_namespace_value’ ] + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudidentityV1beta1::CheckTransitiveMembershipResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudidentityV1beta1::CheckTransitiveMembershipResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def check_group_membership_transitive_membership(parent, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/memberships:checkTransitiveMembership', options) + command.response_representation = Google::Apis::CloudidentityV1beta1::CheckTransitiveMembershipResponse::Representation + command.response_class = Google::Apis::CloudidentityV1beta1::CheckTransitiveMembershipResponse + command.params['parent'] = parent unless parent.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a `Membership`. # @param [String] parent # Required. The parent `Group` resource under which to create the `Membership`. @@ -1090,6 +1128,48 @@ module Google execute_or_queue_command(command, &block) end + # Get a membership graph of a member or member/group. + # @param [String] parent + # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) + # of the group to search transitive memberships in. Format: `groups/`group_id``, + # where `group_id` is the unique ID assigned to the Group to which the + # Membership belongs to. group_id can be a wildcard collection id "-". When a + # group_id is specified, the membership graph will be constrained to paths + # between the member (defined in the query) and the parent. If a wildcard + # collection is provided, all membership paths connected to the member will be + # returned. + # @param [String] query + # Required. A CEL expression that MUST include member specification AND label(s). + # Example query: member_key_id == ‘member_key_id_value’ [ && + # member_key_namespace == ‘member_key_namespace_value’ ] && in labels + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudidentityV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_group_membership_membership_graph(parent, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/memberships:getMembershipGraph', options) + command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation + command.response_class = Google::Apis::CloudidentityV1beta1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Lists the `Membership`s within a `Group`. # @param [String] parent # Required. The parent `Group` resource under which to lookup the `Membership` @@ -1215,6 +1295,90 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Search transitive groups of a member. + # @param [String] parent + # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # group to search transitive memberships in. Format: `groups/`group_id``, where ` + # group_id` is always '-' as this API will search across all groups for a given + # member. + # @param [Fixnum] page_size + # The default page size is 200 (max 1000). + # @param [String] page_token + # The next_page_token value returned from a previous list request, if any. + # @param [String] query + # Required. A CEL expression that MUST include member specification AND label(s). + # This is a `required` field. Users can search on label attributes of groups. + # CONTAINS match ('in') is supported on labels. Example query: member_key_id == ‘ + # member_key_id_value’ [ && member_key_namespace == ‘member_key_namespace_value’ + # ] && in labels + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudidentityV1beta1::SearchTransitiveGroupsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudidentityV1beta1::SearchTransitiveGroupsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def search_group_membership_transitive_groups(parent, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/memberships:searchTransitiveGroups', options) + command.response_representation = Google::Apis::CloudidentityV1beta1::SearchTransitiveGroupsResponse::Representation + command.response_class = Google::Apis::CloudidentityV1beta1::SearchTransitiveGroupsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Search transitive memberships of a group. + # @param [String] parent + # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # group to search transitive memberships in. Format: `groups/`group_id``, where ` + # group_id` is the unique ID assigned to the Group. + # @param [Fixnum] page_size + # The default page size is 200 (max 1000). + # @param [String] page_token + # The next_page_token value returned from a previous list request, if any. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudidentityV1beta1::SearchTransitiveMembershipsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudidentityV1beta1::SearchTransitiveMembershipsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def search_group_membership_transitive_memberships(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/memberships:searchTransitiveMemberships', options) + command.response_representation = Google::Apis::CloudidentityV1beta1::SearchTransitiveMembershipsResponse::Representation + command.response_class = Google::Apis::CloudidentityV1beta1::SearchTransitiveMembershipsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/dfareporting_v3_3.rb b/generated/google/apis/dfareporting_v3_3.rb index e7c10af91..91f0efe4e 100644 --- a/generated/google/apis/dfareporting_v3_3.rb +++ b/generated/google/apis/dfareporting_v3_3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/ module DfareportingV3_3 VERSION = 'V3_3' - REVISION = '20200916' + REVISION = '20200921' # Manage DoubleClick Digital Marketing conversions AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions' diff --git a/generated/google/apis/dfareporting_v3_3/classes.rb b/generated/google/apis/dfareporting_v3_3/classes.rb index 3060f79a3..f90823609 100644 --- a/generated/google/apis/dfareporting_v3_3/classes.rb +++ b/generated/google/apis/dfareporting_v3_3/classes.rb @@ -5523,23 +5523,6 @@ module Google # @return [Fixnum] attr_accessor :last_modified_time - # Extra information added to operations that support Scotty media requests. - # Corresponds to the JSON property `mediaRequestInfo` - # @return [Google::Apis::DfareportingV3_3::MediaRequestInfo] - attr_accessor :media_request_info - - # This message is for backends to pass their scotty media specific fields to ESF. - # Backend will include this in their response message to ESF. Example: - # ExportFile is an rpc defined for upload using scotty from ESF. rpc ExportFile( - # ExportFileRequest) returns (ExportFileResponse) Message ExportFileResponse - # will include apiserving.MediaResponseInfo to tell ESF about data like - # dynamic_dropzone it needs to pass to Scotty. message ExportFileResponse ` - # optional gdata.Media blob = 1; optional apiserving.MediaResponseInfo - # media_response_info = 2 ` - # Corresponds to the JSON property `mediaResponseInfo` - # @return [Google::Apis::DfareportingV3_3::MediaResponseInfo] - attr_accessor :media_response_info - # The ID of the report this file was generated from. # Corresponds to the JSON property `reportId` # @return [Fixnum] @@ -5568,8 +5551,6 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) - @media_request_info = args[:media_request_info] if args.key?(:media_request_info) - @media_response_info = args[:media_response_info] if args.key?(:media_response_info) @report_id = args[:report_id] if args.key?(:report_id) @status = args[:status] if args.key?(:status) @urls = args[:urls] if args.key?(:urls) @@ -7045,151 +7026,6 @@ module Google end end - # Extra information added to operations that support Scotty media requests. - class MediaRequestInfo - include Google::Apis::Core::Hashable - - # The number of current bytes uploaded or downloaded. - # Corresponds to the JSON property `currentBytes` - # @return [Fixnum] - attr_accessor :current_bytes - - # Data to be copied to backend requests. Custom data is returned to Scotty in - # the agent_state field, which Scotty will then provide in subsequent upload - # notifications. - # Corresponds to the JSON property `customData` - # @return [String] - attr_accessor :custom_data - - # Set if the http request info is diff encoded. The value of this field is the - # version number of the base revision. This is corresponding to Apiary's - # mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/ - # variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for - # more information. - # Corresponds to the JSON property `diffObjectVersion` - # @return [String] - attr_accessor :diff_object_version - - # The type of notification received from Scotty. - # Corresponds to the JSON property `notificationType` - # @return [String] - attr_accessor :notification_type - - # The Scotty request ID. - # Corresponds to the JSON property `requestId` - # @return [String] - attr_accessor :request_id - - # The total size of the file. - # Corresponds to the JSON property `totalBytes` - # @return [Fixnum] - attr_accessor :total_bytes - - # Whether the total bytes field contains an estimated data. - # Corresponds to the JSON property `totalBytesIsEstimated` - # @return [Boolean] - attr_accessor :total_bytes_is_estimated - alias_method :total_bytes_is_estimated?, :total_bytes_is_estimated - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @current_bytes = args[:current_bytes] if args.key?(:current_bytes) - @custom_data = args[:custom_data] if args.key?(:custom_data) - @diff_object_version = args[:diff_object_version] if args.key?(:diff_object_version) - @notification_type = args[:notification_type] if args.key?(:notification_type) - @request_id = args[:request_id] if args.key?(:request_id) - @total_bytes = args[:total_bytes] if args.key?(:total_bytes) - @total_bytes_is_estimated = args[:total_bytes_is_estimated] if args.key?(:total_bytes_is_estimated) - end - end - - # This message is for backends to pass their scotty media specific fields to ESF. - # Backend will include this in their response message to ESF. Example: - # ExportFile is an rpc defined for upload using scotty from ESF. rpc ExportFile( - # ExportFileRequest) returns (ExportFileResponse) Message ExportFileResponse - # will include apiserving.MediaResponseInfo to tell ESF about data like - # dynamic_dropzone it needs to pass to Scotty. message ExportFileResponse ` - # optional gdata.Media blob = 1; optional apiserving.MediaResponseInfo - # media_response_info = 2 ` - class MediaResponseInfo - include Google::Apis::Core::Hashable - - # Data to copy from backend response to the next backend requests. Custom data - # is returned to Scotty in the agent_state field, which Scotty will then provide - # in subsequent upload notifications. - # Corresponds to the JSON property `customData` - # @return [String] - attr_accessor :custom_data - - # Specifies any transformation to be applied to data before persisting it or - # retrieving from storage. E.g., encryption options for blobstore2. This should - # be of the form uploader_service.DataStorageTransform. - # Corresponds to the JSON property `dataStorageTransform` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :data_storage_transform - - # Specifies the Scotty Drop Target to use for uploads. If present in a media - # response, Scotty does not upload to a standard drop zone. Instead, Scotty - # saves the upload directly to the location specified in this drop target. - # Unlike drop zones, the drop target is the final storage location for an upload. - # So, the agent does not need to clone the blob at the end of the upload. The - # agent is responsible for garbage collecting any orphaned blobs that may occur - # due to aborted uploads. For more information, see the drop target design doc - # here: http://goto/ScottyDropTarget This field will be preferred to - # dynamicDropzone. If provided, the identified field in the response must be of - # the type uploader.agent.DropTarget. - # Corresponds to the JSON property `dynamicDropTarget` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :dynamic_drop_target - - # Specifies the Scotty dropzone to use for uploads. - # Corresponds to the JSON property `dynamicDropzone` - # @return [String] - attr_accessor :dynamic_dropzone - - # Request class to use for all Blobstore operations for this request. - # Corresponds to the JSON property `requestClass` - # @return [String] - attr_accessor :request_class - - # Specifies the TrafficClass that Scotty should use for any RPCs to fetch the - # response bytes. Will override the traffic class GTOS of the incoming http - # request. This is a temporary field to facilitate whitelisting and - # experimentation by the bigstore agent only. For instance, this does not apply - # to RTMP reads. WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM. - # Corresponds to the JSON property `trafficClassField` - # @return [String] - attr_accessor :traffic_class_field - - # Tells Scotty to verify hashes on the agent's behalf by parsing out the X-Goog- - # Hash header. - # Corresponds to the JSON property `verifyHashFromHeader` - # @return [Boolean] - attr_accessor :verify_hash_from_header - alias_method :verify_hash_from_header?, :verify_hash_from_header - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @custom_data = args[:custom_data] if args.key?(:custom_data) - @data_storage_transform = args[:data_storage_transform] if args.key?(:data_storage_transform) - @dynamic_drop_target = args[:dynamic_drop_target] if args.key?(:dynamic_drop_target) - @dynamic_dropzone = args[:dynamic_dropzone] if args.key?(:dynamic_dropzone) - @request_class = args[:request_class] if args.key?(:request_class) - @traffic_class_field = args[:traffic_class_field] if args.key?(:traffic_class_field) - @verify_hash_from_header = args[:verify_hash_from_header] if args.key?(:verify_hash_from_header) - end - end - # Represents a metric. class Metric include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dfareporting_v3_3/representations.rb b/generated/google/apis/dfareporting_v3_3/representations.rb index a61f86225..347db59f2 100644 --- a/generated/google/apis/dfareporting_v3_3/representations.rb +++ b/generated/google/apis/dfareporting_v3_3/representations.rb @@ -766,18 +766,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class MediaRequestInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MediaResponseInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Metric class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2712,10 +2700,6 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime' - property :media_request_info, as: 'mediaRequestInfo', class: Google::Apis::DfareportingV3_3::MediaRequestInfo, decorator: Google::Apis::DfareportingV3_3::MediaRequestInfo::Representation - - property :media_response_info, as: 'mediaResponseInfo', class: Google::Apis::DfareportingV3_3::MediaResponseInfo, decorator: Google::Apis::DfareportingV3_3::MediaResponseInfo::Representation - property :report_id, :numeric_string => true, as: 'reportId' property :status, as: 'status' property :urls, as: 'urls', class: Google::Apis::DfareportingV3_3::File::Urls, decorator: Google::Apis::DfareportingV3_3::File::Urls::Representation @@ -3097,32 +3081,6 @@ module Google end end - class MediaRequestInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :current_bytes, :numeric_string => true, as: 'currentBytes' - property :custom_data, as: 'customData' - property :diff_object_version, as: 'diffObjectVersion' - property :notification_type, as: 'notificationType' - property :request_id, as: 'requestId' - property :total_bytes, :numeric_string => true, as: 'totalBytes' - property :total_bytes_is_estimated, as: 'totalBytesIsEstimated' - end - end - - class MediaResponseInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :custom_data, as: 'customData' - property :data_storage_transform, :base64 => true, as: 'dataStorageTransform' - property :dynamic_drop_target, :base64 => true, as: 'dynamicDropTarget' - property :dynamic_dropzone, as: 'dynamicDropzone' - property :request_class, as: 'requestClass' - property :traffic_class_field, as: 'trafficClassField' - property :verify_hash_from_header, as: 'verifyHashFromHeader' - end - end - class Metric # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dfareporting_v3_4.rb b/generated/google/apis/dfareporting_v3_4.rb index 76dc39b65..a817091c3 100644 --- a/generated/google/apis/dfareporting_v3_4.rb +++ b/generated/google/apis/dfareporting_v3_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/ module DfareportingV3_4 VERSION = 'V3_4' - REVISION = '20200916' + REVISION = '20200921' # Manage DoubleClick Digital Marketing conversions AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions' diff --git a/generated/google/apis/dfareporting_v3_4/classes.rb b/generated/google/apis/dfareporting_v3_4/classes.rb index 1482ebef6..84047dcc1 100644 --- a/generated/google/apis/dfareporting_v3_4/classes.rb +++ b/generated/google/apis/dfareporting_v3_4/classes.rb @@ -6137,23 +6137,6 @@ module Google # @return [Fixnum] attr_accessor :last_modified_time - # Extra information added to operations that support Scotty media requests. - # Corresponds to the JSON property `mediaRequestInfo` - # @return [Google::Apis::DfareportingV3_4::MediaRequestInfo] - attr_accessor :media_request_info - - # This message is for backends to pass their scotty media specific fields to ESF. - # Backend will include this in their response message to ESF. Example: - # ExportFile is an rpc defined for upload using scotty from ESF. rpc ExportFile( - # ExportFileRequest) returns (ExportFileResponse) Message ExportFileResponse - # will include apiserving.MediaResponseInfo to tell ESF about data like - # dynamic_dropzone it needs to pass to Scotty. message ExportFileResponse ` - # optional gdata.Media blob = 1; optional apiserving.MediaResponseInfo - # media_response_info = 2 ` - # Corresponds to the JSON property `mediaResponseInfo` - # @return [Google::Apis::DfareportingV3_4::MediaResponseInfo] - attr_accessor :media_response_info - # The ID of the report this file was generated from. # Corresponds to the JSON property `reportId` # @return [Fixnum] @@ -6182,8 +6165,6 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) - @media_request_info = args[:media_request_info] if args.key?(:media_request_info) - @media_response_info = args[:media_response_info] if args.key?(:media_response_info) @report_id = args[:report_id] if args.key?(:report_id) @status = args[:status] if args.key?(:status) @urls = args[:urls] if args.key?(:urls) @@ -7669,151 +7650,6 @@ module Google end end - # Extra information added to operations that support Scotty media requests. - class MediaRequestInfo - include Google::Apis::Core::Hashable - - # The number of current bytes uploaded or downloaded. - # Corresponds to the JSON property `currentBytes` - # @return [Fixnum] - attr_accessor :current_bytes - - # Data to be copied to backend requests. Custom data is returned to Scotty in - # the agent_state field, which Scotty will then provide in subsequent upload - # notifications. - # Corresponds to the JSON property `customData` - # @return [String] - attr_accessor :custom_data - - # Set if the http request info is diff encoded. The value of this field is the - # version number of the base revision. This is corresponding to Apiary's - # mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/ - # variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for - # more information. - # Corresponds to the JSON property `diffObjectVersion` - # @return [String] - attr_accessor :diff_object_version - - # The type of notification received from Scotty. - # Corresponds to the JSON property `notificationType` - # @return [String] - attr_accessor :notification_type - - # The Scotty request ID. - # Corresponds to the JSON property `requestId` - # @return [String] - attr_accessor :request_id - - # The total size of the file. - # Corresponds to the JSON property `totalBytes` - # @return [Fixnum] - attr_accessor :total_bytes - - # Whether the total bytes field contains an estimated data. - # Corresponds to the JSON property `totalBytesIsEstimated` - # @return [Boolean] - attr_accessor :total_bytes_is_estimated - alias_method :total_bytes_is_estimated?, :total_bytes_is_estimated - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @current_bytes = args[:current_bytes] if args.key?(:current_bytes) - @custom_data = args[:custom_data] if args.key?(:custom_data) - @diff_object_version = args[:diff_object_version] if args.key?(:diff_object_version) - @notification_type = args[:notification_type] if args.key?(:notification_type) - @request_id = args[:request_id] if args.key?(:request_id) - @total_bytes = args[:total_bytes] if args.key?(:total_bytes) - @total_bytes_is_estimated = args[:total_bytes_is_estimated] if args.key?(:total_bytes_is_estimated) - end - end - - # This message is for backends to pass their scotty media specific fields to ESF. - # Backend will include this in their response message to ESF. Example: - # ExportFile is an rpc defined for upload using scotty from ESF. rpc ExportFile( - # ExportFileRequest) returns (ExportFileResponse) Message ExportFileResponse - # will include apiserving.MediaResponseInfo to tell ESF about data like - # dynamic_dropzone it needs to pass to Scotty. message ExportFileResponse ` - # optional gdata.Media blob = 1; optional apiserving.MediaResponseInfo - # media_response_info = 2 ` - class MediaResponseInfo - include Google::Apis::Core::Hashable - - # Data to copy from backend response to the next backend requests. Custom data - # is returned to Scotty in the agent_state field, which Scotty will then provide - # in subsequent upload notifications. - # Corresponds to the JSON property `customData` - # @return [String] - attr_accessor :custom_data - - # Specifies any transformation to be applied to data before persisting it or - # retrieving from storage. E.g., encryption options for blobstore2. This should - # be of the form uploader_service.DataStorageTransform. - # Corresponds to the JSON property `dataStorageTransform` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :data_storage_transform - - # Specifies the Scotty Drop Target to use for uploads. If present in a media - # response, Scotty does not upload to a standard drop zone. Instead, Scotty - # saves the upload directly to the location specified in this drop target. - # Unlike drop zones, the drop target is the final storage location for an upload. - # So, the agent does not need to clone the blob at the end of the upload. The - # agent is responsible for garbage collecting any orphaned blobs that may occur - # due to aborted uploads. For more information, see the drop target design doc - # here: http://goto/ScottyDropTarget This field will be preferred to - # dynamicDropzone. If provided, the identified field in the response must be of - # the type uploader.agent.DropTarget. - # Corresponds to the JSON property `dynamicDropTarget` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :dynamic_drop_target - - # Specifies the Scotty dropzone to use for uploads. - # Corresponds to the JSON property `dynamicDropzone` - # @return [String] - attr_accessor :dynamic_dropzone - - # Request class to use for all Blobstore operations for this request. - # Corresponds to the JSON property `requestClass` - # @return [String] - attr_accessor :request_class - - # Specifies the TrafficClass that Scotty should use for any RPCs to fetch the - # response bytes. Will override the traffic class GTOS of the incoming http - # request. This is a temporary field to facilitate whitelisting and - # experimentation by the bigstore agent only. For instance, this does not apply - # to RTMP reads. WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM. - # Corresponds to the JSON property `trafficClassField` - # @return [String] - attr_accessor :traffic_class_field - - # Tells Scotty to verify hashes on the agent's behalf by parsing out the X-Goog- - # Hash header. - # Corresponds to the JSON property `verifyHashFromHeader` - # @return [Boolean] - attr_accessor :verify_hash_from_header - alias_method :verify_hash_from_header?, :verify_hash_from_header - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @custom_data = args[:custom_data] if args.key?(:custom_data) - @data_storage_transform = args[:data_storage_transform] if args.key?(:data_storage_transform) - @dynamic_drop_target = args[:dynamic_drop_target] if args.key?(:dynamic_drop_target) - @dynamic_dropzone = args[:dynamic_dropzone] if args.key?(:dynamic_dropzone) - @request_class = args[:request_class] if args.key?(:request_class) - @traffic_class_field = args[:traffic_class_field] if args.key?(:traffic_class_field) - @verify_hash_from_header = args[:verify_hash_from_header] if args.key?(:verify_hash_from_header) - end - end - # Represents a metric. class Metric include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dfareporting_v3_4/representations.rb b/generated/google/apis/dfareporting_v3_4/representations.rb index 0994a8c78..261ab21c5 100644 --- a/generated/google/apis/dfareporting_v3_4/representations.rb +++ b/generated/google/apis/dfareporting_v3_4/representations.rb @@ -856,18 +856,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class MediaRequestInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MediaResponseInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Metric class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3011,10 +2999,6 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime' - property :media_request_info, as: 'mediaRequestInfo', class: Google::Apis::DfareportingV3_4::MediaRequestInfo, decorator: Google::Apis::DfareportingV3_4::MediaRequestInfo::Representation - - property :media_response_info, as: 'mediaResponseInfo', class: Google::Apis::DfareportingV3_4::MediaResponseInfo, decorator: Google::Apis::DfareportingV3_4::MediaResponseInfo::Representation - property :report_id, :numeric_string => true, as: 'reportId' property :status, as: 'status' property :urls, as: 'urls', class: Google::Apis::DfareportingV3_4::File::Urls, decorator: Google::Apis::DfareportingV3_4::File::Urls::Representation @@ -3397,32 +3381,6 @@ module Google end end - class MediaRequestInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :current_bytes, :numeric_string => true, as: 'currentBytes' - property :custom_data, as: 'customData' - property :diff_object_version, as: 'diffObjectVersion' - property :notification_type, as: 'notificationType' - property :request_id, as: 'requestId' - property :total_bytes, :numeric_string => true, as: 'totalBytes' - property :total_bytes_is_estimated, as: 'totalBytesIsEstimated' - end - end - - class MediaResponseInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :custom_data, as: 'customData' - property :data_storage_transform, :base64 => true, as: 'dataStorageTransform' - property :dynamic_drop_target, :base64 => true, as: 'dynamicDropTarget' - property :dynamic_dropzone, as: 'dynamicDropzone' - property :request_class, as: 'requestClass' - property :traffic_class_field, as: 'trafficClassField' - property :verify_hash_from_header, as: 'verifyHashFromHeader' - end - end - class Metric # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 6a642492a..0c5ad696a 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2 VERSION = 'V2' - REVISION = '20200903' + REVISION = '20200920' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 7038f8c3b..39606dc2a 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -6871,6 +6871,46 @@ module Google end end + # Metadata returned for the TestCases.ExportTestCases long running operation. + class GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for TestCases.ExportTestCases. + class GoogleCloudDialogflowV3alpha1ExportTestCasesResponse + include Google::Apis::Core::Hashable + + # Uncompressed raw byte content for test cases. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # The URI to a file containing the exported test cases. This field is populated + # only if `gcs_uri` is specified in ExportTestCasesRequest. + # Corresponds to the JSON property `gcsUri` + # @return [String] + attr_accessor :gcs_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri) + end + end + # The response message for Agents.ImportAgent. class GoogleCloudDialogflowV3alpha1ImportAgentResponse include Google::Apis::Core::Hashable @@ -6890,6 +6930,39 @@ module Google end end + # Metadata returned for the TestCases.ImportTestCases long running operation. + class GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for TestCases.ImportTestCases. + class GoogleCloudDialogflowV3alpha1ImportTestCasesResponse + include Google::Apis::Core::Hashable + + # The unique identifiers of the new test cases. Format: `projects//locations// + # agents//testCases/`. + # Corresponds to the JSON property `names` + # @return [Array] + attr_accessor :names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @names = args[:names] if args.key?(:names) + end + end + # The response message for Operations.ListOperations. class GoogleLongrunningListOperationsResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 7dfaae573..6d905ef34 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -1096,12 +1096,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV3alpha1ExportTestCasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV3alpha1ImportAgentResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV3alpha1ImportTestCasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleLongrunningListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2985,6 +3009,20 @@ module Google end end + class GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowV3alpha1ExportTestCasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :gcs_uri, as: 'gcsUri' + end + end + class GoogleCloudDialogflowV3alpha1ImportAgentResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2992,6 +3030,19 @@ module Google end end + class GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowV3alpha1ImportTestCasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :names, as: 'names' + end + end + class GoogleLongrunningListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 5b136ec00..7ad957582 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20200903' + REVISION = '20200920' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index 95cc85707..a74da7977 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -7198,6 +7198,46 @@ module Google end end + # Metadata returned for the TestCases.ExportTestCases long running operation. + class GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for TestCases.ExportTestCases. + class GoogleCloudDialogflowV3alpha1ExportTestCasesResponse + include Google::Apis::Core::Hashable + + # Uncompressed raw byte content for test cases. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # The URI to a file containing the exported test cases. This field is populated + # only if `gcs_uri` is specified in ExportTestCasesRequest. + # Corresponds to the JSON property `gcsUri` + # @return [String] + attr_accessor :gcs_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri) + end + end + # The response message for Agents.ImportAgent. class GoogleCloudDialogflowV3alpha1ImportAgentResponse include Google::Apis::Core::Hashable @@ -7217,6 +7257,39 @@ module Google end end + # Metadata returned for the TestCases.ImportTestCases long running operation. + class GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for TestCases.ImportTestCases. + class GoogleCloudDialogflowV3alpha1ImportTestCasesResponse + include Google::Apis::Core::Hashable + + # The unique identifiers of the new test cases. Format: `projects//locations// + # agents//testCases/`. + # Corresponds to the JSON property `names` + # @return [Array] + attr_accessor :names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @names = args[:names] if args.key?(:names) + end + end + # The response message for Operations.ListOperations. class GoogleLongrunningListOperationsResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index c68b09c79..f38af4edd 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -1144,12 +1144,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV3alpha1ExportTestCasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV3alpha1ImportAgentResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV3alpha1ImportTestCasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleLongrunningListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3114,6 +3138,20 @@ module Google end end + class GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowV3alpha1ExportTestCasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :gcs_uri, as: 'gcsUri' + end + end + class GoogleCloudDialogflowV3alpha1ImportAgentResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3121,6 +3159,19 @@ module Google end end + class GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowV3alpha1ImportTestCasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :names, as: 'names' + end + end + class GoogleLongrunningListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index a91a77d05..23f6f29c7 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -1726,10 +1726,10 @@ module Google # @param [String] parent # Required. The project to list of knowledge bases for. Format: `projects/`. # @param [Fixnum] page_size - # Optional. The maximum number of items to return in a single page. By default - # 10 and at most 100. + # The maximum number of items to return in a single page. By default 10 and at + # most 100. # @param [String] page_token - # Optional. The next_page_token value returned from a previous list request. + # The next_page_token value returned from a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2615,10 +2615,10 @@ module Google # @param [String] parent # Required. The project to list of knowledge bases for. Format: `projects/`. # @param [Fixnum] page_size - # Optional. The maximum number of items to return in a single page. By default - # 10 and at most 100. + # The maximum number of items to return in a single page. By default 10 and at + # most 100. # @param [String] page_token - # Optional. The next_page_token value returned from a previous list request. + # The next_page_token value returned from a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/dialogflow_v3beta1.rb b/generated/google/apis/dialogflow_v3beta1.rb index 96da95547..bb2ace162 100644 --- a/generated/google/apis/dialogflow_v3beta1.rb +++ b/generated/google/apis/dialogflow_v3beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV3beta1 VERSION = 'V3beta1' - REVISION = '20200914' + REVISION = '20200920' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v3beta1/classes.rb b/generated/google/apis/dialogflow_v3beta1/classes.rb index 0c96e0e20..585810581 100644 --- a/generated/google/apis/dialogflow_v3beta1/classes.rb +++ b/generated/google/apis/dialogflow_v3beta1/classes.rb @@ -499,6 +499,25 @@ module Google end end + # Represents the event to trigger. + class GoogleCloudDialogflowCxV3beta1EventInput + include Google::Apis::Core::Hashable + + # Name of the event. + # Corresponds to the JSON property `event` + # @return [String] + attr_accessor :event + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event = args[:event] if args.key?(:event) + end + end + # The request message for Agents.ExportAgent. class GoogleCloudDialogflowCxV3beta1ExportAgentRequest include Google::Apis::Core::Hashable @@ -2032,6 +2051,11 @@ module Google # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AudioInput] attr_accessor :audio + # Represents the event to trigger. + # Corresponds to the JSON property `event` + # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EventInput] + attr_accessor :event + # Represents the intent to trigger programmatically rather than as a result of # natural language processing. # Corresponds to the JSON property `intent` @@ -2058,6 +2082,7 @@ module Google # Update properties of this object def update!(**args) @audio = args[:audio] if args.key?(:audio) + @event = args[:event] if args.key?(:event) @intent = args[:intent] if args.key?(:intent) @language_code = args[:language_code] if args.key?(:language_code) @text = args[:text] if args.key?(:text) @@ -2068,6 +2093,13 @@ module Google class GoogleCloudDialogflowCxV3beta1QueryParameters include Google::Apis::Core::Hashable + # Configures whether sentiment analysis should be performed. If not provided, + # sentiment analysis is not performed. + # Corresponds to the JSON property `analyzeQueryTextSentiment` + # @return [Boolean] + attr_accessor :analyze_query_text_sentiment + alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment + # An object representing a latitude/longitude pair. This is expressed as a pair # of doubles representing degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the WGS84 standard. Values must be @@ -2115,6 +2147,7 @@ module Google # Update properties of this object def update!(**args) + @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment) @geo_location = args[:geo_location] if args.key?(:geo_location) @parameters = args[:parameters] if args.key?(:parameters) @payload = args[:payload] if args.key?(:payload) @@ -2199,6 +2232,13 @@ module Google # @return [Array] attr_accessor :response_messages + # The result of sentiment analysis. Sentiment analysis inspects user input and + # identifies the prevailing subjective opinion, especially to determine a user's + # attitude as positive, negative, or neutral. + # Corresponds to the JSON property `sentimentAnalysisResult` + # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult] + attr_accessor :sentiment_analysis_result + # If natural language text was provided as input, this field will contain a copy # of the text. # Corresponds to the JSON property `text` @@ -2249,6 +2289,7 @@ module Google @match = args[:match] if args.key?(:match) @parameters = args[:parameters] if args.key?(:parameters) @response_messages = args[:response_messages] if args.key?(:response_messages) + @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result) @text = args[:text] if args.key?(:text) @transcript = args[:transcript] if args.key?(:transcript) @trigger_event = args[:trigger_event] if args.key?(:trigger_event) @@ -2591,6 +2632,34 @@ module Google end end + # The result of sentiment analysis. Sentiment analysis inspects user input and + # identifies the prevailing subjective opinion, especially to determine a user's + # attitude as positive, negative, or neutral. + class GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult + include Google::Apis::Core::Hashable + + # A non-negative number in the [0, +inf) range, which represents the absolute + # magnitude of sentiment, regardless of score (positive or negative). + # Corresponds to the JSON property `magnitude` + # @return [Float] + attr_accessor :magnitude + + # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @magnitude = args[:magnitude] if args.key?(:magnitude) + @score = args[:score] if args.key?(:score) + end + end + # Session entity types are referred to as **User** entity types and are entities # that are built for an individual user such as favorites, preferences, # playlists, and so on. You can redefine a session entity type at the session @@ -8016,6 +8085,46 @@ module Google end end + # Metadata returned for the TestCases.ExportTestCases long running operation. + class GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for TestCases.ExportTestCases. + class GoogleCloudDialogflowV3alpha1ExportTestCasesResponse + include Google::Apis::Core::Hashable + + # Uncompressed raw byte content for test cases. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # The URI to a file containing the exported test cases. This field is populated + # only if `gcs_uri` is specified in ExportTestCasesRequest. + # Corresponds to the JSON property `gcsUri` + # @return [String] + attr_accessor :gcs_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri) + end + end + # The response message for Agents.ImportAgent. class GoogleCloudDialogflowV3alpha1ImportAgentResponse include Google::Apis::Core::Hashable @@ -8035,6 +8144,39 @@ module Google end end + # Metadata returned for the TestCases.ImportTestCases long running operation. + class GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for TestCases.ImportTestCases. + class GoogleCloudDialogflowV3alpha1ImportTestCasesResponse + include Google::Apis::Core::Hashable + + # The unique identifiers of the new test cases. Format: `projects//locations// + # agents//testCases/`. + # Corresponds to the JSON property `names` + # @return [Array] + attr_accessor :names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @names = args[:names] if args.key?(:names) + end + end + # The response message for Operations.ListOperations. class GoogleLongrunningListOperationsResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v3beta1/representations.rb b/generated/google/apis/dialogflow_v3beta1/representations.rb index 813b4578e..c022f5b95 100644 --- a/generated/google/apis/dialogflow_v3beta1/representations.rb +++ b/generated/google/apis/dialogflow_v3beta1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowCxV3beta1EventInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowCxV3beta1ExportAgentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -412,6 +418,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowCxV3beta1SessionEntityType class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1240,12 +1252,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV3alpha1ExportTestCasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV3alpha1ImportAgentResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV3alpha1ImportTestCasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleLongrunningListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1394,6 +1430,13 @@ module Google end end + class GoogleCloudDialogflowCxV3beta1EventInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :event, as: 'event' + end + end + class GoogleCloudDialogflowCxV3beta1ExportAgentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1808,6 +1851,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :audio, as: 'audio', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AudioInput, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AudioInput::Representation + property :event, as: 'event', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EventInput, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EventInput::Representation + property :intent, as: 'intent', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1IntentInput, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1IntentInput::Representation property :language_code, as: 'languageCode' @@ -1819,6 +1864,7 @@ module Google class GoogleCloudDialogflowCxV3beta1QueryParameters # @private class Representation < Google::Apis::Core::JsonRepresentation + property :analyze_query_text_sentiment, as: 'analyzeQueryTextSentiment' property :geo_location, as: 'geoLocation', class: Google::Apis::DialogflowV3beta1::GoogleTypeLatLng, decorator: Google::Apis::DialogflowV3beta1::GoogleTypeLatLng::Representation hash :parameters, as: 'parameters' @@ -1844,6 +1890,8 @@ module Google hash :parameters, as: 'parameters' collection :response_messages, as: 'responseMessages', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage::Representation + property :sentiment_analysis_result, as: 'sentimentAnalysisResult', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult::Representation + property :text, as: 'text' property :transcript, as: 'transcript' property :trigger_event, as: 'triggerEvent' @@ -1945,6 +1993,14 @@ module Google end end + class GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :magnitude, as: 'magnitude' + property :score, as: 'score' + end + end + class GoogleCloudDialogflowCxV3beta1SessionEntityType # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3406,6 +3462,20 @@ module Google end end + class GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowV3alpha1ExportTestCasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :gcs_uri, as: 'gcsUri' + end + end + class GoogleCloudDialogflowV3alpha1ImportAgentResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3413,6 +3483,19 @@ module Google end end + class GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowV3alpha1ImportTestCasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :names, as: 'names' + end + end + class GoogleLongrunningListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index 5675499cb..e1c934a09 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20200905' + REVISION = '20200919' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dlp_v2/classes.rb b/generated/google/apis/dlp_v2/classes.rb index ffc881771..1df2796bf 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -144,6 +144,11 @@ module Google # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2NumericalStatsResult] attr_accessor :numerical_stats_result + # Risk analysis options. + # Corresponds to the JSON property `requestedOptions` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2RequestedRiskAnalysisOptions] + attr_accessor :requested_options + # Privacy metric to compute for reidentification risk analysis. # Corresponds to the JSON property `requestedPrivacyMetric` # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PrivacyMetric] @@ -168,6 +173,7 @@ module Google @k_map_estimation_result = args[:k_map_estimation_result] if args.key?(:k_map_estimation_result) @l_diversity_result = args[:l_diversity_result] if args.key?(:l_diversity_result) @numerical_stats_result = args[:numerical_stats_result] if args.key?(:numerical_stats_result) + @requested_options = args[:requested_options] if args.key?(:requested_options) @requested_privacy_metric = args[:requested_privacy_metric] if args.key?(:requested_privacy_metric) @requested_source_table = args[:requested_source_table] if args.key?(:requested_source_table) end @@ -5294,6 +5300,26 @@ module Google end end + # Risk analysis options. + class GooglePrivacyDlpV2RequestedRiskAnalysisOptions + include Google::Apis::Core::Hashable + + # Configuration for a risk analysis job. See https://cloud.google.com/dlp/docs/ + # concepts-risk-analysis to learn more. + # Corresponds to the JSON property `jobConfig` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2RiskAnalysisJobConfig] + attr_accessor :job_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @job_config = args[:job_config] if args.key?(:job_config) + end + end + # All result fields mentioned below are updated while the job is processing. class GooglePrivacyDlpV2Result include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dlp_v2/representations.rb b/generated/google/apis/dlp_v2/representations.rb index 64b06e427..33ce47473 100644 --- a/generated/google/apis/dlp_v2/representations.rb +++ b/generated/google/apis/dlp_v2/representations.rb @@ -934,6 +934,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2RequestedRiskAnalysisOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2Result class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1213,6 +1219,8 @@ module Google property :numerical_stats_result, as: 'numericalStatsResult', class: Google::Apis::DlpV2::GooglePrivacyDlpV2NumericalStatsResult, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2NumericalStatsResult::Representation + property :requested_options, as: 'requestedOptions', class: Google::Apis::DlpV2::GooglePrivacyDlpV2RequestedRiskAnalysisOptions, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2RequestedRiskAnalysisOptions::Representation + property :requested_privacy_metric, as: 'requestedPrivacyMetric', class: Google::Apis::DlpV2::GooglePrivacyDlpV2PrivacyMetric, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2PrivacyMetric::Representation property :requested_source_table, as: 'requestedSourceTable', class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable::Representation @@ -2738,6 +2746,14 @@ module Google end end + class GooglePrivacyDlpV2RequestedRiskAnalysisOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :job_config, as: 'jobConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2RiskAnalysisJobConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2RiskAnalysisJobConfig::Representation + + end + end + class GooglePrivacyDlpV2Result # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dlp_v2/service.rb b/generated/google/apis/dlp_v2/service.rb index 0ff03a1f1..e77c6cd27 100644 --- a/generated/google/apis/dlp_v2/service.rb +++ b/generated/google/apis/dlp_v2/service.rb @@ -141,15 +141,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -251,15 +251,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -349,15 +349,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -459,15 +459,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -557,15 +557,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -667,15 +667,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -765,15 +765,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -875,15 +875,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -972,15 +972,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1082,15 +1082,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -1180,15 +1180,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1290,15 +1290,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -1391,13 +1391,13 @@ module Google # as detectors are updated. # @param [String] parent # Parent resource name. The format of this value varies depending on whether you - # have [specified a processing location](/dlp/docs/specifying-location): + - # Projects scope, location specified: `projects/`PROJECT_ID`/locations/` - # LOCATION_ID + Projects scope, no location specified (defaults to global): ` - # projects/`PROJECT_ID The following example `parent` string specifies a parent - # project with the identifier `example-project`, and specifies the `europe-west3` - # location for processing data: parent=projects/example-project/locations/ - # europe-west3 + # have [specified a processing location](https://cloud.google.com/dlp/docs/ + # specifying-location): + Projects scope, location specified: `projects/` + # PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1436,13 +1436,13 @@ module Google # docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, # @param [String] parent # Parent resource name. The format of this value varies depending on whether you - # have [specified a processing location](/dlp/docs/specifying-location): + - # Projects scope, location specified: `projects/`PROJECT_ID`/locations/` - # LOCATION_ID + Projects scope, no location specified (defaults to global): ` - # projects/`PROJECT_ID The following example `parent` string specifies a parent - # project with the identifier `example-project`, and specifies the `europe-west3` - # location for processing data: parent=projects/example-project/locations/ - # europe-west3 + # have [specified a processing location](https://cloud.google.com/dlp/docs/ + # specifying-location): + Projects scope, location specified: `projects/` + # PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1478,13 +1478,13 @@ module Google # learn more. # @param [String] parent # Required. Parent resource name. The format of this value varies depending on - # whether you have [specified a processing location](/dlp/docs/specifying- - # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ - # locations/`LOCATION_ID + Projects scope, no location specified (defaults to - # global): `projects/`PROJECT_ID The following example `parent` string specifies - # a parent project with the identifier `example-project`, and specifies the ` - # europe-west3` location for processing data: parent=projects/example-project/ - # locations/europe-west3 + # whether you have [specified a processing location](https://cloud.google.com/ + # dlp/docs/specifying-location): + Projects scope, location specified: `projects/ + # `PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1521,15 +1521,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1631,15 +1631,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -1767,13 +1767,13 @@ module Google # as detectors are updated. # @param [String] parent # Required. Parent resource name. The format of this value varies depending on - # whether you have [specified a processing location](/dlp/docs/specifying- - # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ - # locations/`LOCATION_ID + Projects scope, no location specified (defaults to - # global): `projects/`PROJECT_ID The following example `parent` string specifies - # a parent project with the identifier `example-project`, and specifies the ` - # europe-west3` location for processing data: parent=projects/example-project/ - # locations/europe-west3 + # whether you have [specified a processing location](https://cloud.google.com/ + # dlp/docs/specifying-location): + Projects scope, location specified: `projects/ + # `PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1874,13 +1874,13 @@ module Google # docs/compute-risk-analysis to learn more. # @param [String] parent # Required. Parent resource name. The format of this value varies depending on - # whether you have [specified a processing location](/dlp/docs/specifying- - # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ - # locations/`LOCATION_ID + Projects scope, no location specified (defaults to - # global): `projects/`PROJECT_ID The following example `parent` string specifies - # a parent project with the identifier `example-project`, and specifies the ` - # europe-west3` location for processing data: parent=projects/example-project/ - # locations/europe-west3 + # whether you have [specified a processing location](https://cloud.google.com/ + # dlp/docs/specifying-location): + Projects scope, location specified: `projects/ + # `PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [String] filter # Allows filtering. Supported syntax: * Filter expressions are made up of one or # more restrictions. * Restrictions can be combined by `AND` or `OR` logical @@ -1954,13 +1954,13 @@ module Google # over time as detectors are updated. # @param [String] parent # Parent resource name. The format of this value varies depending on whether you - # have [specified a processing location](/dlp/docs/specifying-location): + - # Projects scope, location specified: `projects/`PROJECT_ID`/locations/` - # LOCATION_ID + Projects scope, no location specified (defaults to global): ` - # projects/`PROJECT_ID The following example `parent` string specifies a parent - # project with the identifier `example-project`, and specifies the `europe-west3` - # location for processing data: parent=projects/example-project/locations/ - # europe-west3 + # have [specified a processing location](https://cloud.google.com/dlp/docs/ + # specifying-location): + Projects scope, location specified: `projects/` + # PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1997,15 +1997,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2107,15 +2107,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -2239,13 +2239,13 @@ module Google # creating-job-triggers to learn more. # @param [String] parent # Required. Parent resource name. The format of this value varies depending on - # whether you have [specified a processing location](/dlp/docs/specifying- - # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ - # locations/`LOCATION_ID + Projects scope, no location specified (defaults to - # global): `projects/`PROJECT_ID The following example `parent` string specifies - # a parent project with the identifier `example-project`, and specifies the ` - # europe-west3` location for processing data: parent=projects/example-project/ - # locations/europe-west3 + # whether you have [specified a processing location](https://cloud.google.com/ + # dlp/docs/specifying-location): + Projects scope, location specified: `projects/ + # `PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2344,13 +2344,13 @@ module Google # triggers to learn more. # @param [String] parent # Required. Parent resource name. The format of this value varies depending on - # whether you have [specified a processing location](/dlp/docs/specifying- - # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ - # locations/`LOCATION_ID + Projects scope, no location specified (defaults to - # global): `projects/`PROJECT_ID The following example `parent` string specifies - # a parent project with the identifier `example-project`, and specifies the ` - # europe-west3` location for processing data: parent=projects/example-project/ - # locations/europe-west3 + # whether you have [specified a processing location](https://cloud.google.com/ + # dlp/docs/specifying-location): + Projects scope, location specified: `projects/ + # `PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [String] filter # Allows filtering. Supported syntax: * Filter expressions are made up of one or # more restrictions. * Restrictions can be combined by `AND` or `OR` logical @@ -2458,13 +2458,13 @@ module Google # as detectors are updated. # @param [String] parent # Parent resource name. The format of this value varies depending on whether you - # have [specified a processing location](/dlp/docs/specifying-location): + - # Projects scope, location specified: `projects/`PROJECT_ID`/locations/` - # LOCATION_ID + Projects scope, no location specified (defaults to global): ` - # projects/`PROJECT_ID The following example `parent` string specifies a parent - # project with the identifier `example-project`, and specifies the `europe-west3` - # location for processing data: parent=projects/example-project/locations/ - # europe-west3 + # have [specified a processing location](https://cloud.google.com/dlp/docs/ + # specifying-location): + Projects scope, location specified: `projects/` + # PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2503,13 +2503,13 @@ module Google # docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, # @param [String] parent # Parent resource name. The format of this value varies depending on whether you - # have [specified a processing location](/dlp/docs/specifying-location): + - # Projects scope, location specified: `projects/`PROJECT_ID`/locations/` - # LOCATION_ID + Projects scope, no location specified (defaults to global): ` - # projects/`PROJECT_ID The following example `parent` string specifies a parent - # project with the identifier `example-project`, and specifies the `europe-west3` - # location for processing data: parent=projects/example-project/locations/ - # europe-west3 + # have [specified a processing location](https://cloud.google.com/dlp/docs/ + # specifying-location): + Projects scope, location specified: `projects/` + # PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2545,13 +2545,13 @@ module Google # learn more. # @param [String] parent # Required. Parent resource name. The format of this value varies depending on - # whether you have [specified a processing location](/dlp/docs/specifying- - # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ - # locations/`LOCATION_ID + Projects scope, no location specified (defaults to - # global): `projects/`PROJECT_ID The following example `parent` string specifies - # a parent project with the identifier `example-project`, and specifies the ` - # europe-west3` location for processing data: parent=projects/example-project/ - # locations/europe-west3 + # whether you have [specified a processing location](https://cloud.google.com/ + # dlp/docs/specifying-location): + Projects scope, location specified: `projects/ + # `PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2588,15 +2588,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2698,15 +2698,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -2834,13 +2834,13 @@ module Google # as detectors are updated. # @param [String] parent # Required. Parent resource name. The format of this value varies depending on - # whether you have [specified a processing location](/dlp/docs/specifying- - # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ - # locations/`LOCATION_ID + Projects scope, no location specified (defaults to - # global): `projects/`PROJECT_ID The following example `parent` string specifies - # a parent project with the identifier `example-project`, and specifies the ` - # europe-west3` location for processing data: parent=projects/example-project/ - # locations/europe-west3 + # whether you have [specified a processing location](https://cloud.google.com/ + # dlp/docs/specifying-location): + Projects scope, location specified: `projects/ + # `PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3014,13 +3014,13 @@ module Google # docs/compute-risk-analysis to learn more. # @param [String] parent # Required. Parent resource name. The format of this value varies depending on - # whether you have [specified a processing location](/dlp/docs/specifying- - # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ - # locations/`LOCATION_ID + Projects scope, no location specified (defaults to - # global): `projects/`PROJECT_ID The following example `parent` string specifies - # a parent project with the identifier `example-project`, and specifies the ` - # europe-west3` location for processing data: parent=projects/example-project/ - # locations/europe-west3 + # whether you have [specified a processing location](https://cloud.google.com/ + # dlp/docs/specifying-location): + Projects scope, location specified: `projects/ + # `PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [String] filter # Allows filtering. Supported syntax: * Filter expressions are made up of one or # more restrictions. * Restrictions can be combined by `AND` or `OR` logical @@ -3094,13 +3094,13 @@ module Google # over time as detectors are updated. # @param [String] parent # Parent resource name. The format of this value varies depending on whether you - # have [specified a processing location](/dlp/docs/specifying-location): + - # Projects scope, location specified: `projects/`PROJECT_ID`/locations/` - # LOCATION_ID + Projects scope, no location specified (defaults to global): ` - # projects/`PROJECT_ID The following example `parent` string specifies a parent - # project with the identifier `example-project`, and specifies the `europe-west3` - # location for processing data: parent=projects/example-project/locations/ - # europe-west3 + # have [specified a processing location](https://cloud.google.com/dlp/docs/ + # specifying-location): + Projects scope, location specified: `projects/` + # PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3137,15 +3137,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3247,15 +3247,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -3379,13 +3379,13 @@ module Google # creating-job-triggers to learn more. # @param [String] parent # Required. Parent resource name. The format of this value varies depending on - # whether you have [specified a processing location](/dlp/docs/specifying- - # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ - # locations/`LOCATION_ID + Projects scope, no location specified (defaults to - # global): `projects/`PROJECT_ID The following example `parent` string specifies - # a parent project with the identifier `example-project`, and specifies the ` - # europe-west3` location for processing data: parent=projects/example-project/ - # locations/europe-west3 + # whether you have [specified a processing location](https://cloud.google.com/ + # dlp/docs/specifying-location): + Projects scope, location specified: `projects/ + # `PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3522,13 +3522,13 @@ module Google # triggers to learn more. # @param [String] parent # Required. Parent resource name. The format of this value varies depending on - # whether you have [specified a processing location](/dlp/docs/specifying- - # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ - # locations/`LOCATION_ID + Projects scope, no location specified (defaults to - # global): `projects/`PROJECT_ID The following example `parent` string specifies - # a parent project with the identifier `example-project`, and specifies the ` - # europe-west3` location for processing data: parent=projects/example-project/ - # locations/europe-west3 + # whether you have [specified a processing location](https://cloud.google.com/ + # dlp/docs/specifying-location): + Projects scope, location specified: `projects/ + # `PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified ( + # defaults to global): `projects/`PROJECT_ID The following example `parent` + # string specifies a parent project with the identifier `example-project`, and + # specifies the `europe-west3` location for processing data: parent=projects/ + # example-project/locations/europe-west3 # @param [String] filter # Allows filtering. Supported syntax: * Filter expressions are made up of one or # more restrictions. * Restrictions can be combined by `AND` or `OR` logical @@ -3633,15 +3633,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3743,15 +3743,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by @@ -3841,15 +3841,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3951,15 +3951,15 @@ module Google # @param [String] parent # Required. Parent resource name. The format of this value varies depending on # the scope of the request (project or organization) and whether you have [ - # specified a processing location](/dlp/docs/specifying-location): + Projects - # scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + - # Projects scope, no location specified (defaults to global): `projects/` - # PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/ - # locations/`LOCATION_ID + Organizations scope, no location specified (defaults - # to global): `organizations/`ORG_ID The following example `parent` string - # specifies a parent project with the identifier `example-project`, and - # specifies the `europe-west3` location for processing data: parent=projects/ - # example-project/locations/europe-west3 + # specified a processing location](https://cloud.google.com/dlp/docs/specifying- + # location): + Projects scope, location specified: `projects/`PROJECT_ID`/ + # locations/`LOCATION_ID + Projects scope, no location specified (defaults to + # global): `projects/`PROJECT_ID + Organizations scope, location specified: ` + # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no + # location specified (defaults to global): `organizations/`ORG_ID The following + # example `parent` string specifies a parent project with the identifier ` + # example-project`, and specifies the `europe-west3` location for processing + # data: parent=projects/example-project/locations/europe-west3 # @param [String] location_id # Deprecated. This field has no effect. # @param [String] order_by diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index 1c630968c..ee4066e92 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '20200824' + REVISION = '20200919' # Read, compose, send, and permanently delete all your email from Gmail AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/gmail_v1/service.rb b/generated/google/apis/gmail_v1/service.rb index 85a408795..6e1e8898c 100644 --- a/generated/google/apis/gmail_v1/service.rb +++ b/generated/google/apis/gmail_v1/service.rb @@ -1624,7 +1624,7 @@ module Google execute_or_queue_command(command, &block) end - # Creates a filter. + # Creates a filter. Note: you can only create a maximum of 1,000 filters. # @param [String] user_id # User's email address. The special value "me" can be used to indicate the # authenticated user. diff --git a/generated/google/apis/healthcare_v1.rb b/generated/google/apis/healthcare_v1.rb index 2ba177c35..3dd59ac3d 100644 --- a/generated/google/apis/healthcare_v1.rb +++ b/generated/google/apis/healthcare_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1 VERSION = 'V1' - REVISION = '20200909' + REVISION = '20200917' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/healthcare_v1/classes.rb b/generated/google/apis/healthcare_v1/classes.rb index 5986db8c5..fd53130cb 100644 --- a/generated/google/apis/healthcare_v1/classes.rb +++ b/generated/google/apis/healthcare_v1/classes.rb @@ -1798,7 +1798,9 @@ module Google # that send notifications to fail. If a notification can't be published to Cloud # Pub/Sub, errors are logged to Cloud Logging (see [Viewing logs](/healthcare/ # docs/how-tos/logging)). If the number of errors exceeds a certain rate, some - # aren't submitted. + # aren't submitted. Note that not all operations trigger notifications, see [ + # Configuring Pub/Sub notifications](https://cloud.google.com/healthcare/docs/ + # how-tos/pubsub) for specific details. # Corresponds to the JSON property `pubsubTopic` # @return [String] attr_accessor :pubsub_topic diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index 511eee437..37b335c78 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20200909' + REVISION = '20200917' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/healthcare_v1beta1/classes.rb b/generated/google/apis/healthcare_v1beta1/classes.rb index 4b0a67b89..e9a136933 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -22,6 +22,43 @@ module Google module Apis module HealthcareV1beta1 + # Activates the latest revision of the specified Consent by committing a new + # revision with `state` updated to `ACTIVE`. If the latest revision of the given + # consent is in the `ACTIVE` state, no new revision is committed. + class ActivateConsentRequest + include Google::Apis::Core::Hashable + + # Required. The resource name of the consent artifact that contains proof of the + # end user's consent, of the form `projects/`project_id`/locations/`location_id`/ + # datasets/`dataset_id`/consentStores/`consent_store_id`/consentArtifacts/` + # consent_artifact_id``. If the draft consent had a consent artifact, this + # consent artifact overwrites it. + # Corresponds to the JSON property `consentArtifact` + # @return [String] + attr_accessor :consent_artifact + + # Timestamp in UTC of when this consent is considered expired. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + # The time to live for this consent from when it is marked as active. + # Corresponds to the JSON property `ttl` + # @return [String] + attr_accessor :ttl + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact) + @expire_time = args[:expire_time] if args.key?(:expire_time) + @ttl = args[:ttl] if args.key?(:ttl) + end + end + # An annotation record. class Annotation include Google::Apis::Core::Hashable @@ -160,6 +197,118 @@ module Google end end + # Archives the specified User data mapping. + class ArchiveUserDataMappingRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Archives the specified User data mapping. + class ArchiveUserDataMappingResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # An attribute value for a consent or data mapping. Each Attribute must have a + # corresponding AttributeDefinition in the consent store that defines the + # default and allowed values. + class Attribute + include Google::Apis::Core::Hashable + + # Indicates the name of an attribute defined at the consent store. + # Corresponds to the JSON property `attributeDefinitionId` + # @return [String] + attr_accessor :attribute_definition_id + + # The value of the attribute. Must be an acceptable value as defined in the + # consent store. For example, if the consent store defines "data type" with + # acceptable values "questionnaire" and "step-count", when the attribute name is + # data type, this field must contain one of those values. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribute_definition_id = args[:attribute_definition_id] if args.key?(:attribute_definition_id) + @values = args[:values] if args.key?(:values) + end + end + + # A client-defined consent attribute. + class AttributeDefinition + include Google::Apis::Core::Hashable + + # Required. Possible values for the attribute. An empty list is invalid. The + # list can only be expanded after creation. + # Corresponds to the JSON property `allowedValues` + # @return [Array] + attr_accessor :allowed_values + + # Required. The category of the attribute. The value of this field cannot be + # changed after creation. + # Corresponds to the JSON property `category` + # @return [String] + attr_accessor :category + + # Default values of the attribute in consents. If no default values are + # specified, it defaults to an empty value. + # Corresponds to the JSON property `consentDefaultValues` + # @return [Array] + attr_accessor :consent_default_values + + # Default value of the attribute in user data mappings. If no default value is + # specified, it defaults to an empty value. This field is only applicable to + # attributes of the category `RESOURCE`. + # Corresponds to the JSON property `dataMappingDefaultValue` + # @return [String] + attr_accessor :data_mapping_default_value + + # A description of the attribute. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Resource name of the attribute definition, of the form `projects/`project_id`/ + # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/ + # attributeDefinitions/`attribute_definition_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allowed_values = args[:allowed_values] if args.key?(:allowed_values) + @category = args[:category] if args.key?(:category) + @consent_default_values = args[:consent_default_values] if args.key?(:consent_default_values) + @data_mapping_default_value = args[:data_mapping_default_value] if args.key?(:data_mapping_default_value) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + end + end + # Specifies the audit configuration for a service. The configuration determines # which permission types are logged, and what identities, if any, are exempted # from logging. An AuditConfig must have one or more AuditLogConfigs. If there @@ -359,6 +508,72 @@ module Google end end + # Checks if a particular data_id of a User data mapping in the given Consent + # store is consented for a given use. + class CheckDataAccessRequest + include Google::Apis::Core::Hashable + + # List of resource names of Consent resources. + # Corresponds to the JSON property `consentList` + # @return [Google::Apis::HealthcareV1beta1::ConsentList] + attr_accessor :consent_list + + # The unique identifier of the data to check access for. It must exist in the + # given `consent_store`. + # Corresponds to the JSON property `dataId` + # @return [String] + attr_accessor :data_id + + # The values of request attributes associated with this access request. + # Corresponds to the JSON property `requestAttributes` + # @return [Hash] + attr_accessor :request_attributes + + # The view for CheckDataAccessResponse. + # Corresponds to the JSON property `responseView` + # @return [String] + attr_accessor :response_view + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_list = args[:consent_list] if args.key?(:consent_list) + @data_id = args[:data_id] if args.key?(:data_id) + @request_attributes = args[:request_attributes] if args.key?(:request_attributes) + @response_view = args[:response_view] if args.key?(:response_view) + end + end + + # Checks if a particular data_id of a User data mapping in the given Consent + # store is consented for a given use. + class CheckDataAccessResponse + include Google::Apis::Core::Hashable + + # The resource names of all evaluated Consents mapped to their evaluation. + # Corresponds to the JSON property `consentDetails` + # @return [Hash] + attr_accessor :consent_details + + # Whether the requested data is consented for the given use. + # Corresponds to the JSON property `consented` + # @return [Boolean] + attr_accessor :consented + alias_method :consented?, :consented + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_details = args[:consent_details] if args.key?(:consent_details) + @consented = args[:consented] if args.key?(:consented) + end + end + # Cloud Healthcare API resource. class CloudHealthcareSource include Google::Apis::Core::Hashable @@ -378,6 +593,232 @@ module Google end end + # Represents an end user's consent. + class Consent + include Google::Apis::Core::Hashable + + # Required. The resource name of the consent artifact that contains proof of the + # end user's consent, of the form `projects/`project_id`/locations/`location_id`/ + # datasets/`dataset_id`/consentStores/`consent_store_id`/consentArtifacts/` + # consent_artifact_id``. + # Corresponds to the JSON property `consentArtifact` + # @return [String] + attr_accessor :consent_artifact + + # Timestamp in UTC of when this consent is considered expired. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + # Resource name of the Consent, of the form `projects/`project_id`/locations/` + # location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/consents/` + # consent_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Represents an end user's consent in terms of the resources that can be + # accessed and under what conditions. + # Corresponds to the JSON property `policies` + # @return [Array] + attr_accessor :policies + + # Output only. The timestamp that the revision was created. + # Corresponds to the JSON property `revisionCreateTime` + # @return [String] + attr_accessor :revision_create_time + + # Output only. The revision ID of the consent. The format is an 8-character + # hexadecimal string. Refer to a specific revision of a Consent by appending `@` + # revision_id`` to the Consent's resource name. + # Corresponds to the JSON property `revisionId` + # @return [String] + attr_accessor :revision_id + + # Indicates the current state of this consent. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Input only. The time to live for this consent from when it is created. + # Corresponds to the JSON property `ttl` + # @return [String] + attr_accessor :ttl + + # Required. User's UUID provided by the client. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact) + @expire_time = args[:expire_time] if args.key?(:expire_time) + @name = args[:name] if args.key?(:name) + @policies = args[:policies] if args.key?(:policies) + @revision_create_time = args[:revision_create_time] if args.key?(:revision_create_time) + @revision_id = args[:revision_id] if args.key?(:revision_id) + @state = args[:state] if args.key?(:state) + @ttl = args[:ttl] if args.key?(:ttl) + @user_id = args[:user_id] if args.key?(:user_id) + end + end + + # Proof of an end user's consent. + class ConsentArtifact + include Google::Apis::Core::Hashable + + # Screenshots of the consent content. + # Corresponds to the JSON property `consentContentScreenshots` + # @return [Array] + attr_accessor :consent_content_screenshots + + # An string indicating the version of the consent content. + # Corresponds to the JSON property `consentContentVersion` + # @return [String] + attr_accessor :consent_content_version + + # User signature. + # Corresponds to the JSON property `guardianSignature` + # @return [Google::Apis::HealthcareV1beta1::Signature] + attr_accessor :guardian_signature + + # Metadata associated with the consent artifact. For example, the consent locale + # or user agent version. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Resource name of the Consent artifact, of the form `projects/`project_id`/ + # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/ + # consentArtifacts/`consent_artifact_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. User's UUID provided by the client. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + # User signature. + # Corresponds to the JSON property `userSignature` + # @return [Google::Apis::HealthcareV1beta1::Signature] + attr_accessor :user_signature + + # User signature. + # Corresponds to the JSON property `witnessSignature` + # @return [Google::Apis::HealthcareV1beta1::Signature] + attr_accessor :witness_signature + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_content_screenshots = args[:consent_content_screenshots] if args.key?(:consent_content_screenshots) + @consent_content_version = args[:consent_content_version] if args.key?(:consent_content_version) + @guardian_signature = args[:guardian_signature] if args.key?(:guardian_signature) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @user_id = args[:user_id] if args.key?(:user_id) + @user_signature = args[:user_signature] if args.key?(:user_signature) + @witness_signature = args[:witness_signature] if args.key?(:witness_signature) + end + end + + # The detailed evaluation of a particular Consent. + class ConsentEvaluation + include Google::Apis::Core::Hashable + + # The evaluation result. + # Corresponds to the JSON property `evaluationResult` + # @return [String] + attr_accessor :evaluation_result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @evaluation_result = args[:evaluation_result] if args.key?(:evaluation_result) + end + end + + # List of resource names of Consent resources. + class ConsentList + include Google::Apis::Core::Hashable + + # The resource names of the Consents to evaluate against, of the form `projects/` + # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/` + # consent_store_id`/consents/`consent_id``. + # Corresponds to the JSON property `consents` + # @return [Array] + attr_accessor :consents + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consents = args[:consents] if args.key?(:consents) + end + end + + # Represents a Consent store. + class ConsentStore + include Google::Apis::Core::Hashable + + # Default time to live for consents in this store. Must be at least 24 hours. + # Updating this field will not affect the expiration time of existing consents. + # Corresponds to the JSON property `defaultConsentTtl` + # @return [String] + attr_accessor :default_consent_ttl + + # If true, UpdateConsent creates the consent if it does not already exist. + # Corresponds to the JSON property `enableConsentCreateOnUpdate` + # @return [Boolean] + attr_accessor :enable_consent_create_on_update + alias_method :enable_consent_create_on_update?, :enable_consent_create_on_update + + # User-supplied key-value pairs used to organize Consent stores. Label keys must + # be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 + # bytes, and must conform to the following PCRE regular expression: \p`Ll`\p`Lo`` + # 0,62` Label values must be between 1 and 63 characters long, have a UTF-8 + # encoding of maximum 128 bytes, and must conform to the following PCRE regular + # expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63` No more than 64 labels can be + # associated with a given store. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Resource name of the Consent store, of the form `projects/`project_id`/ + # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`` + # . + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @default_consent_ttl = args[:default_consent_ttl] if args.key?(:default_consent_ttl) + @enable_consent_create_on_update = args[:enable_consent_create_on_update] if args.key?(:enable_consent_create_on_update) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + end + end + # Creates a new message. class CreateMessageRequest include Google::Apis::Core::Hashable @@ -995,6 +1436,89 @@ module Google end end + # Evaluate an end user's Consents for all matching User data mappings. + class EvaluateUserConsentsRequest + include Google::Apis::Core::Hashable + + # List of resource names of Consent resources. + # Corresponds to the JSON property `consentList` + # @return [Google::Apis::HealthcareV1beta1::ConsentList] + attr_accessor :consent_list + + # Limit on the number of user data mappings to return in a single response. If + # zero the default page size of 100 is used. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # Token to retrieve the next page of results to get the first page. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # The values of request attributes associated with this access request. + # Corresponds to the JSON property `requestAttributes` + # @return [Hash] + attr_accessor :request_attributes + + # The values of resources attributes associated with the type of data being + # requested. If no values are specified, then all data types are queried. + # Corresponds to the JSON property `resourceAttributes` + # @return [Hash] + attr_accessor :resource_attributes + + # The view for EvaluateUserConsentsResponse. + # Corresponds to the JSON property `responseView` + # @return [String] + attr_accessor :response_view + + # Required. User ID to evaluate consents for. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_list = args[:consent_list] if args.key?(:consent_list) + @page_size = args[:page_size] if args.key?(:page_size) + @page_token = args[:page_token] if args.key?(:page_token) + @request_attributes = args[:request_attributes] if args.key?(:request_attributes) + @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes) + @response_view = args[:response_view] if args.key?(:response_view) + @user_id = args[:user_id] if args.key?(:user_id) + end + end + + # Evaluate an end user's Consents for all matching User data mappings. + class EvaluateUserConsentsResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results or empty if there are no more + # results in the list. This token is valid for 72 hours after it is created. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The consent evaluation result for each `data_id`. + # Corresponds to the JSON property `results` + # @return [Array] + attr_accessor :results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @results = args[:results] if args.key?(:results) + end + end + # Deprecated. Response for failed annotation export operations. This structure # is included in error details upon operation completion. class ExportAnnotationsErrorDetails @@ -1627,6 +2151,70 @@ module Google end end + # The Cloud Storage location for export. + class GoogleCloudHealthcareV1beta1ConsentGcsDestination + include Google::Apis::Core::Hashable + + # URI for a Cloud Storage directory where the server writes result files, in the + # format `gs://`bucket-id`/`path/to/destination/dir``. If there is no trailing + # slash, the service appends one when composing the object path. The user is + # responsible for creating the Cloud Storage bucket and directory referenced in ` + # uri_prefix`. + # Corresponds to the JSON property `uriPrefix` + # @return [String] + attr_accessor :uri_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix) + end + end + + # Represents an end user's consent in terms of the resources that can be + # accessed and under what conditions. + class GoogleCloudHealthcareV1beta1ConsentPolicy + include Google::Apis::Core::Hashable + + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. + # Corresponds to the JSON property `authorizationRule` + # @return [Google::Apis::HealthcareV1beta1::Expr] + attr_accessor :authorization_rule + + # The data resources that this policy applies to. A data resource is a match if + # it matches all the attributes listed here. + # Corresponds to the JSON property `resourceAttributes` + # @return [Array] + attr_accessor :resource_attributes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @authorization_rule = args[:authorization_rule] if args.key?(:authorization_rule) + @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes) + end + end + # Contains a summary of the DeidentifyDicomStore operation. class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary include Google::Apis::Core::Hashable @@ -2275,6 +2863,39 @@ module Google end end + # An image. + class Image + include Google::Apis::Core::Hashable + + # Input only. Points to a Cloud Storage URI containing the image. The URI must + # be in the following format: `gs://`bucket_id`/`object_id``. The Cloud + # Healthcare API service account must have the `roles/storage.objectViewer` + # Cloud IAM role for this Cloud Storage location. The image at this URI is + # copied to a Cloud Storage location managed by the Cloud Healthcare API. + # Responses to image fetching requests return the image in raw_bytes. + # Corresponds to the JSON property `gcsUri` + # @return [String] + attr_accessor :gcs_uri + + # Image content represented as a stream of bytes. This field is populated when + # returned in GetConsentArtifact response, but not included in + # CreateConsentArtifact and ListConsentArtifact response. + # Corresponds to the JSON property `rawBytes` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :raw_bytes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri) + @raw_bytes = args[:raw_bytes] if args.key?(:raw_bytes) + end + end + # Image annotation. class ImageAnnotation include Google::Apis::Core::Hashable @@ -2728,6 +3349,141 @@ module Google end end + # Lists the Attribute definitions in the given Consent store. + class ListAttributeDefinitionsResponse + include Google::Apis::Core::Hashable + + # The returned attribute definitions. The maximum number of attributes returned + # is determined by the value of page_size in the ListAttributeDefinitionsRequest. + # Corresponds to the JSON property `attributeDefinitions` + # @return [Array] + attr_accessor :attribute_definitions + + # Token to retrieve the next page of results or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribute_definitions = args[:attribute_definitions] if args.key?(:attribute_definitions) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Lists the Consent artifacts in the given Consent store. + class ListConsentArtifactsResponse + include Google::Apis::Core::Hashable + + # The returned consent artifacts. The maximum number of artifacts returned is + # determined by the value of page_size in the ListConsentArtifactsRequest. + # Corresponds to the JSON property `consentArtifacts` + # @return [Array] + attr_accessor :consent_artifacts + + # Token to retrieve the next page of results or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_artifacts = args[:consent_artifacts] if args.key?(:consent_artifacts) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Lists the revisions of the given Consent in reverse chronological order. + class ListConsentRevisionsResponse + include Google::Apis::Core::Hashable + + # The returned consent revisions. The maximum number of revisions returned is + # determined by the value of `page_size` in the ListConsentRevisionsRequest. + # Corresponds to the JSON property `consents` + # @return [Array] + attr_accessor :consents + + # Token to retrieve the next page of results or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consents = args[:consents] if args.key?(:consents) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Lists the Consent stores in the given dataset. + class ListConsentStoresResponse + include Google::Apis::Core::Hashable + + # The returned Consent stores. The maximum number of stores returned is + # determined by the value of page_size in the ListConsentStoresRequest. + # Corresponds to the JSON property `consentStores` + # @return [Array] + attr_accessor :consent_stores + + # Token to retrieve the next page of results or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_stores = args[:consent_stores] if args.key?(:consent_stores) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Lists the Consents in the given Consent store. + class ListConsentsResponse + include Google::Apis::Core::Hashable + + # The returned consents. The maximum number of consents returned is determined + # by the value of page_size in the ListConsentsRequest. + # Corresponds to the JSON property `consents` + # @return [Array] + attr_accessor :consents + + # Token to retrieve the next page of results or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consents = args[:consents] if args.key?(:consents) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # Lists the available datasets. class ListDatasetsResponse include Google::Apis::Core::Hashable @@ -2912,6 +3668,34 @@ module Google end end + # Lists the User data mappings in the given Consent store. + class ListUserDataMappingsResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The returned user data mappings. The maximum number of user data mappings + # returned is determined by the value of page_size in the + # ListUserDataMappingsRequest. + # Corresponds to the JSON property `userDataMappings` + # @return [Array] + attr_accessor :user_data_mappings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @user_data_mappings = args[:user_data_mappings] if args.key?(:user_data_mappings) + end + end + # A resource that represents Google Cloud Platform location. class Location include Google::Apis::Core::Hashable @@ -3059,7 +3843,9 @@ module Google # that send notifications to fail. If a notification can't be published to Cloud # Pub/Sub, errors are logged to Cloud Logging (see [Viewing logs](/healthcare/ # docs/how-tos/logging)). If the number of errors exceeds a certain rate, some - # aren't submitted. + # aren't submitted. Note that not all operations trigger notifications, see [ + # Configuring Pub/Sub notifications](https://cloud.google.com/healthcare/docs/ + # how-tos/pubsub) for specific details. # Corresponds to the JSON property `pubsubTopic` # @return [String] attr_accessor :pubsub_topic @@ -3396,6 +4182,43 @@ module Google end end + # Queries all data_ids that are consented for a given use in the given Consent + # store and writes them to a specified destination. The returned Operation + # includes a progress counter for the number of User data mappings processed. + # Errors are logged to Cloud Logging (see [Viewing logs] (/healthcare/docs/how- + # tos/logging) and [QueryAccessibleData] for a sample log entry). + class QueryAccessibleDataRequest + include Google::Apis::Core::Hashable + + # The Cloud Storage location for export. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1ConsentGcsDestination] + attr_accessor :gcs_destination + + # The values of request attributes associated with this access request. + # Corresponds to the JSON property `requestAttributes` + # @return [Hash] + attr_accessor :request_attributes + + # The values of resources attributes associated with the type of data being + # requested. If no values are specified, then all data types are included in the + # output. + # Corresponds to the JSON property `resourceAttributes` + # @return [Hash] + attr_accessor :resource_attributes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + @request_attributes = args[:request_attributes] if args.key?(:request_attributes) + @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes) + end + end + # Define how to redact sensitive values. Default behaviour is erase. For example, # "My name is Jane." becomes "My name is ." class RedactConfig @@ -3410,6 +4233,31 @@ module Google end end + # Rejects the latest revision of the specified Consent by committing a new + # revision with `state` updated to `REJECTED`. If the latest revision of the + # given consent is in the `REJECTED` state, no new revision is committed. + class RejectConsentRequest + include Google::Apis::Core::Hashable + + # The resource name of the consent artifact that contains proof of the end user' + # s rejection of the draft consent, of the form `projects/`project_id`/locations/ + # `location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/ + # consentArtifacts/`consent_artifact_id``. If the draft consent had a consent + # artifact, this consent artifact overwrites it. + # Corresponds to the JSON property `consentArtifact` + # @return [String] + attr_accessor :consent_artifact + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact) + end + end + # When using the INSPECT_AND_TRANSFORM action, each match is replaced with the # name of the info_type. For example, "My name is Jane" becomes "My name is [ # PERSON_NAME]." The TRANSFORM action is equivalent to redacting. @@ -3463,6 +4311,62 @@ module Google end end + # The consent evaluation result for a single `data_id`. + class Result + include Google::Apis::Core::Hashable + + # The resource names of all evaluated Consents mapped to their evaluation. + # Corresponds to the JSON property `consentDetails` + # @return [Hash] + attr_accessor :consent_details + + # Whether the requested data is consented for the given use. + # Corresponds to the JSON property `consented` + # @return [Boolean] + attr_accessor :consented + alias_method :consented?, :consented + + # The unique identifier of the data the consents were checked for. + # Corresponds to the JSON property `dataId` + # @return [String] + attr_accessor :data_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_details = args[:consent_details] if args.key?(:consent_details) + @consented = args[:consented] if args.key?(:consented) + @data_id = args[:data_id] if args.key?(:data_id) + end + end + + # Revokes the latest revision of the specified Consent by committing a new + # revision with `state` updated to `REVOKED`. If the latest revision of the + # given consent is in the `REVOKED` state, no new revision is committed. + class RevokeConsentRequest + include Google::Apis::Core::Hashable + + # The resource name of the consent artifact that contains proof of the end user' + # s revocation of the consent, of the form `projects/`project_id`/locations/` + # location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/ + # consentArtifacts/`consent_artifact_id``. + # Corresponds to the JSON property `consentArtifact` + # @return [String] + attr_accessor :consent_artifact + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact) + end + end + # Configuration for the FHIR BigQuery schema. Determines how the server # generates the schema. class SchemaConfig @@ -3787,6 +4691,44 @@ module Google end end + # User signature. + class Signature + include Google::Apis::Core::Hashable + + # An image. + # Corresponds to the JSON property `image` + # @return [Google::Apis::HealthcareV1beta1::Image] + attr_accessor :image + + # Metadata associated with the user's signature. For example, the user's name or + # the user's title. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Timestamp of the signature. + # Corresponds to the JSON property `signatureTime` + # @return [String] + attr_accessor :signature_time + + # User's UUID provided by the client. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image = args[:image] if args.key?(:image) + @metadata = args[:metadata] if args.key?(:metadata) + @signature_time = args[:signature_time] if args.key?(:signature_time) + @user_id = args[:user_id] if args.key?(:user_id) + end + end + # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by [ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of @@ -3968,6 +4910,62 @@ module Google end end + # Maps a user data entry to its end user and Attributes. + class UserDataMapping + include Google::Apis::Core::Hashable + + # Output only. Indicates the time when this data mapping was archived. + # Corresponds to the JSON property `archiveTime` + # @return [String] + attr_accessor :archive_time + + # Output only. Indicates whether this data mapping is archived. + # Corresponds to the JSON property `archived` + # @return [Boolean] + attr_accessor :archived + alias_method :archived?, :archived + + # Required. A unique identifier for the mapped data. + # Corresponds to the JSON property `dataId` + # @return [String] + attr_accessor :data_id + + # Resource name of the User data mapping, of the form `projects/`project_id`/ + # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/ + # userDataMappings/`user_data_mapping_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Attributes of end user data. Each attribute can have exactly one value + # specified. Only explicitly set attributes are displayed here. Attribute + # definitions with defaults set implicitly apply to these User data mappings. + # Attributes listed here must be single valued, that is, exactly one value is + # specified for the field "values" in each Attribute. + # Corresponds to the JSON property `resourceAttributes` + # @return [Array] + attr_accessor :resource_attributes + + # Required. User's UUID provided by the client. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @archive_time = args[:archive_time] if args.key?(:archive_time) + @archived = args[:archived] if args.key?(:archived) + @data_id = args[:data_id] if args.key?(:data_id) + @name = args[:name] if args.key?(:name) + @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes) + @user_id = args[:user_id] if args.key?(:user_id) + end + end + # Describes a selector for extracting and matching an MSH field to a value. class VersionSource include Google::Apis::Core::Hashable diff --git a/generated/google/apis/healthcare_v1beta1/representations.rb b/generated/google/apis/healthcare_v1beta1/representations.rb index 8ef9a22a8..6c7731d60 100644 --- a/generated/google/apis/healthcare_v1beta1/representations.rb +++ b/generated/google/apis/healthcare_v1beta1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module HealthcareV1beta1 + class ActivateConsentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Annotation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -46,6 +52,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ArchiveUserDataMappingRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ArchiveUserDataMappingResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Attribute + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AttributeDefinition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AuditConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,12 +112,54 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CheckDataAccessRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CheckDataAccessResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CloudHealthcareSource class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Consent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConsentArtifact + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConsentEvaluation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConsentList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConsentStore + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CreateMessageRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -196,6 +268,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class EvaluateUserConsentsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EvaluateUserConsentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ExportAnnotationsErrorDetails class Representation < Google::Apis::Core::JsonRepresentation; end @@ -304,6 +388,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudHealthcareV1beta1ConsentGcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudHealthcareV1beta1ConsentPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary class Representation < Google::Apis::Core::JsonRepresentation; end @@ -418,6 +514,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Image + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImageAnnotation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -520,6 +622,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListAttributeDefinitionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListConsentArtifactsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListConsentRevisionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListConsentStoresResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListConsentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListDatasetsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -562,6 +694,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListUserDataMappingsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Location class Representation < Google::Apis::Core::JsonRepresentation; end @@ -622,12 +760,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class QueryAccessibleDataRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RedactConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class RejectConsentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ReplaceWithInfoTypeConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -646,6 +796,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Result + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RevokeConsentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SchemaConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -700,6 +862,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Signature + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Status class Representation < Google::Apis::Core::JsonRepresentation; end @@ -742,6 +910,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UserDataMapping + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VersionSource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -754,6 +928,15 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ActivateConsentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consent_artifact, as: 'consentArtifact' + property :expire_time, as: 'expireTime' + property :ttl, as: 'ttl' + end + end + class Annotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -794,6 +977,38 @@ module Google end end + class ArchiveUserDataMappingRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ArchiveUserDataMappingResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Attribute + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attribute_definition_id, as: 'attributeDefinitionId' + collection :values, as: 'values' + end + end + + class AttributeDefinition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :allowed_values, as: 'allowedValues' + property :category, as: 'category' + collection :consent_default_values, as: 'consentDefaultValues' + property :data_mapping_default_value, as: 'dataMappingDefaultValue' + property :description, as: 'description' + property :name, as: 'name' + end + end + class AuditConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -843,6 +1058,26 @@ module Google end end + class CheckDataAccessRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consent_list, as: 'consentList', class: Google::Apis::HealthcareV1beta1::ConsentList, decorator: Google::Apis::HealthcareV1beta1::ConsentList::Representation + + property :data_id, as: 'dataId' + hash :request_attributes, as: 'requestAttributes' + property :response_view, as: 'responseView' + end + end + + class CheckDataAccessResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :consent_details, as: 'consentDetails', class: Google::Apis::HealthcareV1beta1::ConsentEvaluation, decorator: Google::Apis::HealthcareV1beta1::ConsentEvaluation::Representation + + property :consented, as: 'consented' + end + end + class CloudHealthcareSource # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -850,6 +1085,64 @@ module Google end end + class Consent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consent_artifact, as: 'consentArtifact' + property :expire_time, as: 'expireTime' + property :name, as: 'name' + collection :policies, as: 'policies', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1ConsentPolicy, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1ConsentPolicy::Representation + + property :revision_create_time, as: 'revisionCreateTime' + property :revision_id, as: 'revisionId' + property :state, as: 'state' + property :ttl, as: 'ttl' + property :user_id, as: 'userId' + end + end + + class ConsentArtifact + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :consent_content_screenshots, as: 'consentContentScreenshots', class: Google::Apis::HealthcareV1beta1::Image, decorator: Google::Apis::HealthcareV1beta1::Image::Representation + + property :consent_content_version, as: 'consentContentVersion' + property :guardian_signature, as: 'guardianSignature', class: Google::Apis::HealthcareV1beta1::Signature, decorator: Google::Apis::HealthcareV1beta1::Signature::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + property :user_id, as: 'userId' + property :user_signature, as: 'userSignature', class: Google::Apis::HealthcareV1beta1::Signature, decorator: Google::Apis::HealthcareV1beta1::Signature::Representation + + property :witness_signature, as: 'witnessSignature', class: Google::Apis::HealthcareV1beta1::Signature, decorator: Google::Apis::HealthcareV1beta1::Signature::Representation + + end + end + + class ConsentEvaluation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :evaluation_result, as: 'evaluationResult' + end + end + + class ConsentList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :consents, as: 'consents' + end + end + + class ConsentStore + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :default_consent_ttl, as: 'defaultConsentTtl' + property :enable_consent_create_on_update, as: 'enableConsentCreateOnUpdate' + hash :labels, as: 'labels' + property :name, as: 'name' + end + end + class CreateMessageRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1024,6 +1317,29 @@ module Google end end + class EvaluateUserConsentsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consent_list, as: 'consentList', class: Google::Apis::HealthcareV1beta1::ConsentList, decorator: Google::Apis::HealthcareV1beta1::ConsentList::Representation + + property :page_size, as: 'pageSize' + property :page_token, as: 'pageToken' + hash :request_attributes, as: 'requestAttributes' + hash :resource_attributes, as: 'resourceAttributes' + property :response_view, as: 'responseView' + property :user_id, as: 'userId' + end + end + + class EvaluateUserConsentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :results, as: 'results', class: Google::Apis::HealthcareV1beta1::Result, decorator: Google::Apis::HealthcareV1beta1::Result::Representation + + end + end + class ExportAnnotationsErrorDetails # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1187,6 +1503,23 @@ module Google end end + class GoogleCloudHealthcareV1beta1ConsentGcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri_prefix, as: 'uriPrefix' + end + end + + class GoogleCloudHealthcareV1beta1ConsentPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :authorization_rule, as: 'authorizationRule', class: Google::Apis::HealthcareV1beta1::Expr, decorator: Google::Apis::HealthcareV1beta1::Expr::Representation + + collection :resource_attributes, as: 'resourceAttributes', class: Google::Apis::HealthcareV1beta1::Attribute, decorator: Google::Apis::HealthcareV1beta1::Attribute::Representation + + end + end + class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1355,6 +1688,14 @@ module Google end end + class Image + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_uri, as: 'gcsUri' + property :raw_bytes, :base64 => true, as: 'rawBytes' + end + end + class ImageAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1505,6 +1846,51 @@ module Google end end + class ListAttributeDefinitionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attribute_definitions, as: 'attributeDefinitions', class: Google::Apis::HealthcareV1beta1::AttributeDefinition, decorator: Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListConsentArtifactsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :consent_artifacts, as: 'consentArtifacts', class: Google::Apis::HealthcareV1beta1::ConsentArtifact, decorator: Google::Apis::HealthcareV1beta1::ConsentArtifact::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListConsentRevisionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :consents, as: 'consents', class: Google::Apis::HealthcareV1beta1::Consent, decorator: Google::Apis::HealthcareV1beta1::Consent::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListConsentStoresResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :consent_stores, as: 'consentStores', class: Google::Apis::HealthcareV1beta1::ConsentStore, decorator: Google::Apis::HealthcareV1beta1::ConsentStore::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListConsentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :consents, as: 'consents', class: Google::Apis::HealthcareV1beta1::Consent, decorator: Google::Apis::HealthcareV1beta1::Consent::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListDatasetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1568,6 +1954,15 @@ module Google end end + class ListUserDataMappingsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :user_data_mappings, as: 'userDataMappings', class: Google::Apis::HealthcareV1beta1::UserDataMapping, decorator: Google::Apis::HealthcareV1beta1::UserDataMapping::Representation + + end + end + class Location # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1678,12 +2073,29 @@ module Google end end + class QueryAccessibleDataRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1ConsentGcsDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1ConsentGcsDestination::Representation + + hash :request_attributes, as: 'requestAttributes' + hash :resource_attributes, as: 'resourceAttributes' + end + end + class RedactConfig # @private class Representation < Google::Apis::Core::JsonRepresentation end end + class RejectConsentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consent_artifact, as: 'consentArtifact' + end + end + class ReplaceWithInfoTypeConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1704,6 +2116,23 @@ module Google end end + class Result + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :consent_details, as: 'consentDetails', class: Google::Apis::HealthcareV1beta1::ConsentEvaluation, decorator: Google::Apis::HealthcareV1beta1::ConsentEvaluation::Representation + + property :consented, as: 'consented' + property :data_id, as: 'dataId' + end + end + + class RevokeConsentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consent_artifact, as: 'consentArtifact' + end + end + class SchemaConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1787,6 +2216,17 @@ module Google end end + class Signature + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image, as: 'image', class: Google::Apis::HealthcareV1beta1::Image, decorator: Google::Apis::HealthcareV1beta1::Image::Representation + + hash :metadata, as: 'metadata' + property :signature_time, as: 'signatureTime' + property :user_id, as: 'userId' + end + end + class Status # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1844,6 +2284,19 @@ module Google end end + class UserDataMapping + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :archive_time, as: 'archiveTime' + property :archived, as: 'archived' + property :data_id, as: 'dataId' + property :name, as: 'name' + collection :resource_attributes, as: 'resourceAttributes', class: Google::Apis::HealthcareV1beta1::Attribute, decorator: Google::Apis::HealthcareV1beta1::Attribute::Representation + + property :user_id, as: 'userId' + end + end + class VersionSource # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/healthcare_v1beta1/service.rb b/generated/google/apis/healthcare_v1beta1/service.rb index 13196d59d..3f9d46fda 100644 --- a/generated/google/apis/healthcare_v1beta1/service.rb +++ b/generated/google/apis/healthcare_v1beta1/service.rb @@ -1051,6 +1051,178 @@ module Google execute_or_queue_command(command, &block) end + # Checks if a particular data_id of a User data mapping in the given Consent + # store is consented for a given use. + # @param [String] consent_store + # Name of the Consent store where the requested data_id is stored, of the form ` + # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ + # consentStores/`consent_store_id``. + # @param [Google::Apis::HealthcareV1beta1::CheckDataAccessRequest] check_data_access_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::CheckDataAccessResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::CheckDataAccessResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def check_consent_store_data_access(consent_store, check_data_access_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+consentStore}:checkDataAccess', options) + command.request_representation = Google::Apis::HealthcareV1beta1::CheckDataAccessRequest::Representation + command.request_object = check_data_access_request_object + command.response_representation = Google::Apis::HealthcareV1beta1::CheckDataAccessResponse::Representation + command.response_class = Google::Apis::HealthcareV1beta1::CheckDataAccessResponse + command.params['consentStore'] = consent_store unless consent_store.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new Consent store in the parent dataset. Attempting to create a + # consent store with the same ID as an existing store fails with an + # ALREADY_EXISTS error. + # @param [String] parent + # Required. The name of the dataset this Consent store belongs to. + # @param [Google::Apis::HealthcareV1beta1::ConsentStore] consent_store_object + # @param [String] consent_store_id + # The ID of the consent store to create. The string must match the following + # regex: `[\p`L`\p`N`_\-\.]`1,256``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentStore] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ConsentStore] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_dataset_consent_store(parent, consent_store_object = nil, consent_store_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/consentStores', options) + command.request_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation + command.request_object = consent_store_object + command.response_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ConsentStore + command.params['parent'] = parent unless parent.nil? + command.query['consentStoreId'] = consent_store_id unless consent_store_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified Consent store and removes all consent data in the + # specified consent store. + # @param [String] name + # Required. The resource name of the Consent store to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_dataset_consent_store(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Evaluates the end user's Consents for all matching User data mappings. Note: + # User data mappings are indexed asynchronously, so there might be a slight + # delay between the time a mapping is created or updated and when it is included + # in the results of EvaluateUserConsents. + # @param [String] consent_store + # Name of the Consent store to retrieve user data mappings from. + # @param [Google::Apis::HealthcareV1beta1::EvaluateUserConsentsRequest] evaluate_user_consents_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def evaluate_consent_store_user_consents(consent_store, evaluate_user_consents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+consentStore}:evaluateUserConsents', options) + command.request_representation = Google::Apis::HealthcareV1beta1::EvaluateUserConsentsRequest::Representation + command.request_object = evaluate_user_consents_request_object + command.response_representation = Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse::Representation + command.response_class = Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse + command.params['consentStore'] = consent_store unless consent_store.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the specified Consent store. + # @param [String] name + # Required. The resource name of the Consent store to get. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentStore] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ConsentStore] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_dataset_consent_store(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ConsentStore + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the access control policy for a resource. Returns an empty policy if the # resource exists and does not have a policy set. # @param [String] resource @@ -1092,6 +1264,139 @@ module Google execute_or_queue_command(command, &block) end + # Lists the Consent stores in the given dataset. + # @param [String] parent + # Required. Name of the dataset. + # @param [String] filter + # Restricts the stores returned to those matching a filter. Syntax: https:// + # cloud.google.com/appengine/docs/standard/python/search/query_strings. Only + # filtering on labels is supported. For example, `labels.key=value`. + # @param [Fixnum] page_size + # Limit on the number of Consent stores to return in a single response. If zero + # the default page size of 100 is used. + # @param [String] page_token + # Token to retrieve the next page of results or empty to get the first page. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentStoresResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ListConsentStoresResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_dataset_consent_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/consentStores', options) + command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentStoresResponse::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ListConsentStoresResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified Consent store. + # @param [String] name + # Resource name of the Consent store, of the form `projects/`project_id`/ + # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`` + # . + # @param [Google::Apis::HealthcareV1beta1::ConsentStore] consent_store_object + # @param [String] update_mask + # The update mask that applies to the resource. For the `FieldMask` definition, + # see https://developers.google.com/protocol-buffers/docs/reference/google. + # protobuf#fieldmask. The `labels` field is allowed to be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentStore] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ConsentStore] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_dataset_consent_store(name, consent_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation + command.request_object = consent_store_object + command.response_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ConsentStore + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Queries all data_ids that are consented for a given use in the given Consent + # store and writes them to a specified destination. The returned Operation + # includes a progress counter for the number of User data mappings processed. + # Errors are logged to Cloud Logging (see [Viewing logs] (/healthcare/docs/how- + # tos/logging)). For example, the following sample log entry shows a `failed to + # evaluate consent policy` error that occurred during a QueryAccessibleData call + # to consent store `projects/`project_id`/locations/`location_id`/datasets/` + # dataset_id`/consentStores/`consent_store_id``. ```json jsonPayload: ` @type: " + # type.googleapis.com/google.cloud.healthcare.logging. + # QueryAccessibleDataLogEntry" error: ` code: 9 message: "failed to evaluate + # consent policy" ` resourceName: "projects/`project_id`/locations/`location_id`/ + # datasets/`dataset_id`/consentStores/`consent_store_id`/consents/`consent_id`" ` + # logName: "projects/`project_id`/logs/healthcare.googleapis.com% + # 2Fquery_accessible_data" operation: ` id: "projects/`project_id`/locations/` + # location_id`/datasets/`dataset_id`/operations/`operation_id`" producer: " + # healthcare.googleapis.com/QueryAccessibleData" ` receiveTimestamp: "TIMESTAMP" + # resource: ` labels: ` consent_store_id: "`consent_store_id`" dataset_id: "` + # dataset_id`" location: "`location_id`" project_id: "`project_id`" ` type: " + # healthcare_consent_store" ` severity: "ERROR" timestamp: "TIMESTAMP" ``` + # @param [String] consent_store + # Name of the Consent store to retrieve user data mappings from. + # @param [Google::Apis::HealthcareV1beta1::QueryAccessibleDataRequest] query_accessible_data_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def query_consent_store_accessible_data(consent_store, query_accessible_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+consentStore}:queryAccessibleData', options) + command.request_representation = Google::Apis::HealthcareV1beta1::QueryAccessibleDataRequest::Representation + command.request_object = query_accessible_data_request_object + command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Operation + command.params['consentStore'] = consent_store unless consent_store.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Sets the access control policy on the specified resource. Replaces any # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` # PERMISSION_DENIED` errors. @@ -1166,6 +1471,927 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new Attribute definition in the parent Consent store. + # @param [String] parent + # Required. The name of the consent store that this Attribute definition belongs + # to. + # @param [Google::Apis::HealthcareV1beta1::AttributeDefinition] attribute_definition_object + # @param [String] attribute_definition_id + # Required. The ID of the Attribute definition to create. The string must match + # the following regex: `_a-zA-Z`0,255`` and must not be a reserved keyword + # within the Common Expression Language as listed on https://github.com/google/ + # cel-spec/blob/master/doc/langdef.md. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::AttributeDefinition] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::AttributeDefinition] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + 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) + command = make_simple_command(:post, 'v1beta1/{+parent}/attributeDefinitions', options) + command.request_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation + command.request_object = attribute_definition_object + command.response_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation + command.response_class = Google::Apis::HealthcareV1beta1::AttributeDefinition + command.params['parent'] = parent unless parent.nil? + command.query['attributeDefinitionId'] = attribute_definition_id unless attribute_definition_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified Attribute definition. Fails if it is referenced by the + # latest revision of any Consent or User data mapping. + # @param [String] name + # Required. The resource name of the Attribute definition to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_dataset_consent_store_attribute_definition(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the specified Attribute definition. + # @param [String] name + # Required. The resource name of the Attribute definition to get. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::AttributeDefinition] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::AttributeDefinition] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_dataset_consent_store_attribute_definition(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation + command.response_class = Google::Apis::HealthcareV1beta1::AttributeDefinition + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the Attribute definitions in the given Consent store. + # @param [String] parent + # Required. Name of the Consent store to retrieve attribute definitions from. + # @param [String] filter + # Restricts the attributes returned to those matching a filter. Syntax: https:// + # cloud.google.com/appengine/docs/standard/python/search/query_strings. The only + # field available for filtering is `category`. + # @param [Fixnum] page_size + # Limit on the number of attribute definitions to return in a single response. + # If zero the default page size of 100 is used. + # @param [String] page_token + # Token to retrieve the next page of results or empty to get the first page. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + 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) + command = make_simple_command(:get, 'v1beta1/{+parent}/attributeDefinitions', options) + command.response_representation = Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified Attribute definition. + # @param [String] name + # Resource name of the attribute definition, of the form `projects/`project_id`/ + # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/ + # attributeDefinitions/`attribute_definition_id``. + # @param [Google::Apis::HealthcareV1beta1::AttributeDefinition] attribute_definition_object + # @param [String] update_mask + # The update mask that applies to the resource. For the `FieldMask` definition, + # see https://developers.google.com/protocol-buffers/docs/reference/google. + # protobuf#fieldmask. The `description`, `possible_values`, ` + # consent_default_values`, and `data_mapping_default_value` fields are allowed + # to be updated. The updated `possible_values` must contain all values from the + # previous `possible_values`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::AttributeDefinition] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::AttributeDefinition] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + 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) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation + command.request_object = attribute_definition_object + command.response_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation + command.response_class = Google::Apis::HealthcareV1beta1::AttributeDefinition + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new Consent artifact in the parent Consent store. + # @param [String] parent + # Required. The name of the Consent store this consent artifact belongs to. + # @param [Google::Apis::HealthcareV1beta1::ConsentArtifact] consent_artifact_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentArtifact] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ConsentArtifact] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_dataset_consent_store_consent_artifact(parent, consent_artifact_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/consentArtifacts', options) + command.request_representation = Google::Apis::HealthcareV1beta1::ConsentArtifact::Representation + command.request_object = consent_artifact_object + command.response_representation = Google::Apis::HealthcareV1beta1::ConsentArtifact::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ConsentArtifact + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified Consent artifact. Fails if it is referenced by the + # latest revision of any Consent. + # @param [String] name + # Required. The resource name of the consent artifact to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_dataset_consent_store_consent_artifact(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the specified Consent artifact. + # @param [String] name + # Required. The resource name of the consent artifact to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentArtifact] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ConsentArtifact] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_dataset_consent_store_consent_artifact(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::HealthcareV1beta1::ConsentArtifact::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ConsentArtifact + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the Consent artifacts in the given Consent store. + # @param [String] parent + # Required. Name of the Consent store to retrieve consent artifacts from. + # @param [String] filter + # Restricts the artifacts returned to those matching a filter. Syntax: https:// + # cloud.google.com/appengine/docs/standard/python/search/query_strings The + # fields available for filtering are: - user_id - consent_content_version + # @param [Fixnum] page_size + # Limit on the number of consent artifacts to return in a single response. If + # zero the default page size of 100 is used. + # @param [String] page_token + # The next_page_token value returned from the previous List request, if any. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + 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) + command = make_simple_command(:get, 'v1beta1/{+parent}/consentArtifacts', options) + command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Activates the latest revision of the specified Consent by committing a new + # revision with `state` updated to `ACTIVE`. If the latest revision of the given + # consent is in the `ACTIVE` state, no new revision is committed. A + # FAILED_PRECONDITION error occurs if the latest revision of the given consent + # is in the `REJECTED` or `REVOKED` state. + # @param [String] name + # Required. The resource name of the consent to activate, of the form `projects/` + # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/` + # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if ` + # revision_id` is specified in the name. + # @param [Google::Apis::HealthcareV1beta1::ActivateConsentRequest] activate_consent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Consent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def activate_consent(name, activate_consent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:activate', options) + command.request_representation = Google::Apis::HealthcareV1beta1::ActivateConsentRequest::Representation + command.request_object = activate_consent_request_object + command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Consent + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new Consent in the parent Consent store. + # @param [String] parent + # Required. Name of the consent store. + # @param [Google::Apis::HealthcareV1beta1::Consent] consent_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Consent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_dataset_consent_store_consent(parent, consent_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/consents', options) + command.request_representation = Google::Apis::HealthcareV1beta1::Consent::Representation + command.request_object = consent_object + command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Consent + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the Consent and its revisions. To keep a record of the Consent but + # mark it inactive, see [RevokeConsent]. To delete a revision of a Consent, see [ + # DeleteConsentRevision]. This operation does not delete the related consent + # artifact. + # @param [String] name + # Required. The resource name of the consent to delete, of the form `projects/` + # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/` + # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if ` + # revision_id` is specified in the name. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_dataset_consent_store_consent(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified revision of a Consent. An INVALID_ARGUMENT error occurs + # if the specified revision is the latest revision. + # @param [String] name + # Required. The resource name of the consent revision to delete, of the form ` + # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ + # consentStores/`consent_store_id`/consents/`consent_id`@`revision_id``. An + # INVALID_ARGUMENT error occurs if `revision_id` is not specified in the name. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_dataset_consent_store_consent_revision(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}:deleteRevision', options) + command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the specified revision of a Consent, or the latest revision if ` + # revision_id` is not specified in the resource name. + # @param [String] name + # Required. The resource name of the consent to retrieve, of the form `projects/` + # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/` + # consent_store_id`/consents/`consent_id``. In order to retrieve a previous + # revision of the consent, also provide the revision ID: `projects/`project_id`/ + # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/ + # consents/`consent_id`@`revision_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Consent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_dataset_consent_store_consent(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Consent + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the Consent in the given Consent store, returning each consent's latest + # revision. + # @param [String] parent + # Required. Name of the Consent store to retrieve consents from. + # @param [String] filter + # Restricts the consents returned to those matching a filter. Syntax: https:// + # cloud.google.com/appengine/docs/standard/python/search/query_strings The + # fields available for filtering are: - user_id - consent_artifact - state - + # state_change_time + # @param [Fixnum] page_size + # Limit on the number of consents to return in a single response. If zero the + # default page size of 100 is used. + # @param [String] page_token + # The next_page_token value returned from the previous List request, if any. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ListConsentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + 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) + command = make_simple_command(:get, 'v1beta1/{+parent}/consents', options) + command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentsResponse::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ListConsentsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the revisions of the given Consent in reverse chronological order. + # @param [String] name + # Required. The resource name of the consent to retrieve revisions for. + # @param [String] filter + # Restricts the revisions returned to those matching a filter. Syntax: https:// + # cloud.google.com/appengine/docs/standard/python/search/query_strings. Fields/ + # functions available for filtering are: - user_id - consent_artifact - state - + # revision_create_time + # @param [Fixnum] page_size + # Limit on the number of revisions to return in a single response. If zero the + # default page size of 100 is used. + # @param [String] page_token + # Token to retrieve the next page of results or empty if there are no more + # results in the list. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + 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) + command = make_simple_command(:get, 'v1beta1/{+name}:listRevisions', options) + command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the latest revision of the specified Consent by committing a new + # revision with the changes. A FAILED_PRECONDITION error occurs if the latest + # revision of the given consent is in the `REJECTED` or `REVOKED` state. + # @param [String] name + # Resource name of the Consent, of the form `projects/`project_id`/locations/` + # location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/consents/` + # consent_id``. + # @param [Google::Apis::HealthcareV1beta1::Consent] consent_object + # @param [String] update_mask + # The update mask to apply to the resource. For the `FieldMask` definition, see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # fieldmask. The `user_id`, `policies`, and `consent_artifact` fields can be + # updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Consent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_dataset_consent_store_consent(name, consent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::HealthcareV1beta1::Consent::Representation + command.request_object = consent_object + command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Consent + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rejects the latest revision of the specified Consent by committing a new + # revision with `state` updated to `REJECTED`. If the latest revision of the + # given consent is in the `REJECTED` state, no new revision is committed. A + # FAILED_PRECONDITION error occurs if the latest revision of the given consent + # is in the `ACTIVE` or `REVOKED` state. + # @param [String] name + # Required. The resource name of the consent to reject, of the form `projects/` + # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/` + # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if ` + # revision_id` is specified in the name. + # @param [Google::Apis::HealthcareV1beta1::RejectConsentRequest] reject_consent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Consent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reject_consent(name, reject_consent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:reject', options) + command.request_representation = Google::Apis::HealthcareV1beta1::RejectConsentRequest::Representation + command.request_object = reject_consent_request_object + command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Consent + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Revokes the latest revision of the specified Consent by committing a new + # revision with `state` updated to `REVOKED`. If the latest revision of the + # given consent is in the `REVOKED` state, no new revision is committed. A + # FAILED_PRECONDITION error occurs if the latest revision of the given consent + # is in `DRAFT` or `REJECTED` state. + # @param [String] name + # Required. The resource name of the consent to revoke, of the form `projects/` + # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/` + # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if ` + # revision_id` is specified in the name. + # @param [Google::Apis::HealthcareV1beta1::RevokeConsentRequest] revoke_consent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Consent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def revoke_consent(name, revoke_consent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:revoke', options) + command.request_representation = Google::Apis::HealthcareV1beta1::RevokeConsentRequest::Representation + command.request_object = revoke_consent_request_object + command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Consent + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Archives the specified User data mapping. + # @param [String] name + # The resource name of the user data mapping to archive. + # @param [Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingRequest] archive_user_data_mapping_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def archive_user_data_mapping(name, archive_user_data_mapping_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:archive', options) + command.request_representation = Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingRequest::Representation + command.request_object = archive_user_data_mapping_request_object + command.response_representation = Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new User data mapping in the parent Consent store. + # @param [String] parent + # Required. Name of the consent store. + # @param [Google::Apis::HealthcareV1beta1::UserDataMapping] user_data_mapping_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::UserDataMapping] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::UserDataMapping] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_dataset_consent_store_user_data_mapping(parent, user_data_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/userDataMappings', options) + command.request_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation + command.request_object = user_data_mapping_object + command.response_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation + command.response_class = Google::Apis::HealthcareV1beta1::UserDataMapping + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified User data mapping. + # @param [String] name + # Required. The resource name of the user data mapping to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_dataset_consent_store_user_data_mapping(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the specified User data mapping. + # @param [String] name + # Required. The resource name of the user data mapping to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::UserDataMapping] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::UserDataMapping] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_dataset_consent_store_user_data_mapping(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation + command.response_class = Google::Apis::HealthcareV1beta1::UserDataMapping + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the User data mappings in the given Consent store. + # @param [String] parent + # Required. Name of the Consent store to retrieve user data mappings from. + # @param [String] filter + # Restricts the user data mappings returned to those matching a filter. Syntax: + # https://cloud.google.com/appengine/docs/standard/python/search/query_strings + # The fields available for filtering are: - data_id - user_id - archived - + # archive_time + # @param [Fixnum] page_size + # Limit on the number of user data mappings to return in a single response. If + # zero the default page size of 100 is used. + # @param [String] page_token + # Token to retrieve the next page of results or empty to get the first page. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + 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) + command = make_simple_command(:get, 'v1beta1/{+parent}/userDataMappings', options) + command.response_representation = Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse::Representation + command.response_class = Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified User data mapping. + # @param [String] name + # Resource name of the User data mapping, of the form `projects/`project_id`/ + # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/ + # userDataMappings/`user_data_mapping_id``. + # @param [Google::Apis::HealthcareV1beta1::UserDataMapping] user_data_mapping_object + # @param [String] update_mask + # The update mask that applies to the resource. For the `FieldMask` definition, + # see https://developers.google.com/protocol-buffers/docs/reference/google. + # protobuf#fieldmask. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1beta1::UserDataMapping] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::UserDataMapping] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + 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) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation + command.request_object = user_data_mapping_object + command.response_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation + command.response_class = Google::Apis::HealthcareV1beta1::UserDataMapping + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a new DICOM store within the parent dataset. # @param [String] parent # The name of the dataset this DICOM store belongs to. diff --git a/generated/google/apis/oslogin_v1alpha.rb b/generated/google/apis/oslogin_v1alpha.rb index 4c8d989f4..cf7e25e61 100644 --- a/generated/google/apis/oslogin_v1alpha.rb +++ b/generated/google/apis/oslogin_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/compute/docs/oslogin/ module OsloginV1alpha VERSION = 'V1alpha' - REVISION = '20200817' + REVISION = '20200919' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/oslogin_v1alpha/classes.rb b/generated/google/apis/oslogin_v1alpha/classes.rb index b023e9fa6..d98acce6f 100644 --- a/generated/google/apis/oslogin_v1alpha/classes.rb +++ b/generated/google/apis/oslogin_v1alpha/classes.rb @@ -39,7 +39,7 @@ module Google end end - # A response message from importing an SSH public key. + # A response message for importing an SSH public key. class ImportSshPublicKeyResponse include Google::Apis::Core::Hashable @@ -70,7 +70,7 @@ module Google class LoginProfile include Google::Apis::Core::Hashable - # A unique user ID. + # Required. A unique user ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/oslogin_v1alpha/service.rb b/generated/google/apis/oslogin_v1alpha/service.rb index 859f3ae3b..cd54923f9 100644 --- a/generated/google/apis/oslogin_v1alpha/service.rb +++ b/generated/google/apis/oslogin_v1alpha/service.rb @@ -50,7 +50,7 @@ module Google # Retrieves the profile information used for logging in to a virtual machine on # Google Compute Engine. # @param [String] name - # The unique ID for the user in format `users/`user``. + # Required. The unique ID for the user in format `users/`user``. # @param [String] operating_system_type # The type of operating system associated with the account. # @param [String] project_id @@ -127,9 +127,9 @@ module Google # Deletes a POSIX account. # @param [String] name - # A reference to the POSIX account to update. POSIX accounts are identified by - # the project ID they are associated with. A reference to the POSIX account is - # in format `users/`user`/projects/`project``. + # Required. A reference to the POSIX account to update. POSIX accounts are + # identified by the project ID they are associated with. A reference to the + # POSIX account is in format `users/`user`/projects/`project``. # @param [String] operating_system_type # The type of operating system associated with the account. # @param [String] fields @@ -162,9 +162,9 @@ module Google # Deletes an SSH public key. # @param [String] name - # The fingerprint of the public key to update. Public keys are identified by - # their SHA-256 fingerprint. The fingerprint of the public key is in format ` - # users/`user`/sshPublicKeys/`fingerprint``. + # Required. The fingerprint of the public key to update. Public keys are + # identified by their SHA-256 fingerprint. The fingerprint of the public key is + # in format `users/`user`/sshPublicKeys/`fingerprint``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -194,9 +194,9 @@ module Google # Retrieves an SSH public key. # @param [String] name - # The fingerprint of the public key to retrieve. Public keys are identified by - # their SHA-256 fingerprint. The fingerprint of the public key is in format ` - # users/`user`/sshPublicKeys/`fingerprint``. + # Required. The fingerprint of the public key to retrieve. Public keys are + # identified by their SHA-256 fingerprint. The fingerprint of the public key is + # in format `users/`user`/sshPublicKeys/`fingerprint``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -227,9 +227,9 @@ module Google # Updates an SSH public key and returns the profile information. This method # supports patch semantics. # @param [String] name - # The fingerprint of the public key to update. Public keys are identified by - # their SHA-256 fingerprint. The fingerprint of the public key is in format ` - # users/`user`/sshPublicKeys/`fingerprint``. + # Required. The fingerprint of the public key to update. Public keys are + # identified by their SHA-256 fingerprint. The fingerprint of the public key is + # in format `users/`user`/sshPublicKeys/`fingerprint``. # @param [Google::Apis::OsloginV1alpha::SshPublicKey] ssh_public_key_object # @param [String] update_mask # Mask to control which fields get updated. Updates all if not present. diff --git a/generated/google/apis/realtimebidding_v1.rb b/generated/google/apis/realtimebidding_v1.rb index 38aaeee6a..5f3006ac7 100644 --- a/generated/google/apis/realtimebidding_v1.rb +++ b/generated/google/apis/realtimebidding_v1.rb @@ -28,7 +28,7 @@ module Google # @see https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/ module RealtimebiddingV1 VERSION = 'V1' - REVISION = '20200822' + REVISION = '20200922' # See, create, edit, and delete your Authorized Buyers and Open Bidding account entities AUTH_REALTIME_BIDDING = 'https://www.googleapis.com/auth/realtime-bidding' diff --git a/generated/google/apis/realtimebidding_v1/classes.rb b/generated/google/apis/realtimebidding_v1/classes.rb index 6cc6ae8cd..488c3bbb1 100644 --- a/generated/google/apis/realtimebidding_v1/classes.rb +++ b/generated/google/apis/realtimebidding_v1/classes.rb @@ -213,10 +213,10 @@ module Google # @return [Array] attr_accessor :impression_tracking_urls - # Output only. Name of the creative. Follows the pattern `buyers/`buyer`/ - # creatives/`creative``, where ``buyer`` represents the account ID of the buyer - # who owns the creative, and ``creative`` is the buyer-specific creative ID that - # references this creative in the bid response. + # Name of the creative. Follows the pattern `buyers/`buyer`/creatives/`creative`` + # , where ``buyer`` represents the account ID of the buyer who owns the creative, + # and ``creative`` is the buyer-specific creative ID that references this + # creative in the bid response. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/realtimebidding_v1/service.rb b/generated/google/apis/realtimebidding_v1/service.rb index ffe671855..74a93c8d5 100644 --- a/generated/google/apis/realtimebidding_v1/service.rb +++ b/generated/google/apis/realtimebidding_v1/service.rb @@ -327,7 +327,10 @@ module Google # Updates a creative. # @param [String] name - # Name of the creative to update. See creative.name. + # Name of the creative. Follows the pattern `buyers/`buyer`/creatives/`creative`` + # , where ``buyer`` represents the account ID of the buyer who owns the creative, + # and ``creative`` is the buyer-specific creative ID that references this + # creative in the bid response. # @param [Google::Apis::RealtimebiddingV1::Creative] creative_object # @param [String] update_mask # Field mask to use for partial in-place updates. diff --git a/generated/google/apis/smartdevicemanagement_v1.rb b/generated/google/apis/smartdevicemanagement_v1.rb new file mode 100644 index 000000000..3343b3321 --- /dev/null +++ b/generated/google/apis/smartdevicemanagement_v1.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/smartdevicemanagement_v1/service.rb' +require 'google/apis/smartdevicemanagement_v1/classes.rb' +require 'google/apis/smartdevicemanagement_v1/representations.rb' + +module Google + module Apis + # Smart Device Management API + # + # Allow select enterprise partners to access, control, and manage Google and + # Nest devices programmatically. + # + # @see https://developers.google.com/nest/device-access + module SmartdevicemanagementV1 + VERSION = 'V1' + REVISION = '20200910' + + # See and/or control the devices that you selected + AUTH_SDM_SERVICE = 'https://www.googleapis.com/auth/sdm.service' + end + end +end diff --git a/generated/google/apis/smartdevicemanagement_v1/classes.rb b/generated/google/apis/smartdevicemanagement_v1/classes.rb new file mode 100644 index 000000000..ed0e23dae --- /dev/null +++ b/generated/google/apis/smartdevicemanagement_v1/classes.rb @@ -0,0 +1,313 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module SmartdevicemanagementV1 + + # Device resource represents an instance of enterprise managed device in the + # property. + class GoogleHomeEnterpriseSdmV1Device + include Google::Apis::Core::Hashable + + # Output only. The name of the structure/room where the device is assigned to. + # For example: "enterprises/XYZ/structures/ABC" or "enterprises/XYZ/structures/ + # ABC/rooms/123" + # Corresponds to the JSON property `assignee` + # @return [String] + attr_accessor :assignee + + # Required. The resource name of the device. For example: "enterprises/XYZ/ + # devices/123". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Assignee details of the device. + # Corresponds to the JSON property `parentRelations` + # @return [Array] + attr_accessor :parent_relations + + # Output only. Device traits. + # Corresponds to the JSON property `traits` + # @return [Hash] + attr_accessor :traits + + # Output only. Type of the device for general display purposes. For example: " + # THERMOSTAT". The device type should not be used to deduce or infer + # functionality of the actual device it is assigned to. Instead, use the + # returned traits for the device. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @assignee = args[:assignee] if args.key?(:assignee) + @name = args[:name] if args.key?(:name) + @parent_relations = args[:parent_relations] if args.key?(:parent_relations) + @traits = args[:traits] if args.key?(:traits) + @type = args[:type] if args.key?(:type) + end + end + + # Request message for SmartDeviceManagementService.ExecuteDeviceCommand + class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest + include Google::Apis::Core::Hashable + + # The command name to execute, represented by the fully qualified protobuf + # message name. + # Corresponds to the JSON property `command` + # @return [String] + attr_accessor :command + + # The command message to execute, represented as a Struct. + # Corresponds to the JSON property `params` + # @return [Hash] + attr_accessor :params + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @command = args[:command] if args.key?(:command) + @params = args[:params] if args.key?(:params) + end + end + + # Response message for SmartDeviceManagementService.ExecuteDeviceCommand + class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse + include Google::Apis::Core::Hashable + + # The results of executing the command. + # Corresponds to the JSON property `results` + # @return [Hash] + attr_accessor :results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @results = args[:results] if args.key?(:results) + end + end + + # Response message for SmartDeviceManagementService.ListDevices + class GoogleHomeEnterpriseSdmV1ListDevicesResponse + include Google::Apis::Core::Hashable + + # The list of devices. + # Corresponds to the JSON property `devices` + # @return [Array] + attr_accessor :devices + + # The pagination token to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @devices = args[:devices] if args.key?(:devices) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for SmartDeviceManagementService.ListRooms + class GoogleHomeEnterpriseSdmV1ListRoomsResponse + include Google::Apis::Core::Hashable + + # The pagination token to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of rooms. + # Corresponds to the JSON property `rooms` + # @return [Array] + attr_accessor :rooms + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @rooms = args[:rooms] if args.key?(:rooms) + end + end + + # Response message for SmartDeviceManagementService.ListStructures + class GoogleHomeEnterpriseSdmV1ListStructuresResponse + include Google::Apis::Core::Hashable + + # The pagination token to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of structures. + # Corresponds to the JSON property `structures` + # @return [Array] + attr_accessor :structures + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @structures = args[:structures] if args.key?(:structures) + end + end + + # Represents device relationships, for instance, structure/room to which the + # device is assigned to. For now this is only filled in the enterprise flow. + class GoogleHomeEnterpriseSdmV1ParentRelation + include Google::Apis::Core::Hashable + + # Output only. The custom name of the relation -- e.g., structure/room where the + # device is assigned to. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. The name of the relation -- e.g., structure/room where the device + # is assigned to. For example: "enterprises/XYZ/structures/ABC" or "enterprises/ + # XYZ/structures/ABC/rooms/123" + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @parent = args[:parent] if args.key?(:parent) + end + end + + # Room resource represents an instance of sub-space within a structure such as + # rooms in a hotel suite or rental apartment. + class GoogleHomeEnterpriseSdmV1Room + include Google::Apis::Core::Hashable + + # Output only. The resource name of the room. For example: "enterprises/XYZ/ + # structures/ABC/rooms/123". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Room traits. + # Corresponds to the JSON property `traits` + # @return [Hash] + attr_accessor :traits + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @traits = args[:traits] if args.key?(:traits) + end + end + + # Structure resource represents an instance of enterprise managed home or hotel + # room. + class GoogleHomeEnterpriseSdmV1Structure + include Google::Apis::Core::Hashable + + # Output only. The resource name of the structure. For example: "enterprises/XYZ/ + # structures/ABC". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Assignee details of the structure. + # Corresponds to the JSON property `parentRelations` + # @return [Array] + attr_accessor :parent_relations + + # Structure traits. + # Corresponds to the JSON property `traits` + # @return [Hash] + attr_accessor :traits + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent_relations = args[:parent_relations] if args.key?(:parent_relations) + @traits = args[:traits] if args.key?(:traits) + end + end + + # Represents structure assignee relationships, for instance, group to which the + # structure is assigned to. + class GoogleHomeEnterpriseSdmV1StructureParentRelation + include Google::Apis::Core::Hashable + + # Output only. The custom name of the relation -- e.g., group, to which the + # structure is assigned to. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. The name of the relation -- e.g., group to which the structure is + # assigned to. For example: "enterprises/XYZ/groups/ABC" + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @parent = args[:parent] if args.key?(:parent) + end + end + end + end +end diff --git a/generated/google/apis/smartdevicemanagement_v1/representations.rb b/generated/google/apis/smartdevicemanagement_v1/representations.rb new file mode 100644 index 000000000..8eae9aead --- /dev/null +++ b/generated/google/apis/smartdevicemanagement_v1/representations.rb @@ -0,0 +1,174 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module SmartdevicemanagementV1 + + class GoogleHomeEnterpriseSdmV1Device + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleHomeEnterpriseSdmV1ListDevicesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleHomeEnterpriseSdmV1ListRoomsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleHomeEnterpriseSdmV1ListStructuresResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleHomeEnterpriseSdmV1ParentRelation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleHomeEnterpriseSdmV1Room + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleHomeEnterpriseSdmV1Structure + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleHomeEnterpriseSdmV1StructureParentRelation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleHomeEnterpriseSdmV1Device + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :assignee, as: 'assignee' + property :name, as: 'name' + collection :parent_relations, as: 'parentRelations', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation::Representation + + hash :traits, as: 'traits' + property :type, as: 'type' + end + end + + class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :command, as: 'command' + hash :params, as: 'params' + end + end + + class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :results, as: 'results' + end + end + + class GoogleHomeEnterpriseSdmV1ListDevicesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :devices, as: 'devices', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleHomeEnterpriseSdmV1ListRoomsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :rooms, as: 'rooms', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room::Representation + + end + end + + class GoogleHomeEnterpriseSdmV1ListStructuresResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :structures, as: 'structures', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure::Representation + + end + end + + class GoogleHomeEnterpriseSdmV1ParentRelation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :parent, as: 'parent' + end + end + + class GoogleHomeEnterpriseSdmV1Room + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + hash :traits, as: 'traits' + end + end + + class GoogleHomeEnterpriseSdmV1Structure + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + collection :parent_relations, as: 'parentRelations', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1StructureParentRelation, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1StructureParentRelation::Representation + + hash :traits, as: 'traits' + end + end + + class GoogleHomeEnterpriseSdmV1StructureParentRelation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :parent, as: 'parent' + end + end + end + end +end diff --git a/generated/google/apis/smartdevicemanagement_v1/service.rb b/generated/google/apis/smartdevicemanagement_v1/service.rb new file mode 100644 index 000000000..72af7f900 --- /dev/null +++ b/generated/google/apis/smartdevicemanagement_v1/service.rb @@ -0,0 +1,312 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module SmartdevicemanagementV1 + # Smart Device Management API + # + # Allow select enterprise partners to access, control, and manage Google and + # Nest devices programmatically. + # + # @example + # require 'google/apis/smartdevicemanagement_v1' + # + # Smartdevicemanagement = Google::Apis::SmartdevicemanagementV1 # Alias the module + # service = Smartdevicemanagement::SmartDeviceManagementService.new + # + # @see https://developers.google.com/nest/device-access + class SmartDeviceManagementService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://smartdevicemanagement.googleapis.com/', '') + @batch_path = 'batch' + end + + # Executes a command to device managed by the enterprise. + # @param [String] name + # The name of the device requested. For example: "enterprises/XYZ/devices/123" + # @param [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest] google_home_enterprise_sdm_v1_execute_device_command_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def execute_enterprise_device_command(name, google_home_enterprise_sdm_v1_execute_device_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:executeCommand', options) + command.request_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest::Representation + command.request_object = google_home_enterprise_sdm_v1_execute_device_command_request_object + command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse::Representation + command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a device managed by the enterprise. + # @param [String] name + # The name of the device requested. For example: "enterprises/XYZ/devices/123" + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_enterprise_device(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device::Representation + command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists devices managed by the enterprise. + # @param [String] parent + # The parent enterprise to list devices under. E.g. "enterprises/XYZ". + # @param [String] filter + # Optional filter to list devices. Filters can match the exact assignee (could + # be a structure or a room). E.g. 'assignee=enterprises/XYZ/structures/abc' Also + # could filter by parent (group): 'parent=enterprises/XYZ/groups/jkl' or filter + # by device custom name (substring match): 'customName=wing' + # @param [Fixnum] page_size + # Optional requested page size. Server may return fewer devices than requested. + # If unspecified, server will pick an appropriate default. + # @param [String] page_token + # Optional token of the page to retrieve. + # @param [String] view + # Additional details that need to be provided for the device. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_enterprise_devices(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/devices', options) + command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse::Representation + command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['view'] = view unless view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a structure managed by the enterprise. + # @param [String] name + # The name of the structure requested. For example: "enterprises/XYZ/structures/ + # ABC". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_enterprise_structure(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure::Representation + command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists structures managed by the enterprise. + # @param [String] parent + # The parent enterprise to list structures under. E.g. "enterprises/XYZ". + # @param [String] filter + # Optional filter to list structures. Filters can match the exact album assigned + # to the structure. E.g. 'album=enterprises/XYZ/albums/abc' It also support + # filtering by parent (only groups for now): E.g. 'parent=enterprises/XYZ/groups/ + # 124' + # @param [Fixnum] page_size + # Requested page size. Server may return fewer structures than requested. If + # unspecified, server will pick an appropriate default. + # @param [String] page_token + # The token of the page to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_enterprise_structures(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/structures', options) + command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse::Representation + command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a room managed by the enterprise. + # @param [String] name + # The name of the room requested. For example: "enterprises/XYZ/structures/ABC/ + # rooms/123". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_enterprise_structure_room(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room::Representation + command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists rooms managed by the enterprise. + # @param [String] parent + # The parent resource name of the rooms requested. For example: "enterprises/XYZ/ + # structures/ABC". + # @param [Fixnum] page_size + # Requested page size. Server may return fewer rooms than requested. If + # unspecified, server will pick an appropriate default. + # @param [String] page_token + # The token of the page to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_enterprise_structure_rooms(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/rooms', options) + command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse::Representation + command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/websecurityscanner_v1.rb b/generated/google/apis/websecurityscanner_v1.rb index f4caea322..f49fbfc7b 100644 --- a/generated/google/apis/websecurityscanner_v1.rb +++ b/generated/google/apis/websecurityscanner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/ module WebsecurityscannerV1 VERSION = 'V1' - REVISION = '20200801' + REVISION = '20200919' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/websecurityscanner_v1beta.rb b/generated/google/apis/websecurityscanner_v1beta.rb index 663cbb32a..b6e4b8c3a 100644 --- a/generated/google/apis/websecurityscanner_v1beta.rb +++ b/generated/google/apis/websecurityscanner_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/ module WebsecurityscannerV1beta VERSION = 'V1beta' - REVISION = '20200826' + REVISION = '20200919' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index 81efbd825..c3c5cca4b 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/ module YoutubeV3 VERSION = 'V3' - REVISION = '20200916' + REVISION = '20200920' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index c1b68722c..83bbc8359 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -44,8 +44,8 @@ module Google attr_accessor :quota_user def initialize - super('https://youtube.googleapis.com/', '') - @batch_path = 'batch' + super('https://www.googleapis.com/', '') + @batch_path = 'batch/youtube' end # Inserts a new resource into this collection.