diff --git a/api_names_out.yaml b/api_names_out.yaml index b85b8f598..dd66247f6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -103,6 +103,8 @@ "/adexchangebuyer2:v2beta1/Creative/corrections/correction": correction "/adexchangebuyer2:v2beta1/Creative/creativeId": creative_id "/adexchangebuyer2:v2beta1/Creative/dealsStatus": deals_status +"/adexchangebuyer2:v2beta1/Creative/declaredClickThroughUrls": declared_click_through_urls +"/adexchangebuyer2:v2beta1/Creative/declaredClickThroughUrls/declared_click_through_url": declared_click_through_url "/adexchangebuyer2:v2beta1/Creative/detectedAdvertiserIds": detected_advertiser_ids "/adexchangebuyer2:v2beta1/Creative/detectedAdvertiserIds/detected_advertiser_id": detected_advertiser_id "/adexchangebuyer2:v2beta1/Creative/detectedDomains": detected_domains @@ -2669,6 +2671,7 @@ "/admin:directory_v1/User/agreedToTerms": agreed_to_terms "/admin:directory_v1/User/aliases": aliases "/admin:directory_v1/User/aliases/alias": alias +"/admin:directory_v1/User/archived": archived "/admin:directory_v1/User/changePasswordAtNextLogin": change_password_at_next_login "/admin:directory_v1/User/creationTime": creation_time "/admin:directory_v1/User/customSchemas": custom_schemas @@ -3354,6 +3357,8 @@ "/adsense:v1.4/AdClients/nextPageToken": next_page_token "/adsense:v1.4/AdCode": ad_code "/adsense:v1.4/AdCode/adCode": ad_code +"/adsense:v1.4/AdCode/ampBody": amp_body +"/adsense:v1.4/AdCode/ampHead": amp_head "/adsense:v1.4/AdCode/kind": kind "/adsense:v1.4/AdStyle": ad_style "/adsense:v1.4/AdStyle/colors": colors @@ -3502,6 +3507,9 @@ "/adsense:v1.4/UrlChannels/items/item": item "/adsense:v1.4/UrlChannels/kind": kind "/adsense:v1.4/UrlChannels/nextPageToken": next_page_token +"/adsense:v1.4/adsense.accounts.adclients.getAdCode": get_account_adclient_ad_code +"/adsense:v1.4/adsense.accounts.adclients.getAdCode/accountId": account_id +"/adsense:v1.4/adsense.accounts.adclients.getAdCode/adClientId": ad_client_id "/adsense:v1.4/adsense.accounts.adclients.list": list_account_ad_clients "/adsense:v1.4/adsense.accounts.adclients.list/accountId": account_id "/adsense:v1.4/adsense.accounts.adclients.list/maxResults": max_results @@ -4366,6 +4374,15 @@ "/analytics:v3/Goals/startIndex": start_index "/analytics:v3/Goals/totalResults": total_results "/analytics:v3/Goals/username": username +"/analytics:v3/HashClientIdRequest": hash_client_id_request +"/analytics:v3/HashClientIdRequest/clientId": client_id +"/analytics:v3/HashClientIdRequest/kind": kind +"/analytics:v3/HashClientIdRequest/webPropertyId": web_property_id +"/analytics:v3/HashClientIdResponse": hash_client_id_response +"/analytics:v3/HashClientIdResponse/clientId": client_id +"/analytics:v3/HashClientIdResponse/hashedClientId": hashed_client_id +"/analytics:v3/HashClientIdResponse/kind": kind +"/analytics:v3/HashClientIdResponse/webPropertyId": web_property_id "/analytics:v3/IncludeConditions": include_conditions "/analytics:v3/IncludeConditions/daysToLookBack": days_to_look_back "/analytics:v3/IncludeConditions/isSmartList": is_smart_list @@ -4753,6 +4770,7 @@ "/analytics:v3/analytics.management.accounts.list": list_accounts "/analytics:v3/analytics.management.accounts.list/max-results": max_results "/analytics:v3/analytics.management.accounts.list/start-index": start_index +"/analytics:v3/analytics.management.clientId.hashClientId": hash_client_id "/analytics:v3/analytics.management.customDataSources.list": list_custom_data_sources "/analytics:v3/analytics.management.customDataSources.list/accountId": account_id "/analytics:v3/analytics.management.customDataSources.list/max-results": max_results @@ -5338,11 +5356,13 @@ "/androiddeviceprovisioning:v1/Device/name": name "/androiddeviceprovisioning:v1/DeviceClaim": device_claim "/androiddeviceprovisioning:v1/DeviceClaim/ownerCompanyId": owner_company_id +"/androiddeviceprovisioning:v1/DeviceClaim/resellerId": reseller_id "/androiddeviceprovisioning:v1/DeviceClaim/sectionType": section_type "/androiddeviceprovisioning:v1/DeviceIdentifier": device_identifier "/androiddeviceprovisioning:v1/DeviceIdentifier/imei": imei "/androiddeviceprovisioning:v1/DeviceIdentifier/manufacturer": manufacturer "/androiddeviceprovisioning:v1/DeviceIdentifier/meid": meid +"/androiddeviceprovisioning:v1/DeviceIdentifier/model": model "/androiddeviceprovisioning:v1/DeviceIdentifier/serialNumber": serial_number "/androiddeviceprovisioning:v1/DeviceMetadata": device_metadata "/androiddeviceprovisioning:v1/DeviceMetadata/entries": entries @@ -5384,6 +5404,14 @@ "/androiddeviceprovisioning:v1/ListCustomersResponse": list_customers_response "/androiddeviceprovisioning:v1/ListCustomersResponse/customers": customers "/androiddeviceprovisioning:v1/ListCustomersResponse/customers/customer": customer +"/androiddeviceprovisioning:v1/ListVendorCustomersResponse": list_vendor_customers_response +"/androiddeviceprovisioning:v1/ListVendorCustomersResponse/customers": customers +"/androiddeviceprovisioning:v1/ListVendorCustomersResponse/customers/customer": customer +"/androiddeviceprovisioning:v1/ListVendorCustomersResponse/nextPageToken": next_page_token +"/androiddeviceprovisioning:v1/ListVendorsResponse": list_vendors_response +"/androiddeviceprovisioning:v1/ListVendorsResponse/nextPageToken": next_page_token +"/androiddeviceprovisioning:v1/ListVendorsResponse/vendors": vendors +"/androiddeviceprovisioning:v1/ListVendorsResponse/vendors/vendor": vendor "/androiddeviceprovisioning:v1/Operation": operation "/androiddeviceprovisioning:v1/Operation/done": done "/androiddeviceprovisioning:v1/Operation/error": error @@ -5486,6 +5514,14 @@ "/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.devices.unclaimAsync/partnerId": partner_id "/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.devices.updateMetadataAsync": update_partner_device_metadata_async "/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.devices.updateMetadataAsync/partnerId": partner_id +"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.vendors.customers.list": list_partner_vendor_customers +"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.vendors.customers.list/pageSize": page_size +"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.vendors.customers.list/pageToken": page_token +"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.vendors.customers.list/parent": parent +"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.vendors.list": list_partner_vendors +"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.vendors.list/pageSize": page_size +"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.vendors.list/pageToken": page_token +"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.vendors.list/parent": parent "/androiddeviceprovisioning:v1/fields": fields "/androiddeviceprovisioning:v1/key": key "/androiddeviceprovisioning:v1/quotaUser": quota_user @@ -9890,6 +9926,9 @@ "/appstate:v1/quotaUser": quota_user "/appstate:v1/userIp": user_ip "/autoscaler:v1beta2/AutoscalerListResponse": list_autoscaler_response +"/bigquery:v2/BigQueryModelTraining": big_query_model_training +"/bigquery:v2/BigQueryModelTraining/currentIteration": current_iteration +"/bigquery:v2/BigQueryModelTraining/expectedTotalIterations": expected_total_iterations "/bigquery:v2/BigtableColumn": bigtable_column "/bigquery:v2/BigtableColumn/encoding": encoding "/bigquery:v2/BigtableColumn/fieldName": field_name @@ -10162,6 +10201,8 @@ "/bigquery:v2/JobStatistics/extract": extract "/bigquery:v2/JobStatistics/load": load "/bigquery:v2/JobStatistics/query": query +"/bigquery:v2/JobStatistics/quotaDeferments": quota_deferments +"/bigquery:v2/JobStatistics/quotaDeferments/quota_deferment": quota_deferment "/bigquery:v2/JobStatistics/startTime": start_time "/bigquery:v2/JobStatistics/totalBytesProcessed": total_bytes_processed "/bigquery:v2/JobStatistics2": job_statistics2 @@ -10170,6 +10211,7 @@ "/bigquery:v2/JobStatistics2/ddlOperationPerformed": ddl_operation_performed "/bigquery:v2/JobStatistics2/ddlTargetTable": ddl_target_table "/bigquery:v2/JobStatistics2/estimatedBytesProcessed": estimated_bytes_processed +"/bigquery:v2/JobStatistics2/modelTraining": model_training "/bigquery:v2/JobStatistics2/modelTrainingCurrentIteration": model_training_current_iteration "/bigquery:v2/JobStatistics2/modelTrainingExpectedTotalIteration": model_training_expected_total_iteration "/bigquery:v2/JobStatistics2/numDmlAffectedRows": num_dml_affected_rows @@ -10735,6 +10777,96 @@ "/bigquerydatatransfer:v1/fields": fields "/bigquerydatatransfer:v1/key": key "/bigquerydatatransfer:v1/quotaUser": quota_user +"/binaryauthorization:v1beta1/AdmissionRule": admission_rule +"/binaryauthorization:v1beta1/AdmissionRule/enforcementMode": enforcement_mode +"/binaryauthorization:v1beta1/AdmissionRule/evaluationMode": evaluation_mode +"/binaryauthorization:v1beta1/AdmissionRule/requireAttestationsBy": require_attestations_by +"/binaryauthorization:v1beta1/AdmissionRule/requireAttestationsBy/require_attestations_by": require_attestations_by +"/binaryauthorization:v1beta1/AdmissionWhitelistPattern": admission_whitelist_pattern +"/binaryauthorization:v1beta1/AdmissionWhitelistPattern/namePattern": name_pattern +"/binaryauthorization:v1beta1/Attestor": attestor +"/binaryauthorization:v1beta1/Attestor/description": description +"/binaryauthorization:v1beta1/Attestor/name": name +"/binaryauthorization:v1beta1/Attestor/updateTime": update_time +"/binaryauthorization:v1beta1/Attestor/userOwnedDrydockNote": user_owned_drydock_note +"/binaryauthorization:v1beta1/AttestorPublicKey": attestor_public_key +"/binaryauthorization:v1beta1/AttestorPublicKey/asciiArmoredPgpPublicKey": ascii_armored_pgp_public_key +"/binaryauthorization:v1beta1/AttestorPublicKey/comment": comment +"/binaryauthorization:v1beta1/AttestorPublicKey/id": id +"/binaryauthorization:v1beta1/Binding": binding +"/binaryauthorization:v1beta1/Binding/condition": condition +"/binaryauthorization:v1beta1/Binding/members": members +"/binaryauthorization:v1beta1/Binding/members/member": member +"/binaryauthorization:v1beta1/Binding/role": role +"/binaryauthorization:v1beta1/Empty": empty +"/binaryauthorization:v1beta1/Expr": expr +"/binaryauthorization:v1beta1/Expr/description": description +"/binaryauthorization:v1beta1/Expr/expression": expression +"/binaryauthorization:v1beta1/Expr/location": location +"/binaryauthorization:v1beta1/Expr/title": title +"/binaryauthorization:v1beta1/IamPolicy": iam_policy +"/binaryauthorization:v1beta1/IamPolicy/bindings": bindings +"/binaryauthorization:v1beta1/IamPolicy/bindings/binding": binding +"/binaryauthorization:v1beta1/IamPolicy/etag": etag +"/binaryauthorization:v1beta1/IamPolicy/version": version +"/binaryauthorization:v1beta1/ListAttestorsResponse": list_attestors_response +"/binaryauthorization:v1beta1/ListAttestorsResponse/attestors": attestors +"/binaryauthorization:v1beta1/ListAttestorsResponse/attestors/attestor": attestor +"/binaryauthorization:v1beta1/ListAttestorsResponse/nextPageToken": next_page_token +"/binaryauthorization:v1beta1/Policy": policy +"/binaryauthorization:v1beta1/Policy/admissionWhitelistPatterns": admission_whitelist_patterns +"/binaryauthorization:v1beta1/Policy/admissionWhitelistPatterns/admission_whitelist_pattern": admission_whitelist_pattern +"/binaryauthorization:v1beta1/Policy/clusterAdmissionRules": cluster_admission_rules +"/binaryauthorization:v1beta1/Policy/clusterAdmissionRules/cluster_admission_rule": cluster_admission_rule +"/binaryauthorization:v1beta1/Policy/defaultAdmissionRule": default_admission_rule +"/binaryauthorization:v1beta1/Policy/description": description +"/binaryauthorization:v1beta1/Policy/name": name +"/binaryauthorization:v1beta1/Policy/updateTime": update_time +"/binaryauthorization:v1beta1/SetIamPolicyRequest": set_iam_policy_request +"/binaryauthorization:v1beta1/SetIamPolicyRequest/policy": policy +"/binaryauthorization:v1beta1/TestIamPermissionsRequest": test_iam_permissions_request +"/binaryauthorization:v1beta1/TestIamPermissionsRequest/permissions": permissions +"/binaryauthorization:v1beta1/TestIamPermissionsRequest/permissions/permission": permission +"/binaryauthorization:v1beta1/TestIamPermissionsResponse": test_iam_permissions_response +"/binaryauthorization:v1beta1/TestIamPermissionsResponse/permissions": permissions +"/binaryauthorization:v1beta1/TestIamPermissionsResponse/permissions/permission": permission +"/binaryauthorization:v1beta1/UserOwnedDrydockNote": user_owned_drydock_note +"/binaryauthorization:v1beta1/UserOwnedDrydockNote/delegationServiceAccountEmail": delegation_service_account_email +"/binaryauthorization:v1beta1/UserOwnedDrydockNote/noteReference": note_reference +"/binaryauthorization:v1beta1/UserOwnedDrydockNote/publicKeys": public_keys +"/binaryauthorization:v1beta1/UserOwnedDrydockNote/publicKeys/public_key": public_key +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.create": create_project_attestor +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.create/attestorId": attestor_id +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.create/parent": parent +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.delete": delete_project_attestor +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.delete/name": name +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.get": get_project_attestor +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.get/name": name +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.getIamPolicy": get_project_attestor_iam_policy +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.getIamPolicy/resource": resource +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.list": list_project_attestors +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.list/pageSize": page_size +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.list/pageToken": page_token +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.list/parent": parent +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.setIamPolicy": set_attestor_iam_policy +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.setIamPolicy/resource": resource +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.testIamPermissions": test_attestor_iam_permissions +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.testIamPermissions/resource": resource +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.update": update_project_attestor +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.update/name": name +"/binaryauthorization:v1beta1/binaryauthorization.projects.getPolicy": get_project_policy +"/binaryauthorization:v1beta1/binaryauthorization.projects.getPolicy/name": name +"/binaryauthorization:v1beta1/binaryauthorization.projects.policy.getIamPolicy": get_project_policy_iam_policy +"/binaryauthorization:v1beta1/binaryauthorization.projects.policy.getIamPolicy/resource": resource +"/binaryauthorization:v1beta1/binaryauthorization.projects.policy.setIamPolicy": set_iam_policy +"/binaryauthorization:v1beta1/binaryauthorization.projects.policy.setIamPolicy/resource": resource +"/binaryauthorization:v1beta1/binaryauthorization.projects.policy.testIamPermissions": test_policy_iam_permissions +"/binaryauthorization:v1beta1/binaryauthorization.projects.policy.testIamPermissions/resource": resource +"/binaryauthorization:v1beta1/binaryauthorization.projects.updatePolicy": update_project_policy +"/binaryauthorization:v1beta1/binaryauthorization.projects.updatePolicy/name": name +"/binaryauthorization:v1beta1/fields": fields +"/binaryauthorization:v1beta1/key": key +"/binaryauthorization:v1beta1/quotaUser": quota_user "/blogger:v2/Blog": blog "/blogger:v2/Blog/description": description "/blogger:v2/Blog/id": id @@ -11497,6 +11629,7 @@ "/books:v1/Notification/doc_type": doc_type "/books:v1/Notification/dont_show_notification": dont_show_notification "/books:v1/Notification/iconUrl": icon_url +"/books:v1/Notification/is_document_mature": is_document_mature "/books:v1/Notification/kind": kind "/books:v1/Notification/notificationGroup": notification_group "/books:v1/Notification/notification_type": notification_type @@ -12790,12 +12923,42 @@ "/civicinfo:v2/ElectoralDistrict/kgForeignKey": kg_foreign_key "/civicinfo:v2/ElectoralDistrict/name": name "/civicinfo:v2/ElectoralDistrict/scope": scope +"/civicinfo:v2/FieldMetadataProto": field_metadata_proto +"/civicinfo:v2/FieldMetadataProto/internal": internal "/civicinfo:v2/GeographicDivision": geographic_division "/civicinfo:v2/GeographicDivision/alsoKnownAs": also_known_as "/civicinfo:v2/GeographicDivision/alsoKnownAs/also_known_a": also_known_a "/civicinfo:v2/GeographicDivision/name": name "/civicinfo:v2/GeographicDivision/officeIndices": office_indices "/civicinfo:v2/GeographicDivision/officeIndices/office_index": office_index +"/civicinfo:v2/InternalFieldMetadataProto": internal_field_metadata_proto +"/civicinfo:v2/InternalFieldMetadataProto/isAuto": is_auto +"/civicinfo:v2/InternalFieldMetadataProto/sourceSummary": source_summary +"/civicinfo:v2/InternalSourceSummaryProto": internal_source_summary_proto +"/civicinfo:v2/InternalSourceSummaryProto/dataset": dataset +"/civicinfo:v2/InternalSourceSummaryProto/provider": provider +"/civicinfo:v2/LivegraphBacktraceRecordInfo": livegraph_backtrace_record_info +"/civicinfo:v2/LivegraphBacktraceRecordInfo/dataSourcePublishMsec": data_source_publish_msec +"/civicinfo:v2/LivegraphBacktraceRecordInfo/expId": exp_id +"/civicinfo:v2/LivegraphBacktraceRecordInfo/expInfo": exp_info +"/civicinfo:v2/LivegraphBacktraceRecordInfo/isRecon": is_recon +"/civicinfo:v2/LivegraphBacktraceRecordInfo/isWlmThrottled": is_wlm_throttled +"/civicinfo:v2/LivegraphBacktraceRecordInfo/numberOfTriples": number_of_triples +"/civicinfo:v2/LivegraphBacktraceRecordInfo/priority": priority +"/civicinfo:v2/LivegraphBacktraceRecordInfo/process": process +"/civicinfo:v2/LivegraphBacktraceRecordInfo/proxyReceiveMsec": proxy_receive_msec +"/civicinfo:v2/LivegraphBacktraceRecordInfo/proxySentMsec": proxy_sent_msec +"/civicinfo:v2/LivegraphBacktraceRecordInfo/recordId": record_id +"/civicinfo:v2/LivegraphBacktraceRecordInfo/shouldMonitorLatency": should_monitor_latency +"/civicinfo:v2/LivegraphBacktraceRecordInfo/subscriberReceiveMsec": subscriber_receive_msec +"/civicinfo:v2/LivegraphBacktraceRecordInfo/topicBuildFinishMsec": topic_build_finish_msec +"/civicinfo:v2/LivegraphBacktraceRecordInfo/topicBuildStartMsec": topic_build_start_msec +"/civicinfo:v2/LivegraphBacktraceRecordInfo/version": version +"/civicinfo:v2/LivegraphBacktraceRecordInfoExpInfo": livegraph_backtrace_record_info_exp_info +"/civicinfo:v2/LivegraphBacktraceRecordInfoExpInfo/deletedIns": deleted_ins +"/civicinfo:v2/LivegraphBacktraceRecordInfoExpInfo/deletedIns/deleted_in": deleted_in +"/civicinfo:v2/MessageSet": message_set +"/civicinfo:v2/MessageSet/recordMessageSetExt": record_message_set_ext "/civicinfo:v2/Office": office "/civicinfo:v2/Office/divisionId": division_id "/civicinfo:v2/Office/levels": levels @@ -12821,6 +12984,11 @@ "/civicinfo:v2/Official/photoUrl": photo_url "/civicinfo:v2/Official/urls": urls "/civicinfo:v2/Official/urls/url": url +"/civicinfo:v2/PointProto": point_proto +"/civicinfo:v2/PointProto/latE7": lat_e7 +"/civicinfo:v2/PointProto/lngE7": lng_e7 +"/civicinfo:v2/PointProto/metadata": metadata +"/civicinfo:v2/PointProto/temporaryData": temporary_data "/civicinfo:v2/PollingLocation": polling_location "/civicinfo:v2/PollingLocation/address": address "/civicinfo:v2/PollingLocation/endDate": end_date @@ -12865,6 +13033,17 @@ "/civicinfo:v2/PostalAddress/thoroughfarePostDirection": thoroughfare_post_direction "/civicinfo:v2/PostalAddress/thoroughfarePreDirection": thoroughfare_pre_direction "/civicinfo:v2/PostalAddress/thoroughfareTrailingType": thoroughfare_trailing_type +"/civicinfo:v2/Provenance": provenance +"/civicinfo:v2/Provenance/collidedSegmentSource": collided_segment_source +"/civicinfo:v2/Provenance/ctclContestUuid": ctcl_contest_uuid +"/civicinfo:v2/Provenance/ctclOfficeUuid": ctcl_office_uuid +"/civicinfo:v2/Provenance/datasetId": dataset_id +"/civicinfo:v2/Provenance/precinctId": precinct_id +"/civicinfo:v2/Provenance/precinctSplitId": precinct_split_id +"/civicinfo:v2/Provenance/tsStreetSegmentId": ts_street_segment_id +"/civicinfo:v2/Provenance/vip5PrecinctId": vip5_precinct_id +"/civicinfo:v2/Provenance/vip5StreetSegmentId": vip5_street_segment_id +"/civicinfo:v2/Provenance/vipStreetSegmentId": vip_street_segment_id "/civicinfo:v2/RepresentativeInfoData": representative_info_data "/civicinfo:v2/RepresentativeInfoData/divisions": divisions "/civicinfo:v2/RepresentativeInfoData/divisions/division": division @@ -12894,6 +13073,63 @@ "/civicinfo:v2/Source": source "/civicinfo:v2/Source/name": name "/civicinfo:v2/Source/official": official +"/civicinfo:v2/StreetSegment": street_segment +"/civicinfo:v2/StreetSegment/administrationRegionIds": administration_region_ids +"/civicinfo:v2/StreetSegment/administrationRegionIds/administration_region_id": administration_region_id +"/civicinfo:v2/StreetSegment/beforeGeocodeId": before_geocode_id +"/civicinfo:v2/StreetSegment/catalistUniquePrecinctCode": catalist_unique_precinct_code +"/civicinfo:v2/StreetSegment/city": city +"/civicinfo:v2/StreetSegment/cityCouncilDistrict": city_council_district +"/civicinfo:v2/StreetSegment/congressionalDistrict": congressional_district +"/civicinfo:v2/StreetSegment/contestIds": contest_ids +"/civicinfo:v2/StreetSegment/contestIds/contest_id": contest_id +"/civicinfo:v2/StreetSegment/countyCouncilDistrict": county_council_district +"/civicinfo:v2/StreetSegment/countyFips": county_fips +"/civicinfo:v2/StreetSegment/datasetId": dataset_id +"/civicinfo:v2/StreetSegment/earlyVoteSiteByIds": early_vote_site_by_ids +"/civicinfo:v2/StreetSegment/earlyVoteSiteByIds/early_vote_site_by_id": early_vote_site_by_id +"/civicinfo:v2/StreetSegment/endHouseNumber": end_house_number +"/civicinfo:v2/StreetSegment/geocodedPoint": geocoded_point +"/civicinfo:v2/StreetSegment/geographicDivisionOcdIds": geographic_division_ocd_ids +"/civicinfo:v2/StreetSegment/geographicDivisionOcdIds/geographic_division_ocd_id": geographic_division_ocd_id +"/civicinfo:v2/StreetSegment/id": id +"/civicinfo:v2/StreetSegment/judicialDistrict": judicial_district +"/civicinfo:v2/StreetSegment/mailOnly": mail_only +"/civicinfo:v2/StreetSegment/municipalDistrict": municipal_district +"/civicinfo:v2/StreetSegment/ncoaAddress": ncoa_address +"/civicinfo:v2/StreetSegment/oddOrEvens": odd_or_evens +"/civicinfo:v2/StreetSegment/oddOrEvens/odd_or_even": odd_or_even +"/civicinfo:v2/StreetSegment/originalId": original_id +"/civicinfo:v2/StreetSegment/pollinglocationByIds": pollinglocation_by_ids +"/civicinfo:v2/StreetSegment/pollinglocationByIds/pollinglocation_by_id": pollinglocation_by_id +"/civicinfo:v2/StreetSegment/precinctName": precinct_name +"/civicinfo:v2/StreetSegment/precinctOcdId": precinct_ocd_id +"/civicinfo:v2/StreetSegment/provenances": provenances +"/civicinfo:v2/StreetSegment/provenances/provenance": provenance +"/civicinfo:v2/StreetSegment/published": published +"/civicinfo:v2/StreetSegment/schoolDistrict": school_district +"/civicinfo:v2/StreetSegment/startHouseNumber": start_house_number +"/civicinfo:v2/StreetSegment/startLatE7": start_lat_e7 +"/civicinfo:v2/StreetSegment/startLngE7": start_lng_e7 +"/civicinfo:v2/StreetSegment/state": state +"/civicinfo:v2/StreetSegment/stateHouseDistrict": state_house_district +"/civicinfo:v2/StreetSegment/stateSenateDistrict": state_senate_district +"/civicinfo:v2/StreetSegment/streetName": street_name +"/civicinfo:v2/StreetSegment/subAdministrativeAreaName": sub_administrative_area_name +"/civicinfo:v2/StreetSegment/surrogateId": surrogate_id +"/civicinfo:v2/StreetSegment/targetsmartUniquePrecinctCode": targetsmart_unique_precinct_code +"/civicinfo:v2/StreetSegment/townshipDistrict": township_district +"/civicinfo:v2/StreetSegment/unitNumber": unit_number +"/civicinfo:v2/StreetSegment/unitType": unit_type +"/civicinfo:v2/StreetSegment/vanPrecinctCode": van_precinct_code +"/civicinfo:v2/StreetSegment/voterGeographicDivisionOcdIds": voter_geographic_division_ocd_ids +"/civicinfo:v2/StreetSegment/voterGeographicDivisionOcdIds/voter_geographic_division_ocd_id": voter_geographic_division_ocd_id +"/civicinfo:v2/StreetSegment/wardDistrict": ward_district +"/civicinfo:v2/StreetSegment/wildcard": wildcard +"/civicinfo:v2/StreetSegment/zip": zip +"/civicinfo:v2/StreetSegmentList": street_segment_list +"/civicinfo:v2/StreetSegmentList/segments": segments +"/civicinfo:v2/StreetSegmentList/segments/segment": segment "/civicinfo:v2/VoterInfoRequest": voter_info_request "/civicinfo:v2/VoterInfoRequest/contextParams": context_params "/civicinfo:v2/VoterInfoRequest/voterInfoSegmentResult": voter_info_segment_result @@ -12913,6 +13149,8 @@ "/civicinfo:v2/VoterInfoResponse/pollingLocations": polling_locations "/civicinfo:v2/VoterInfoResponse/pollingLocations/polling_location": polling_location "/civicinfo:v2/VoterInfoResponse/precinctId": precinct_id +"/civicinfo:v2/VoterInfoResponse/segments": segments +"/civicinfo:v2/VoterInfoResponse/segments/segment": segment "/civicinfo:v2/VoterInfoResponse/state": state "/civicinfo:v2/VoterInfoResponse/state/state": state "/civicinfo:v2/VoterInfoSegmentResult": voter_info_segment_result @@ -13024,6 +13262,8 @@ "/classroom:v1/CourseWork/title": title "/classroom:v1/CourseWork/updateTime": update_time "/classroom:v1/CourseWork/workType": work_type +"/classroom:v1/CourseWorkChangesInfo": course_work_changes_info +"/classroom:v1/CourseWorkChangesInfo/courseId": course_id "/classroom:v1/Date": date "/classroom:v1/Date/day": day "/classroom:v1/Date/month": month @@ -13040,6 +13280,7 @@ "/classroom:v1/Empty": empty "/classroom:v1/Feed": feed "/classroom:v1/Feed/courseRosterChangesInfo": course_roster_changes_info +"/classroom:v1/Feed/courseWorkChangesInfo": course_work_changes_info "/classroom:v1/Feed/feedType": feed_type "/classroom:v1/Form": form "/classroom:v1/Form/formUrl": form_url @@ -13416,6 +13657,7 @@ "/cloudbilling:v1/BillingAccount/name": name "/cloudbilling:v1/BillingAccount/open": open "/cloudbilling:v1/Binding": binding +"/cloudbilling:v1/Binding/condition": condition "/cloudbilling:v1/Binding/members": members "/cloudbilling:v1/Binding/members/member": member "/cloudbilling:v1/Binding/role": role @@ -13424,6 +13666,11 @@ "/cloudbilling:v1/Category/resourceGroup": resource_group "/cloudbilling:v1/Category/serviceDisplayName": service_display_name "/cloudbilling:v1/Category/usageType": usage_type +"/cloudbilling:v1/Expr": expr +"/cloudbilling:v1/Expr/description": description +"/cloudbilling:v1/Expr/expression": expression +"/cloudbilling:v1/Expr/location": location +"/cloudbilling:v1/Expr/title": title "/cloudbilling:v1/ListBillingAccountsResponse": list_billing_accounts_response "/cloudbilling:v1/ListBillingAccountsResponse/billingAccounts": billing_accounts "/cloudbilling:v1/ListBillingAccountsResponse/billingAccounts/billing_account": billing_account @@ -13611,6 +13858,10 @@ "/cloudbuild:v1/BuildTrigger/disabled": disabled "/cloudbuild:v1/BuildTrigger/filename": filename "/cloudbuild:v1/BuildTrigger/id": id +"/cloudbuild:v1/BuildTrigger/ignoredFiles": ignored_files +"/cloudbuild:v1/BuildTrigger/ignoredFiles/ignored_file": ignored_file +"/cloudbuild:v1/BuildTrigger/includedFiles": included_files +"/cloudbuild:v1/BuildTrigger/includedFiles/included_file": included_file "/cloudbuild:v1/BuildTrigger/substitutions": substitutions "/cloudbuild:v1/BuildTrigger/substitutions/substitution": substitution "/cloudbuild:v1/BuildTrigger/triggerTemplate": trigger_template @@ -13657,6 +13908,8 @@ "/cloudbuild:v1/Results/artifactManifest": artifact_manifest "/cloudbuild:v1/Results/buildStepImages": build_step_images "/cloudbuild:v1/Results/buildStepImages/build_step_image": build_step_image +"/cloudbuild:v1/Results/buildStepOutputs": build_step_outputs +"/cloudbuild:v1/Results/buildStepOutputs/build_step_output": build_step_output "/cloudbuild:v1/Results/images": images "/cloudbuild:v1/Results/images/image": image "/cloudbuild:v1/Results/numArtifacts": num_artifacts @@ -13834,6 +14087,7 @@ "/clouddebugger:v2/SourceContext/gerrit": gerrit "/clouddebugger:v2/SourceContext/git": git "/clouddebugger:v2/SourceLocation": source_location +"/clouddebugger:v2/SourceLocation/column": column "/clouddebugger:v2/SourceLocation/line": line "/clouddebugger:v2/SourceLocation/path": path "/clouddebugger:v2/StackFrame": stack_frame @@ -14434,6 +14688,13 @@ "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.get": get_project_location_registry_group_device "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.get/fieldMask": field_mask "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.get/name": name +"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list": list_project_location_registry_group_devices +"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/deviceIds": device_ids +"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/deviceNumIds": device_num_ids +"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/fieldMask": field_mask +"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/pageSize": page_size +"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/pageToken": page_token +"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/parent": parent "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.modifyCloudToDeviceConfig": modify_project_location_registry_group_device_cloud_to_device_config "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.modifyCloudToDeviceConfig/name": name "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.patch": patch_project_location_registry_group_device @@ -14617,6 +14878,14 @@ "/cloudiot:v1beta1/fields": fields "/cloudiot:v1beta1/key": key "/cloudiot:v1beta1/quotaUser": quota_user +"/cloudkms:v1/AsymmetricDecryptRequest": asymmetric_decrypt_request +"/cloudkms:v1/AsymmetricDecryptRequest/ciphertext": ciphertext +"/cloudkms:v1/AsymmetricDecryptResponse": asymmetric_decrypt_response +"/cloudkms:v1/AsymmetricDecryptResponse/plaintext": plaintext +"/cloudkms:v1/AsymmetricSignRequest": asymmetric_sign_request +"/cloudkms:v1/AsymmetricSignRequest/digest": digest +"/cloudkms:v1/AsymmetricSignResponse": asymmetric_sign_response +"/cloudkms:v1/AsymmetricSignResponse/signature": signature "/cloudkms:v1/AuditConfig": audit_config "/cloudkms:v1/AuditConfig/auditLogConfigs": audit_log_configs "/cloudkms:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config @@ -14654,12 +14923,20 @@ "/cloudkms:v1/CryptoKey/primary": primary "/cloudkms:v1/CryptoKey/purpose": purpose "/cloudkms:v1/CryptoKey/rotationPeriod": rotation_period +"/cloudkms:v1/CryptoKey/versionTemplate": version_template "/cloudkms:v1/CryptoKeyVersion": crypto_key_version +"/cloudkms:v1/CryptoKeyVersion/algorithm": algorithm +"/cloudkms:v1/CryptoKeyVersion/attestation": attestation "/cloudkms:v1/CryptoKeyVersion/createTime": create_time "/cloudkms:v1/CryptoKeyVersion/destroyEventTime": destroy_event_time "/cloudkms:v1/CryptoKeyVersion/destroyTime": destroy_time +"/cloudkms:v1/CryptoKeyVersion/generateTime": generate_time "/cloudkms:v1/CryptoKeyVersion/name": name +"/cloudkms:v1/CryptoKeyVersion/protectionLevel": protection_level "/cloudkms:v1/CryptoKeyVersion/state": state +"/cloudkms:v1/CryptoKeyVersionTemplate": crypto_key_version_template +"/cloudkms:v1/CryptoKeyVersionTemplate/algorithm": algorithm +"/cloudkms:v1/CryptoKeyVersionTemplate/protectionLevel": protection_level "/cloudkms:v1/DataAccessOptions": data_access_options "/cloudkms:v1/DataAccessOptions/logMode": log_mode "/cloudkms:v1/DecryptRequest": decrypt_request @@ -14668,6 +14945,10 @@ "/cloudkms:v1/DecryptResponse": decrypt_response "/cloudkms:v1/DecryptResponse/plaintext": plaintext "/cloudkms:v1/DestroyCryptoKeyVersionRequest": destroy_crypto_key_version_request +"/cloudkms:v1/Digest": digest +"/cloudkms:v1/Digest/sha256": sha256 +"/cloudkms:v1/Digest/sha384": sha384 +"/cloudkms:v1/Digest/sha512": sha512 "/cloudkms:v1/EncryptRequest": encrypt_request "/cloudkms:v1/EncryptRequest/additionalAuthenticatedData": additional_authenticated_data "/cloudkms:v1/EncryptRequest/plaintext": plaintext @@ -14679,6 +14960,9 @@ "/cloudkms:v1/Expr/expression": expression "/cloudkms:v1/Expr/location": location "/cloudkms:v1/Expr/title": title +"/cloudkms:v1/KeyOperationAttestation": key_operation_attestation +"/cloudkms:v1/KeyOperationAttestation/content": content +"/cloudkms:v1/KeyOperationAttestation/format": format "/cloudkms:v1/KeyRing": key_ring "/cloudkms:v1/KeyRing/createTime": create_time "/cloudkms:v1/KeyRing/name": name @@ -14709,6 +14993,8 @@ "/cloudkms:v1/Location/metadata": metadata "/cloudkms:v1/Location/metadata/metadatum": metadatum "/cloudkms:v1/Location/name": name +"/cloudkms:v1/LocationMetadata": location_metadata +"/cloudkms:v1/LocationMetadata/hsmAvailable": hsm_available "/cloudkms:v1/LogConfig": log_config "/cloudkms:v1/LogConfig/cloudAudit": cloud_audit "/cloudkms:v1/LogConfig/counter": counter @@ -14723,6 +15009,8 @@ "/cloudkms:v1/Policy/rules": rules "/cloudkms:v1/Policy/rules/rule": rule "/cloudkms:v1/Policy/version": version +"/cloudkms:v1/PublicKey": public_key +"/cloudkms:v1/PublicKey/pem": pem "/cloudkms:v1/RestoreCryptoKeyVersionRequest": restore_crypto_key_version_request "/cloudkms:v1/Rule": rule "/cloudkms:v1/Rule/action": action @@ -14756,16 +15044,23 @@ "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.create": create_project_location_key_ring_crypto_key "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.create/cryptoKeyId": crypto_key_id "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.create/parent": parent +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricDecrypt": asymmetric_crypto_key_version_decrypt +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricDecrypt/name": name +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricSign": asymmetric_crypto_key_version_sign +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricSign/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create": create_project_location_key_ring_crypto_key_crypto_key_version "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create/parent": parent "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy": destroy_crypto_key_version "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get": get_project_location_key_ring_crypto_key_crypto_key_version "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get/name": name +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.getPublicKey": get_project_location_key_ring_crypto_key_crypto_key_version_public_key +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.getPublicKey/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list": list_project_location_key_ring_crypto_key_crypto_key_versions "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list/pageSize": page_size "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list/pageToken": page_token "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list/parent": parent +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list/view": view "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch": patch_project_location_key_ring_crypto_key_crypto_key_version "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch/updateMask": update_mask @@ -14783,6 +15078,7 @@ "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.list/pageSize": page_size "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.list/pageToken": page_token "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.list/parent": parent +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.list/versionView": version_view "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.patch": patch_project_location_key_ring_crypto_key "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.patch/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.patch/updateMask": update_mask @@ -14976,6 +15272,7 @@ "/cloudresourcemanager:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/cloudresourcemanager:v1/AuditLogConfig/logType": log_type "/cloudresourcemanager:v1/Binding": binding +"/cloudresourcemanager:v1/Binding/condition": condition "/cloudresourcemanager:v1/Binding/members": members "/cloudresourcemanager:v1/Binding/members/member": member "/cloudresourcemanager:v1/Binding/role": role @@ -14994,6 +15291,11 @@ "/cloudresourcemanager:v1/Constraint/name": name "/cloudresourcemanager:v1/Constraint/version": version "/cloudresourcemanager:v1/Empty": empty +"/cloudresourcemanager:v1/Expr": expr +"/cloudresourcemanager:v1/Expr/description": description +"/cloudresourcemanager:v1/Expr/expression": expression +"/cloudresourcemanager:v1/Expr/location": location +"/cloudresourcemanager:v1/Expr/title": title "/cloudresourcemanager:v1/FolderOperation": folder_operation "/cloudresourcemanager:v1/FolderOperation/destinationParent": destination_parent "/cloudresourcemanager:v1/FolderOperation/displayName": display_name @@ -15216,10 +15518,16 @@ "/cloudresourcemanager:v1beta1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/cloudresourcemanager:v1beta1/AuditLogConfig/logType": log_type "/cloudresourcemanager:v1beta1/Binding": binding +"/cloudresourcemanager:v1beta1/Binding/condition": condition "/cloudresourcemanager:v1beta1/Binding/members": members "/cloudresourcemanager:v1beta1/Binding/members/member": member "/cloudresourcemanager:v1beta1/Binding/role": role "/cloudresourcemanager:v1beta1/Empty": empty +"/cloudresourcemanager:v1beta1/Expr": expr +"/cloudresourcemanager:v1beta1/Expr/description": description +"/cloudresourcemanager:v1beta1/Expr/expression": expression +"/cloudresourcemanager:v1beta1/Expr/location": location +"/cloudresourcemanager:v1beta1/Expr/title": title "/cloudresourcemanager:v1beta1/FolderOperation": folder_operation "/cloudresourcemanager:v1beta1/FolderOperation/destinationParent": destination_parent "/cloudresourcemanager:v1beta1/FolderOperation/displayName": display_name @@ -15331,9 +15639,15 @@ "/cloudresourcemanager:v2/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/cloudresourcemanager:v2/AuditLogConfig/logType": log_type "/cloudresourcemanager:v2/Binding": binding +"/cloudresourcemanager:v2/Binding/condition": condition "/cloudresourcemanager:v2/Binding/members": members "/cloudresourcemanager:v2/Binding/members/member": member "/cloudresourcemanager:v2/Binding/role": role +"/cloudresourcemanager:v2/Expr": expr +"/cloudresourcemanager:v2/Expr/description": description +"/cloudresourcemanager:v2/Expr/expression": expression +"/cloudresourcemanager:v2/Expr/location": location +"/cloudresourcemanager:v2/Expr/title": title "/cloudresourcemanager:v2/Folder": folder "/cloudresourcemanager:v2/Folder/createTime": create_time "/cloudresourcemanager:v2/Folder/displayName": display_name @@ -15436,9 +15750,15 @@ "/cloudresourcemanager:v2beta1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/cloudresourcemanager:v2beta1/AuditLogConfig/logType": log_type "/cloudresourcemanager:v2beta1/Binding": binding +"/cloudresourcemanager:v2beta1/Binding/condition": condition "/cloudresourcemanager:v2beta1/Binding/members": members "/cloudresourcemanager:v2beta1/Binding/members/member": member "/cloudresourcemanager:v2beta1/Binding/role": role +"/cloudresourcemanager:v2beta1/Expr": expr +"/cloudresourcemanager:v2beta1/Expr/description": description +"/cloudresourcemanager:v2beta1/Expr/expression": expression +"/cloudresourcemanager:v2beta1/Expr/location": location +"/cloudresourcemanager:v2beta1/Expr/title": title "/cloudresourcemanager:v2beta1/Folder": folder "/cloudresourcemanager:v2beta1/Folder/createTime": create_time "/cloudresourcemanager:v2beta1/Folder/displayName": display_name @@ -15584,6 +15904,8 @@ "/cloudshell:v1/fields": fields "/cloudshell:v1/key": key "/cloudshell:v1/quotaUser": quota_user +"/cloudshell:v1alpha1/AuthorizeEnvironmentRequest": authorize_environment_request +"/cloudshell:v1alpha1/AuthorizeEnvironmentRequest/accessToken": access_token "/cloudshell:v1alpha1/CreatePublicKeyRequest": create_public_key_request "/cloudshell:v1alpha1/CreatePublicKeyRequest/key": key "/cloudshell:v1alpha1/Empty": empty @@ -15612,6 +15934,7 @@ "/cloudshell:v1alpha1/StartEnvironmentMetadata": start_environment_metadata "/cloudshell:v1alpha1/StartEnvironmentMetadata/state": state "/cloudshell:v1alpha1/StartEnvironmentRequest": start_environment_request +"/cloudshell:v1alpha1/StartEnvironmentRequest/accessToken": access_token "/cloudshell:v1alpha1/StartEnvironmentResponse": start_environment_response "/cloudshell:v1alpha1/StartEnvironmentResponse/environment": environment "/cloudshell:v1alpha1/Status": status @@ -15620,6 +15943,8 @@ "/cloudshell:v1alpha1/Status/details/detail": detail "/cloudshell:v1alpha1/Status/details/detail/detail": detail "/cloudshell:v1alpha1/Status/message": message +"/cloudshell:v1alpha1/cloudshell.users.environments.authorize": authorize_environment +"/cloudshell:v1alpha1/cloudshell.users.environments.authorize/name": name "/cloudshell:v1alpha1/cloudshell.users.environments.get": get_user_environment "/cloudshell:v1alpha1/cloudshell.users.environments.get/name": name "/cloudshell:v1alpha1/cloudshell.users.environments.patch": patch_user_environment @@ -15665,6 +15990,7 @@ "/cloudtasks:v2beta2/AttemptStatus/responseTime": response_time "/cloudtasks:v2beta2/AttemptStatus/scheduleTime": schedule_time "/cloudtasks:v2beta2/Binding": binding +"/cloudtasks:v2beta2/Binding/condition": condition "/cloudtasks:v2beta2/Binding/members": members "/cloudtasks:v2beta2/Binding/members/member": member "/cloudtasks:v2beta2/Binding/role": role @@ -15675,6 +16001,11 @@ "/cloudtasks:v2beta2/CreateTaskRequest/responseView": response_view "/cloudtasks:v2beta2/CreateTaskRequest/task": task "/cloudtasks:v2beta2/Empty": empty +"/cloudtasks:v2beta2/Expr": expr +"/cloudtasks:v2beta2/Expr/description": description +"/cloudtasks:v2beta2/Expr/expression": expression +"/cloudtasks:v2beta2/Expr/location": location +"/cloudtasks:v2beta2/Expr/title": title "/cloudtasks:v2beta2/GetIamPolicyRequest": get_iam_policy_request "/cloudtasks:v2beta2/LeaseTasksRequest": lease_tasks_request "/cloudtasks:v2beta2/LeaseTasksRequest/filter": filter @@ -16897,6 +17228,96 @@ "/clouduseraccounts:vm_beta/key": key "/clouduseraccounts:vm_beta/quotaUser": quota_user "/clouduseraccounts:vm_beta/userIp": user_ip +"/composer:v1/Empty": empty +"/composer:v1/Environment": environment +"/composer:v1/Environment/config": config +"/composer:v1/Environment/createTime": create_time +"/composer:v1/Environment/labels": labels +"/composer:v1/Environment/labels/label": label +"/composer:v1/Environment/name": name +"/composer:v1/Environment/state": state +"/composer:v1/Environment/updateTime": update_time +"/composer:v1/Environment/uuid": uuid +"/composer:v1/EnvironmentConfig": environment_config +"/composer:v1/EnvironmentConfig/airflowUri": airflow_uri +"/composer:v1/EnvironmentConfig/dagGcsPrefix": dag_gcs_prefix +"/composer:v1/EnvironmentConfig/gkeCluster": gke_cluster +"/composer:v1/EnvironmentConfig/nodeConfig": node_config +"/composer:v1/EnvironmentConfig/nodeCount": node_count +"/composer:v1/EnvironmentConfig/softwareConfig": software_config +"/composer:v1/ListEnvironmentsResponse": list_environments_response +"/composer:v1/ListEnvironmentsResponse/environments": environments +"/composer:v1/ListEnvironmentsResponse/environments/environment": environment +"/composer:v1/ListEnvironmentsResponse/nextPageToken": next_page_token +"/composer:v1/ListOperationsResponse": list_operations_response +"/composer:v1/ListOperationsResponse/nextPageToken": next_page_token +"/composer:v1/ListOperationsResponse/operations": operations +"/composer:v1/ListOperationsResponse/operations/operation": operation +"/composer:v1/NodeConfig": node_config +"/composer:v1/NodeConfig/diskSizeGb": disk_size_gb +"/composer:v1/NodeConfig/location": location +"/composer:v1/NodeConfig/machineType": machine_type +"/composer:v1/NodeConfig/network": network +"/composer:v1/NodeConfig/oauthScopes": oauth_scopes +"/composer:v1/NodeConfig/oauthScopes/oauth_scope": oauth_scope +"/composer:v1/NodeConfig/serviceAccount": service_account +"/composer:v1/NodeConfig/subnetwork": subnetwork +"/composer:v1/NodeConfig/tags": tags +"/composer:v1/NodeConfig/tags/tag": tag +"/composer:v1/Operation": operation +"/composer:v1/Operation/done": done +"/composer:v1/Operation/error": error +"/composer:v1/Operation/metadata": metadata +"/composer:v1/Operation/metadata/metadatum": metadatum +"/composer:v1/Operation/name": name +"/composer:v1/Operation/response": response +"/composer:v1/Operation/response/response": response +"/composer:v1/OperationMetadata": operation_metadata +"/composer:v1/OperationMetadata/createTime": create_time +"/composer:v1/OperationMetadata/endTime": end_time +"/composer:v1/OperationMetadata/operationType": operation_type +"/composer:v1/OperationMetadata/resource": resource +"/composer:v1/OperationMetadata/resourceUuid": resource_uuid +"/composer:v1/OperationMetadata/state": state +"/composer:v1/SoftwareConfig": software_config +"/composer:v1/SoftwareConfig/airflowConfigOverrides": airflow_config_overrides +"/composer:v1/SoftwareConfig/airflowConfigOverrides/airflow_config_override": airflow_config_override +"/composer:v1/SoftwareConfig/envVariables": env_variables +"/composer:v1/SoftwareConfig/envVariables/env_variable": env_variable +"/composer:v1/SoftwareConfig/imageVersion": image_version +"/composer:v1/SoftwareConfig/pypiPackages": pypi_packages +"/composer:v1/SoftwareConfig/pypiPackages/pypi_package": pypi_package +"/composer:v1/Status": status +"/composer:v1/Status/code": code +"/composer:v1/Status/details": details +"/composer:v1/Status/details/detail": detail +"/composer:v1/Status/details/detail/detail": detail +"/composer:v1/Status/message": message +"/composer:v1/composer.projects.locations.environments.create": create_project_location_environment +"/composer:v1/composer.projects.locations.environments.create/parent": parent +"/composer:v1/composer.projects.locations.environments.delete": delete_project_location_environment +"/composer:v1/composer.projects.locations.environments.delete/name": name +"/composer:v1/composer.projects.locations.environments.get": get_project_location_environment +"/composer:v1/composer.projects.locations.environments.get/name": name +"/composer:v1/composer.projects.locations.environments.list": list_project_location_environments +"/composer:v1/composer.projects.locations.environments.list/pageSize": page_size +"/composer:v1/composer.projects.locations.environments.list/pageToken": page_token +"/composer:v1/composer.projects.locations.environments.list/parent": parent +"/composer:v1/composer.projects.locations.environments.patch": patch_project_location_environment +"/composer:v1/composer.projects.locations.environments.patch/name": name +"/composer:v1/composer.projects.locations.environments.patch/updateMask": update_mask +"/composer:v1/composer.projects.locations.operations.delete": delete_project_location_operation +"/composer:v1/composer.projects.locations.operations.delete/name": name +"/composer:v1/composer.projects.locations.operations.get": get_project_location_operation +"/composer:v1/composer.projects.locations.operations.get/name": name +"/composer:v1/composer.projects.locations.operations.list": list_project_location_operations +"/composer:v1/composer.projects.locations.operations.list/filter": filter +"/composer:v1/composer.projects.locations.operations.list/name": name +"/composer:v1/composer.projects.locations.operations.list/pageSize": page_size +"/composer:v1/composer.projects.locations.operations.list/pageToken": page_token +"/composer:v1/fields": fields +"/composer:v1/key": key +"/composer:v1/quotaUser": quota_user "/composer:v1beta1/Empty": empty "/composer:v1beta1/Environment": environment "/composer:v1beta1/Environment/config": config @@ -17111,6 +17532,73 @@ "/compute:alpha/AliasIpRange": alias_ip_range "/compute:alpha/AliasIpRange/ipCidrRange": ip_cidr_range "/compute:alpha/AliasIpRange/subnetworkRangeName": subnetwork_range_name +"/compute:alpha/Allocation": allocation +"/compute:alpha/Allocation/commitment": commitment +"/compute:alpha/Allocation/creationTimestamp": creation_timestamp +"/compute:alpha/Allocation/description": description +"/compute:alpha/Allocation/id": id +"/compute:alpha/Allocation/kind": kind +"/compute:alpha/Allocation/name": name +"/compute:alpha/Allocation/selfLink": self_link +"/compute:alpha/Allocation/specificAllocation": specific_allocation +"/compute:alpha/Allocation/specificAllocationRequired": specific_allocation_required +"/compute:alpha/Allocation/zone": zone +"/compute:alpha/AllocationAggregatedList": allocation_aggregated_list +"/compute:alpha/AllocationAggregatedList/id": id +"/compute:alpha/AllocationAggregatedList/items": items +"/compute:alpha/AllocationAggregatedList/items/item": item +"/compute:alpha/AllocationAggregatedList/kind": kind +"/compute:alpha/AllocationAggregatedList/nextPageToken": next_page_token +"/compute:alpha/AllocationAggregatedList/selfLink": self_link +"/compute:alpha/AllocationAggregatedList/warning": warning +"/compute:alpha/AllocationAggregatedList/warning/code": code +"/compute:alpha/AllocationAggregatedList/warning/data": data +"/compute:alpha/AllocationAggregatedList/warning/data/datum": datum +"/compute:alpha/AllocationAggregatedList/warning/data/datum/key": key +"/compute:alpha/AllocationAggregatedList/warning/data/datum/value": value +"/compute:alpha/AllocationAggregatedList/warning/message": message +"/compute:alpha/AllocationSpecificSKUAllocation": allocation_specific_sku_allocation +"/compute:alpha/AllocationSpecificSKUAllocation/count": count +"/compute:alpha/AllocationSpecificSKUAllocation/inUseCount": in_use_count +"/compute:alpha/AllocationSpecificSKUAllocation/instanceProperties": instance_properties +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstanceProperties": allocation_specific_sku_allocation_allocated_instance_properties +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstanceProperties/guestAccelerators": guest_accelerators +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstanceProperties/guestAccelerators/guest_accelerator": guest_accelerator +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstanceProperties/localSsds": local_ssds +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstanceProperties/localSsds/local_ssd": local_ssd +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstanceProperties/machineType": machine_type +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstanceProperties/minCpuPlatform": min_cpu_platform +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstancePropertiesAllocatedDisk": allocation_specific_sku_allocation_allocated_instance_properties_allocated_disk +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstancePropertiesAllocatedDisk/diskSizeGb": disk_size_gb +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstancePropertiesAllocatedDisk/interface": interface +"/compute:alpha/AllocationsList": allocations_list +"/compute:alpha/AllocationsList/id": id +"/compute:alpha/AllocationsList/items": items +"/compute:alpha/AllocationsList/items/item": item +"/compute:alpha/AllocationsList/kind": kind +"/compute:alpha/AllocationsList/nextPageToken": next_page_token +"/compute:alpha/AllocationsList/selfLink": self_link +"/compute:alpha/AllocationsList/warning": warning +"/compute:alpha/AllocationsList/warning/code": code +"/compute:alpha/AllocationsList/warning/data": data +"/compute:alpha/AllocationsList/warning/data/datum": datum +"/compute:alpha/AllocationsList/warning/data/datum/key": key +"/compute:alpha/AllocationsList/warning/data/datum/value": value +"/compute:alpha/AllocationsList/warning/message": message +"/compute:alpha/AllocationsScopedList": allocations_scoped_list +"/compute:alpha/AllocationsScopedList/allocations": allocations +"/compute:alpha/AllocationsScopedList/allocations/allocation": allocation +"/compute:alpha/AllocationsScopedList/warning": warning +"/compute:alpha/AllocationsScopedList/warning/code": code +"/compute:alpha/AllocationsScopedList/warning/data": data +"/compute:alpha/AllocationsScopedList/warning/data/datum": datum +"/compute:alpha/AllocationsScopedList/warning/data/datum/key": key +"/compute:alpha/AllocationsScopedList/warning/data/datum/value": value +"/compute:alpha/AllocationsScopedList/warning/message": message +"/compute:alpha/AllocationsUpdateResourceShapeRequest": allocations_update_resource_shape_request +"/compute:alpha/AllocationsUpdateResourceShapeRequest/count": count +"/compute:alpha/AllocationsUpdateResourceShapeRequest/destinationAllocation": destination_allocation +"/compute:alpha/AllocationsUpdateResourceShapeRequest/updatedResourceProperties": updated_resource_properties "/compute:alpha/AttachedDisk": attached_disk "/compute:alpha/AttachedDisk/autoDelete": auto_delete "/compute:alpha/AttachedDisk/boot": boot @@ -18078,6 +18566,7 @@ "/compute:alpha/ImageList/warning/data/datum/value": value "/compute:alpha/ImageList/warning/message": message "/compute:alpha/Instance": instance +"/compute:alpha/Instance/allocationAffinity": allocation_affinity "/compute:alpha/Instance/canIpForward": can_ip_forward "/compute:alpha/Instance/cpuPlatform": cpu_platform "/compute:alpha/Instance/creationTimestamp": creation_timestamp @@ -18131,6 +18620,11 @@ "/compute:alpha/InstanceAggregatedList/warning/data/datum/key": key "/compute:alpha/InstanceAggregatedList/warning/data/datum/value": value "/compute:alpha/InstanceAggregatedList/warning/message": message +"/compute:alpha/InstanceAllocationAffinity": instance_allocation_affinity +"/compute:alpha/InstanceAllocationAffinity/consumeAllocationType": consume_allocation_type +"/compute:alpha/InstanceAllocationAffinity/key": key +"/compute:alpha/InstanceAllocationAffinity/values": values +"/compute:alpha/InstanceAllocationAffinity/values/value": value "/compute:alpha/InstanceGroup": instance_group "/compute:alpha/InstanceGroup/creationTimestamp": creation_timestamp "/compute:alpha/InstanceGroup/description": description @@ -18197,6 +18691,7 @@ "/compute:alpha/InstanceGroupManager/selfLink": self_link "/compute:alpha/InstanceGroupManager/serviceAccount": service_account "/compute:alpha/InstanceGroupManager/statefulPolicy": stateful_policy +"/compute:alpha/InstanceGroupManager/status": status "/compute:alpha/InstanceGroupManager/targetPools": target_pools "/compute:alpha/InstanceGroupManager/targetPools/target_pool": target_pool "/compute:alpha/InstanceGroupManager/targetSize": target_size @@ -18265,6 +18760,8 @@ "/compute:alpha/InstanceGroupManagerStatefulPolicy/preservedDisks/preserved_disk": preserved_disk "/compute:alpha/InstanceGroupManagerStatefulPolicyDiskPolicy": instance_group_manager_stateful_policy_disk_policy "/compute:alpha/InstanceGroupManagerStatefulPolicyDiskPolicy/deviceName": device_name +"/compute:alpha/InstanceGroupManagerStatus": instance_group_manager_status +"/compute:alpha/InstanceGroupManagerStatus/isStable": is_stable "/compute:alpha/InstanceGroupManagerUpdatePolicy": instance_group_manager_update_policy "/compute:alpha/InstanceGroupManagerUpdatePolicy/instanceRedistributionType": instance_redistribution_type "/compute:alpha/InstanceGroupManagerUpdatePolicy/maxSurge": max_surge @@ -18604,6 +19101,30 @@ "/compute:alpha/InterconnectCircuitInfo/customerDemarcId": customer_demarc_id "/compute:alpha/InterconnectCircuitInfo/googleCircuitId": google_circuit_id "/compute:alpha/InterconnectCircuitInfo/googleDemarcId": google_demarc_id +"/compute:alpha/InterconnectDiagnostics": interconnect_diagnostics +"/compute:alpha/InterconnectDiagnostics/arpCaches": arp_caches +"/compute:alpha/InterconnectDiagnostics/arpCaches/arp_cach": arp_cach +"/compute:alpha/InterconnectDiagnostics/links": links +"/compute:alpha/InterconnectDiagnostics/links/link": link +"/compute:alpha/InterconnectDiagnostics/macAddress": mac_address +"/compute:alpha/InterconnectDiagnosticsARPEntry": interconnect_diagnostics_arp_entry +"/compute:alpha/InterconnectDiagnosticsARPEntry/ipAddress": ip_address +"/compute:alpha/InterconnectDiagnosticsARPEntry/macAddress": mac_address +"/compute:alpha/InterconnectDiagnosticsLinkLACPStatus": interconnect_diagnostics_link_lacp_status +"/compute:alpha/InterconnectDiagnosticsLinkLACPStatus/googleSystemId": google_system_id +"/compute:alpha/InterconnectDiagnosticsLinkLACPStatus/neighborSystemId": neighbor_system_id +"/compute:alpha/InterconnectDiagnosticsLinkLACPStatus/state": state +"/compute:alpha/InterconnectDiagnosticsLinkOpticalPower": interconnect_diagnostics_link_optical_power +"/compute:alpha/InterconnectDiagnosticsLinkOpticalPower/state": state +"/compute:alpha/InterconnectDiagnosticsLinkOpticalPower/value": value +"/compute:alpha/InterconnectDiagnosticsLinkStatus": interconnect_diagnostics_link_status +"/compute:alpha/InterconnectDiagnosticsLinkStatus/arpCaches": arp_caches +"/compute:alpha/InterconnectDiagnosticsLinkStatus/arpCaches/arp_cach": arp_cach +"/compute:alpha/InterconnectDiagnosticsLinkStatus/circuitId": circuit_id +"/compute:alpha/InterconnectDiagnosticsLinkStatus/googleDemarc": google_demarc +"/compute:alpha/InterconnectDiagnosticsLinkStatus/lacpStatus": lacp_status +"/compute:alpha/InterconnectDiagnosticsLinkStatus/receivingOpticalPower": receiving_optical_power +"/compute:alpha/InterconnectDiagnosticsLinkStatus/transmittingOpticalPower": transmitting_optical_power "/compute:alpha/InterconnectList": interconnect_list "/compute:alpha/InterconnectList/id": id "/compute:alpha/InterconnectList/items": items @@ -18663,11 +19184,33 @@ "/compute:alpha/InterconnectOutageNotification/source": source "/compute:alpha/InterconnectOutageNotification/startTime": start_time "/compute:alpha/InterconnectOutageNotification/state": state +"/compute:alpha/InterconnectsGetDiagnosticsResponse": interconnects_get_diagnostics_response +"/compute:alpha/InterconnectsGetDiagnosticsResponse/result": result +"/compute:alpha/InternalIpAddress": internal_ip_address +"/compute:alpha/InternalIpAddress/cidr": cidr +"/compute:alpha/InternalIpAddress/owner": owner +"/compute:alpha/InternalIpAddress/purpose": purpose +"/compute:alpha/InternalIpAddress/region": region +"/compute:alpha/InternalIpAddress/type": type "/compute:alpha/InternalIpOwner": internal_ip_owner "/compute:alpha/InternalIpOwner/ipCidrRange": ip_cidr_range "/compute:alpha/InternalIpOwner/owners": owners "/compute:alpha/InternalIpOwner/owners/owner": owner "/compute:alpha/InternalIpOwner/systemOwned": system_owned +"/compute:alpha/IpAddressesList": ip_addresses_list +"/compute:alpha/IpAddressesList/id": id +"/compute:alpha/IpAddressesList/items": items +"/compute:alpha/IpAddressesList/items/item": item +"/compute:alpha/IpAddressesList/kind": kind +"/compute:alpha/IpAddressesList/nextPageToken": next_page_token +"/compute:alpha/IpAddressesList/selfLink": self_link +"/compute:alpha/IpAddressesList/warning": warning +"/compute:alpha/IpAddressesList/warning/code": code +"/compute:alpha/IpAddressesList/warning/data": data +"/compute:alpha/IpAddressesList/warning/data/datum": datum +"/compute:alpha/IpAddressesList/warning/data/datum/key": key +"/compute:alpha/IpAddressesList/warning/data/datum/value": value +"/compute:alpha/IpAddressesList/warning/message": message "/compute:alpha/IpOwnerList": ip_owner_list "/compute:alpha/IpOwnerList/id": id "/compute:alpha/IpOwnerList/items": items @@ -19033,6 +19576,7 @@ "/compute:alpha/NodeGroup/nodes": nodes "/compute:alpha/NodeGroup/nodes/node": node "/compute:alpha/NodeGroup/selfLink": self_link +"/compute:alpha/NodeGroup/size": size "/compute:alpha/NodeGroup/status": status "/compute:alpha/NodeGroup/zone": zone "/compute:alpha/NodeGroupAggregatedList": node_group_aggregated_list @@ -19077,6 +19621,20 @@ "/compute:alpha/NodeGroupsDeleteNodesRequest/nodeIndexes/node_index": node_index "/compute:alpha/NodeGroupsDeleteNodesRequest/nodes": nodes "/compute:alpha/NodeGroupsDeleteNodesRequest/nodes/node": node +"/compute:alpha/NodeGroupsListNodes": node_groups_list_nodes +"/compute:alpha/NodeGroupsListNodes/id": id +"/compute:alpha/NodeGroupsListNodes/items": items +"/compute:alpha/NodeGroupsListNodes/items/item": item +"/compute:alpha/NodeGroupsListNodes/kind": kind +"/compute:alpha/NodeGroupsListNodes/nextPageToken": next_page_token +"/compute:alpha/NodeGroupsListNodes/selfLink": self_link +"/compute:alpha/NodeGroupsListNodes/warning": warning +"/compute:alpha/NodeGroupsListNodes/warning/code": code +"/compute:alpha/NodeGroupsListNodes/warning/data": data +"/compute:alpha/NodeGroupsListNodes/warning/data/datum": datum +"/compute:alpha/NodeGroupsListNodes/warning/data/datum/key": key +"/compute:alpha/NodeGroupsListNodes/warning/data/datum/value": value +"/compute:alpha/NodeGroupsListNodes/warning/message": message "/compute:alpha/NodeGroupsScopedList": node_groups_scoped_list "/compute:alpha/NodeGroupsScopedList/nodeGroups": node_groups "/compute:alpha/NodeGroupsScopedList/nodeGroups/node_group": node_group @@ -19378,6 +19936,12 @@ "/compute:alpha/RegionDiskTypeList/warning/data/datum/key": key "/compute:alpha/RegionDiskTypeList/warning/data/datum/value": value "/compute:alpha/RegionDiskTypeList/warning/message": message +"/compute:alpha/RegionDisksAddResourcePoliciesRequest": region_disks_add_resource_policies_request +"/compute:alpha/RegionDisksAddResourcePoliciesRequest/resourcePolicies": resource_policies +"/compute:alpha/RegionDisksAddResourcePoliciesRequest/resourcePolicies/resource_policy": resource_policy +"/compute:alpha/RegionDisksRemoveResourcePoliciesRequest": region_disks_remove_resource_policies_request +"/compute:alpha/RegionDisksRemoveResourcePoliciesRequest/resourcePolicies": resource_policies +"/compute:alpha/RegionDisksRemoveResourcePoliciesRequest/resourcePolicies/resource_policy": resource_policy "/compute:alpha/RegionDisksResizeRequest": region_disks_resize_request "/compute:alpha/RegionDisksResizeRequest/sizeGb": size_gb "/compute:alpha/RegionInstanceGroupList": region_instance_group_list @@ -19733,6 +20297,8 @@ "/compute:alpha/RouterNatSubnetworkToNat/name": name "/compute:alpha/RouterNatSubnetworkToNat/secondaryIpRangeNames": secondary_ip_range_names "/compute:alpha/RouterNatSubnetworkToNat/secondaryIpRangeNames/secondary_ip_range_name": secondary_ip_range_name +"/compute:alpha/RouterNatSubnetworkToNat/sourceIpRangesToNat": source_ip_ranges_to_nat +"/compute:alpha/RouterNatSubnetworkToNat/sourceIpRangesToNat/source_ip_ranges_to_nat": source_ip_ranges_to_nat "/compute:alpha/RouterNatSubnetworkToNat/sourceIpRangesToNats": source_ip_ranges_to_nats "/compute:alpha/RouterNatSubnetworkToNat/sourceIpRangesToNats/source_ip_ranges_to_nat": source_ip_ranges_to_nat "/compute:alpha/RouterStatus": router_status @@ -20077,6 +20643,7 @@ "/compute:alpha/Subnetwork/secondaryIpRanges": secondary_ip_ranges "/compute:alpha/Subnetwork/secondaryIpRanges/secondary_ip_range": secondary_ip_range "/compute:alpha/Subnetwork/selfLink": self_link +"/compute:alpha/Subnetwork/state": state "/compute:alpha/SubnetworkAggregatedList": subnetwork_aggregated_list "/compute:alpha/SubnetworkAggregatedList/id": id "/compute:alpha/SubnetworkAggregatedList/items": items @@ -20532,6 +21099,30 @@ "/compute:alpha/UrlMapValidationResult/testFailures": test_failures "/compute:alpha/UrlMapValidationResult/testFailures/test_failure": test_failure "/compute:alpha/UrlMapValidationResult/testPassed": test_passed +"/compute:alpha/UrlMapsAggregatedList": url_maps_aggregated_list +"/compute:alpha/UrlMapsAggregatedList/id": id +"/compute:alpha/UrlMapsAggregatedList/items": items +"/compute:alpha/UrlMapsAggregatedList/items/item": item +"/compute:alpha/UrlMapsAggregatedList/kind": kind +"/compute:alpha/UrlMapsAggregatedList/nextPageToken": next_page_token +"/compute:alpha/UrlMapsAggregatedList/selfLink": self_link +"/compute:alpha/UrlMapsAggregatedList/warning": warning +"/compute:alpha/UrlMapsAggregatedList/warning/code": code +"/compute:alpha/UrlMapsAggregatedList/warning/data": data +"/compute:alpha/UrlMapsAggregatedList/warning/data/datum": datum +"/compute:alpha/UrlMapsAggregatedList/warning/data/datum/key": key +"/compute:alpha/UrlMapsAggregatedList/warning/data/datum/value": value +"/compute:alpha/UrlMapsAggregatedList/warning/message": message +"/compute:alpha/UrlMapsScopedList": url_maps_scoped_list +"/compute:alpha/UrlMapsScopedList/UrlMaps": url_maps +"/compute:alpha/UrlMapsScopedList/UrlMaps/url_map": url_map +"/compute:alpha/UrlMapsScopedList/warning": warning +"/compute:alpha/UrlMapsScopedList/warning/code": code +"/compute:alpha/UrlMapsScopedList/warning/data": data +"/compute:alpha/UrlMapsScopedList/warning/data/datum": datum +"/compute:alpha/UrlMapsScopedList/warning/data/datum/key": key +"/compute:alpha/UrlMapsScopedList/warning/data/datum/value": value +"/compute:alpha/UrlMapsScopedList/warning/message": message "/compute:alpha/UrlMapsValidateRequest": url_maps_validate_request "/compute:alpha/UrlMapsValidateRequest/resource": resource "/compute:alpha/UrlMapsValidateResponse": url_maps_validate_response @@ -20819,6 +21410,44 @@ "/compute:alpha/compute.addresses.testIamPermissions/project": project "/compute:alpha/compute.addresses.testIamPermissions/region": region "/compute:alpha/compute.addresses.testIamPermissions/resource": resource +"/compute:alpha/compute.allocations.aggregatedList": aggregated_allocation_list +"/compute:alpha/compute.allocations.aggregatedList/filter": filter +"/compute:alpha/compute.allocations.aggregatedList/maxResults": max_results +"/compute:alpha/compute.allocations.aggregatedList/orderBy": order_by +"/compute:alpha/compute.allocations.aggregatedList/pageToken": page_token +"/compute:alpha/compute.allocations.aggregatedList/project": project +"/compute:alpha/compute.allocations.get": get_allocation +"/compute:alpha/compute.allocations.get/allocation": allocation +"/compute:alpha/compute.allocations.get/project": project +"/compute:alpha/compute.allocations.get/zone": zone +"/compute:alpha/compute.allocations.getIamPolicy": get_allocation_iam_policy +"/compute:alpha/compute.allocations.getIamPolicy/project": project +"/compute:alpha/compute.allocations.getIamPolicy/resource": resource +"/compute:alpha/compute.allocations.getIamPolicy/zone": zone +"/compute:alpha/compute.allocations.insert": insert_allocation +"/compute:alpha/compute.allocations.insert/project": project +"/compute:alpha/compute.allocations.insert/requestId": request_id +"/compute:alpha/compute.allocations.insert/zone": zone +"/compute:alpha/compute.allocations.list": list_allocations +"/compute:alpha/compute.allocations.list/filter": filter +"/compute:alpha/compute.allocations.list/maxResults": max_results +"/compute:alpha/compute.allocations.list/orderBy": order_by +"/compute:alpha/compute.allocations.list/pageToken": page_token +"/compute:alpha/compute.allocations.list/project": project +"/compute:alpha/compute.allocations.list/zone": zone +"/compute:alpha/compute.allocations.setIamPolicy": set_allocation_iam_policy +"/compute:alpha/compute.allocations.setIamPolicy/project": project +"/compute:alpha/compute.allocations.setIamPolicy/resource": resource +"/compute:alpha/compute.allocations.setIamPolicy/zone": zone +"/compute:alpha/compute.allocations.testIamPermissions": test_allocation_iam_permissions +"/compute:alpha/compute.allocations.testIamPermissions/project": project +"/compute:alpha/compute.allocations.testIamPermissions/resource": resource +"/compute:alpha/compute.allocations.testIamPermissions/zone": zone +"/compute:alpha/compute.allocations.updateResourceShape": update_allocation_resource_shape +"/compute:alpha/compute.allocations.updateResourceShape/allocation": allocation +"/compute:alpha/compute.allocations.updateResourceShape/project": project +"/compute:alpha/compute.allocations.updateResourceShape/requestId": request_id +"/compute:alpha/compute.allocations.updateResourceShape/zone": zone "/compute:alpha/compute.autoscalers.aggregatedList": aggregated_autoscaler_list "/compute:alpha/compute.autoscalers.aggregatedList/filter": filter "/compute:alpha/compute.autoscalers.aggregatedList/maxResults": max_results @@ -21528,6 +22157,9 @@ "/compute:alpha/compute.instanceTemplates.get": get_instance_template "/compute:alpha/compute.instanceTemplates.get/instanceTemplate": instance_template "/compute:alpha/compute.instanceTemplates.get/project": project +"/compute:alpha/compute.instanceTemplates.getIamPolicy": get_instance_template_iam_policy +"/compute:alpha/compute.instanceTemplates.getIamPolicy/project": project +"/compute:alpha/compute.instanceTemplates.getIamPolicy/resource": resource "/compute:alpha/compute.instanceTemplates.insert": insert_instance_template "/compute:alpha/compute.instanceTemplates.insert/project": project "/compute:alpha/compute.instanceTemplates.insert/requestId": request_id @@ -21537,6 +22169,9 @@ "/compute:alpha/compute.instanceTemplates.list/orderBy": order_by "/compute:alpha/compute.instanceTemplates.list/pageToken": page_token "/compute:alpha/compute.instanceTemplates.list/project": project +"/compute:alpha/compute.instanceTemplates.setIamPolicy": set_instance_template_iam_policy +"/compute:alpha/compute.instanceTemplates.setIamPolicy/project": project +"/compute:alpha/compute.instanceTemplates.setIamPolicy/resource": resource "/compute:alpha/compute.instanceTemplates.testIamPermissions": test_instance_template_iam_permissions "/compute:alpha/compute.instanceTemplates.testIamPermissions/project": project "/compute:alpha/compute.instanceTemplates.testIamPermissions/resource": resource @@ -21609,6 +22244,7 @@ "/compute:alpha/compute.instances.insert/project": project "/compute:alpha/compute.instances.insert/requestId": request_id "/compute:alpha/compute.instances.insert/sourceInstanceTemplate": source_instance_template +"/compute:alpha/compute.instances.insert/sourceMachineImage": source_machine_image "/compute:alpha/compute.instances.insert/zone": zone "/compute:alpha/compute.instances.list": list_instances "/compute:alpha/compute.instances.list/filter": filter @@ -21821,6 +22457,9 @@ "/compute:alpha/compute.interconnects.get": get_interconnect "/compute:alpha/compute.interconnects.get/interconnect": interconnect "/compute:alpha/compute.interconnects.get/project": project +"/compute:alpha/compute.interconnects.getDiagnostics": get_interconnect_diagnostics +"/compute:alpha/compute.interconnects.getDiagnostics/interconnect": interconnect +"/compute:alpha/compute.interconnects.getDiagnostics/project": project "/compute:alpha/compute.interconnects.getIamPolicy": get_interconnect_iam_policy "/compute:alpha/compute.interconnects.getIamPolicy/project": project "/compute:alpha/compute.interconnects.getIamPolicy/resource": resource @@ -22006,6 +22645,14 @@ "/compute:alpha/compute.networks.list/orderBy": order_by "/compute:alpha/compute.networks.list/pageToken": page_token "/compute:alpha/compute.networks.list/project": project +"/compute:alpha/compute.networks.listIpAddresses": list_network_ip_addresses +"/compute:alpha/compute.networks.listIpAddresses/filter": filter +"/compute:alpha/compute.networks.listIpAddresses/maxResults": max_results +"/compute:alpha/compute.networks.listIpAddresses/network": network +"/compute:alpha/compute.networks.listIpAddresses/orderBy": order_by +"/compute:alpha/compute.networks.listIpAddresses/pageToken": page_token +"/compute:alpha/compute.networks.listIpAddresses/project": project +"/compute:alpha/compute.networks.listIpAddresses/types": types "/compute:alpha/compute.networks.listIpOwners": list_network_ip_owners "/compute:alpha/compute.networks.listIpOwners/filter": filter "/compute:alpha/compute.networks.listIpOwners/ipCidrRange": ip_cidr_range @@ -22074,6 +22721,14 @@ "/compute:alpha/compute.nodeGroups.list/pageToken": page_token "/compute:alpha/compute.nodeGroups.list/project": project "/compute:alpha/compute.nodeGroups.list/zone": zone +"/compute:alpha/compute.nodeGroups.listNodes": list_node_group_nodes +"/compute:alpha/compute.nodeGroups.listNodes/filter": filter +"/compute:alpha/compute.nodeGroups.listNodes/maxResults": max_results +"/compute:alpha/compute.nodeGroups.listNodes/nodeGroup": node_group +"/compute:alpha/compute.nodeGroups.listNodes/orderBy": order_by +"/compute:alpha/compute.nodeGroups.listNodes/pageToken": page_token +"/compute:alpha/compute.nodeGroups.listNodes/project": project +"/compute:alpha/compute.nodeGroups.listNodes/zone": zone "/compute:alpha/compute.nodeGroups.setIamPolicy": set_node_group_iam_policy "/compute:alpha/compute.nodeGroups.setIamPolicy/project": project "/compute:alpha/compute.nodeGroups.setIamPolicy/resource": resource @@ -22296,6 +22951,11 @@ "/compute:alpha/compute.regionDiskTypes.list/pageToken": page_token "/compute:alpha/compute.regionDiskTypes.list/project": project "/compute:alpha/compute.regionDiskTypes.list/region": region +"/compute:alpha/compute.regionDisks.addResourcePolicies": add_region_disk_resource_policies +"/compute:alpha/compute.regionDisks.addResourcePolicies/disk": disk +"/compute:alpha/compute.regionDisks.addResourcePolicies/project": project +"/compute:alpha/compute.regionDisks.addResourcePolicies/region": region +"/compute:alpha/compute.regionDisks.addResourcePolicies/requestId": request_id "/compute:alpha/compute.regionDisks.createSnapshot": create_region_disk_snapshot "/compute:alpha/compute.regionDisks.createSnapshot/disk": disk "/compute:alpha/compute.regionDisks.createSnapshot/guestFlush": guest_flush @@ -22323,6 +22983,11 @@ "/compute:alpha/compute.regionDisks.list/pageToken": page_token "/compute:alpha/compute.regionDisks.list/project": project "/compute:alpha/compute.regionDisks.list/region": region +"/compute:alpha/compute.regionDisks.removeResourcePolicies": remove_region_disk_resource_policies +"/compute:alpha/compute.regionDisks.removeResourcePolicies/disk": disk +"/compute:alpha/compute.regionDisks.removeResourcePolicies/project": project +"/compute:alpha/compute.regionDisks.removeResourcePolicies/region": region +"/compute:alpha/compute.regionDisks.removeResourcePolicies/requestId": request_id "/compute:alpha/compute.regionDisks.resize": resize_region_disk "/compute:alpha/compute.regionDisks.resize/disk": disk "/compute:alpha/compute.regionDisks.resize/project": project @@ -22469,6 +23134,7 @@ "/compute:alpha/compute.regionInstanceGroupManagers.updatePerInstanceConfigs/instanceGroupManager": instance_group_manager "/compute:alpha/compute.regionInstanceGroupManagers.updatePerInstanceConfigs/project": project "/compute:alpha/compute.regionInstanceGroupManagers.updatePerInstanceConfigs/region": region +"/compute:alpha/compute.regionInstanceGroupManagers.updatePerInstanceConfigs/requestId": request_id "/compute:alpha/compute.regionInstanceGroups.get": get_region_instance_group "/compute:alpha/compute.regionInstanceGroups.get/instanceGroup": instance_group "/compute:alpha/compute.regionInstanceGroups.get/project": project @@ -22616,6 +23282,11 @@ "/compute:alpha/compute.regionUrlMaps.insert/project": project "/compute:alpha/compute.regionUrlMaps.insert/region": region "/compute:alpha/compute.regionUrlMaps.insert/requestId": request_id +"/compute:alpha/compute.regionUrlMaps.invalidateCache": invalidate_region_url_map_cache +"/compute:alpha/compute.regionUrlMaps.invalidateCache/project": project +"/compute:alpha/compute.regionUrlMaps.invalidateCache/region": region +"/compute:alpha/compute.regionUrlMaps.invalidateCache/requestId": request_id +"/compute:alpha/compute.regionUrlMaps.invalidateCache/urlMap": url_map "/compute:alpha/compute.regionUrlMaps.list": list_region_url_maps "/compute:alpha/compute.regionUrlMaps.list/filter": filter "/compute:alpha/compute.regionUrlMaps.list/maxResults": max_results @@ -22934,6 +23605,7 @@ "/compute:alpha/compute.subnetworks.listUsable/pageToken": page_token "/compute:alpha/compute.subnetworks.listUsable/project": project "/compute:alpha/compute.subnetworks.patch": patch_subnetwork +"/compute:alpha/compute.subnetworks.patch/drainTimeoutSeconds": drain_timeout_seconds "/compute:alpha/compute.subnetworks.patch/project": project "/compute:alpha/compute.subnetworks.patch/region": region "/compute:alpha/compute.subnetworks.patch/requestId": request_id @@ -23208,6 +23880,12 @@ "/compute:alpha/compute.targetVpnGateways.testIamPermissions/project": project "/compute:alpha/compute.targetVpnGateways.testIamPermissions/region": region "/compute:alpha/compute.targetVpnGateways.testIamPermissions/resource": resource +"/compute:alpha/compute.urlMaps.aggregatedList": aggregated_url_map_list +"/compute:alpha/compute.urlMaps.aggregatedList/filter": filter +"/compute:alpha/compute.urlMaps.aggregatedList/maxResults": max_results +"/compute:alpha/compute.urlMaps.aggregatedList/orderBy": order_by +"/compute:alpha/compute.urlMaps.aggregatedList/pageToken": page_token +"/compute:alpha/compute.urlMaps.aggregatedList/project": project "/compute:alpha/compute.urlMaps.delete": delete_url_map "/compute:alpha/compute.urlMaps.delete/project": project "/compute:alpha/compute.urlMaps.delete/requestId": request_id @@ -23812,6 +24490,8 @@ "/compute:beta/Disk/region": region "/compute:beta/Disk/replicaZones": replica_zones "/compute:beta/Disk/replicaZones/replica_zone": replica_zone +"/compute:beta/Disk/resourcePolicies": resource_policies +"/compute:beta/Disk/resourcePolicies/resource_policy": resource_policy "/compute:beta/Disk/selfLink": self_link "/compute:beta/Disk/sizeGb": size_gb "/compute:beta/Disk/sourceImage": source_image @@ -23913,6 +24593,12 @@ "/compute:beta/DiskTypesScopedList/warning/data/datum/key": key "/compute:beta/DiskTypesScopedList/warning/data/datum/value": value "/compute:beta/DiskTypesScopedList/warning/message": message +"/compute:beta/DisksAddResourcePoliciesRequest": disks_add_resource_policies_request +"/compute:beta/DisksAddResourcePoliciesRequest/resourcePolicies": resource_policies +"/compute:beta/DisksAddResourcePoliciesRequest/resourcePolicies/resource_policy": resource_policy +"/compute:beta/DisksRemoveResourcePoliciesRequest": disks_remove_resource_policies_request +"/compute:beta/DisksRemoveResourcePoliciesRequest/resourcePolicies": resource_policies +"/compute:beta/DisksRemoveResourcePoliciesRequest/resourcePolicies/resource_policy": resource_policy "/compute:beta/DisksResizeRequest": disks_resize_request "/compute:beta/DisksResizeRequest/sizeGb": size_gb "/compute:beta/DisksScopedList": disks_scoped_list @@ -24056,6 +24742,11 @@ "/compute:beta/GlobalSetLabelsRequest/labelFingerprint": label_fingerprint "/compute:beta/GlobalSetLabelsRequest/labels": labels "/compute:beta/GlobalSetLabelsRequest/labels/label": label +"/compute:beta/GlobalSetPolicyRequest": global_set_policy_request +"/compute:beta/GlobalSetPolicyRequest/bindings": bindings +"/compute:beta/GlobalSetPolicyRequest/bindings/binding": binding +"/compute:beta/GlobalSetPolicyRequest/etag": etag +"/compute:beta/GlobalSetPolicyRequest/policy": policy "/compute:beta/GuestOsFeature": guest_os_feature "/compute:beta/GuestOsFeature/type": type "/compute:beta/HTTP2HealthCheck": http2_health_check @@ -25035,6 +25726,7 @@ "/compute:beta/NodeGroup/nodes": nodes "/compute:beta/NodeGroup/nodes/node": node "/compute:beta/NodeGroup/selfLink": self_link +"/compute:beta/NodeGroup/size": size "/compute:beta/NodeGroup/status": status "/compute:beta/NodeGroup/zone": zone "/compute:beta/NodeGroupAggregatedList": node_group_aggregated_list @@ -25076,6 +25768,20 @@ "/compute:beta/NodeGroupsDeleteNodesRequest": node_groups_delete_nodes_request "/compute:beta/NodeGroupsDeleteNodesRequest/nodes": nodes "/compute:beta/NodeGroupsDeleteNodesRequest/nodes/node": node +"/compute:beta/NodeGroupsListNodes": node_groups_list_nodes +"/compute:beta/NodeGroupsListNodes/id": id +"/compute:beta/NodeGroupsListNodes/items": items +"/compute:beta/NodeGroupsListNodes/items/item": item +"/compute:beta/NodeGroupsListNodes/kind": kind +"/compute:beta/NodeGroupsListNodes/nextPageToken": next_page_token +"/compute:beta/NodeGroupsListNodes/selfLink": self_link +"/compute:beta/NodeGroupsListNodes/warning": warning +"/compute:beta/NodeGroupsListNodes/warning/code": code +"/compute:beta/NodeGroupsListNodes/warning/data": data +"/compute:beta/NodeGroupsListNodes/warning/data/datum": datum +"/compute:beta/NodeGroupsListNodes/warning/data/datum/key": key +"/compute:beta/NodeGroupsListNodes/warning/data/datum/value": value +"/compute:beta/NodeGroupsListNodes/warning/message": message "/compute:beta/NodeGroupsScopedList": node_groups_scoped_list "/compute:beta/NodeGroupsScopedList/nodeGroups": node_groups "/compute:beta/NodeGroupsScopedList/nodeGroups/node_group": node_group @@ -25371,6 +26077,12 @@ "/compute:beta/RegionDiskTypeList/warning/data/datum/key": key "/compute:beta/RegionDiskTypeList/warning/data/datum/value": value "/compute:beta/RegionDiskTypeList/warning/message": message +"/compute:beta/RegionDisksAddResourcePoliciesRequest": region_disks_add_resource_policies_request +"/compute:beta/RegionDisksAddResourcePoliciesRequest/resourcePolicies": resource_policies +"/compute:beta/RegionDisksAddResourcePoliciesRequest/resourcePolicies/resource_policy": resource_policy +"/compute:beta/RegionDisksRemoveResourcePoliciesRequest": region_disks_remove_resource_policies_request +"/compute:beta/RegionDisksRemoveResourcePoliciesRequest/resourcePolicies": resource_policies +"/compute:beta/RegionDisksRemoveResourcePoliciesRequest/resourcePolicies/resource_policy": resource_policy "/compute:beta/RegionDisksResizeRequest": region_disks_resize_request "/compute:beta/RegionDisksResizeRequest/sizeGb": size_gb "/compute:beta/RegionInstanceGroupList": region_instance_group_list @@ -25472,6 +26184,86 @@ "/compute:beta/ResourceCommitment/type": type "/compute:beta/ResourceGroupReference": resource_group_reference "/compute:beta/ResourceGroupReference/group": group +"/compute:beta/ResourcePoliciesList": resource_policies_list +"/compute:beta/ResourcePoliciesList/etag": etag +"/compute:beta/ResourcePoliciesList/id": id +"/compute:beta/ResourcePoliciesList/items": items +"/compute:beta/ResourcePoliciesList/items/item": item +"/compute:beta/ResourcePoliciesList/kind": kind +"/compute:beta/ResourcePoliciesList/nextPageToken": next_page_token +"/compute:beta/ResourcePoliciesList/selfLink": self_link +"/compute:beta/ResourcePoliciesList/warning": warning +"/compute:beta/ResourcePoliciesList/warning/code": code +"/compute:beta/ResourcePoliciesList/warning/data": data +"/compute:beta/ResourcePoliciesList/warning/data/datum": datum +"/compute:beta/ResourcePoliciesList/warning/data/datum/key": key +"/compute:beta/ResourcePoliciesList/warning/data/datum/value": value +"/compute:beta/ResourcePoliciesList/warning/message": message +"/compute:beta/ResourcePoliciesScopedList": resource_policies_scoped_list +"/compute:beta/ResourcePoliciesScopedList/resourcePolicies": resource_policies +"/compute:beta/ResourcePoliciesScopedList/resourcePolicies/resource_policy": resource_policy +"/compute:beta/ResourcePoliciesScopedList/warning": warning +"/compute:beta/ResourcePoliciesScopedList/warning/code": code +"/compute:beta/ResourcePoliciesScopedList/warning/data": data +"/compute:beta/ResourcePoliciesScopedList/warning/data/datum": datum +"/compute:beta/ResourcePoliciesScopedList/warning/data/datum/key": key +"/compute:beta/ResourcePoliciesScopedList/warning/data/datum/value": value +"/compute:beta/ResourcePoliciesScopedList/warning/message": message +"/compute:beta/ResourcePolicy": resource_policy +"/compute:beta/ResourcePolicy/backupSchedulePolicy": backup_schedule_policy +"/compute:beta/ResourcePolicy/creationTimestamp": creation_timestamp +"/compute:beta/ResourcePolicy/description": description +"/compute:beta/ResourcePolicy/id": id +"/compute:beta/ResourcePolicy/kind": kind +"/compute:beta/ResourcePolicy/name": name +"/compute:beta/ResourcePolicy/region": region +"/compute:beta/ResourcePolicy/selfLink": self_link +"/compute:beta/ResourcePolicyAggregatedList": resource_policy_aggregated_list +"/compute:beta/ResourcePolicyAggregatedList/etag": etag +"/compute:beta/ResourcePolicyAggregatedList/id": id +"/compute:beta/ResourcePolicyAggregatedList/items": items +"/compute:beta/ResourcePolicyAggregatedList/items/item": item +"/compute:beta/ResourcePolicyAggregatedList/kind": kind +"/compute:beta/ResourcePolicyAggregatedList/nextPageToken": next_page_token +"/compute:beta/ResourcePolicyAggregatedList/selfLink": self_link +"/compute:beta/ResourcePolicyAggregatedList/warning": warning +"/compute:beta/ResourcePolicyAggregatedList/warning/code": code +"/compute:beta/ResourcePolicyAggregatedList/warning/data": data +"/compute:beta/ResourcePolicyAggregatedList/warning/data/datum": datum +"/compute:beta/ResourcePolicyAggregatedList/warning/data/datum/key": key +"/compute:beta/ResourcePolicyAggregatedList/warning/data/datum/value": value +"/compute:beta/ResourcePolicyAggregatedList/warning/message": message +"/compute:beta/ResourcePolicyBackupSchedulePolicy": resource_policy_backup_schedule_policy +"/compute:beta/ResourcePolicyBackupSchedulePolicy/retentionPolicy": retention_policy +"/compute:beta/ResourcePolicyBackupSchedulePolicy/schedule": schedule +"/compute:beta/ResourcePolicyBackupSchedulePolicy/snapshotProperties": snapshot_properties +"/compute:beta/ResourcePolicyBackupSchedulePolicyRetentionPolicy": resource_policy_backup_schedule_policy_retention_policy +"/compute:beta/ResourcePolicyBackupSchedulePolicyRetentionPolicy/maxRetentionDays": max_retention_days +"/compute:beta/ResourcePolicyBackupSchedulePolicySchedule": resource_policy_backup_schedule_policy_schedule +"/compute:beta/ResourcePolicyBackupSchedulePolicySchedule/dailySchedule": daily_schedule +"/compute:beta/ResourcePolicyBackupSchedulePolicySchedule/hourlySchedule": hourly_schedule +"/compute:beta/ResourcePolicyBackupSchedulePolicySchedule/weeklySchedule": weekly_schedule +"/compute:beta/ResourcePolicyBackupSchedulePolicySnapshotProperties": resource_policy_backup_schedule_policy_snapshot_properties +"/compute:beta/ResourcePolicyBackupSchedulePolicySnapshotProperties/guestFlush": guest_flush +"/compute:beta/ResourcePolicyBackupSchedulePolicySnapshotProperties/labels": labels +"/compute:beta/ResourcePolicyBackupSchedulePolicySnapshotProperties/labels/label": label +"/compute:beta/ResourcePolicyBackupSchedulePolicySnapshotProperties/storageLocations": storage_locations +"/compute:beta/ResourcePolicyBackupSchedulePolicySnapshotProperties/storageLocations/storage_location": storage_location +"/compute:beta/ResourcePolicyDailyCycle": resource_policy_daily_cycle +"/compute:beta/ResourcePolicyDailyCycle/daysInCycle": days_in_cycle +"/compute:beta/ResourcePolicyDailyCycle/duration": duration +"/compute:beta/ResourcePolicyDailyCycle/startTime": start_time +"/compute:beta/ResourcePolicyHourlyCycle": resource_policy_hourly_cycle +"/compute:beta/ResourcePolicyHourlyCycle/duration": duration +"/compute:beta/ResourcePolicyHourlyCycle/hoursInCycle": hours_in_cycle +"/compute:beta/ResourcePolicyHourlyCycle/startTime": start_time +"/compute:beta/ResourcePolicyWeeklyCycle": resource_policy_weekly_cycle +"/compute:beta/ResourcePolicyWeeklyCycle/dayOfWeeks": day_of_weeks +"/compute:beta/ResourcePolicyWeeklyCycle/dayOfWeeks/day_of_week": day_of_week +"/compute:beta/ResourcePolicyWeeklyCycleDayOfWeek": resource_policy_weekly_cycle_day_of_week +"/compute:beta/ResourcePolicyWeeklyCycleDayOfWeek/day": day +"/compute:beta/ResourcePolicyWeeklyCycleDayOfWeek/duration": duration +"/compute:beta/ResourcePolicyWeeklyCycleDayOfWeek/startTime": start_time "/compute:beta/Route": route "/compute:beta/Route/creationTimestamp": creation_timestamp "/compute:beta/Route/description": description @@ -25665,6 +26457,9 @@ "/compute:beta/SecurityPolicy/fingerprint": fingerprint "/compute:beta/SecurityPolicy/id": id "/compute:beta/SecurityPolicy/kind": kind +"/compute:beta/SecurityPolicy/labelFingerprint": label_fingerprint +"/compute:beta/SecurityPolicy/labels": labels +"/compute:beta/SecurityPolicy/labels/label": label "/compute:beta/SecurityPolicy/name": name "/compute:beta/SecurityPolicy/rules": rules "/compute:beta/SecurityPolicy/rules/rule": rule @@ -25720,6 +26515,7 @@ "/compute:beta/SignedUrlKey/keyName": key_name "/compute:beta/SignedUrlKey/keyValue": key_value "/compute:beta/Snapshot": snapshot +"/compute:beta/Snapshot/autoCreated": auto_created "/compute:beta/Snapshot/creationTimestamp": creation_timestamp "/compute:beta/Snapshot/description": description "/compute:beta/Snapshot/diskSizeGb": disk_size_gb @@ -25741,6 +26537,8 @@ "/compute:beta/Snapshot/status": status "/compute:beta/Snapshot/storageBytes": storage_bytes "/compute:beta/Snapshot/storageBytesStatus": storage_bytes_status +"/compute:beta/Snapshot/storageLocations": storage_locations +"/compute:beta/Snapshot/storageLocations/storage_location": storage_location "/compute:beta/SnapshotList": snapshot_list "/compute:beta/SnapshotList/id": id "/compute:beta/SnapshotList/items": items @@ -25887,6 +26685,7 @@ "/compute:beta/TCPHealthCheck": tcp_health_check "/compute:beta/TCPHealthCheck/port": port "/compute:beta/TCPHealthCheck/portName": port_name +"/compute:beta/TCPHealthCheck/portSpecification": port_specification "/compute:beta/TCPHealthCheck/proxyHeader": proxy_header "/compute:beta/TCPHealthCheck/request": request "/compute:beta/TCPHealthCheck/response": response @@ -26582,6 +27381,11 @@ "/compute:beta/compute.diskTypes.list/pageToken": page_token "/compute:beta/compute.diskTypes.list/project": project "/compute:beta/compute.diskTypes.list/zone": zone +"/compute:beta/compute.disks.addResourcePolicies": add_disk_resource_policies +"/compute:beta/compute.disks.addResourcePolicies/disk": disk +"/compute:beta/compute.disks.addResourcePolicies/project": project +"/compute:beta/compute.disks.addResourcePolicies/requestId": request_id +"/compute:beta/compute.disks.addResourcePolicies/zone": zone "/compute:beta/compute.disks.aggregatedList": list_aggregated_disk "/compute:beta/compute.disks.aggregatedList/filter": filter "/compute:beta/compute.disks.aggregatedList/maxResults": max_results @@ -26603,6 +27407,10 @@ "/compute:beta/compute.disks.get/disk": disk "/compute:beta/compute.disks.get/project": project "/compute:beta/compute.disks.get/zone": zone +"/compute:beta/compute.disks.getIamPolicy": get_disk_iam_policy +"/compute:beta/compute.disks.getIamPolicy/project": project +"/compute:beta/compute.disks.getIamPolicy/resource": resource +"/compute:beta/compute.disks.getIamPolicy/zone": zone "/compute:beta/compute.disks.insert": insert_disk "/compute:beta/compute.disks.insert/project": project "/compute:beta/compute.disks.insert/requestId": request_id @@ -26615,11 +27423,20 @@ "/compute:beta/compute.disks.list/pageToken": page_token "/compute:beta/compute.disks.list/project": project "/compute:beta/compute.disks.list/zone": zone +"/compute:beta/compute.disks.removeResourcePolicies": remove_disk_resource_policies +"/compute:beta/compute.disks.removeResourcePolicies/disk": disk +"/compute:beta/compute.disks.removeResourcePolicies/project": project +"/compute:beta/compute.disks.removeResourcePolicies/requestId": request_id +"/compute:beta/compute.disks.removeResourcePolicies/zone": zone "/compute:beta/compute.disks.resize": resize_disk "/compute:beta/compute.disks.resize/disk": disk "/compute:beta/compute.disks.resize/project": project "/compute:beta/compute.disks.resize/requestId": request_id "/compute:beta/compute.disks.resize/zone": zone +"/compute:beta/compute.disks.setIamPolicy": set_disk_iam_policy +"/compute:beta/compute.disks.setIamPolicy/project": project +"/compute:beta/compute.disks.setIamPolicy/resource": resource +"/compute:beta/compute.disks.setIamPolicy/zone": zone "/compute:beta/compute.disks.setLabels": set_disk_labels "/compute:beta/compute.disks.setLabels/project": project "/compute:beta/compute.disks.setLabels/requestId": request_id @@ -26857,6 +27674,9 @@ "/compute:beta/compute.images.getFromFamily": get_image_from_family "/compute:beta/compute.images.getFromFamily/family": family "/compute:beta/compute.images.getFromFamily/project": project +"/compute:beta/compute.images.getIamPolicy": get_image_iam_policy +"/compute:beta/compute.images.getIamPolicy/project": project +"/compute:beta/compute.images.getIamPolicy/resource": resource "/compute:beta/compute.images.insert": insert_image "/compute:beta/compute.images.insert/forceCreate": force_create "/compute:beta/compute.images.insert/project": project @@ -26867,6 +27687,9 @@ "/compute:beta/compute.images.list/orderBy": order_by "/compute:beta/compute.images.list/pageToken": page_token "/compute:beta/compute.images.list/project": project +"/compute:beta/compute.images.setIamPolicy": set_image_iam_policy +"/compute:beta/compute.images.setIamPolicy/project": project +"/compute:beta/compute.images.setIamPolicy/resource": resource "/compute:beta/compute.images.setLabels": set_image_labels "/compute:beta/compute.images.setLabels/project": project "/compute:beta/compute.images.setLabels/resource": resource @@ -27022,6 +27845,9 @@ "/compute:beta/compute.instanceTemplates.get": get_instance_template "/compute:beta/compute.instanceTemplates.get/instanceTemplate": instance_template "/compute:beta/compute.instanceTemplates.get/project": project +"/compute:beta/compute.instanceTemplates.getIamPolicy": get_instance_template_iam_policy +"/compute:beta/compute.instanceTemplates.getIamPolicy/project": project +"/compute:beta/compute.instanceTemplates.getIamPolicy/resource": resource "/compute:beta/compute.instanceTemplates.insert": insert_instance_template "/compute:beta/compute.instanceTemplates.insert/project": project "/compute:beta/compute.instanceTemplates.insert/requestId": request_id @@ -27031,6 +27857,9 @@ "/compute:beta/compute.instanceTemplates.list/orderBy": order_by "/compute:beta/compute.instanceTemplates.list/pageToken": page_token "/compute:beta/compute.instanceTemplates.list/project": project +"/compute:beta/compute.instanceTemplates.setIamPolicy": set_instance_template_iam_policy +"/compute:beta/compute.instanceTemplates.setIamPolicy/project": project +"/compute:beta/compute.instanceTemplates.setIamPolicy/resource": resource "/compute:beta/compute.instanceTemplates.testIamPermissions": test_instance_template_iam_permissions "/compute:beta/compute.instanceTemplates.testIamPermissions/project": project "/compute:beta/compute.instanceTemplates.testIamPermissions/resource": resource @@ -27074,6 +27903,10 @@ "/compute:beta/compute.instances.get/instance": instance "/compute:beta/compute.instances.get/project": project "/compute:beta/compute.instances.get/zone": zone +"/compute:beta/compute.instances.getIamPolicy": get_instance_iam_policy +"/compute:beta/compute.instances.getIamPolicy/project": project +"/compute:beta/compute.instances.getIamPolicy/resource": resource +"/compute:beta/compute.instances.getIamPolicy/zone": zone "/compute:beta/compute.instances.getSerialPortOutput": get_instance_serial_port_output "/compute:beta/compute.instances.getSerialPortOutput/instance": instance "/compute:beta/compute.instances.getSerialPortOutput/port": port @@ -27118,6 +27951,10 @@ "/compute:beta/compute.instances.setDiskAutoDelete/project": project "/compute:beta/compute.instances.setDiskAutoDelete/requestId": request_id "/compute:beta/compute.instances.setDiskAutoDelete/zone": zone +"/compute:beta/compute.instances.setIamPolicy": set_instance_iam_policy +"/compute:beta/compute.instances.setIamPolicy/project": project +"/compute:beta/compute.instances.setIamPolicy/resource": resource +"/compute:beta/compute.instances.setIamPolicy/zone": zone "/compute:beta/compute.instances.setLabels": set_instance_labels "/compute:beta/compute.instances.setLabels/instance": instance "/compute:beta/compute.instances.setLabels/project": project @@ -27438,6 +28275,14 @@ "/compute:beta/compute.nodeGroups.list/pageToken": page_token "/compute:beta/compute.nodeGroups.list/project": project "/compute:beta/compute.nodeGroups.list/zone": zone +"/compute:beta/compute.nodeGroups.listNodes": list_node_group_nodes +"/compute:beta/compute.nodeGroups.listNodes/filter": filter +"/compute:beta/compute.nodeGroups.listNodes/maxResults": max_results +"/compute:beta/compute.nodeGroups.listNodes/nodeGroup": node_group +"/compute:beta/compute.nodeGroups.listNodes/orderBy": order_by +"/compute:beta/compute.nodeGroups.listNodes/pageToken": page_token +"/compute:beta/compute.nodeGroups.listNodes/project": project +"/compute:beta/compute.nodeGroups.listNodes/zone": zone "/compute:beta/compute.nodeGroups.setIamPolicy": set_node_group_iam_policy "/compute:beta/compute.nodeGroups.setIamPolicy/project": project "/compute:beta/compute.nodeGroups.setIamPolicy/resource": resource @@ -27653,6 +28498,11 @@ "/compute:beta/compute.regionDiskTypes.list/pageToken": page_token "/compute:beta/compute.regionDiskTypes.list/project": project "/compute:beta/compute.regionDiskTypes.list/region": region +"/compute:beta/compute.regionDisks.addResourcePolicies": add_region_disk_resource_policies +"/compute:beta/compute.regionDisks.addResourcePolicies/disk": disk +"/compute:beta/compute.regionDisks.addResourcePolicies/project": project +"/compute:beta/compute.regionDisks.addResourcePolicies/region": region +"/compute:beta/compute.regionDisks.addResourcePolicies/requestId": request_id "/compute:beta/compute.regionDisks.createSnapshot": create_region_disk_snapshot "/compute:beta/compute.regionDisks.createSnapshot/disk": disk "/compute:beta/compute.regionDisks.createSnapshot/project": project @@ -27679,6 +28529,11 @@ "/compute:beta/compute.regionDisks.list/pageToken": page_token "/compute:beta/compute.regionDisks.list/project": project "/compute:beta/compute.regionDisks.list/region": region +"/compute:beta/compute.regionDisks.removeResourcePolicies": remove_region_disk_resource_policies +"/compute:beta/compute.regionDisks.removeResourcePolicies/disk": disk +"/compute:beta/compute.regionDisks.removeResourcePolicies/project": project +"/compute:beta/compute.regionDisks.removeResourcePolicies/region": region +"/compute:beta/compute.regionDisks.removeResourcePolicies/requestId": request_id "/compute:beta/compute.regionDisks.resize": resize_region_disk "/compute:beta/compute.regionDisks.resize/disk": disk "/compute:beta/compute.regionDisks.resize/project": project @@ -27823,6 +28678,36 @@ "/compute:beta/compute.regions.list/orderBy": order_by "/compute:beta/compute.regions.list/pageToken": page_token "/compute:beta/compute.regions.list/project": project +"/compute:beta/compute.resourcePolicies.aggregatedList": aggregated_resource_policy_list +"/compute:beta/compute.resourcePolicies.aggregatedList/filter": filter +"/compute:beta/compute.resourcePolicies.aggregatedList/maxResults": max_results +"/compute:beta/compute.resourcePolicies.aggregatedList/orderBy": order_by +"/compute:beta/compute.resourcePolicies.aggregatedList/pageToken": page_token +"/compute:beta/compute.resourcePolicies.aggregatedList/project": project +"/compute:beta/compute.resourcePolicies.delete": delete_resource_policy +"/compute:beta/compute.resourcePolicies.delete/project": project +"/compute:beta/compute.resourcePolicies.delete/region": region +"/compute:beta/compute.resourcePolicies.delete/requestId": request_id +"/compute:beta/compute.resourcePolicies.delete/resourcePolicy": resource_policy +"/compute:beta/compute.resourcePolicies.get": get_resource_policy +"/compute:beta/compute.resourcePolicies.get/project": project +"/compute:beta/compute.resourcePolicies.get/region": region +"/compute:beta/compute.resourcePolicies.get/resourcePolicy": resource_policy +"/compute:beta/compute.resourcePolicies.insert": insert_resource_policy +"/compute:beta/compute.resourcePolicies.insert/project": project +"/compute:beta/compute.resourcePolicies.insert/region": region +"/compute:beta/compute.resourcePolicies.insert/requestId": request_id +"/compute:beta/compute.resourcePolicies.list": list_resource_policies +"/compute:beta/compute.resourcePolicies.list/filter": filter +"/compute:beta/compute.resourcePolicies.list/maxResults": max_results +"/compute:beta/compute.resourcePolicies.list/orderBy": order_by +"/compute:beta/compute.resourcePolicies.list/pageToken": page_token +"/compute:beta/compute.resourcePolicies.list/project": project +"/compute:beta/compute.resourcePolicies.list/region": region +"/compute:beta/compute.resourcePolicies.testIamPermissions": test_resource_policy_iam_permissions +"/compute:beta/compute.resourcePolicies.testIamPermissions/project": project +"/compute:beta/compute.resourcePolicies.testIamPermissions/region": region +"/compute:beta/compute.resourcePolicies.testIamPermissions/resource": resource "/compute:beta/compute.routers.aggregatedList": list_aggregated_routers "/compute:beta/compute.routers.aggregatedList/filter": filter "/compute:beta/compute.routers.aggregatedList/maxResults": max_results @@ -27931,6 +28816,9 @@ "/compute:beta/compute.securityPolicies.removeRule/priority": priority "/compute:beta/compute.securityPolicies.removeRule/project": project "/compute:beta/compute.securityPolicies.removeRule/securityPolicy": security_policy +"/compute:beta/compute.securityPolicies.setLabels": set_security_policy_labels +"/compute:beta/compute.securityPolicies.setLabels/project": project +"/compute:beta/compute.securityPolicies.setLabels/resource": resource "/compute:beta/compute.securityPolicies.testIamPermissions": test_security_policy_iam_permissions "/compute:beta/compute.securityPolicies.testIamPermissions/project": project "/compute:beta/compute.securityPolicies.testIamPermissions/resource": resource @@ -27941,12 +28829,18 @@ "/compute:beta/compute.snapshots.get": get_snapshot "/compute:beta/compute.snapshots.get/project": project "/compute:beta/compute.snapshots.get/snapshot": snapshot +"/compute:beta/compute.snapshots.getIamPolicy": get_snapshot_iam_policy +"/compute:beta/compute.snapshots.getIamPolicy/project": project +"/compute:beta/compute.snapshots.getIamPolicy/resource": resource "/compute:beta/compute.snapshots.list": list_snapshots "/compute:beta/compute.snapshots.list/filter": filter "/compute:beta/compute.snapshots.list/maxResults": max_results "/compute:beta/compute.snapshots.list/orderBy": order_by "/compute:beta/compute.snapshots.list/pageToken": page_token "/compute:beta/compute.snapshots.list/project": project +"/compute:beta/compute.snapshots.setIamPolicy": set_snapshot_iam_policy +"/compute:beta/compute.snapshots.setIamPolicy/project": project +"/compute:beta/compute.snapshots.setIamPolicy/resource": resource "/compute:beta/compute.snapshots.setLabels": set_snapshot_labels "/compute:beta/compute.snapshots.setLabels/project": project "/compute:beta/compute.snapshots.setLabels/resource": resource @@ -28454,6 +29348,7 @@ "/compute:v1/AccessConfig/kind": kind "/compute:v1/AccessConfig/name": name "/compute:v1/AccessConfig/natIP": nat_ip +"/compute:v1/AccessConfig/networkTier": network_tier "/compute:v1/AccessConfig/publicPtrDomainName": public_ptr_domain_name "/compute:v1/AccessConfig/setPublicPtr": set_public_ptr "/compute:v1/AccessConfig/type": type @@ -28466,6 +29361,7 @@ "/compute:v1/Address/ipVersion": ip_version "/compute:v1/Address/kind": kind "/compute:v1/Address/name": name +"/compute:v1/Address/networkTier": network_tier "/compute:v1/Address/region": region "/compute:v1/Address/selfLink": self_link "/compute:v1/Address/status": status @@ -28996,6 +29892,7 @@ "/compute:v1/ForwardingRule/loadBalancingScheme": load_balancing_scheme "/compute:v1/ForwardingRule/name": name "/compute:v1/ForwardingRule/network": network +"/compute:v1/ForwardingRule/networkTier": network_tier "/compute:v1/ForwardingRule/portRange": port_range "/compute:v1/ForwardingRule/ports": ports "/compute:v1/ForwardingRule/ports/port": port @@ -29855,6 +30752,189 @@ "/compute:v1/NetworksAddPeeringRequest/peerNetwork": peer_network "/compute:v1/NetworksRemovePeeringRequest": networks_remove_peering_request "/compute:v1/NetworksRemovePeeringRequest/name": name +"/compute:v1/NodeGroup": node_group +"/compute:v1/NodeGroup/creationTimestamp": creation_timestamp +"/compute:v1/NodeGroup/description": description +"/compute:v1/NodeGroup/id": id +"/compute:v1/NodeGroup/kind": kind +"/compute:v1/NodeGroup/name": name +"/compute:v1/NodeGroup/nodeTemplate": node_template +"/compute:v1/NodeGroup/selfLink": self_link +"/compute:v1/NodeGroup/size": size +"/compute:v1/NodeGroup/status": status +"/compute:v1/NodeGroup/zone": zone +"/compute:v1/NodeGroupAggregatedList": node_group_aggregated_list +"/compute:v1/NodeGroupAggregatedList/id": id +"/compute:v1/NodeGroupAggregatedList/items": items +"/compute:v1/NodeGroupAggregatedList/items/item": item +"/compute:v1/NodeGroupAggregatedList/kind": kind +"/compute:v1/NodeGroupAggregatedList/nextPageToken": next_page_token +"/compute:v1/NodeGroupAggregatedList/selfLink": self_link +"/compute:v1/NodeGroupAggregatedList/warning": warning +"/compute:v1/NodeGroupAggregatedList/warning/code": code +"/compute:v1/NodeGroupAggregatedList/warning/data": data +"/compute:v1/NodeGroupAggregatedList/warning/data/datum": datum +"/compute:v1/NodeGroupAggregatedList/warning/data/datum/key": key +"/compute:v1/NodeGroupAggregatedList/warning/data/datum/value": value +"/compute:v1/NodeGroupAggregatedList/warning/message": message +"/compute:v1/NodeGroupList": node_group_list +"/compute:v1/NodeGroupList/id": id +"/compute:v1/NodeGroupList/items": items +"/compute:v1/NodeGroupList/items/item": item +"/compute:v1/NodeGroupList/kind": kind +"/compute:v1/NodeGroupList/nextPageToken": next_page_token +"/compute:v1/NodeGroupList/selfLink": self_link +"/compute:v1/NodeGroupList/warning": warning +"/compute:v1/NodeGroupList/warning/code": code +"/compute:v1/NodeGroupList/warning/data": data +"/compute:v1/NodeGroupList/warning/data/datum": datum +"/compute:v1/NodeGroupList/warning/data/datum/key": key +"/compute:v1/NodeGroupList/warning/data/datum/value": value +"/compute:v1/NodeGroupList/warning/message": message +"/compute:v1/NodeGroupNode": node_group_node +"/compute:v1/NodeGroupNode/instances": instances +"/compute:v1/NodeGroupNode/instances/instance": instance +"/compute:v1/NodeGroupNode/name": name +"/compute:v1/NodeGroupNode/nodeType": node_type +"/compute:v1/NodeGroupNode/status": status +"/compute:v1/NodeGroupsAddNodesRequest": node_groups_add_nodes_request +"/compute:v1/NodeGroupsAddNodesRequest/additionalNodeCount": additional_node_count +"/compute:v1/NodeGroupsDeleteNodesRequest": node_groups_delete_nodes_request +"/compute:v1/NodeGroupsDeleteNodesRequest/nodes": nodes +"/compute:v1/NodeGroupsDeleteNodesRequest/nodes/node": node +"/compute:v1/NodeGroupsListNodes": node_groups_list_nodes +"/compute:v1/NodeGroupsListNodes/id": id +"/compute:v1/NodeGroupsListNodes/items": items +"/compute:v1/NodeGroupsListNodes/items/item": item +"/compute:v1/NodeGroupsListNodes/kind": kind +"/compute:v1/NodeGroupsListNodes/nextPageToken": next_page_token +"/compute:v1/NodeGroupsListNodes/selfLink": self_link +"/compute:v1/NodeGroupsListNodes/warning": warning +"/compute:v1/NodeGroupsListNodes/warning/code": code +"/compute:v1/NodeGroupsListNodes/warning/data": data +"/compute:v1/NodeGroupsListNodes/warning/data/datum": datum +"/compute:v1/NodeGroupsListNodes/warning/data/datum/key": key +"/compute:v1/NodeGroupsListNodes/warning/data/datum/value": value +"/compute:v1/NodeGroupsListNodes/warning/message": message +"/compute:v1/NodeGroupsScopedList": node_groups_scoped_list +"/compute:v1/NodeGroupsScopedList/nodeGroups": node_groups +"/compute:v1/NodeGroupsScopedList/nodeGroups/node_group": node_group +"/compute:v1/NodeGroupsScopedList/warning": warning +"/compute:v1/NodeGroupsScopedList/warning/code": code +"/compute:v1/NodeGroupsScopedList/warning/data": data +"/compute:v1/NodeGroupsScopedList/warning/data/datum": datum +"/compute:v1/NodeGroupsScopedList/warning/data/datum/key": key +"/compute:v1/NodeGroupsScopedList/warning/data/datum/value": value +"/compute:v1/NodeGroupsScopedList/warning/message": message +"/compute:v1/NodeGroupsSetNodeTemplateRequest": node_groups_set_node_template_request +"/compute:v1/NodeGroupsSetNodeTemplateRequest/nodeTemplate": node_template +"/compute:v1/NodeTemplate": node_template +"/compute:v1/NodeTemplate/creationTimestamp": creation_timestamp +"/compute:v1/NodeTemplate/description": description +"/compute:v1/NodeTemplate/id": id +"/compute:v1/NodeTemplate/kind": kind +"/compute:v1/NodeTemplate/name": name +"/compute:v1/NodeTemplate/nodeAffinityLabels": node_affinity_labels +"/compute:v1/NodeTemplate/nodeAffinityLabels/node_affinity_label": node_affinity_label +"/compute:v1/NodeTemplate/nodeType": node_type +"/compute:v1/NodeTemplate/nodeTypeFlexibility": node_type_flexibility +"/compute:v1/NodeTemplate/region": region +"/compute:v1/NodeTemplate/selfLink": self_link +"/compute:v1/NodeTemplate/status": status +"/compute:v1/NodeTemplate/statusMessage": status_message +"/compute:v1/NodeTemplateAggregatedList": node_template_aggregated_list +"/compute:v1/NodeTemplateAggregatedList/id": id +"/compute:v1/NodeTemplateAggregatedList/items": items +"/compute:v1/NodeTemplateAggregatedList/items/item": item +"/compute:v1/NodeTemplateAggregatedList/kind": kind +"/compute:v1/NodeTemplateAggregatedList/nextPageToken": next_page_token +"/compute:v1/NodeTemplateAggregatedList/selfLink": self_link +"/compute:v1/NodeTemplateAggregatedList/warning": warning +"/compute:v1/NodeTemplateAggregatedList/warning/code": code +"/compute:v1/NodeTemplateAggregatedList/warning/data": data +"/compute:v1/NodeTemplateAggregatedList/warning/data/datum": datum +"/compute:v1/NodeTemplateAggregatedList/warning/data/datum/key": key +"/compute:v1/NodeTemplateAggregatedList/warning/data/datum/value": value +"/compute:v1/NodeTemplateAggregatedList/warning/message": message +"/compute:v1/NodeTemplateList": node_template_list +"/compute:v1/NodeTemplateList/id": id +"/compute:v1/NodeTemplateList/items": items +"/compute:v1/NodeTemplateList/items/item": item +"/compute:v1/NodeTemplateList/kind": kind +"/compute:v1/NodeTemplateList/nextPageToken": next_page_token +"/compute:v1/NodeTemplateList/selfLink": self_link +"/compute:v1/NodeTemplateList/warning": warning +"/compute:v1/NodeTemplateList/warning/code": code +"/compute:v1/NodeTemplateList/warning/data": data +"/compute:v1/NodeTemplateList/warning/data/datum": datum +"/compute:v1/NodeTemplateList/warning/data/datum/key": key +"/compute:v1/NodeTemplateList/warning/data/datum/value": value +"/compute:v1/NodeTemplateList/warning/message": message +"/compute:v1/NodeTemplateNodeTypeFlexibility": node_template_node_type_flexibility +"/compute:v1/NodeTemplateNodeTypeFlexibility/cpus": cpus +"/compute:v1/NodeTemplateNodeTypeFlexibility/localSsd": local_ssd +"/compute:v1/NodeTemplateNodeTypeFlexibility/memory": memory +"/compute:v1/NodeTemplatesScopedList": node_templates_scoped_list +"/compute:v1/NodeTemplatesScopedList/nodeTemplates": node_templates +"/compute:v1/NodeTemplatesScopedList/nodeTemplates/node_template": node_template +"/compute:v1/NodeTemplatesScopedList/warning": warning +"/compute:v1/NodeTemplatesScopedList/warning/code": code +"/compute:v1/NodeTemplatesScopedList/warning/data": data +"/compute:v1/NodeTemplatesScopedList/warning/data/datum": datum +"/compute:v1/NodeTemplatesScopedList/warning/data/datum/key": key +"/compute:v1/NodeTemplatesScopedList/warning/data/datum/value": value +"/compute:v1/NodeTemplatesScopedList/warning/message": message +"/compute:v1/NodeType": node_type +"/compute:v1/NodeType/cpuPlatform": cpu_platform +"/compute:v1/NodeType/creationTimestamp": creation_timestamp +"/compute:v1/NodeType/deprecated": deprecated +"/compute:v1/NodeType/description": description +"/compute:v1/NodeType/guestCpus": guest_cpus +"/compute:v1/NodeType/id": id +"/compute:v1/NodeType/kind": kind +"/compute:v1/NodeType/localSsdGb": local_ssd_gb +"/compute:v1/NodeType/memoryMb": memory_mb +"/compute:v1/NodeType/name": name +"/compute:v1/NodeType/selfLink": self_link +"/compute:v1/NodeType/zone": zone +"/compute:v1/NodeTypeAggregatedList": node_type_aggregated_list +"/compute:v1/NodeTypeAggregatedList/id": id +"/compute:v1/NodeTypeAggregatedList/items": items +"/compute:v1/NodeTypeAggregatedList/items/item": item +"/compute:v1/NodeTypeAggregatedList/kind": kind +"/compute:v1/NodeTypeAggregatedList/nextPageToken": next_page_token +"/compute:v1/NodeTypeAggregatedList/selfLink": self_link +"/compute:v1/NodeTypeAggregatedList/warning": warning +"/compute:v1/NodeTypeAggregatedList/warning/code": code +"/compute:v1/NodeTypeAggregatedList/warning/data": data +"/compute:v1/NodeTypeAggregatedList/warning/data/datum": datum +"/compute:v1/NodeTypeAggregatedList/warning/data/datum/key": key +"/compute:v1/NodeTypeAggregatedList/warning/data/datum/value": value +"/compute:v1/NodeTypeAggregatedList/warning/message": message +"/compute:v1/NodeTypeList": node_type_list +"/compute:v1/NodeTypeList/id": id +"/compute:v1/NodeTypeList/items": items +"/compute:v1/NodeTypeList/items/item": item +"/compute:v1/NodeTypeList/kind": kind +"/compute:v1/NodeTypeList/nextPageToken": next_page_token +"/compute:v1/NodeTypeList/selfLink": self_link +"/compute:v1/NodeTypeList/warning": warning +"/compute:v1/NodeTypeList/warning/code": code +"/compute:v1/NodeTypeList/warning/data": data +"/compute:v1/NodeTypeList/warning/data/datum": datum +"/compute:v1/NodeTypeList/warning/data/datum/key": key +"/compute:v1/NodeTypeList/warning/data/datum/value": value +"/compute:v1/NodeTypeList/warning/message": message +"/compute:v1/NodeTypesScopedList": node_types_scoped_list +"/compute:v1/NodeTypesScopedList/nodeTypes": node_types +"/compute:v1/NodeTypesScopedList/nodeTypes/node_type": node_type +"/compute:v1/NodeTypesScopedList/warning": warning +"/compute:v1/NodeTypesScopedList/warning/code": code +"/compute:v1/NodeTypesScopedList/warning/data": data +"/compute:v1/NodeTypesScopedList/warning/data/datum": datum +"/compute:v1/NodeTypesScopedList/warning/data/datum/key": key +"/compute:v1/NodeTypesScopedList/warning/data/datum/value": value +"/compute:v1/NodeTypesScopedList/warning/message": message "/compute:v1/Operation": operation "/compute:v1/Operation/clientOperationId": client_operation_id "/compute:v1/Operation/creationTimestamp": creation_timestamp @@ -29942,6 +31022,7 @@ "/compute:v1/Project": project "/compute:v1/Project/commonInstanceMetadata": common_instance_metadata "/compute:v1/Project/creationTimestamp": creation_timestamp +"/compute:v1/Project/defaultNetworkTier": default_network_tier "/compute:v1/Project/defaultServiceAccount": default_service_account "/compute:v1/Project/description": description "/compute:v1/Project/enabledFeatures": enabled_features @@ -29965,6 +31046,8 @@ "/compute:v1/ProjectsGetXpnResources/resources/resource": resource "/compute:v1/ProjectsListXpnHostsRequest": projects_list_xpn_hosts_request "/compute:v1/ProjectsListXpnHostsRequest/organization": organization +"/compute:v1/ProjectsSetDefaultNetworkTierRequest": projects_set_default_network_tier_request +"/compute:v1/ProjectsSetDefaultNetworkTierRequest/networkTier": network_tier "/compute:v1/Quota": quota "/compute:v1/Quota/limit": limit "/compute:v1/Quota/metric": metric @@ -30261,8 +31344,15 @@ "/compute:v1/SSLHealthCheck/response": response "/compute:v1/Scheduling": scheduling "/compute:v1/Scheduling/automaticRestart": automatic_restart +"/compute:v1/Scheduling/nodeAffinities": node_affinities +"/compute:v1/Scheduling/nodeAffinities/node_affinity": node_affinity "/compute:v1/Scheduling/onHostMaintenance": on_host_maintenance "/compute:v1/Scheduling/preemptible": preemptible +"/compute:v1/SchedulingNodeAffinity": scheduling_node_affinity +"/compute:v1/SchedulingNodeAffinity/key": key +"/compute:v1/SchedulingNodeAffinity/operator": operator +"/compute:v1/SchedulingNodeAffinity/values": values +"/compute:v1/SchedulingNodeAffinity/values/value": value "/compute:v1/SerialPortOutput": serial_port_output "/compute:v1/SerialPortOutput/contents": contents "/compute:v1/SerialPortOutput/kind": kind @@ -30792,6 +31882,29 @@ "/compute:v1/UrlMapsValidateRequest/resource": resource "/compute:v1/UrlMapsValidateResponse": validate_url_maps_response "/compute:v1/UrlMapsValidateResponse/result": result +"/compute:v1/UsableSubnetwork": usable_subnetwork +"/compute:v1/UsableSubnetwork/ipCidrRange": ip_cidr_range +"/compute:v1/UsableSubnetwork/network": network +"/compute:v1/UsableSubnetwork/secondaryIpRanges": secondary_ip_ranges +"/compute:v1/UsableSubnetwork/secondaryIpRanges/secondary_ip_range": secondary_ip_range +"/compute:v1/UsableSubnetwork/subnetwork": subnetwork +"/compute:v1/UsableSubnetworkSecondaryRange": usable_subnetwork_secondary_range +"/compute:v1/UsableSubnetworkSecondaryRange/ipCidrRange": ip_cidr_range +"/compute:v1/UsableSubnetworkSecondaryRange/rangeName": range_name +"/compute:v1/UsableSubnetworksAggregatedList": usable_subnetworks_aggregated_list +"/compute:v1/UsableSubnetworksAggregatedList/id": id +"/compute:v1/UsableSubnetworksAggregatedList/items": items +"/compute:v1/UsableSubnetworksAggregatedList/items/item": item +"/compute:v1/UsableSubnetworksAggregatedList/kind": kind +"/compute:v1/UsableSubnetworksAggregatedList/nextPageToken": next_page_token +"/compute:v1/UsableSubnetworksAggregatedList/selfLink": self_link +"/compute:v1/UsableSubnetworksAggregatedList/warning": warning +"/compute:v1/UsableSubnetworksAggregatedList/warning/code": code +"/compute:v1/UsableSubnetworksAggregatedList/warning/data": data +"/compute:v1/UsableSubnetworksAggregatedList/warning/data/datum": datum +"/compute:v1/UsableSubnetworksAggregatedList/warning/data/datum/key": key +"/compute:v1/UsableSubnetworksAggregatedList/warning/data/datum/value": value +"/compute:v1/UsableSubnetworksAggregatedList/warning/message": message "/compute:v1/UsageExportLocation": usage_export_location "/compute:v1/UsageExportLocation/bucketName": bucket_name "/compute:v1/UsageExportLocation/reportNamePrefix": report_name_prefix @@ -31576,6 +32689,10 @@ "/compute:v1/compute.instances.setTags/project": project "/compute:v1/compute.instances.setTags/requestId": request_id "/compute:v1/compute.instances.setTags/zone": zone +"/compute:v1/compute.instances.simulateMaintenanceEvent": simulate_instance_maintenance_event +"/compute:v1/compute.instances.simulateMaintenanceEvent/instance": instance +"/compute:v1/compute.instances.simulateMaintenanceEvent/project": project +"/compute:v1/compute.instances.simulateMaintenanceEvent/zone": zone "/compute:v1/compute.instances.start": start_instance "/compute:v1/compute.instances.start/instance": instance "/compute:v1/compute.instances.start/project": project @@ -31737,6 +32854,99 @@ "/compute:v1/compute.networks.switchToCustomMode/network": network "/compute:v1/compute.networks.switchToCustomMode/project": project "/compute:v1/compute.networks.switchToCustomMode/requestId": request_id +"/compute:v1/compute.nodeGroups.addNodes": add_node_group_nodes +"/compute:v1/compute.nodeGroups.addNodes/nodeGroup": node_group +"/compute:v1/compute.nodeGroups.addNodes/project": project +"/compute:v1/compute.nodeGroups.addNodes/requestId": request_id +"/compute:v1/compute.nodeGroups.addNodes/zone": zone +"/compute:v1/compute.nodeGroups.aggregatedList": aggregated_node_group_list +"/compute:v1/compute.nodeGroups.aggregatedList/filter": filter +"/compute:v1/compute.nodeGroups.aggregatedList/maxResults": max_results +"/compute:v1/compute.nodeGroups.aggregatedList/orderBy": order_by +"/compute:v1/compute.nodeGroups.aggregatedList/pageToken": page_token +"/compute:v1/compute.nodeGroups.aggregatedList/project": project +"/compute:v1/compute.nodeGroups.delete": delete_node_group +"/compute:v1/compute.nodeGroups.delete/nodeGroup": node_group +"/compute:v1/compute.nodeGroups.delete/project": project +"/compute:v1/compute.nodeGroups.delete/requestId": request_id +"/compute:v1/compute.nodeGroups.delete/zone": zone +"/compute:v1/compute.nodeGroups.deleteNodes": delete_node_group_nodes +"/compute:v1/compute.nodeGroups.deleteNodes/nodeGroup": node_group +"/compute:v1/compute.nodeGroups.deleteNodes/project": project +"/compute:v1/compute.nodeGroups.deleteNodes/requestId": request_id +"/compute:v1/compute.nodeGroups.deleteNodes/zone": zone +"/compute:v1/compute.nodeGroups.get": get_node_group +"/compute:v1/compute.nodeGroups.get/nodeGroup": node_group +"/compute:v1/compute.nodeGroups.get/project": project +"/compute:v1/compute.nodeGroups.get/zone": zone +"/compute:v1/compute.nodeGroups.insert": insert_node_group +"/compute:v1/compute.nodeGroups.insert/initialNodeCount": initial_node_count +"/compute:v1/compute.nodeGroups.insert/project": project +"/compute:v1/compute.nodeGroups.insert/requestId": request_id +"/compute:v1/compute.nodeGroups.insert/zone": zone +"/compute:v1/compute.nodeGroups.list": list_node_groups +"/compute:v1/compute.nodeGroups.list/filter": filter +"/compute:v1/compute.nodeGroups.list/maxResults": max_results +"/compute:v1/compute.nodeGroups.list/orderBy": order_by +"/compute:v1/compute.nodeGroups.list/pageToken": page_token +"/compute:v1/compute.nodeGroups.list/project": project +"/compute:v1/compute.nodeGroups.list/zone": zone +"/compute:v1/compute.nodeGroups.listNodes": list_node_group_nodes +"/compute:v1/compute.nodeGroups.listNodes/filter": filter +"/compute:v1/compute.nodeGroups.listNodes/maxResults": max_results +"/compute:v1/compute.nodeGroups.listNodes/nodeGroup": node_group +"/compute:v1/compute.nodeGroups.listNodes/orderBy": order_by +"/compute:v1/compute.nodeGroups.listNodes/pageToken": page_token +"/compute:v1/compute.nodeGroups.listNodes/project": project +"/compute:v1/compute.nodeGroups.listNodes/zone": zone +"/compute:v1/compute.nodeGroups.setNodeTemplate": set_node_group_node_template +"/compute:v1/compute.nodeGroups.setNodeTemplate/nodeGroup": node_group +"/compute:v1/compute.nodeGroups.setNodeTemplate/project": project +"/compute:v1/compute.nodeGroups.setNodeTemplate/requestId": request_id +"/compute:v1/compute.nodeGroups.setNodeTemplate/zone": zone +"/compute:v1/compute.nodeTemplates.aggregatedList": aggregated_node_template_list +"/compute:v1/compute.nodeTemplates.aggregatedList/filter": filter +"/compute:v1/compute.nodeTemplates.aggregatedList/maxResults": max_results +"/compute:v1/compute.nodeTemplates.aggregatedList/orderBy": order_by +"/compute:v1/compute.nodeTemplates.aggregatedList/pageToken": page_token +"/compute:v1/compute.nodeTemplates.aggregatedList/project": project +"/compute:v1/compute.nodeTemplates.delete": delete_node_template +"/compute:v1/compute.nodeTemplates.delete/nodeTemplate": node_template +"/compute:v1/compute.nodeTemplates.delete/project": project +"/compute:v1/compute.nodeTemplates.delete/region": region +"/compute:v1/compute.nodeTemplates.delete/requestId": request_id +"/compute:v1/compute.nodeTemplates.get": get_node_template +"/compute:v1/compute.nodeTemplates.get/nodeTemplate": node_template +"/compute:v1/compute.nodeTemplates.get/project": project +"/compute:v1/compute.nodeTemplates.get/region": region +"/compute:v1/compute.nodeTemplates.insert": insert_node_template +"/compute:v1/compute.nodeTemplates.insert/project": project +"/compute:v1/compute.nodeTemplates.insert/region": region +"/compute:v1/compute.nodeTemplates.insert/requestId": request_id +"/compute:v1/compute.nodeTemplates.list": list_node_templates +"/compute:v1/compute.nodeTemplates.list/filter": filter +"/compute:v1/compute.nodeTemplates.list/maxResults": max_results +"/compute:v1/compute.nodeTemplates.list/orderBy": order_by +"/compute:v1/compute.nodeTemplates.list/pageToken": page_token +"/compute:v1/compute.nodeTemplates.list/project": project +"/compute:v1/compute.nodeTemplates.list/region": region +"/compute:v1/compute.nodeTypes.aggregatedList": aggregated_node_type_list +"/compute:v1/compute.nodeTypes.aggregatedList/filter": filter +"/compute:v1/compute.nodeTypes.aggregatedList/maxResults": max_results +"/compute:v1/compute.nodeTypes.aggregatedList/orderBy": order_by +"/compute:v1/compute.nodeTypes.aggregatedList/pageToken": page_token +"/compute:v1/compute.nodeTypes.aggregatedList/project": project +"/compute:v1/compute.nodeTypes.get": get_node_type +"/compute:v1/compute.nodeTypes.get/nodeType": node_type +"/compute:v1/compute.nodeTypes.get/project": project +"/compute:v1/compute.nodeTypes.get/zone": zone +"/compute:v1/compute.nodeTypes.list": list_node_types +"/compute:v1/compute.nodeTypes.list/filter": filter +"/compute:v1/compute.nodeTypes.list/maxResults": max_results +"/compute:v1/compute.nodeTypes.list/orderBy": order_by +"/compute:v1/compute.nodeTypes.list/pageToken": page_token +"/compute:v1/compute.nodeTypes.list/project": project +"/compute:v1/compute.nodeTypes.list/zone": zone "/compute:v1/compute.projects.disableXpnHost": disable_project_xpn_host "/compute:v1/compute.projects.disableXpnHost/project": project "/compute:v1/compute.projects.disableXpnHost/requestId": request_id @@ -31774,6 +32984,9 @@ "/compute:v1/compute.projects.setCommonInstanceMetadata": set_common_instance_metadata "/compute:v1/compute.projects.setCommonInstanceMetadata/project": project "/compute:v1/compute.projects.setCommonInstanceMetadata/requestId": request_id +"/compute:v1/compute.projects.setDefaultNetworkTier": set_project_default_network_tier +"/compute:v1/compute.projects.setDefaultNetworkTier/project": project +"/compute:v1/compute.projects.setDefaultNetworkTier/requestId": request_id "/compute:v1/compute.projects.setUsageExportBucket": set_usage_export_bucket "/compute:v1/compute.projects.setUsageExportBucket/project": project "/compute:v1/compute.projects.setUsageExportBucket/requestId": request_id @@ -32169,6 +33382,12 @@ "/compute:v1/compute.subnetworks.list/pageToken": page_token "/compute:v1/compute.subnetworks.list/project": project "/compute:v1/compute.subnetworks.list/region": region +"/compute:v1/compute.subnetworks.listUsable": list_subnetwork_usable +"/compute:v1/compute.subnetworks.listUsable/filter": filter +"/compute:v1/compute.subnetworks.listUsable/maxResults": max_results +"/compute:v1/compute.subnetworks.listUsable/orderBy": order_by +"/compute:v1/compute.subnetworks.listUsable/pageToken": page_token +"/compute:v1/compute.subnetworks.listUsable/project": project "/compute:v1/compute.subnetworks.patch": patch_subnetwork "/compute:v1/compute.subnetworks.patch/project": project "/compute:v1/compute.subnetworks.patch/region": region @@ -32665,6 +33884,7 @@ "/container:v1/Cluster/monitoringService": monitoring_service "/container:v1/Cluster/name": name "/container:v1/Cluster/network": network +"/container:v1/Cluster/networkConfig": network_config "/container:v1/Cluster/networkPolicy": network_policy "/container:v1/Cluster/nodeConfig": node_config "/container:v1/Cluster/nodeIpv4CidrSize": node_ipv4_cidr_size @@ -32757,6 +33977,9 @@ "/container:v1/MasterAuthorizedNetworksConfig/cidrBlocks": cidr_blocks "/container:v1/MasterAuthorizedNetworksConfig/cidrBlocks/cidr_block": cidr_block "/container:v1/MasterAuthorizedNetworksConfig/enabled": enabled +"/container:v1/NetworkConfig": network_config +"/container:v1/NetworkConfig/network": network +"/container:v1/NetworkConfig/subnetwork": subnetwork "/container:v1/NetworkPolicy": network_policy "/container:v1/NetworkPolicy/enabled": enabled "/container:v1/NetworkPolicy/provider": provider @@ -32766,6 +33989,7 @@ "/container:v1/NodeConfig/accelerators": accelerators "/container:v1/NodeConfig/accelerators/accelerator": accelerator "/container:v1/NodeConfig/diskSizeGb": disk_size_gb +"/container:v1/NodeConfig/diskType": disk_type "/container:v1/NodeConfig/imageType": image_type "/container:v1/NodeConfig/labels": labels "/container:v1/NodeConfig/labels/label": label @@ -33181,12 +34405,14 @@ "/container:v1beta1/ClientCertificateConfig/issueClientCertificate": issue_client_certificate "/container:v1beta1/Cluster": cluster "/container:v1beta1/Cluster/addonsConfig": addons_config +"/container:v1beta1/Cluster/autoscaling": autoscaling "/container:v1beta1/Cluster/binaryAuthorization": binary_authorization "/container:v1beta1/Cluster/clusterIpv4Cidr": cluster_ipv4_cidr "/container:v1beta1/Cluster/createTime": create_time "/container:v1beta1/Cluster/currentMasterVersion": current_master_version "/container:v1beta1/Cluster/currentNodeCount": current_node_count "/container:v1beta1/Cluster/currentNodeVersion": current_node_version +"/container:v1beta1/Cluster/defaultMaxPodsConstraint": default_max_pods_constraint "/container:v1beta1/Cluster/description": description "/container:v1beta1/Cluster/enableKubernetesAlpha": enable_kubernetes_alpha "/container:v1beta1/Cluster/enableTpu": enable_tpu @@ -33218,6 +34444,7 @@ "/container:v1beta1/Cluster/nodePools/node_pool": node_pool "/container:v1beta1/Cluster/podSecurityPolicyConfig": pod_security_policy_config "/container:v1beta1/Cluster/privateCluster": private_cluster +"/container:v1beta1/Cluster/privateClusterConfig": private_cluster_config "/container:v1beta1/Cluster/resourceLabels": resource_labels "/container:v1beta1/Cluster/resourceLabels/resource_label": resource_label "/container:v1beta1/Cluster/selfLink": self_link @@ -33227,12 +34454,18 @@ "/container:v1beta1/Cluster/subnetwork": subnetwork "/container:v1beta1/Cluster/tpuIpv4CidrBlock": tpu_ipv4_cidr_block "/container:v1beta1/Cluster/zone": zone +"/container:v1beta1/ClusterAutoscaling": cluster_autoscaling +"/container:v1beta1/ClusterAutoscaling/enableNodeAutoprovisioning": enable_node_autoprovisioning +"/container:v1beta1/ClusterAutoscaling/resourceLimits": resource_limits +"/container:v1beta1/ClusterAutoscaling/resourceLimits/resource_limit": resource_limit "/container:v1beta1/ClusterUpdate": cluster_update "/container:v1beta1/ClusterUpdate/desiredAddonsConfig": desired_addons_config "/container:v1beta1/ClusterUpdate/desiredBinaryAuthorization": desired_binary_authorization +"/container:v1beta1/ClusterUpdate/desiredClusterAutoscaling": desired_cluster_autoscaling "/container:v1beta1/ClusterUpdate/desiredImageType": desired_image_type "/container:v1beta1/ClusterUpdate/desiredLocations": desired_locations "/container:v1beta1/ClusterUpdate/desiredLocations/desired_location": desired_location +"/container:v1beta1/ClusterUpdate/desiredLoggingService": desired_logging_service "/container:v1beta1/ClusterUpdate/desiredMasterAuthorizedNetworksConfig": desired_master_authorized_networks_config "/container:v1beta1/ClusterUpdate/desiredMasterVersion": desired_master_version "/container:v1beta1/ClusterUpdate/desiredMonitoringService": desired_monitoring_service @@ -33340,6 +34573,8 @@ "/container:v1beta1/MasterAuthorizedNetworksConfig/cidrBlocks": cidr_blocks "/container:v1beta1/MasterAuthorizedNetworksConfig/cidrBlocks/cidr_block": cidr_block "/container:v1beta1/MasterAuthorizedNetworksConfig/enabled": enabled +"/container:v1beta1/MaxPodsConstraint": max_pods_constraint +"/container:v1beta1/MaxPodsConstraint/maxPodsPerNode": max_pods_per_node "/container:v1beta1/Metric": metric "/container:v1beta1/Metric/doubleValue": double_value "/container:v1beta1/Metric/intValue": int_value @@ -33386,12 +34621,14 @@ "/container:v1beta1/NodePool/instanceGroupUrls": instance_group_urls "/container:v1beta1/NodePool/instanceGroupUrls/instance_group_url": instance_group_url "/container:v1beta1/NodePool/management": management +"/container:v1beta1/NodePool/maxPodsConstraint": max_pods_constraint "/container:v1beta1/NodePool/name": name "/container:v1beta1/NodePool/selfLink": self_link "/container:v1beta1/NodePool/status": status "/container:v1beta1/NodePool/statusMessage": status_message "/container:v1beta1/NodePool/version": version "/container:v1beta1/NodePoolAutoscaling": node_pool_autoscaling +"/container:v1beta1/NodePoolAutoscaling/autoprovisioned": autoprovisioned "/container:v1beta1/NodePoolAutoscaling/enabled": enabled "/container:v1beta1/NodePoolAutoscaling/maxNodeCount": max_node_count "/container:v1beta1/NodePoolAutoscaling/minNodeCount": min_node_count @@ -33421,6 +34658,16 @@ "/container:v1beta1/OperationProgress/status": status "/container:v1beta1/PodSecurityPolicyConfig": pod_security_policy_config "/container:v1beta1/PodSecurityPolicyConfig/enabled": enabled +"/container:v1beta1/PrivateClusterConfig": private_cluster_config +"/container:v1beta1/PrivateClusterConfig/enablePrivateEndpoint": enable_private_endpoint +"/container:v1beta1/PrivateClusterConfig/enablePrivateNodes": enable_private_nodes +"/container:v1beta1/PrivateClusterConfig/masterIpv4CidrBlock": master_ipv4_cidr_block +"/container:v1beta1/PrivateClusterConfig/privateEndpoint": private_endpoint +"/container:v1beta1/PrivateClusterConfig/publicEndpoint": public_endpoint +"/container:v1beta1/ResourceLimit": resource_limit +"/container:v1beta1/ResourceLimit/maximum": maximum +"/container:v1beta1/ResourceLimit/minimum": minimum +"/container:v1beta1/ResourceLimit/resourceType": resource_type "/container:v1beta1/RollbackNodePoolUpgradeRequest": rollback_node_pool_upgrade_request "/container:v1beta1/RollbackNodePoolUpgradeRequest/clusterId": cluster_id "/container:v1beta1/RollbackNodePoolUpgradeRequest/name": name @@ -33815,6 +35062,8 @@ "/content:v2/AccountStatus/dataQualityIssues": data_quality_issues "/content:v2/AccountStatus/dataQualityIssues/data_quality_issue": data_quality_issue "/content:v2/AccountStatus/kind": kind +"/content:v2/AccountStatus/products": products +"/content:v2/AccountStatus/products/product": product "/content:v2/AccountStatus/websiteClaimed": website_claimed "/content:v2/AccountStatusAccountLevelIssue": account_status_account_level_issue "/content:v2/AccountStatusAccountLevelIssue/country": country @@ -33842,6 +35091,27 @@ "/content:v2/AccountStatusExampleItem/submittedValue": submitted_value "/content:v2/AccountStatusExampleItem/title": title "/content:v2/AccountStatusExampleItem/valueOnLandingPage": value_on_landing_page +"/content:v2/AccountStatusItemLevelIssue": account_status_item_level_issue +"/content:v2/AccountStatusItemLevelIssue/attributeName": attribute_name +"/content:v2/AccountStatusItemLevelIssue/code": code +"/content:v2/AccountStatusItemLevelIssue/description": description +"/content:v2/AccountStatusItemLevelIssue/detail": detail +"/content:v2/AccountStatusItemLevelIssue/documentation": documentation +"/content:v2/AccountStatusItemLevelIssue/numItems": num_items +"/content:v2/AccountStatusItemLevelIssue/resolution": resolution +"/content:v2/AccountStatusItemLevelIssue/servability": servability +"/content:v2/AccountStatusProducts": account_status_products +"/content:v2/AccountStatusProducts/channel": channel +"/content:v2/AccountStatusProducts/country": country +"/content:v2/AccountStatusProducts/destination": destination +"/content:v2/AccountStatusProducts/itemLevelIssues": item_level_issues +"/content:v2/AccountStatusProducts/itemLevelIssues/item_level_issue": item_level_issue +"/content:v2/AccountStatusProducts/statistics": statistics +"/content:v2/AccountStatusStatistics": account_status_statistics +"/content:v2/AccountStatusStatistics/active": active +"/content:v2/AccountStatusStatistics/disapproved": disapproved +"/content:v2/AccountStatusStatistics/expiring": expiring +"/content:v2/AccountStatusStatistics/pending": pending "/content:v2/AccountTax": account_tax "/content:v2/AccountTax/accountId": account_id "/content:v2/AccountTax/kind": kind @@ -34508,6 +35778,7 @@ "/content:v2/OrdersCancelResponse/executionStatus": execution_status "/content:v2/OrdersCancelResponse/kind": kind "/content:v2/OrdersCreateTestOrderRequest": orders_create_test_order_request +"/content:v2/OrdersCreateTestOrderRequest/country": country "/content:v2/OrdersCreateTestOrderRequest/templateName": template_name "/content:v2/OrdersCreateTestOrderRequest/testOrder": test_order "/content:v2/OrdersCreateTestOrderResponse": orders_create_test_order_response @@ -34932,6 +36203,7 @@ "/content:v2/Product/sizeType": size_type "/content:v2/Product/sizes": sizes "/content:v2/Product/sizes/size": size +"/content:v2/Product/source": source "/content:v2/Product/targetCountry": target_country "/content:v2/Product/taxes": taxes "/content:v2/Product/taxes/tax": tax @@ -35419,6 +36691,7 @@ "/content:v2/content.orders.getbymerchantorderid/merchantId": merchant_id "/content:v2/content.orders.getbymerchantorderid/merchantOrderId": merchant_order_id "/content:v2/content.orders.gettestordertemplate": get_test_order_template +"/content:v2/content.orders.gettestordertemplate/country": country "/content:v2/content.orders.gettestordertemplate/merchantId": merchant_id "/content:v2/content.orders.gettestordertemplate/templateName": template_name "/content:v2/content.orders.instorerefundlineitem": instorerefundlineitem_order @@ -35801,6 +37074,7 @@ "/content:v2sandbox/OrdersCancelResponse/executionStatus": execution_status "/content:v2sandbox/OrdersCancelResponse/kind": kind "/content:v2sandbox/OrdersCreateTestOrderRequest": orders_create_test_order_request +"/content:v2sandbox/OrdersCreateTestOrderRequest/country": country "/content:v2sandbox/OrdersCreateTestOrderRequest/templateName": template_name "/content:v2sandbox/OrdersCreateTestOrderRequest/testOrder": test_order "/content:v2sandbox/OrdersCreateTestOrderResponse": orders_create_test_order_response @@ -36147,6 +37421,7 @@ "/content:v2sandbox/content.orders.getbymerchantorderid/merchantId": merchant_id "/content:v2sandbox/content.orders.getbymerchantorderid/merchantOrderId": merchant_order_id "/content:v2sandbox/content.orders.gettestordertemplate": gettestordertemplate_order +"/content:v2sandbox/content.orders.gettestordertemplate/country": country "/content:v2sandbox/content.orders.gettestordertemplate/merchantId": merchant_id "/content:v2sandbox/content.orders.gettestordertemplate/templateName": template_name "/content:v2sandbox/content.orders.instorerefundlineitem": instorerefundlineitem_order @@ -37631,6 +38906,7 @@ "/dataproc:v1beta2/AcceleratorConfig/acceleratorCount": accelerator_count "/dataproc:v1beta2/AcceleratorConfig/acceleratorTypeUri": accelerator_type_uri "/dataproc:v1beta2/Binding": binding +"/dataproc:v1beta2/Binding/condition": condition "/dataproc:v1beta2/Binding/members": members "/dataproc:v1beta2/Binding/members/member": member "/dataproc:v1beta2/Binding/role": role @@ -37702,6 +38978,11 @@ "/dataproc:v1beta2/Empty": empty "/dataproc:v1beta2/EncryptionConfig": encryption_config "/dataproc:v1beta2/EncryptionConfig/gcePdKmsKeyName": gce_pd_kms_key_name +"/dataproc:v1beta2/Expr": expr +"/dataproc:v1beta2/Expr/description": description +"/dataproc:v1beta2/Expr/expression": expression +"/dataproc:v1beta2/Expr/location": location +"/dataproc:v1beta2/Expr/title": title "/dataproc:v1beta2/GceClusterConfig": gce_cluster_config "/dataproc:v1beta2/GceClusterConfig/internalIpOnly": internal_ip_only "/dataproc:v1beta2/GceClusterConfig/metadata": metadata @@ -37755,6 +39036,7 @@ "/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/instanceId": instance_id "/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/parameters": parameters "/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/parameters/parameter": parameter +"/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/requestId": request_id "/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/version": version "/dataproc:v1beta2/Job": job "/dataproc:v1beta2/Job/driverControlFilesUri": driver_control_files_uri @@ -38193,6 +39475,25 @@ "/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesRequest/inputUrl": input_url "/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesRequest/labels": labels "/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesRequest/labels/label": label +"/datastore:v1/GoogleDatastoreAdminV1Index": google_datastore_admin_v1_index +"/datastore:v1/GoogleDatastoreAdminV1Index/ancestor": ancestor +"/datastore:v1/GoogleDatastoreAdminV1Index/indexId": index_id +"/datastore:v1/GoogleDatastoreAdminV1Index/kind": kind +"/datastore:v1/GoogleDatastoreAdminV1Index/projectId": project_id +"/datastore:v1/GoogleDatastoreAdminV1Index/properties": properties +"/datastore:v1/GoogleDatastoreAdminV1Index/properties/property": property +"/datastore:v1/GoogleDatastoreAdminV1Index/state": state +"/datastore:v1/GoogleDatastoreAdminV1IndexOperationMetadata": google_datastore_admin_v1_index_operation_metadata +"/datastore:v1/GoogleDatastoreAdminV1IndexOperationMetadata/common": common +"/datastore:v1/GoogleDatastoreAdminV1IndexOperationMetadata/indexId": index_id +"/datastore:v1/GoogleDatastoreAdminV1IndexOperationMetadata/progressEntities": progress_entities +"/datastore:v1/GoogleDatastoreAdminV1IndexedProperty": google_datastore_admin_v1_indexed_property +"/datastore:v1/GoogleDatastoreAdminV1IndexedProperty/direction": direction +"/datastore:v1/GoogleDatastoreAdminV1IndexedProperty/name": name +"/datastore:v1/GoogleDatastoreAdminV1ListIndexesResponse": google_datastore_admin_v1_list_indexes_response +"/datastore:v1/GoogleDatastoreAdminV1ListIndexesResponse/indexes": indexes +"/datastore:v1/GoogleDatastoreAdminV1ListIndexesResponse/indexes/index": index +"/datastore:v1/GoogleDatastoreAdminV1ListIndexesResponse/nextPageToken": next_page_token "/datastore:v1/GoogleDatastoreAdminV1Progress": google_datastore_admin_v1_progress "/datastore:v1/GoogleDatastoreAdminV1Progress/workCompleted": work_completed "/datastore:v1/GoogleDatastoreAdminV1Progress/workEstimated": work_estimated @@ -38373,6 +39674,14 @@ "/datastore:v1/datastore.projects.export/projectId": project_id "/datastore:v1/datastore.projects.import": import_project "/datastore:v1/datastore.projects.import/projectId": project_id +"/datastore:v1/datastore.projects.indexes.get": get_project_index +"/datastore:v1/datastore.projects.indexes.get/indexId": index_id +"/datastore:v1/datastore.projects.indexes.get/projectId": project_id +"/datastore:v1/datastore.projects.indexes.list": list_project_indexes +"/datastore:v1/datastore.projects.indexes.list/filter": filter +"/datastore:v1/datastore.projects.indexes.list/pageSize": page_size +"/datastore:v1/datastore.projects.indexes.list/pageToken": page_token +"/datastore:v1/datastore.projects.indexes.list/projectId": project_id "/datastore:v1/datastore.projects.lookup": lookup_project "/datastore:v1/datastore.projects.lookup/projectId": project_id "/datastore:v1/datastore.projects.operations.cancel": cancel_project_operation @@ -38421,6 +39730,10 @@ "/datastore:v1beta1/GoogleDatastoreAdminV1ImportEntitiesMetadata/inputUrl": input_url "/datastore:v1beta1/GoogleDatastoreAdminV1ImportEntitiesMetadata/progressBytes": progress_bytes "/datastore:v1beta1/GoogleDatastoreAdminV1ImportEntitiesMetadata/progressEntities": progress_entities +"/datastore:v1beta1/GoogleDatastoreAdminV1IndexOperationMetadata": google_datastore_admin_v1_index_operation_metadata +"/datastore:v1beta1/GoogleDatastoreAdminV1IndexOperationMetadata/common": common +"/datastore:v1beta1/GoogleDatastoreAdminV1IndexOperationMetadata/indexId": index_id +"/datastore:v1beta1/GoogleDatastoreAdminV1IndexOperationMetadata/progressEntities": progress_entities "/datastore:v1beta1/GoogleDatastoreAdminV1Progress": google_datastore_admin_v1_progress "/datastore:v1beta1/GoogleDatastoreAdminV1Progress/workCompleted": work_completed "/datastore:v1beta1/GoogleDatastoreAdminV1Progress/workEstimated": work_estimated @@ -38551,6 +39864,10 @@ "/datastore:v1beta3/GoogleDatastoreAdminV1ImportEntitiesMetadata/inputUrl": input_url "/datastore:v1beta3/GoogleDatastoreAdminV1ImportEntitiesMetadata/progressBytes": progress_bytes "/datastore:v1beta3/GoogleDatastoreAdminV1ImportEntitiesMetadata/progressEntities": progress_entities +"/datastore:v1beta3/GoogleDatastoreAdminV1IndexOperationMetadata": google_datastore_admin_v1_index_operation_metadata +"/datastore:v1beta3/GoogleDatastoreAdminV1IndexOperationMetadata/common": common +"/datastore:v1beta3/GoogleDatastoreAdminV1IndexOperationMetadata/indexId": index_id +"/datastore:v1beta3/GoogleDatastoreAdminV1IndexOperationMetadata/progressEntities": progress_entities "/datastore:v1beta3/GoogleDatastoreAdminV1Progress": google_datastore_admin_v1_progress "/datastore:v1beta3/GoogleDatastoreAdminV1Progress/workCompleted": work_completed "/datastore:v1beta3/GoogleDatastoreAdminV1Progress/workEstimated": work_estimated @@ -50426,6 +51743,2631 @@ "/dfareporting:v3.1/key": key "/dfareporting:v3.1/quotaUser": quota_user "/dfareporting:v3.1/userIp": user_ip +"/dfareporting:v3.2/Account": account +"/dfareporting:v3.2/Account/accountPermissionIds": account_permission_ids +"/dfareporting:v3.2/Account/accountPermissionIds/account_permission_id": account_permission_id +"/dfareporting:v3.2/Account/accountProfile": account_profile +"/dfareporting:v3.2/Account/active": active +"/dfareporting:v3.2/Account/activeAdsLimitTier": active_ads_limit_tier +"/dfareporting:v3.2/Account/activeViewOptOut": active_view_opt_out +"/dfareporting:v3.2/Account/availablePermissionIds": available_permission_ids +"/dfareporting:v3.2/Account/availablePermissionIds/available_permission_id": available_permission_id +"/dfareporting:v3.2/Account/countryId": country_id +"/dfareporting:v3.2/Account/currencyId": currency_id +"/dfareporting:v3.2/Account/defaultCreativeSizeId": default_creative_size_id +"/dfareporting:v3.2/Account/description": description +"/dfareporting:v3.2/Account/id": id +"/dfareporting:v3.2/Account/kind": kind +"/dfareporting:v3.2/Account/locale": locale +"/dfareporting:v3.2/Account/maximumImageSize": maximum_image_size +"/dfareporting:v3.2/Account/name": name +"/dfareporting:v3.2/Account/nielsenOcrEnabled": nielsen_ocr_enabled +"/dfareporting:v3.2/Account/reportsConfiguration": reports_configuration +"/dfareporting:v3.2/Account/shareReportsWithTwitter": share_reports_with_twitter +"/dfareporting:v3.2/Account/teaserSizeLimit": teaser_size_limit +"/dfareporting:v3.2/AccountActiveAdSummary": account_active_ad_summary +"/dfareporting:v3.2/AccountActiveAdSummary/accountId": account_id +"/dfareporting:v3.2/AccountActiveAdSummary/activeAds": active_ads +"/dfareporting:v3.2/AccountActiveAdSummary/activeAdsLimitTier": active_ads_limit_tier +"/dfareporting:v3.2/AccountActiveAdSummary/availableAds": available_ads +"/dfareporting:v3.2/AccountActiveAdSummary/kind": kind +"/dfareporting:v3.2/AccountPermission": account_permission +"/dfareporting:v3.2/AccountPermission/accountProfiles": account_profiles +"/dfareporting:v3.2/AccountPermission/accountProfiles/account_profile": account_profile +"/dfareporting:v3.2/AccountPermission/id": id +"/dfareporting:v3.2/AccountPermission/kind": kind +"/dfareporting:v3.2/AccountPermission/level": level +"/dfareporting:v3.2/AccountPermission/name": name +"/dfareporting:v3.2/AccountPermission/permissionGroupId": permission_group_id +"/dfareporting:v3.2/AccountPermissionGroup": account_permission_group +"/dfareporting:v3.2/AccountPermissionGroup/id": id +"/dfareporting:v3.2/AccountPermissionGroup/kind": kind +"/dfareporting:v3.2/AccountPermissionGroup/name": name +"/dfareporting:v3.2/AccountPermissionGroupsListResponse": account_permission_groups_list_response +"/dfareporting:v3.2/AccountPermissionGroupsListResponse/accountPermissionGroups": account_permission_groups +"/dfareporting:v3.2/AccountPermissionGroupsListResponse/accountPermissionGroups/account_permission_group": account_permission_group +"/dfareporting:v3.2/AccountPermissionGroupsListResponse/kind": kind +"/dfareporting:v3.2/AccountPermissionsListResponse": account_permissions_list_response +"/dfareporting:v3.2/AccountPermissionsListResponse/accountPermissions": account_permissions +"/dfareporting:v3.2/AccountPermissionsListResponse/accountPermissions/account_permission": account_permission +"/dfareporting:v3.2/AccountPermissionsListResponse/kind": kind +"/dfareporting:v3.2/AccountUserProfile": account_user_profile +"/dfareporting:v3.2/AccountUserProfile/accountId": account_id +"/dfareporting:v3.2/AccountUserProfile/active": active +"/dfareporting:v3.2/AccountUserProfile/advertiserFilter": advertiser_filter +"/dfareporting:v3.2/AccountUserProfile/campaignFilter": campaign_filter +"/dfareporting:v3.2/AccountUserProfile/comments": comments +"/dfareporting:v3.2/AccountUserProfile/email": email +"/dfareporting:v3.2/AccountUserProfile/id": id +"/dfareporting:v3.2/AccountUserProfile/kind": kind +"/dfareporting:v3.2/AccountUserProfile/locale": locale +"/dfareporting:v3.2/AccountUserProfile/name": name +"/dfareporting:v3.2/AccountUserProfile/siteFilter": site_filter +"/dfareporting:v3.2/AccountUserProfile/subaccountId": subaccount_id +"/dfareporting:v3.2/AccountUserProfile/traffickerType": trafficker_type +"/dfareporting:v3.2/AccountUserProfile/userAccessType": user_access_type +"/dfareporting:v3.2/AccountUserProfile/userRoleFilter": user_role_filter +"/dfareporting:v3.2/AccountUserProfile/userRoleId": user_role_id +"/dfareporting:v3.2/AccountUserProfilesListResponse": account_user_profiles_list_response +"/dfareporting:v3.2/AccountUserProfilesListResponse/accountUserProfiles": account_user_profiles +"/dfareporting:v3.2/AccountUserProfilesListResponse/accountUserProfiles/account_user_profile": account_user_profile +"/dfareporting:v3.2/AccountUserProfilesListResponse/kind": kind +"/dfareporting:v3.2/AccountUserProfilesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/AccountsListResponse": accounts_list_response +"/dfareporting:v3.2/AccountsListResponse/accounts": accounts +"/dfareporting:v3.2/AccountsListResponse/accounts/account": account +"/dfareporting:v3.2/AccountsListResponse/kind": kind +"/dfareporting:v3.2/AccountsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/Activities": activities +"/dfareporting:v3.2/Activities/filters": filters +"/dfareporting:v3.2/Activities/filters/filter": filter +"/dfareporting:v3.2/Activities/kind": kind +"/dfareporting:v3.2/Activities/metricNames": metric_names +"/dfareporting:v3.2/Activities/metricNames/metric_name": metric_name +"/dfareporting:v3.2/Ad": ad +"/dfareporting:v3.2/Ad/accountId": account_id +"/dfareporting:v3.2/Ad/active": active +"/dfareporting:v3.2/Ad/advertiserId": advertiser_id +"/dfareporting:v3.2/Ad/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/Ad/archived": archived +"/dfareporting:v3.2/Ad/audienceSegmentId": audience_segment_id +"/dfareporting:v3.2/Ad/campaignId": campaign_id +"/dfareporting:v3.2/Ad/campaignIdDimensionValue": campaign_id_dimension_value +"/dfareporting:v3.2/Ad/clickThroughUrl": click_through_url +"/dfareporting:v3.2/Ad/clickThroughUrlSuffixProperties": click_through_url_suffix_properties +"/dfareporting:v3.2/Ad/comments": comments +"/dfareporting:v3.2/Ad/compatibility": compatibility +"/dfareporting:v3.2/Ad/createInfo": create_info +"/dfareporting:v3.2/Ad/creativeGroupAssignments": creative_group_assignments +"/dfareporting:v3.2/Ad/creativeGroupAssignments/creative_group_assignment": creative_group_assignment +"/dfareporting:v3.2/Ad/creativeRotation": creative_rotation +"/dfareporting:v3.2/Ad/dayPartTargeting": day_part_targeting +"/dfareporting:v3.2/Ad/defaultClickThroughEventTagProperties": default_click_through_event_tag_properties +"/dfareporting:v3.2/Ad/deliverySchedule": delivery_schedule +"/dfareporting:v3.2/Ad/dynamicClickTracker": dynamic_click_tracker +"/dfareporting:v3.2/Ad/endTime": end_time +"/dfareporting:v3.2/Ad/eventTagOverrides": event_tag_overrides +"/dfareporting:v3.2/Ad/eventTagOverrides/event_tag_override": event_tag_override +"/dfareporting:v3.2/Ad/geoTargeting": geo_targeting +"/dfareporting:v3.2/Ad/id": id +"/dfareporting:v3.2/Ad/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/Ad/keyValueTargetingExpression": key_value_targeting_expression +"/dfareporting:v3.2/Ad/kind": kind +"/dfareporting:v3.2/Ad/languageTargeting": language_targeting +"/dfareporting:v3.2/Ad/lastModifiedInfo": last_modified_info +"/dfareporting:v3.2/Ad/name": name +"/dfareporting:v3.2/Ad/placementAssignments": placement_assignments +"/dfareporting:v3.2/Ad/placementAssignments/placement_assignment": placement_assignment +"/dfareporting:v3.2/Ad/remarketingListExpression": remarketing_list_expression +"/dfareporting:v3.2/Ad/size": size +"/dfareporting:v3.2/Ad/sslCompliant": ssl_compliant +"/dfareporting:v3.2/Ad/sslRequired": ssl_required +"/dfareporting:v3.2/Ad/startTime": start_time +"/dfareporting:v3.2/Ad/subaccountId": subaccount_id +"/dfareporting:v3.2/Ad/targetingTemplateId": targeting_template_id +"/dfareporting:v3.2/Ad/technologyTargeting": technology_targeting +"/dfareporting:v3.2/Ad/type": type +"/dfareporting:v3.2/AdBlockingConfiguration": ad_blocking_configuration +"/dfareporting:v3.2/AdBlockingConfiguration/clickThroughUrl": click_through_url +"/dfareporting:v3.2/AdBlockingConfiguration/creativeBundleId": creative_bundle_id +"/dfareporting:v3.2/AdBlockingConfiguration/enabled": enabled +"/dfareporting:v3.2/AdBlockingConfiguration/overrideClickThroughUrl": override_click_through_url +"/dfareporting:v3.2/AdSlot": ad_slot +"/dfareporting:v3.2/AdSlot/comment": comment +"/dfareporting:v3.2/AdSlot/compatibility": compatibility +"/dfareporting:v3.2/AdSlot/height": height +"/dfareporting:v3.2/AdSlot/linkedPlacementId": linked_placement_id +"/dfareporting:v3.2/AdSlot/name": name +"/dfareporting:v3.2/AdSlot/paymentSourceType": payment_source_type +"/dfareporting:v3.2/AdSlot/primary": primary +"/dfareporting:v3.2/AdSlot/width": width +"/dfareporting:v3.2/AdsListResponse": ads_list_response +"/dfareporting:v3.2/AdsListResponse/ads": ads +"/dfareporting:v3.2/AdsListResponse/ads/ad": ad +"/dfareporting:v3.2/AdsListResponse/kind": kind +"/dfareporting:v3.2/AdsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/Advertiser": advertiser +"/dfareporting:v3.2/Advertiser/accountId": account_id +"/dfareporting:v3.2/Advertiser/advertiserGroupId": advertiser_group_id +"/dfareporting:v3.2/Advertiser/clickThroughUrlSuffix": click_through_url_suffix +"/dfareporting:v3.2/Advertiser/defaultClickThroughEventTagId": default_click_through_event_tag_id +"/dfareporting:v3.2/Advertiser/defaultEmail": default_email +"/dfareporting:v3.2/Advertiser/floodlightConfigurationId": floodlight_configuration_id +"/dfareporting:v3.2/Advertiser/floodlightConfigurationIdDimensionValue": floodlight_configuration_id_dimension_value +"/dfareporting:v3.2/Advertiser/id": id +"/dfareporting:v3.2/Advertiser/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/Advertiser/kind": kind +"/dfareporting:v3.2/Advertiser/name": name +"/dfareporting:v3.2/Advertiser/originalFloodlightConfigurationId": original_floodlight_configuration_id +"/dfareporting:v3.2/Advertiser/status": status +"/dfareporting:v3.2/Advertiser/subaccountId": subaccount_id +"/dfareporting:v3.2/Advertiser/suspended": suspended +"/dfareporting:v3.2/AdvertiserGroup": advertiser_group +"/dfareporting:v3.2/AdvertiserGroup/accountId": account_id +"/dfareporting:v3.2/AdvertiserGroup/id": id +"/dfareporting:v3.2/AdvertiserGroup/kind": kind +"/dfareporting:v3.2/AdvertiserGroup/name": name +"/dfareporting:v3.2/AdvertiserGroupsListResponse": advertiser_groups_list_response +"/dfareporting:v3.2/AdvertiserGroupsListResponse/advertiserGroups": advertiser_groups +"/dfareporting:v3.2/AdvertiserGroupsListResponse/advertiserGroups/advertiser_group": advertiser_group +"/dfareporting:v3.2/AdvertiserGroupsListResponse/kind": kind +"/dfareporting:v3.2/AdvertiserGroupsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/AdvertiserLandingPagesListResponse": advertiser_landing_pages_list_response +"/dfareporting:v3.2/AdvertiserLandingPagesListResponse/kind": kind +"/dfareporting:v3.2/AdvertiserLandingPagesListResponse/landingPages": landing_pages +"/dfareporting:v3.2/AdvertiserLandingPagesListResponse/landingPages/landing_page": landing_page +"/dfareporting:v3.2/AdvertiserLandingPagesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/AdvertisersListResponse": advertisers_list_response +"/dfareporting:v3.2/AdvertisersListResponse/advertisers": advertisers +"/dfareporting:v3.2/AdvertisersListResponse/advertisers/advertiser": advertiser +"/dfareporting:v3.2/AdvertisersListResponse/kind": kind +"/dfareporting:v3.2/AdvertisersListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/AudienceSegment": audience_segment +"/dfareporting:v3.2/AudienceSegment/allocation": allocation +"/dfareporting:v3.2/AudienceSegment/id": id +"/dfareporting:v3.2/AudienceSegment/name": name +"/dfareporting:v3.2/AudienceSegmentGroup": audience_segment_group +"/dfareporting:v3.2/AudienceSegmentGroup/audienceSegments": audience_segments +"/dfareporting:v3.2/AudienceSegmentGroup/audienceSegments/audience_segment": audience_segment +"/dfareporting:v3.2/AudienceSegmentGroup/id": id +"/dfareporting:v3.2/AudienceSegmentGroup/name": name +"/dfareporting:v3.2/Browser": browser +"/dfareporting:v3.2/Browser/browserVersionId": browser_version_id +"/dfareporting:v3.2/Browser/dartId": dart_id +"/dfareporting:v3.2/Browser/kind": kind +"/dfareporting:v3.2/Browser/majorVersion": major_version +"/dfareporting:v3.2/Browser/minorVersion": minor_version +"/dfareporting:v3.2/Browser/name": name +"/dfareporting:v3.2/BrowsersListResponse": browsers_list_response +"/dfareporting:v3.2/BrowsersListResponse/browsers": browsers +"/dfareporting:v3.2/BrowsersListResponse/browsers/browser": browser +"/dfareporting:v3.2/BrowsersListResponse/kind": kind +"/dfareporting:v3.2/Campaign": campaign +"/dfareporting:v3.2/Campaign/accountId": account_id +"/dfareporting:v3.2/Campaign/adBlockingConfiguration": ad_blocking_configuration +"/dfareporting:v3.2/Campaign/additionalCreativeOptimizationConfigurations": additional_creative_optimization_configurations +"/dfareporting:v3.2/Campaign/additionalCreativeOptimizationConfigurations/additional_creative_optimization_configuration": additional_creative_optimization_configuration +"/dfareporting:v3.2/Campaign/advertiserGroupId": advertiser_group_id +"/dfareporting:v3.2/Campaign/advertiserId": advertiser_id +"/dfareporting:v3.2/Campaign/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/Campaign/archived": archived +"/dfareporting:v3.2/Campaign/audienceSegmentGroups": audience_segment_groups +"/dfareporting:v3.2/Campaign/audienceSegmentGroups/audience_segment_group": audience_segment_group +"/dfareporting:v3.2/Campaign/billingInvoiceCode": billing_invoice_code +"/dfareporting:v3.2/Campaign/clickThroughUrlSuffixProperties": click_through_url_suffix_properties +"/dfareporting:v3.2/Campaign/comment": comment +"/dfareporting:v3.2/Campaign/createInfo": create_info +"/dfareporting:v3.2/Campaign/creativeGroupIds": creative_group_ids +"/dfareporting:v3.2/Campaign/creativeGroupIds/creative_group_id": creative_group_id +"/dfareporting:v3.2/Campaign/creativeOptimizationConfiguration": creative_optimization_configuration +"/dfareporting:v3.2/Campaign/defaultClickThroughEventTagProperties": default_click_through_event_tag_properties +"/dfareporting:v3.2/Campaign/defaultLandingPageId": default_landing_page_id +"/dfareporting:v3.2/Campaign/endDate": end_date +"/dfareporting:v3.2/Campaign/eventTagOverrides": event_tag_overrides +"/dfareporting:v3.2/Campaign/eventTagOverrides/event_tag_override": event_tag_override +"/dfareporting:v3.2/Campaign/externalId": external_id +"/dfareporting:v3.2/Campaign/id": id +"/dfareporting:v3.2/Campaign/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/Campaign/kind": kind +"/dfareporting:v3.2/Campaign/lastModifiedInfo": last_modified_info +"/dfareporting:v3.2/Campaign/lookbackConfiguration": lookback_configuration +"/dfareporting:v3.2/Campaign/name": name +"/dfareporting:v3.2/Campaign/nielsenOcrEnabled": nielsen_ocr_enabled +"/dfareporting:v3.2/Campaign/startDate": start_date +"/dfareporting:v3.2/Campaign/subaccountId": subaccount_id +"/dfareporting:v3.2/Campaign/traffickerEmails": trafficker_emails +"/dfareporting:v3.2/Campaign/traffickerEmails/trafficker_email": trafficker_email +"/dfareporting:v3.2/CampaignCreativeAssociation": campaign_creative_association +"/dfareporting:v3.2/CampaignCreativeAssociation/creativeId": creative_id +"/dfareporting:v3.2/CampaignCreativeAssociation/kind": kind +"/dfareporting:v3.2/CampaignCreativeAssociationsListResponse": campaign_creative_associations_list_response +"/dfareporting:v3.2/CampaignCreativeAssociationsListResponse/campaignCreativeAssociations": campaign_creative_associations +"/dfareporting:v3.2/CampaignCreativeAssociationsListResponse/campaignCreativeAssociations/campaign_creative_association": campaign_creative_association +"/dfareporting:v3.2/CampaignCreativeAssociationsListResponse/kind": kind +"/dfareporting:v3.2/CampaignCreativeAssociationsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/CampaignsListResponse": campaigns_list_response +"/dfareporting:v3.2/CampaignsListResponse/campaigns": campaigns +"/dfareporting:v3.2/CampaignsListResponse/campaigns/campaign": campaign +"/dfareporting:v3.2/CampaignsListResponse/kind": kind +"/dfareporting:v3.2/CampaignsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/ChangeLog": change_log +"/dfareporting:v3.2/ChangeLog/accountId": account_id +"/dfareporting:v3.2/ChangeLog/action": action +"/dfareporting:v3.2/ChangeLog/changeTime": change_time +"/dfareporting:v3.2/ChangeLog/fieldName": field_name +"/dfareporting:v3.2/ChangeLog/id": id +"/dfareporting:v3.2/ChangeLog/kind": kind +"/dfareporting:v3.2/ChangeLog/newValue": new_value +"/dfareporting:v3.2/ChangeLog/objectId": object_id_prop +"/dfareporting:v3.2/ChangeLog/objectType": object_type +"/dfareporting:v3.2/ChangeLog/oldValue": old_value +"/dfareporting:v3.2/ChangeLog/subaccountId": subaccount_id +"/dfareporting:v3.2/ChangeLog/transactionId": transaction_id +"/dfareporting:v3.2/ChangeLog/userProfileId": user_profile_id +"/dfareporting:v3.2/ChangeLog/userProfileName": user_profile_name +"/dfareporting:v3.2/ChangeLogsListResponse": change_logs_list_response +"/dfareporting:v3.2/ChangeLogsListResponse/changeLogs": change_logs +"/dfareporting:v3.2/ChangeLogsListResponse/changeLogs/change_log": change_log +"/dfareporting:v3.2/ChangeLogsListResponse/kind": kind +"/dfareporting:v3.2/ChangeLogsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/CitiesListResponse": cities_list_response +"/dfareporting:v3.2/CitiesListResponse/cities": cities +"/dfareporting:v3.2/CitiesListResponse/cities/city": city +"/dfareporting:v3.2/CitiesListResponse/kind": kind +"/dfareporting:v3.2/City": city +"/dfareporting:v3.2/City/countryCode": country_code +"/dfareporting:v3.2/City/countryDartId": country_dart_id +"/dfareporting:v3.2/City/dartId": dart_id +"/dfareporting:v3.2/City/kind": kind +"/dfareporting:v3.2/City/metroCode": metro_code +"/dfareporting:v3.2/City/metroDmaId": metro_dma_id +"/dfareporting:v3.2/City/name": name +"/dfareporting:v3.2/City/regionCode": region_code +"/dfareporting:v3.2/City/regionDartId": region_dart_id +"/dfareporting:v3.2/ClickTag": click_tag +"/dfareporting:v3.2/ClickTag/clickThroughUrl": click_through_url +"/dfareporting:v3.2/ClickTag/eventName": event_name +"/dfareporting:v3.2/ClickTag/name": name +"/dfareporting:v3.2/ClickThroughUrl": click_through_url +"/dfareporting:v3.2/ClickThroughUrl/computedClickThroughUrl": computed_click_through_url +"/dfareporting:v3.2/ClickThroughUrl/customClickThroughUrl": custom_click_through_url +"/dfareporting:v3.2/ClickThroughUrl/defaultLandingPage": default_landing_page +"/dfareporting:v3.2/ClickThroughUrl/landingPageId": landing_page_id +"/dfareporting:v3.2/ClickThroughUrlSuffixProperties": click_through_url_suffix_properties +"/dfareporting:v3.2/ClickThroughUrlSuffixProperties/clickThroughUrlSuffix": click_through_url_suffix +"/dfareporting:v3.2/ClickThroughUrlSuffixProperties/overrideInheritedSuffix": override_inherited_suffix +"/dfareporting:v3.2/CompanionClickThroughOverride": companion_click_through_override +"/dfareporting:v3.2/CompanionClickThroughOverride/clickThroughUrl": click_through_url +"/dfareporting:v3.2/CompanionClickThroughOverride/creativeId": creative_id +"/dfareporting:v3.2/CompanionSetting": companion_setting +"/dfareporting:v3.2/CompanionSetting/companionsDisabled": companions_disabled +"/dfareporting:v3.2/CompanionSetting/enabledSizes": enabled_sizes +"/dfareporting:v3.2/CompanionSetting/enabledSizes/enabled_size": enabled_size +"/dfareporting:v3.2/CompanionSetting/imageOnly": image_only +"/dfareporting:v3.2/CompanionSetting/kind": kind +"/dfareporting:v3.2/CompatibleFields": compatible_fields +"/dfareporting:v3.2/CompatibleFields/crossDimensionReachReportCompatibleFields": cross_dimension_reach_report_compatible_fields +"/dfareporting:v3.2/CompatibleFields/floodlightReportCompatibleFields": floodlight_report_compatible_fields +"/dfareporting:v3.2/CompatibleFields/kind": kind +"/dfareporting:v3.2/CompatibleFields/pathToConversionReportCompatibleFields": path_to_conversion_report_compatible_fields +"/dfareporting:v3.2/CompatibleFields/reachReportCompatibleFields": reach_report_compatible_fields +"/dfareporting:v3.2/CompatibleFields/reportCompatibleFields": report_compatible_fields +"/dfareporting:v3.2/ConnectionType": connection_type +"/dfareporting:v3.2/ConnectionType/id": id +"/dfareporting:v3.2/ConnectionType/kind": kind +"/dfareporting:v3.2/ConnectionType/name": name +"/dfareporting:v3.2/ConnectionTypesListResponse": connection_types_list_response +"/dfareporting:v3.2/ConnectionTypesListResponse/connectionTypes": connection_types +"/dfareporting:v3.2/ConnectionTypesListResponse/connectionTypes/connection_type": connection_type +"/dfareporting:v3.2/ConnectionTypesListResponse/kind": kind +"/dfareporting:v3.2/ContentCategoriesListResponse": content_categories_list_response +"/dfareporting:v3.2/ContentCategoriesListResponse/contentCategories": content_categories +"/dfareporting:v3.2/ContentCategoriesListResponse/contentCategories/content_category": content_category +"/dfareporting:v3.2/ContentCategoriesListResponse/kind": kind +"/dfareporting:v3.2/ContentCategoriesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/ContentCategory": content_category +"/dfareporting:v3.2/ContentCategory/accountId": account_id +"/dfareporting:v3.2/ContentCategory/id": id +"/dfareporting:v3.2/ContentCategory/kind": kind +"/dfareporting:v3.2/ContentCategory/name": name +"/dfareporting:v3.2/Conversion": conversion +"/dfareporting:v3.2/Conversion/childDirectedTreatment": child_directed_treatment +"/dfareporting:v3.2/Conversion/customVariables": custom_variables +"/dfareporting:v3.2/Conversion/customVariables/custom_variable": custom_variable +"/dfareporting:v3.2/Conversion/encryptedUserId": encrypted_user_id +"/dfareporting:v3.2/Conversion/encryptedUserIdCandidates": encrypted_user_id_candidates +"/dfareporting:v3.2/Conversion/encryptedUserIdCandidates/encrypted_user_id_candidate": encrypted_user_id_candidate +"/dfareporting:v3.2/Conversion/floodlightActivityId": floodlight_activity_id +"/dfareporting:v3.2/Conversion/floodlightConfigurationId": floodlight_configuration_id +"/dfareporting:v3.2/Conversion/gclid": gclid +"/dfareporting:v3.2/Conversion/kind": kind +"/dfareporting:v3.2/Conversion/limitAdTracking": limit_ad_tracking +"/dfareporting:v3.2/Conversion/mobileDeviceId": mobile_device_id +"/dfareporting:v3.2/Conversion/nonPersonalizedAd": non_personalized_ad +"/dfareporting:v3.2/Conversion/ordinal": ordinal +"/dfareporting:v3.2/Conversion/quantity": quantity +"/dfareporting:v3.2/Conversion/timestampMicros": timestamp_micros +"/dfareporting:v3.2/Conversion/treatmentForUnderage": treatment_for_underage +"/dfareporting:v3.2/Conversion/value": value +"/dfareporting:v3.2/ConversionError": conversion_error +"/dfareporting:v3.2/ConversionError/code": code +"/dfareporting:v3.2/ConversionError/kind": kind +"/dfareporting:v3.2/ConversionError/message": message +"/dfareporting:v3.2/ConversionStatus": conversion_status +"/dfareporting:v3.2/ConversionStatus/conversion": conversion +"/dfareporting:v3.2/ConversionStatus/errors": errors +"/dfareporting:v3.2/ConversionStatus/errors/error": error +"/dfareporting:v3.2/ConversionStatus/kind": kind +"/dfareporting:v3.2/ConversionsBatchInsertRequest": conversions_batch_insert_request +"/dfareporting:v3.2/ConversionsBatchInsertRequest/conversions": conversions +"/dfareporting:v3.2/ConversionsBatchInsertRequest/conversions/conversion": conversion +"/dfareporting:v3.2/ConversionsBatchInsertRequest/encryptionInfo": encryption_info +"/dfareporting:v3.2/ConversionsBatchInsertRequest/kind": kind +"/dfareporting:v3.2/ConversionsBatchInsertResponse": conversions_batch_insert_response +"/dfareporting:v3.2/ConversionsBatchInsertResponse/hasFailures": has_failures +"/dfareporting:v3.2/ConversionsBatchInsertResponse/kind": kind +"/dfareporting:v3.2/ConversionsBatchInsertResponse/status": status +"/dfareporting:v3.2/ConversionsBatchInsertResponse/status/status": status +"/dfareporting:v3.2/ConversionsBatchUpdateRequest": conversions_batch_update_request +"/dfareporting:v3.2/ConversionsBatchUpdateRequest/conversions": conversions +"/dfareporting:v3.2/ConversionsBatchUpdateRequest/conversions/conversion": conversion +"/dfareporting:v3.2/ConversionsBatchUpdateRequest/encryptionInfo": encryption_info +"/dfareporting:v3.2/ConversionsBatchUpdateRequest/kind": kind +"/dfareporting:v3.2/ConversionsBatchUpdateResponse": conversions_batch_update_response +"/dfareporting:v3.2/ConversionsBatchUpdateResponse/hasFailures": has_failures +"/dfareporting:v3.2/ConversionsBatchUpdateResponse/kind": kind +"/dfareporting:v3.2/ConversionsBatchUpdateResponse/status": status +"/dfareporting:v3.2/ConversionsBatchUpdateResponse/status/status": status +"/dfareporting:v3.2/CountriesListResponse": countries_list_response +"/dfareporting:v3.2/CountriesListResponse/countries": countries +"/dfareporting:v3.2/CountriesListResponse/countries/country": country +"/dfareporting:v3.2/CountriesListResponse/kind": kind +"/dfareporting:v3.2/Country": country +"/dfareporting:v3.2/Country/countryCode": country_code +"/dfareporting:v3.2/Country/dartId": dart_id +"/dfareporting:v3.2/Country/kind": kind +"/dfareporting:v3.2/Country/name": name +"/dfareporting:v3.2/Country/sslEnabled": ssl_enabled +"/dfareporting:v3.2/Creative": creative +"/dfareporting:v3.2/Creative/accountId": account_id +"/dfareporting:v3.2/Creative/active": active +"/dfareporting:v3.2/Creative/adParameters": ad_parameters +"/dfareporting:v3.2/Creative/adTagKeys": ad_tag_keys +"/dfareporting:v3.2/Creative/adTagKeys/ad_tag_key": ad_tag_key +"/dfareporting:v3.2/Creative/additionalSizes": additional_sizes +"/dfareporting:v3.2/Creative/additionalSizes/additional_size": additional_size +"/dfareporting:v3.2/Creative/advertiserId": advertiser_id +"/dfareporting:v3.2/Creative/allowScriptAccess": allow_script_access +"/dfareporting:v3.2/Creative/archived": archived +"/dfareporting:v3.2/Creative/artworkType": artwork_type +"/dfareporting:v3.2/Creative/authoringSource": authoring_source +"/dfareporting:v3.2/Creative/authoringTool": authoring_tool +"/dfareporting:v3.2/Creative/autoAdvanceImages": auto_advance_images +"/dfareporting:v3.2/Creative/backgroundColor": background_color +"/dfareporting:v3.2/Creative/backupImageClickThroughUrl": backup_image_click_through_url +"/dfareporting:v3.2/Creative/backupImageFeatures": backup_image_features +"/dfareporting:v3.2/Creative/backupImageFeatures/backup_image_feature": backup_image_feature +"/dfareporting:v3.2/Creative/backupImageReportingLabel": backup_image_reporting_label +"/dfareporting:v3.2/Creative/backupImageTargetWindow": backup_image_target_window +"/dfareporting:v3.2/Creative/clickTags": click_tags +"/dfareporting:v3.2/Creative/clickTags/click_tag": click_tag +"/dfareporting:v3.2/Creative/commercialId": commercial_id +"/dfareporting:v3.2/Creative/companionCreatives": companion_creatives +"/dfareporting:v3.2/Creative/companionCreatives/companion_creative": companion_creative +"/dfareporting:v3.2/Creative/compatibility": compatibility +"/dfareporting:v3.2/Creative/compatibility/compatibility": compatibility +"/dfareporting:v3.2/Creative/convertFlashToHtml5": convert_flash_to_html5 +"/dfareporting:v3.2/Creative/counterCustomEvents": counter_custom_events +"/dfareporting:v3.2/Creative/counterCustomEvents/counter_custom_event": counter_custom_event +"/dfareporting:v3.2/Creative/creativeAssetSelection": creative_asset_selection +"/dfareporting:v3.2/Creative/creativeAssets": creative_assets +"/dfareporting:v3.2/Creative/creativeAssets/creative_asset": creative_asset +"/dfareporting:v3.2/Creative/creativeFieldAssignments": creative_field_assignments +"/dfareporting:v3.2/Creative/creativeFieldAssignments/creative_field_assignment": creative_field_assignment +"/dfareporting:v3.2/Creative/customKeyValues": custom_key_values +"/dfareporting:v3.2/Creative/customKeyValues/custom_key_value": custom_key_value +"/dfareporting:v3.2/Creative/dynamicAssetSelection": dynamic_asset_selection +"/dfareporting:v3.2/Creative/exitCustomEvents": exit_custom_events +"/dfareporting:v3.2/Creative/exitCustomEvents/exit_custom_event": exit_custom_event +"/dfareporting:v3.2/Creative/fsCommand": fs_command +"/dfareporting:v3.2/Creative/htmlCode": html_code +"/dfareporting:v3.2/Creative/htmlCodeLocked": html_code_locked +"/dfareporting:v3.2/Creative/id": id +"/dfareporting:v3.2/Creative/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/Creative/kind": kind +"/dfareporting:v3.2/Creative/lastModifiedInfo": last_modified_info +"/dfareporting:v3.2/Creative/latestTraffickedCreativeId": latest_trafficked_creative_id +"/dfareporting:v3.2/Creative/mediaDescription": media_description +"/dfareporting:v3.2/Creative/mediaDuration": media_duration +"/dfareporting:v3.2/Creative/name": name +"/dfareporting:v3.2/Creative/overrideCss": override_css +"/dfareporting:v3.2/Creative/politeLoadAssetId": polite_load_asset_id +"/dfareporting:v3.2/Creative/progressOffset": progress_offset +"/dfareporting:v3.2/Creative/redirectUrl": redirect_url +"/dfareporting:v3.2/Creative/renderingId": rendering_id +"/dfareporting:v3.2/Creative/renderingIdDimensionValue": rendering_id_dimension_value +"/dfareporting:v3.2/Creative/requiredFlashPluginVersion": required_flash_plugin_version +"/dfareporting:v3.2/Creative/requiredFlashVersion": required_flash_version +"/dfareporting:v3.2/Creative/size": size +"/dfareporting:v3.2/Creative/skipOffset": skip_offset +"/dfareporting:v3.2/Creative/skippable": skippable +"/dfareporting:v3.2/Creative/sslCompliant": ssl_compliant +"/dfareporting:v3.2/Creative/sslOverride": ssl_override +"/dfareporting:v3.2/Creative/studioAdvertiserId": studio_advertiser_id +"/dfareporting:v3.2/Creative/studioCreativeId": studio_creative_id +"/dfareporting:v3.2/Creative/studioTraffickedCreativeId": studio_trafficked_creative_id +"/dfareporting:v3.2/Creative/subaccountId": subaccount_id +"/dfareporting:v3.2/Creative/thirdPartyBackupImageImpressionsUrl": third_party_backup_image_impressions_url +"/dfareporting:v3.2/Creative/thirdPartyRichMediaImpressionsUrl": third_party_rich_media_impressions_url +"/dfareporting:v3.2/Creative/thirdPartyUrls": third_party_urls +"/dfareporting:v3.2/Creative/thirdPartyUrls/third_party_url": third_party_url +"/dfareporting:v3.2/Creative/timerCustomEvents": timer_custom_events +"/dfareporting:v3.2/Creative/timerCustomEvents/timer_custom_event": timer_custom_event +"/dfareporting:v3.2/Creative/totalFileSize": total_file_size +"/dfareporting:v3.2/Creative/type": type +"/dfareporting:v3.2/Creative/universalAdId": universal_ad_id +"/dfareporting:v3.2/Creative/version": version +"/dfareporting:v3.2/CreativeAsset": creative_asset +"/dfareporting:v3.2/CreativeAsset/actionScript3": action_script3 +"/dfareporting:v3.2/CreativeAsset/active": active +"/dfareporting:v3.2/CreativeAsset/additionalSizes": additional_sizes +"/dfareporting:v3.2/CreativeAsset/additionalSizes/additional_size": additional_size +"/dfareporting:v3.2/CreativeAsset/alignment": alignment +"/dfareporting:v3.2/CreativeAsset/artworkType": artwork_type +"/dfareporting:v3.2/CreativeAsset/assetIdentifier": asset_identifier +"/dfareporting:v3.2/CreativeAsset/backupImageExit": backup_image_exit +"/dfareporting:v3.2/CreativeAsset/bitRate": bit_rate +"/dfareporting:v3.2/CreativeAsset/childAssetType": child_asset_type +"/dfareporting:v3.2/CreativeAsset/collapsedSize": collapsed_size +"/dfareporting:v3.2/CreativeAsset/companionCreativeIds": companion_creative_ids +"/dfareporting:v3.2/CreativeAsset/companionCreativeIds/companion_creative_id": companion_creative_id +"/dfareporting:v3.2/CreativeAsset/customStartTimeValue": custom_start_time_value +"/dfareporting:v3.2/CreativeAsset/detectedFeatures": detected_features +"/dfareporting:v3.2/CreativeAsset/detectedFeatures/detected_feature": detected_feature +"/dfareporting:v3.2/CreativeAsset/displayType": display_type +"/dfareporting:v3.2/CreativeAsset/duration": duration +"/dfareporting:v3.2/CreativeAsset/durationType": duration_type +"/dfareporting:v3.2/CreativeAsset/expandedDimension": expanded_dimension +"/dfareporting:v3.2/CreativeAsset/fileSize": file_size +"/dfareporting:v3.2/CreativeAsset/flashVersion": flash_version +"/dfareporting:v3.2/CreativeAsset/hideFlashObjects": hide_flash_objects +"/dfareporting:v3.2/CreativeAsset/hideSelectionBoxes": hide_selection_boxes +"/dfareporting:v3.2/CreativeAsset/horizontallyLocked": horizontally_locked +"/dfareporting:v3.2/CreativeAsset/id": id +"/dfareporting:v3.2/CreativeAsset/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/CreativeAsset/mediaDuration": media_duration +"/dfareporting:v3.2/CreativeAsset/mimeType": mime_type +"/dfareporting:v3.2/CreativeAsset/offset": offset +"/dfareporting:v3.2/CreativeAsset/orientation": orientation +"/dfareporting:v3.2/CreativeAsset/originalBackup": original_backup +"/dfareporting:v3.2/CreativeAsset/position": position +"/dfareporting:v3.2/CreativeAsset/positionLeftUnit": position_left_unit +"/dfareporting:v3.2/CreativeAsset/positionTopUnit": position_top_unit +"/dfareporting:v3.2/CreativeAsset/progressiveServingUrl": progressive_serving_url +"/dfareporting:v3.2/CreativeAsset/pushdown": pushdown +"/dfareporting:v3.2/CreativeAsset/pushdownDuration": pushdown_duration +"/dfareporting:v3.2/CreativeAsset/role": role +"/dfareporting:v3.2/CreativeAsset/size": size +"/dfareporting:v3.2/CreativeAsset/sslCompliant": ssl_compliant +"/dfareporting:v3.2/CreativeAsset/startTimeType": start_time_type +"/dfareporting:v3.2/CreativeAsset/streamingServingUrl": streaming_serving_url +"/dfareporting:v3.2/CreativeAsset/transparency": transparency +"/dfareporting:v3.2/CreativeAsset/verticallyLocked": vertically_locked +"/dfareporting:v3.2/CreativeAsset/windowMode": window_mode +"/dfareporting:v3.2/CreativeAsset/zIndex": z_index +"/dfareporting:v3.2/CreativeAsset/zipFilename": zip_filename +"/dfareporting:v3.2/CreativeAsset/zipFilesize": zip_filesize +"/dfareporting:v3.2/CreativeAssetId": creative_asset_id +"/dfareporting:v3.2/CreativeAssetId/name": name +"/dfareporting:v3.2/CreativeAssetId/type": type +"/dfareporting:v3.2/CreativeAssetMetadata": creative_asset_metadata +"/dfareporting:v3.2/CreativeAssetMetadata/assetIdentifier": asset_identifier +"/dfareporting:v3.2/CreativeAssetMetadata/clickTags": click_tags +"/dfareporting:v3.2/CreativeAssetMetadata/clickTags/click_tag": click_tag +"/dfareporting:v3.2/CreativeAssetMetadata/detectedFeatures": detected_features +"/dfareporting:v3.2/CreativeAssetMetadata/detectedFeatures/detected_feature": detected_feature +"/dfareporting:v3.2/CreativeAssetMetadata/id": id +"/dfareporting:v3.2/CreativeAssetMetadata/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/CreativeAssetMetadata/kind": kind +"/dfareporting:v3.2/CreativeAssetMetadata/warnedValidationRules": warned_validation_rules +"/dfareporting:v3.2/CreativeAssetMetadata/warnedValidationRules/warned_validation_rule": warned_validation_rule +"/dfareporting:v3.2/CreativeAssetSelection": creative_asset_selection +"/dfareporting:v3.2/CreativeAssetSelection/defaultAssetId": default_asset_id +"/dfareporting:v3.2/CreativeAssetSelection/rules": rules +"/dfareporting:v3.2/CreativeAssetSelection/rules/rule": rule +"/dfareporting:v3.2/CreativeAssignment": creative_assignment +"/dfareporting:v3.2/CreativeAssignment/active": active +"/dfareporting:v3.2/CreativeAssignment/applyEventTags": apply_event_tags +"/dfareporting:v3.2/CreativeAssignment/clickThroughUrl": click_through_url +"/dfareporting:v3.2/CreativeAssignment/companionCreativeOverrides": companion_creative_overrides +"/dfareporting:v3.2/CreativeAssignment/companionCreativeOverrides/companion_creative_override": companion_creative_override +"/dfareporting:v3.2/CreativeAssignment/creativeGroupAssignments": creative_group_assignments +"/dfareporting:v3.2/CreativeAssignment/creativeGroupAssignments/creative_group_assignment": creative_group_assignment +"/dfareporting:v3.2/CreativeAssignment/creativeId": creative_id +"/dfareporting:v3.2/CreativeAssignment/creativeIdDimensionValue": creative_id_dimension_value +"/dfareporting:v3.2/CreativeAssignment/endTime": end_time +"/dfareporting:v3.2/CreativeAssignment/richMediaExitOverrides": rich_media_exit_overrides +"/dfareporting:v3.2/CreativeAssignment/richMediaExitOverrides/rich_media_exit_override": rich_media_exit_override +"/dfareporting:v3.2/CreativeAssignment/sequence": sequence +"/dfareporting:v3.2/CreativeAssignment/sslCompliant": ssl_compliant +"/dfareporting:v3.2/CreativeAssignment/startTime": start_time +"/dfareporting:v3.2/CreativeAssignment/weight": weight +"/dfareporting:v3.2/CreativeClickThroughUrl": creative_click_through_url +"/dfareporting:v3.2/CreativeClickThroughUrl/computedClickThroughUrl": computed_click_through_url +"/dfareporting:v3.2/CreativeClickThroughUrl/customClickThroughUrl": custom_click_through_url +"/dfareporting:v3.2/CreativeClickThroughUrl/landingPageId": landing_page_id +"/dfareporting:v3.2/CreativeCustomEvent": creative_custom_event +"/dfareporting:v3.2/CreativeCustomEvent/advertiserCustomEventId": advertiser_custom_event_id +"/dfareporting:v3.2/CreativeCustomEvent/advertiserCustomEventName": advertiser_custom_event_name +"/dfareporting:v3.2/CreativeCustomEvent/advertiserCustomEventType": advertiser_custom_event_type +"/dfareporting:v3.2/CreativeCustomEvent/artworkLabel": artwork_label +"/dfareporting:v3.2/CreativeCustomEvent/artworkType": artwork_type +"/dfareporting:v3.2/CreativeCustomEvent/exitClickThroughUrl": exit_click_through_url +"/dfareporting:v3.2/CreativeCustomEvent/id": id +"/dfareporting:v3.2/CreativeCustomEvent/popupWindowProperties": popup_window_properties +"/dfareporting:v3.2/CreativeCustomEvent/targetType": target_type +"/dfareporting:v3.2/CreativeCustomEvent/videoReportingId": video_reporting_id +"/dfareporting:v3.2/CreativeField": creative_field +"/dfareporting:v3.2/CreativeField/accountId": account_id +"/dfareporting:v3.2/CreativeField/advertiserId": advertiser_id +"/dfareporting:v3.2/CreativeField/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/CreativeField/id": id +"/dfareporting:v3.2/CreativeField/kind": kind +"/dfareporting:v3.2/CreativeField/name": name +"/dfareporting:v3.2/CreativeField/subaccountId": subaccount_id +"/dfareporting:v3.2/CreativeFieldAssignment": creative_field_assignment +"/dfareporting:v3.2/CreativeFieldAssignment/creativeFieldId": creative_field_id +"/dfareporting:v3.2/CreativeFieldAssignment/creativeFieldValueId": creative_field_value_id +"/dfareporting:v3.2/CreativeFieldValue": creative_field_value +"/dfareporting:v3.2/CreativeFieldValue/id": id +"/dfareporting:v3.2/CreativeFieldValue/kind": kind +"/dfareporting:v3.2/CreativeFieldValue/value": value +"/dfareporting:v3.2/CreativeFieldValuesListResponse": creative_field_values_list_response +"/dfareporting:v3.2/CreativeFieldValuesListResponse/creativeFieldValues": creative_field_values +"/dfareporting:v3.2/CreativeFieldValuesListResponse/creativeFieldValues/creative_field_value": creative_field_value +"/dfareporting:v3.2/CreativeFieldValuesListResponse/kind": kind +"/dfareporting:v3.2/CreativeFieldValuesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/CreativeFieldsListResponse": creative_fields_list_response +"/dfareporting:v3.2/CreativeFieldsListResponse/creativeFields": creative_fields +"/dfareporting:v3.2/CreativeFieldsListResponse/creativeFields/creative_field": creative_field +"/dfareporting:v3.2/CreativeFieldsListResponse/kind": kind +"/dfareporting:v3.2/CreativeFieldsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/CreativeGroup": creative_group +"/dfareporting:v3.2/CreativeGroup/accountId": account_id +"/dfareporting:v3.2/CreativeGroup/advertiserId": advertiser_id +"/dfareporting:v3.2/CreativeGroup/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/CreativeGroup/groupNumber": group_number +"/dfareporting:v3.2/CreativeGroup/id": id +"/dfareporting:v3.2/CreativeGroup/kind": kind +"/dfareporting:v3.2/CreativeGroup/name": name +"/dfareporting:v3.2/CreativeGroup/subaccountId": subaccount_id +"/dfareporting:v3.2/CreativeGroupAssignment": creative_group_assignment +"/dfareporting:v3.2/CreativeGroupAssignment/creativeGroupId": creative_group_id +"/dfareporting:v3.2/CreativeGroupAssignment/creativeGroupNumber": creative_group_number +"/dfareporting:v3.2/CreativeGroupsListResponse": creative_groups_list_response +"/dfareporting:v3.2/CreativeGroupsListResponse/creativeGroups": creative_groups +"/dfareporting:v3.2/CreativeGroupsListResponse/creativeGroups/creative_group": creative_group +"/dfareporting:v3.2/CreativeGroupsListResponse/kind": kind +"/dfareporting:v3.2/CreativeGroupsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/CreativeOptimizationConfiguration": creative_optimization_configuration +"/dfareporting:v3.2/CreativeOptimizationConfiguration/id": id +"/dfareporting:v3.2/CreativeOptimizationConfiguration/name": name +"/dfareporting:v3.2/CreativeOptimizationConfiguration/optimizationActivitys": optimization_activitys +"/dfareporting:v3.2/CreativeOptimizationConfiguration/optimizationActivitys/optimization_activity": optimization_activity +"/dfareporting:v3.2/CreativeOptimizationConfiguration/optimizationModel": optimization_model +"/dfareporting:v3.2/CreativeRotation": creative_rotation +"/dfareporting:v3.2/CreativeRotation/creativeAssignments": creative_assignments +"/dfareporting:v3.2/CreativeRotation/creativeAssignments/creative_assignment": creative_assignment +"/dfareporting:v3.2/CreativeRotation/creativeOptimizationConfigurationId": creative_optimization_configuration_id +"/dfareporting:v3.2/CreativeRotation/type": type +"/dfareporting:v3.2/CreativeRotation/weightCalculationStrategy": weight_calculation_strategy +"/dfareporting:v3.2/CreativeSettings": creative_settings +"/dfareporting:v3.2/CreativeSettings/iFrameFooter": i_frame_footer +"/dfareporting:v3.2/CreativeSettings/iFrameHeader": i_frame_header +"/dfareporting:v3.2/CreativesListResponse": creatives_list_response +"/dfareporting:v3.2/CreativesListResponse/creatives": creatives +"/dfareporting:v3.2/CreativesListResponse/creatives/creative": creative +"/dfareporting:v3.2/CreativesListResponse/kind": kind +"/dfareporting:v3.2/CreativesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/CrossDimensionReachReportCompatibleFields": cross_dimension_reach_report_compatible_fields +"/dfareporting:v3.2/CrossDimensionReachReportCompatibleFields/breakdown": breakdown +"/dfareporting:v3.2/CrossDimensionReachReportCompatibleFields/breakdown/breakdown": breakdown +"/dfareporting:v3.2/CrossDimensionReachReportCompatibleFields/dimensionFilters": dimension_filters +"/dfareporting:v3.2/CrossDimensionReachReportCompatibleFields/dimensionFilters/dimension_filter": dimension_filter +"/dfareporting:v3.2/CrossDimensionReachReportCompatibleFields/kind": kind +"/dfareporting:v3.2/CrossDimensionReachReportCompatibleFields/metrics": metrics +"/dfareporting:v3.2/CrossDimensionReachReportCompatibleFields/metrics/metric": metric +"/dfareporting:v3.2/CrossDimensionReachReportCompatibleFields/overlapMetrics": overlap_metrics +"/dfareporting:v3.2/CrossDimensionReachReportCompatibleFields/overlapMetrics/overlap_metric": overlap_metric +"/dfareporting:v3.2/CustomFloodlightVariable": custom_floodlight_variable +"/dfareporting:v3.2/CustomFloodlightVariable/kind": kind +"/dfareporting:v3.2/CustomFloodlightVariable/type": type +"/dfareporting:v3.2/CustomFloodlightVariable/value": value +"/dfareporting:v3.2/CustomRichMediaEvents": custom_rich_media_events +"/dfareporting:v3.2/CustomRichMediaEvents/filteredEventIds": filtered_event_ids +"/dfareporting:v3.2/CustomRichMediaEvents/filteredEventIds/filtered_event_id": filtered_event_id +"/dfareporting:v3.2/CustomRichMediaEvents/kind": kind +"/dfareporting:v3.2/DateRange": date_range +"/dfareporting:v3.2/DateRange/endDate": end_date +"/dfareporting:v3.2/DateRange/kind": kind +"/dfareporting:v3.2/DateRange/relativeDateRange": relative_date_range +"/dfareporting:v3.2/DateRange/startDate": start_date +"/dfareporting:v3.2/DayPartTargeting": day_part_targeting +"/dfareporting:v3.2/DayPartTargeting/daysOfWeek": days_of_week +"/dfareporting:v3.2/DayPartTargeting/daysOfWeek/days_of_week": days_of_week +"/dfareporting:v3.2/DayPartTargeting/hoursOfDay": hours_of_day +"/dfareporting:v3.2/DayPartTargeting/hoursOfDay/hours_of_day": hours_of_day +"/dfareporting:v3.2/DayPartTargeting/userLocalTime": user_local_time +"/dfareporting:v3.2/DeepLink": deep_link +"/dfareporting:v3.2/DeepLink/appUrl": app_url +"/dfareporting:v3.2/DeepLink/fallbackUrl": fallback_url +"/dfareporting:v3.2/DeepLink/kind": kind +"/dfareporting:v3.2/DeepLink/mobileApp": mobile_app +"/dfareporting:v3.2/DeepLink/remarketingListIds": remarketing_list_ids +"/dfareporting:v3.2/DeepLink/remarketingListIds/remarketing_list_id": remarketing_list_id +"/dfareporting:v3.2/DefaultClickThroughEventTagProperties": default_click_through_event_tag_properties +"/dfareporting:v3.2/DefaultClickThroughEventTagProperties/defaultClickThroughEventTagId": default_click_through_event_tag_id +"/dfareporting:v3.2/DefaultClickThroughEventTagProperties/overrideInheritedEventTag": override_inherited_event_tag +"/dfareporting:v3.2/DeliverySchedule": delivery_schedule +"/dfareporting:v3.2/DeliverySchedule/frequencyCap": frequency_cap +"/dfareporting:v3.2/DeliverySchedule/hardCutoff": hard_cutoff +"/dfareporting:v3.2/DeliverySchedule/impressionRatio": impression_ratio +"/dfareporting:v3.2/DeliverySchedule/priority": priority +"/dfareporting:v3.2/DfpSettings": dfp_settings +"/dfareporting:v3.2/DfpSettings/dfpNetworkCode": dfp_network_code +"/dfareporting:v3.2/DfpSettings/dfpNetworkName": dfp_network_name +"/dfareporting:v3.2/DfpSettings/programmaticPlacementAccepted": programmatic_placement_accepted +"/dfareporting:v3.2/DfpSettings/pubPaidPlacementAccepted": pub_paid_placement_accepted +"/dfareporting:v3.2/DfpSettings/publisherPortalOnly": publisher_portal_only +"/dfareporting:v3.2/Dimension": dimension +"/dfareporting:v3.2/Dimension/kind": kind +"/dfareporting:v3.2/Dimension/name": name +"/dfareporting:v3.2/DimensionFilter": dimension_filter +"/dfareporting:v3.2/DimensionFilter/dimensionName": dimension_name +"/dfareporting:v3.2/DimensionFilter/kind": kind +"/dfareporting:v3.2/DimensionFilter/value": value +"/dfareporting:v3.2/DimensionValue": dimension_value +"/dfareporting:v3.2/DimensionValue/dimensionName": dimension_name +"/dfareporting:v3.2/DimensionValue/etag": etag +"/dfareporting:v3.2/DimensionValue/id": id +"/dfareporting:v3.2/DimensionValue/kind": kind +"/dfareporting:v3.2/DimensionValue/matchType": match_type +"/dfareporting:v3.2/DimensionValue/value": value +"/dfareporting:v3.2/DimensionValueList": dimension_value_list +"/dfareporting:v3.2/DimensionValueList/etag": etag +"/dfareporting:v3.2/DimensionValueList/items": items +"/dfareporting:v3.2/DimensionValueList/items/item": item +"/dfareporting:v3.2/DimensionValueList/kind": kind +"/dfareporting:v3.2/DimensionValueList/nextPageToken": next_page_token +"/dfareporting:v3.2/DimensionValueRequest": dimension_value_request +"/dfareporting:v3.2/DimensionValueRequest/dimensionName": dimension_name +"/dfareporting:v3.2/DimensionValueRequest/endDate": end_date +"/dfareporting:v3.2/DimensionValueRequest/filters": filters +"/dfareporting:v3.2/DimensionValueRequest/filters/filter": filter +"/dfareporting:v3.2/DimensionValueRequest/kind": kind +"/dfareporting:v3.2/DimensionValueRequest/startDate": start_date +"/dfareporting:v3.2/DirectorySite": directory_site +"/dfareporting:v3.2/DirectorySite/active": active +"/dfareporting:v3.2/DirectorySite/contactAssignments": contact_assignments +"/dfareporting:v3.2/DirectorySite/contactAssignments/contact_assignment": contact_assignment +"/dfareporting:v3.2/DirectorySite/countryId": country_id +"/dfareporting:v3.2/DirectorySite/currencyId": currency_id +"/dfareporting:v3.2/DirectorySite/description": description +"/dfareporting:v3.2/DirectorySite/id": id +"/dfareporting:v3.2/DirectorySite/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/DirectorySite/inpageTagFormats": inpage_tag_formats +"/dfareporting:v3.2/DirectorySite/inpageTagFormats/inpage_tag_format": inpage_tag_format +"/dfareporting:v3.2/DirectorySite/interstitialTagFormats": interstitial_tag_formats +"/dfareporting:v3.2/DirectorySite/interstitialTagFormats/interstitial_tag_format": interstitial_tag_format +"/dfareporting:v3.2/DirectorySite/kind": kind +"/dfareporting:v3.2/DirectorySite/name": name +"/dfareporting:v3.2/DirectorySite/parentId": parent_id +"/dfareporting:v3.2/DirectorySite/settings": settings +"/dfareporting:v3.2/DirectorySite/url": url +"/dfareporting:v3.2/DirectorySiteContact": directory_site_contact +"/dfareporting:v3.2/DirectorySiteContact/address": address +"/dfareporting:v3.2/DirectorySiteContact/email": email +"/dfareporting:v3.2/DirectorySiteContact/firstName": first_name +"/dfareporting:v3.2/DirectorySiteContact/id": id +"/dfareporting:v3.2/DirectorySiteContact/kind": kind +"/dfareporting:v3.2/DirectorySiteContact/lastName": last_name +"/dfareporting:v3.2/DirectorySiteContact/phone": phone +"/dfareporting:v3.2/DirectorySiteContact/role": role +"/dfareporting:v3.2/DirectorySiteContact/title": title +"/dfareporting:v3.2/DirectorySiteContact/type": type +"/dfareporting:v3.2/DirectorySiteContactAssignment": directory_site_contact_assignment +"/dfareporting:v3.2/DirectorySiteContactAssignment/contactId": contact_id +"/dfareporting:v3.2/DirectorySiteContactAssignment/visibility": visibility +"/dfareporting:v3.2/DirectorySiteContactsListResponse": directory_site_contacts_list_response +"/dfareporting:v3.2/DirectorySiteContactsListResponse/directorySiteContacts": directory_site_contacts +"/dfareporting:v3.2/DirectorySiteContactsListResponse/directorySiteContacts/directory_site_contact": directory_site_contact +"/dfareporting:v3.2/DirectorySiteContactsListResponse/kind": kind +"/dfareporting:v3.2/DirectorySiteContactsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/DirectorySiteSettings": directory_site_settings +"/dfareporting:v3.2/DirectorySiteSettings/activeViewOptOut": active_view_opt_out +"/dfareporting:v3.2/DirectorySiteSettings/dfpSettings": dfp_settings +"/dfareporting:v3.2/DirectorySiteSettings/instreamVideoPlacementAccepted": instream_video_placement_accepted +"/dfareporting:v3.2/DirectorySiteSettings/interstitialPlacementAccepted": interstitial_placement_accepted +"/dfareporting:v3.2/DirectorySiteSettings/nielsenOcrOptOut": nielsen_ocr_opt_out +"/dfareporting:v3.2/DirectorySiteSettings/verificationTagOptOut": verification_tag_opt_out +"/dfareporting:v3.2/DirectorySiteSettings/videoActiveViewOptOut": video_active_view_opt_out +"/dfareporting:v3.2/DirectorySitesListResponse": directory_sites_list_response +"/dfareporting:v3.2/DirectorySitesListResponse/directorySites": directory_sites +"/dfareporting:v3.2/DirectorySitesListResponse/directorySites/directory_site": directory_site +"/dfareporting:v3.2/DirectorySitesListResponse/kind": kind +"/dfareporting:v3.2/DirectorySitesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/DynamicTargetingKey": dynamic_targeting_key +"/dfareporting:v3.2/DynamicTargetingKey/kind": kind +"/dfareporting:v3.2/DynamicTargetingKey/name": name +"/dfareporting:v3.2/DynamicTargetingKey/objectId": object_id_prop +"/dfareporting:v3.2/DynamicTargetingKey/objectType": object_type +"/dfareporting:v3.2/DynamicTargetingKeysListResponse": dynamic_targeting_keys_list_response +"/dfareporting:v3.2/DynamicTargetingKeysListResponse/dynamicTargetingKeys": dynamic_targeting_keys +"/dfareporting:v3.2/DynamicTargetingKeysListResponse/dynamicTargetingKeys/dynamic_targeting_key": dynamic_targeting_key +"/dfareporting:v3.2/DynamicTargetingKeysListResponse/kind": kind +"/dfareporting:v3.2/EncryptionInfo": encryption_info +"/dfareporting:v3.2/EncryptionInfo/encryptionEntityId": encryption_entity_id +"/dfareporting:v3.2/EncryptionInfo/encryptionEntityType": encryption_entity_type +"/dfareporting:v3.2/EncryptionInfo/encryptionSource": encryption_source +"/dfareporting:v3.2/EncryptionInfo/kind": kind +"/dfareporting:v3.2/EventTag": event_tag +"/dfareporting:v3.2/EventTag/accountId": account_id +"/dfareporting:v3.2/EventTag/advertiserId": advertiser_id +"/dfareporting:v3.2/EventTag/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/EventTag/campaignId": campaign_id +"/dfareporting:v3.2/EventTag/campaignIdDimensionValue": campaign_id_dimension_value +"/dfareporting:v3.2/EventTag/enabledByDefault": enabled_by_default +"/dfareporting:v3.2/EventTag/excludeFromAdxRequests": exclude_from_adx_requests +"/dfareporting:v3.2/EventTag/id": id +"/dfareporting:v3.2/EventTag/kind": kind +"/dfareporting:v3.2/EventTag/name": name +"/dfareporting:v3.2/EventTag/siteFilterType": site_filter_type +"/dfareporting:v3.2/EventTag/siteIds": site_ids +"/dfareporting:v3.2/EventTag/siteIds/site_id": site_id +"/dfareporting:v3.2/EventTag/sslCompliant": ssl_compliant +"/dfareporting:v3.2/EventTag/status": status +"/dfareporting:v3.2/EventTag/subaccountId": subaccount_id +"/dfareporting:v3.2/EventTag/type": type +"/dfareporting:v3.2/EventTag/url": url +"/dfareporting:v3.2/EventTag/urlEscapeLevels": url_escape_levels +"/dfareporting:v3.2/EventTagOverride": event_tag_override +"/dfareporting:v3.2/EventTagOverride/enabled": enabled +"/dfareporting:v3.2/EventTagOverride/id": id +"/dfareporting:v3.2/EventTagsListResponse": event_tags_list_response +"/dfareporting:v3.2/EventTagsListResponse/eventTags": event_tags +"/dfareporting:v3.2/EventTagsListResponse/eventTags/event_tag": event_tag +"/dfareporting:v3.2/EventTagsListResponse/kind": kind +"/dfareporting:v3.2/File": file +"/dfareporting:v3.2/File/dateRange": date_range +"/dfareporting:v3.2/File/etag": etag +"/dfareporting:v3.2/File/fileName": file_name +"/dfareporting:v3.2/File/format": format +"/dfareporting:v3.2/File/id": id +"/dfareporting:v3.2/File/kind": kind +"/dfareporting:v3.2/File/lastModifiedTime": last_modified_time +"/dfareporting:v3.2/File/reportId": report_id +"/dfareporting:v3.2/File/status": status +"/dfareporting:v3.2/File/urls": urls +"/dfareporting:v3.2/File/urls/apiUrl": api_url +"/dfareporting:v3.2/File/urls/browserUrl": browser_url +"/dfareporting:v3.2/FileList": file_list +"/dfareporting:v3.2/FileList/etag": etag +"/dfareporting:v3.2/FileList/items": items +"/dfareporting:v3.2/FileList/items/item": item +"/dfareporting:v3.2/FileList/kind": kind +"/dfareporting:v3.2/FileList/nextPageToken": next_page_token +"/dfareporting:v3.2/Flight": flight +"/dfareporting:v3.2/Flight/endDate": end_date +"/dfareporting:v3.2/Flight/rateOrCost": rate_or_cost +"/dfareporting:v3.2/Flight/startDate": start_date +"/dfareporting:v3.2/Flight/units": units +"/dfareporting:v3.2/FloodlightActivitiesGenerateTagResponse": floodlight_activities_generate_tag_response +"/dfareporting:v3.2/FloodlightActivitiesGenerateTagResponse/floodlightActivityTag": floodlight_activity_tag +"/dfareporting:v3.2/FloodlightActivitiesGenerateTagResponse/globalSiteTagGlobalSnippet": global_site_tag_global_snippet +"/dfareporting:v3.2/FloodlightActivitiesGenerateTagResponse/kind": kind +"/dfareporting:v3.2/FloodlightActivitiesListResponse": floodlight_activities_list_response +"/dfareporting:v3.2/FloodlightActivitiesListResponse/floodlightActivities": floodlight_activities +"/dfareporting:v3.2/FloodlightActivitiesListResponse/floodlightActivities/floodlight_activity": floodlight_activity +"/dfareporting:v3.2/FloodlightActivitiesListResponse/kind": kind +"/dfareporting:v3.2/FloodlightActivitiesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/FloodlightActivity": floodlight_activity +"/dfareporting:v3.2/FloodlightActivity/accountId": account_id +"/dfareporting:v3.2/FloodlightActivity/advertiserId": advertiser_id +"/dfareporting:v3.2/FloodlightActivity/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/FloodlightActivity/cacheBustingType": cache_busting_type +"/dfareporting:v3.2/FloodlightActivity/countingMethod": counting_method +"/dfareporting:v3.2/FloodlightActivity/defaultTags": default_tags +"/dfareporting:v3.2/FloodlightActivity/defaultTags/default_tag": default_tag +"/dfareporting:v3.2/FloodlightActivity/expectedUrl": expected_url +"/dfareporting:v3.2/FloodlightActivity/floodlightActivityGroupId": floodlight_activity_group_id +"/dfareporting:v3.2/FloodlightActivity/floodlightActivityGroupName": floodlight_activity_group_name +"/dfareporting:v3.2/FloodlightActivity/floodlightActivityGroupTagString": floodlight_activity_group_tag_string +"/dfareporting:v3.2/FloodlightActivity/floodlightActivityGroupType": floodlight_activity_group_type +"/dfareporting:v3.2/FloodlightActivity/floodlightConfigurationId": floodlight_configuration_id +"/dfareporting:v3.2/FloodlightActivity/floodlightConfigurationIdDimensionValue": floodlight_configuration_id_dimension_value +"/dfareporting:v3.2/FloodlightActivity/floodlightTagType": floodlight_tag_type +"/dfareporting:v3.2/FloodlightActivity/hidden": hidden +"/dfareporting:v3.2/FloodlightActivity/id": id +"/dfareporting:v3.2/FloodlightActivity/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/FloodlightActivity/kind": kind +"/dfareporting:v3.2/FloodlightActivity/name": name +"/dfareporting:v3.2/FloodlightActivity/notes": notes +"/dfareporting:v3.2/FloodlightActivity/publisherTags": publisher_tags +"/dfareporting:v3.2/FloodlightActivity/publisherTags/publisher_tag": publisher_tag +"/dfareporting:v3.2/FloodlightActivity/secure": secure +"/dfareporting:v3.2/FloodlightActivity/sslCompliant": ssl_compliant +"/dfareporting:v3.2/FloodlightActivity/sslRequired": ssl_required +"/dfareporting:v3.2/FloodlightActivity/subaccountId": subaccount_id +"/dfareporting:v3.2/FloodlightActivity/tagFormat": tag_format +"/dfareporting:v3.2/FloodlightActivity/tagString": tag_string +"/dfareporting:v3.2/FloodlightActivity/userDefinedVariableTypes": user_defined_variable_types +"/dfareporting:v3.2/FloodlightActivity/userDefinedVariableTypes/user_defined_variable_type": user_defined_variable_type +"/dfareporting:v3.2/FloodlightActivityDynamicTag": floodlight_activity_dynamic_tag +"/dfareporting:v3.2/FloodlightActivityDynamicTag/id": id +"/dfareporting:v3.2/FloodlightActivityDynamicTag/name": name +"/dfareporting:v3.2/FloodlightActivityDynamicTag/tag": tag +"/dfareporting:v3.2/FloodlightActivityGroup": floodlight_activity_group +"/dfareporting:v3.2/FloodlightActivityGroup/accountId": account_id +"/dfareporting:v3.2/FloodlightActivityGroup/advertiserId": advertiser_id +"/dfareporting:v3.2/FloodlightActivityGroup/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/FloodlightActivityGroup/floodlightConfigurationId": floodlight_configuration_id +"/dfareporting:v3.2/FloodlightActivityGroup/floodlightConfigurationIdDimensionValue": floodlight_configuration_id_dimension_value +"/dfareporting:v3.2/FloodlightActivityGroup/id": id +"/dfareporting:v3.2/FloodlightActivityGroup/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/FloodlightActivityGroup/kind": kind +"/dfareporting:v3.2/FloodlightActivityGroup/name": name +"/dfareporting:v3.2/FloodlightActivityGroup/subaccountId": subaccount_id +"/dfareporting:v3.2/FloodlightActivityGroup/tagString": tag_string +"/dfareporting:v3.2/FloodlightActivityGroup/type": type +"/dfareporting:v3.2/FloodlightActivityGroupsListResponse": floodlight_activity_groups_list_response +"/dfareporting:v3.2/FloodlightActivityGroupsListResponse/floodlightActivityGroups": floodlight_activity_groups +"/dfareporting:v3.2/FloodlightActivityGroupsListResponse/floodlightActivityGroups/floodlight_activity_group": floodlight_activity_group +"/dfareporting:v3.2/FloodlightActivityGroupsListResponse/kind": kind +"/dfareporting:v3.2/FloodlightActivityGroupsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/FloodlightActivityPublisherDynamicTag": floodlight_activity_publisher_dynamic_tag +"/dfareporting:v3.2/FloodlightActivityPublisherDynamicTag/clickThrough": click_through +"/dfareporting:v3.2/FloodlightActivityPublisherDynamicTag/directorySiteId": directory_site_id +"/dfareporting:v3.2/FloodlightActivityPublisherDynamicTag/dynamicTag": dynamic_tag +"/dfareporting:v3.2/FloodlightActivityPublisherDynamicTag/siteId": site_id +"/dfareporting:v3.2/FloodlightActivityPublisherDynamicTag/siteIdDimensionValue": site_id_dimension_value +"/dfareporting:v3.2/FloodlightActivityPublisherDynamicTag/viewThrough": view_through +"/dfareporting:v3.2/FloodlightConfiguration": floodlight_configuration +"/dfareporting:v3.2/FloodlightConfiguration/accountId": account_id +"/dfareporting:v3.2/FloodlightConfiguration/advertiserId": advertiser_id +"/dfareporting:v3.2/FloodlightConfiguration/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/FloodlightConfiguration/analyticsDataSharingEnabled": analytics_data_sharing_enabled +"/dfareporting:v3.2/FloodlightConfiguration/exposureToConversionEnabled": exposure_to_conversion_enabled +"/dfareporting:v3.2/FloodlightConfiguration/firstDayOfWeek": first_day_of_week +"/dfareporting:v3.2/FloodlightConfiguration/id": id +"/dfareporting:v3.2/FloodlightConfiguration/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/FloodlightConfiguration/inAppAttributionTrackingEnabled": in_app_attribution_tracking_enabled +"/dfareporting:v3.2/FloodlightConfiguration/kind": kind +"/dfareporting:v3.2/FloodlightConfiguration/lookbackConfiguration": lookback_configuration +"/dfareporting:v3.2/FloodlightConfiguration/naturalSearchConversionAttributionOption": natural_search_conversion_attribution_option +"/dfareporting:v3.2/FloodlightConfiguration/omnitureSettings": omniture_settings +"/dfareporting:v3.2/FloodlightConfiguration/subaccountId": subaccount_id +"/dfareporting:v3.2/FloodlightConfiguration/tagSettings": tag_settings +"/dfareporting:v3.2/FloodlightConfiguration/thirdPartyAuthenticationTokens": third_party_authentication_tokens +"/dfareporting:v3.2/FloodlightConfiguration/thirdPartyAuthenticationTokens/third_party_authentication_token": third_party_authentication_token +"/dfareporting:v3.2/FloodlightConfiguration/userDefinedVariableConfigurations": user_defined_variable_configurations +"/dfareporting:v3.2/FloodlightConfiguration/userDefinedVariableConfigurations/user_defined_variable_configuration": user_defined_variable_configuration +"/dfareporting:v3.2/FloodlightConfigurationsListResponse": floodlight_configurations_list_response +"/dfareporting:v3.2/FloodlightConfigurationsListResponse/floodlightConfigurations": floodlight_configurations +"/dfareporting:v3.2/FloodlightConfigurationsListResponse/floodlightConfigurations/floodlight_configuration": floodlight_configuration +"/dfareporting:v3.2/FloodlightConfigurationsListResponse/kind": kind +"/dfareporting:v3.2/FloodlightReportCompatibleFields": floodlight_report_compatible_fields +"/dfareporting:v3.2/FloodlightReportCompatibleFields/dimensionFilters": dimension_filters +"/dfareporting:v3.2/FloodlightReportCompatibleFields/dimensionFilters/dimension_filter": dimension_filter +"/dfareporting:v3.2/FloodlightReportCompatibleFields/dimensions": dimensions +"/dfareporting:v3.2/FloodlightReportCompatibleFields/dimensions/dimension": dimension +"/dfareporting:v3.2/FloodlightReportCompatibleFields/kind": kind +"/dfareporting:v3.2/FloodlightReportCompatibleFields/metrics": metrics +"/dfareporting:v3.2/FloodlightReportCompatibleFields/metrics/metric": metric +"/dfareporting:v3.2/FrequencyCap": frequency_cap +"/dfareporting:v3.2/FrequencyCap/duration": duration +"/dfareporting:v3.2/FrequencyCap/impressions": impressions +"/dfareporting:v3.2/FsCommand": fs_command +"/dfareporting:v3.2/FsCommand/left": left +"/dfareporting:v3.2/FsCommand/positionOption": position_option +"/dfareporting:v3.2/FsCommand/top": top +"/dfareporting:v3.2/FsCommand/windowHeight": window_height +"/dfareporting:v3.2/FsCommand/windowWidth": window_width +"/dfareporting:v3.2/GeoTargeting": geo_targeting +"/dfareporting:v3.2/GeoTargeting/cities": cities +"/dfareporting:v3.2/GeoTargeting/cities/city": city +"/dfareporting:v3.2/GeoTargeting/countries": countries +"/dfareporting:v3.2/GeoTargeting/countries/country": country +"/dfareporting:v3.2/GeoTargeting/excludeCountries": exclude_countries +"/dfareporting:v3.2/GeoTargeting/metros": metros +"/dfareporting:v3.2/GeoTargeting/metros/metro": metro +"/dfareporting:v3.2/GeoTargeting/postalCodes": postal_codes +"/dfareporting:v3.2/GeoTargeting/postalCodes/postal_code": postal_code +"/dfareporting:v3.2/GeoTargeting/regions": regions +"/dfareporting:v3.2/GeoTargeting/regions/region": region +"/dfareporting:v3.2/InventoryItem": inventory_item +"/dfareporting:v3.2/InventoryItem/accountId": account_id +"/dfareporting:v3.2/InventoryItem/adSlots": ad_slots +"/dfareporting:v3.2/InventoryItem/adSlots/ad_slot": ad_slot +"/dfareporting:v3.2/InventoryItem/advertiserId": advertiser_id +"/dfareporting:v3.2/InventoryItem/contentCategoryId": content_category_id +"/dfareporting:v3.2/InventoryItem/estimatedClickThroughRate": estimated_click_through_rate +"/dfareporting:v3.2/InventoryItem/estimatedConversionRate": estimated_conversion_rate +"/dfareporting:v3.2/InventoryItem/id": id +"/dfareporting:v3.2/InventoryItem/inPlan": in_plan +"/dfareporting:v3.2/InventoryItem/kind": kind +"/dfareporting:v3.2/InventoryItem/lastModifiedInfo": last_modified_info +"/dfareporting:v3.2/InventoryItem/name": name +"/dfareporting:v3.2/InventoryItem/negotiationChannelId": negotiation_channel_id +"/dfareporting:v3.2/InventoryItem/orderId": order_id +"/dfareporting:v3.2/InventoryItem/placementStrategyId": placement_strategy_id +"/dfareporting:v3.2/InventoryItem/pricing": pricing +"/dfareporting:v3.2/InventoryItem/projectId": project_id +"/dfareporting:v3.2/InventoryItem/rfpId": rfp_id +"/dfareporting:v3.2/InventoryItem/siteId": site_id +"/dfareporting:v3.2/InventoryItem/subaccountId": subaccount_id +"/dfareporting:v3.2/InventoryItem/type": type +"/dfareporting:v3.2/InventoryItemsListResponse": inventory_items_list_response +"/dfareporting:v3.2/InventoryItemsListResponse/inventoryItems": inventory_items +"/dfareporting:v3.2/InventoryItemsListResponse/inventoryItems/inventory_item": inventory_item +"/dfareporting:v3.2/InventoryItemsListResponse/kind": kind +"/dfareporting:v3.2/InventoryItemsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/KeyValueTargetingExpression": key_value_targeting_expression +"/dfareporting:v3.2/KeyValueTargetingExpression/expression": expression +"/dfareporting:v3.2/LandingPage": landing_page +"/dfareporting:v3.2/LandingPage/advertiserId": advertiser_id +"/dfareporting:v3.2/LandingPage/archived": archived +"/dfareporting:v3.2/LandingPage/deepLinks": deep_links +"/dfareporting:v3.2/LandingPage/deepLinks/deep_link": deep_link +"/dfareporting:v3.2/LandingPage/id": id +"/dfareporting:v3.2/LandingPage/kind": kind +"/dfareporting:v3.2/LandingPage/name": name +"/dfareporting:v3.2/LandingPage/url": url +"/dfareporting:v3.2/Language": language +"/dfareporting:v3.2/Language/id": id +"/dfareporting:v3.2/Language/kind": kind +"/dfareporting:v3.2/Language/languageCode": language_code +"/dfareporting:v3.2/Language/name": name +"/dfareporting:v3.2/LanguageTargeting": language_targeting +"/dfareporting:v3.2/LanguageTargeting/languages": languages +"/dfareporting:v3.2/LanguageTargeting/languages/language": language +"/dfareporting:v3.2/LanguagesListResponse": languages_list_response +"/dfareporting:v3.2/LanguagesListResponse/kind": kind +"/dfareporting:v3.2/LanguagesListResponse/languages": languages +"/dfareporting:v3.2/LanguagesListResponse/languages/language": language +"/dfareporting:v3.2/LastModifiedInfo": last_modified_info +"/dfareporting:v3.2/LastModifiedInfo/time": time +"/dfareporting:v3.2/ListPopulationClause": list_population_clause +"/dfareporting:v3.2/ListPopulationClause/terms": terms +"/dfareporting:v3.2/ListPopulationClause/terms/term": term +"/dfareporting:v3.2/ListPopulationRule": list_population_rule +"/dfareporting:v3.2/ListPopulationRule/floodlightActivityId": floodlight_activity_id +"/dfareporting:v3.2/ListPopulationRule/floodlightActivityName": floodlight_activity_name +"/dfareporting:v3.2/ListPopulationRule/listPopulationClauses": list_population_clauses +"/dfareporting:v3.2/ListPopulationRule/listPopulationClauses/list_population_clause": list_population_clause +"/dfareporting:v3.2/ListPopulationTerm": list_population_term +"/dfareporting:v3.2/ListPopulationTerm/contains": contains +"/dfareporting:v3.2/ListPopulationTerm/negation": negation +"/dfareporting:v3.2/ListPopulationTerm/operator": operator +"/dfareporting:v3.2/ListPopulationTerm/remarketingListId": remarketing_list_id +"/dfareporting:v3.2/ListPopulationTerm/type": type +"/dfareporting:v3.2/ListPopulationTerm/value": value +"/dfareporting:v3.2/ListPopulationTerm/variableFriendlyName": variable_friendly_name +"/dfareporting:v3.2/ListPopulationTerm/variableName": variable_name +"/dfareporting:v3.2/ListTargetingExpression": list_targeting_expression +"/dfareporting:v3.2/ListTargetingExpression/expression": expression +"/dfareporting:v3.2/LookbackConfiguration": lookback_configuration +"/dfareporting:v3.2/LookbackConfiguration/clickDuration": click_duration +"/dfareporting:v3.2/LookbackConfiguration/postImpressionActivitiesDuration": post_impression_activities_duration +"/dfareporting:v3.2/Metric": metric +"/dfareporting:v3.2/Metric/kind": kind +"/dfareporting:v3.2/Metric/name": name +"/dfareporting:v3.2/Metro": metro +"/dfareporting:v3.2/Metro/countryCode": country_code +"/dfareporting:v3.2/Metro/countryDartId": country_dart_id +"/dfareporting:v3.2/Metro/dartId": dart_id +"/dfareporting:v3.2/Metro/dmaId": dma_id +"/dfareporting:v3.2/Metro/kind": kind +"/dfareporting:v3.2/Metro/metroCode": metro_code +"/dfareporting:v3.2/Metro/name": name +"/dfareporting:v3.2/MetrosListResponse": metros_list_response +"/dfareporting:v3.2/MetrosListResponse/kind": kind +"/dfareporting:v3.2/MetrosListResponse/metros": metros +"/dfareporting:v3.2/MetrosListResponse/metros/metro": metro +"/dfareporting:v3.2/MobileApp": mobile_app +"/dfareporting:v3.2/MobileApp/directory": directory +"/dfareporting:v3.2/MobileApp/id": id +"/dfareporting:v3.2/MobileApp/kind": kind +"/dfareporting:v3.2/MobileApp/publisherName": publisher_name +"/dfareporting:v3.2/MobileApp/title": title +"/dfareporting:v3.2/MobileAppsListResponse": mobile_apps_list_response +"/dfareporting:v3.2/MobileAppsListResponse/kind": kind +"/dfareporting:v3.2/MobileAppsListResponse/mobileApps": mobile_apps +"/dfareporting:v3.2/MobileAppsListResponse/mobileApps/mobile_app": mobile_app +"/dfareporting:v3.2/MobileAppsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/MobileCarrier": mobile_carrier +"/dfareporting:v3.2/MobileCarrier/countryCode": country_code +"/dfareporting:v3.2/MobileCarrier/countryDartId": country_dart_id +"/dfareporting:v3.2/MobileCarrier/id": id +"/dfareporting:v3.2/MobileCarrier/kind": kind +"/dfareporting:v3.2/MobileCarrier/name": name +"/dfareporting:v3.2/MobileCarriersListResponse": mobile_carriers_list_response +"/dfareporting:v3.2/MobileCarriersListResponse/kind": kind +"/dfareporting:v3.2/MobileCarriersListResponse/mobileCarriers": mobile_carriers +"/dfareporting:v3.2/MobileCarriersListResponse/mobileCarriers/mobile_carrier": mobile_carrier +"/dfareporting:v3.2/ObjectFilter": object_filter +"/dfareporting:v3.2/ObjectFilter/kind": kind +"/dfareporting:v3.2/ObjectFilter/objectIds": object_ids +"/dfareporting:v3.2/ObjectFilter/objectIds/object_id": object_id_prop +"/dfareporting:v3.2/ObjectFilter/status": status +"/dfareporting:v3.2/OffsetPosition": offset_position +"/dfareporting:v3.2/OffsetPosition/left": left +"/dfareporting:v3.2/OffsetPosition/top": top +"/dfareporting:v3.2/OmnitureSettings": omniture_settings +"/dfareporting:v3.2/OmnitureSettings/omnitureCostDataEnabled": omniture_cost_data_enabled +"/dfareporting:v3.2/OmnitureSettings/omnitureIntegrationEnabled": omniture_integration_enabled +"/dfareporting:v3.2/OperatingSystem": operating_system +"/dfareporting:v3.2/OperatingSystem/dartId": dart_id +"/dfareporting:v3.2/OperatingSystem/desktop": desktop +"/dfareporting:v3.2/OperatingSystem/kind": kind +"/dfareporting:v3.2/OperatingSystem/mobile": mobile +"/dfareporting:v3.2/OperatingSystem/name": name +"/dfareporting:v3.2/OperatingSystemVersion": operating_system_version +"/dfareporting:v3.2/OperatingSystemVersion/id": id +"/dfareporting:v3.2/OperatingSystemVersion/kind": kind +"/dfareporting:v3.2/OperatingSystemVersion/majorVersion": major_version +"/dfareporting:v3.2/OperatingSystemVersion/minorVersion": minor_version +"/dfareporting:v3.2/OperatingSystemVersion/name": name +"/dfareporting:v3.2/OperatingSystemVersion/operatingSystem": operating_system +"/dfareporting:v3.2/OperatingSystemVersionsListResponse": operating_system_versions_list_response +"/dfareporting:v3.2/OperatingSystemVersionsListResponse/kind": kind +"/dfareporting:v3.2/OperatingSystemVersionsListResponse/operatingSystemVersions": operating_system_versions +"/dfareporting:v3.2/OperatingSystemVersionsListResponse/operatingSystemVersions/operating_system_version": operating_system_version +"/dfareporting:v3.2/OperatingSystemsListResponse": operating_systems_list_response +"/dfareporting:v3.2/OperatingSystemsListResponse/kind": kind +"/dfareporting:v3.2/OperatingSystemsListResponse/operatingSystems": operating_systems +"/dfareporting:v3.2/OperatingSystemsListResponse/operatingSystems/operating_system": operating_system +"/dfareporting:v3.2/OptimizationActivity": optimization_activity +"/dfareporting:v3.2/OptimizationActivity/floodlightActivityId": floodlight_activity_id +"/dfareporting:v3.2/OptimizationActivity/floodlightActivityIdDimensionValue": floodlight_activity_id_dimension_value +"/dfareporting:v3.2/OptimizationActivity/weight": weight +"/dfareporting:v3.2/Order": order +"/dfareporting:v3.2/Order/accountId": account_id +"/dfareporting:v3.2/Order/advertiserId": advertiser_id +"/dfareporting:v3.2/Order/approverUserProfileIds": approver_user_profile_ids +"/dfareporting:v3.2/Order/approverUserProfileIds/approver_user_profile_id": approver_user_profile_id +"/dfareporting:v3.2/Order/buyerInvoiceId": buyer_invoice_id +"/dfareporting:v3.2/Order/buyerOrganizationName": buyer_organization_name +"/dfareporting:v3.2/Order/comments": comments +"/dfareporting:v3.2/Order/contacts": contacts +"/dfareporting:v3.2/Order/contacts/contact": contact +"/dfareporting:v3.2/Order/id": id +"/dfareporting:v3.2/Order/kind": kind +"/dfareporting:v3.2/Order/lastModifiedInfo": last_modified_info +"/dfareporting:v3.2/Order/name": name +"/dfareporting:v3.2/Order/notes": notes +"/dfareporting:v3.2/Order/planningTermId": planning_term_id +"/dfareporting:v3.2/Order/projectId": project_id +"/dfareporting:v3.2/Order/sellerOrderId": seller_order_id +"/dfareporting:v3.2/Order/sellerOrganizationName": seller_organization_name +"/dfareporting:v3.2/Order/siteId": site_id +"/dfareporting:v3.2/Order/siteId/site_id": site_id +"/dfareporting:v3.2/Order/siteNames": site_names +"/dfareporting:v3.2/Order/siteNames/site_name": site_name +"/dfareporting:v3.2/Order/subaccountId": subaccount_id +"/dfareporting:v3.2/Order/termsAndConditions": terms_and_conditions +"/dfareporting:v3.2/OrderContact": order_contact +"/dfareporting:v3.2/OrderContact/contactInfo": contact_info +"/dfareporting:v3.2/OrderContact/contactName": contact_name +"/dfareporting:v3.2/OrderContact/contactTitle": contact_title +"/dfareporting:v3.2/OrderContact/contactType": contact_type +"/dfareporting:v3.2/OrderContact/signatureUserProfileId": signature_user_profile_id +"/dfareporting:v3.2/OrderDocument": order_document +"/dfareporting:v3.2/OrderDocument/accountId": account_id +"/dfareporting:v3.2/OrderDocument/advertiserId": advertiser_id +"/dfareporting:v3.2/OrderDocument/amendedOrderDocumentId": amended_order_document_id +"/dfareporting:v3.2/OrderDocument/approvedByUserProfileIds": approved_by_user_profile_ids +"/dfareporting:v3.2/OrderDocument/approvedByUserProfileIds/approved_by_user_profile_id": approved_by_user_profile_id +"/dfareporting:v3.2/OrderDocument/cancelled": cancelled +"/dfareporting:v3.2/OrderDocument/createdInfo": created_info +"/dfareporting:v3.2/OrderDocument/effectiveDate": effective_date +"/dfareporting:v3.2/OrderDocument/id": id +"/dfareporting:v3.2/OrderDocument/kind": kind +"/dfareporting:v3.2/OrderDocument/lastSentRecipients": last_sent_recipients +"/dfareporting:v3.2/OrderDocument/lastSentRecipients/last_sent_recipient": last_sent_recipient +"/dfareporting:v3.2/OrderDocument/lastSentTime": last_sent_time +"/dfareporting:v3.2/OrderDocument/orderId": order_id +"/dfareporting:v3.2/OrderDocument/projectId": project_id +"/dfareporting:v3.2/OrderDocument/signed": signed +"/dfareporting:v3.2/OrderDocument/subaccountId": subaccount_id +"/dfareporting:v3.2/OrderDocument/title": title +"/dfareporting:v3.2/OrderDocument/type": type +"/dfareporting:v3.2/OrderDocumentsListResponse": order_documents_list_response +"/dfareporting:v3.2/OrderDocumentsListResponse/kind": kind +"/dfareporting:v3.2/OrderDocumentsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/OrderDocumentsListResponse/orderDocuments": order_documents +"/dfareporting:v3.2/OrderDocumentsListResponse/orderDocuments/order_document": order_document +"/dfareporting:v3.2/OrdersListResponse": orders_list_response +"/dfareporting:v3.2/OrdersListResponse/kind": kind +"/dfareporting:v3.2/OrdersListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/OrdersListResponse/orders": orders +"/dfareporting:v3.2/OrdersListResponse/orders/order": order +"/dfareporting:v3.2/PathToConversionReportCompatibleFields": path_to_conversion_report_compatible_fields +"/dfareporting:v3.2/PathToConversionReportCompatibleFields/conversionDimensions": conversion_dimensions +"/dfareporting:v3.2/PathToConversionReportCompatibleFields/conversionDimensions/conversion_dimension": conversion_dimension +"/dfareporting:v3.2/PathToConversionReportCompatibleFields/customFloodlightVariables": custom_floodlight_variables +"/dfareporting:v3.2/PathToConversionReportCompatibleFields/customFloodlightVariables/custom_floodlight_variable": custom_floodlight_variable +"/dfareporting:v3.2/PathToConversionReportCompatibleFields/kind": kind +"/dfareporting:v3.2/PathToConversionReportCompatibleFields/metrics": metrics +"/dfareporting:v3.2/PathToConversionReportCompatibleFields/metrics/metric": metric +"/dfareporting:v3.2/PathToConversionReportCompatibleFields/perInteractionDimensions": per_interaction_dimensions +"/dfareporting:v3.2/PathToConversionReportCompatibleFields/perInteractionDimensions/per_interaction_dimension": per_interaction_dimension +"/dfareporting:v3.2/Placement": placement +"/dfareporting:v3.2/Placement/accountId": account_id +"/dfareporting:v3.2/Placement/adBlockingOptOut": ad_blocking_opt_out +"/dfareporting:v3.2/Placement/additionalSizes": additional_sizes +"/dfareporting:v3.2/Placement/additionalSizes/additional_size": additional_size +"/dfareporting:v3.2/Placement/advertiserId": advertiser_id +"/dfareporting:v3.2/Placement/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/Placement/archived": archived +"/dfareporting:v3.2/Placement/campaignId": campaign_id +"/dfareporting:v3.2/Placement/campaignIdDimensionValue": campaign_id_dimension_value +"/dfareporting:v3.2/Placement/comment": comment +"/dfareporting:v3.2/Placement/compatibility": compatibility +"/dfareporting:v3.2/Placement/contentCategoryId": content_category_id +"/dfareporting:v3.2/Placement/createInfo": create_info +"/dfareporting:v3.2/Placement/directorySiteId": directory_site_id +"/dfareporting:v3.2/Placement/directorySiteIdDimensionValue": directory_site_id_dimension_value +"/dfareporting:v3.2/Placement/externalId": external_id +"/dfareporting:v3.2/Placement/id": id +"/dfareporting:v3.2/Placement/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/Placement/keyName": key_name +"/dfareporting:v3.2/Placement/kind": kind +"/dfareporting:v3.2/Placement/lastModifiedInfo": last_modified_info +"/dfareporting:v3.2/Placement/lookbackConfiguration": lookback_configuration +"/dfareporting:v3.2/Placement/name": name +"/dfareporting:v3.2/Placement/paymentApproved": payment_approved +"/dfareporting:v3.2/Placement/paymentSource": payment_source +"/dfareporting:v3.2/Placement/placementGroupId": placement_group_id +"/dfareporting:v3.2/Placement/placementGroupIdDimensionValue": placement_group_id_dimension_value +"/dfareporting:v3.2/Placement/placementStrategyId": placement_strategy_id +"/dfareporting:v3.2/Placement/pricingSchedule": pricing_schedule +"/dfareporting:v3.2/Placement/primary": primary +"/dfareporting:v3.2/Placement/publisherUpdateInfo": publisher_update_info +"/dfareporting:v3.2/Placement/siteId": site_id +"/dfareporting:v3.2/Placement/siteIdDimensionValue": site_id_dimension_value +"/dfareporting:v3.2/Placement/size": size +"/dfareporting:v3.2/Placement/sslRequired": ssl_required +"/dfareporting:v3.2/Placement/status": status +"/dfareporting:v3.2/Placement/subaccountId": subaccount_id +"/dfareporting:v3.2/Placement/tagFormats": tag_formats +"/dfareporting:v3.2/Placement/tagFormats/tag_format": tag_format +"/dfareporting:v3.2/Placement/tagSetting": tag_setting +"/dfareporting:v3.2/Placement/videoActiveViewOptOut": video_active_view_opt_out +"/dfareporting:v3.2/Placement/videoSettings": video_settings +"/dfareporting:v3.2/Placement/vpaidAdapterChoice": vpaid_adapter_choice +"/dfareporting:v3.2/PlacementAssignment": placement_assignment +"/dfareporting:v3.2/PlacementAssignment/active": active +"/dfareporting:v3.2/PlacementAssignment/placementId": placement_id +"/dfareporting:v3.2/PlacementAssignment/placementIdDimensionValue": placement_id_dimension_value +"/dfareporting:v3.2/PlacementAssignment/sslRequired": ssl_required +"/dfareporting:v3.2/PlacementGroup": placement_group +"/dfareporting:v3.2/PlacementGroup/accountId": account_id +"/dfareporting:v3.2/PlacementGroup/advertiserId": advertiser_id +"/dfareporting:v3.2/PlacementGroup/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/PlacementGroup/archived": archived +"/dfareporting:v3.2/PlacementGroup/campaignId": campaign_id +"/dfareporting:v3.2/PlacementGroup/campaignIdDimensionValue": campaign_id_dimension_value +"/dfareporting:v3.2/PlacementGroup/childPlacementIds": child_placement_ids +"/dfareporting:v3.2/PlacementGroup/childPlacementIds/child_placement_id": child_placement_id +"/dfareporting:v3.2/PlacementGroup/comment": comment +"/dfareporting:v3.2/PlacementGroup/contentCategoryId": content_category_id +"/dfareporting:v3.2/PlacementGroup/createInfo": create_info +"/dfareporting:v3.2/PlacementGroup/directorySiteId": directory_site_id +"/dfareporting:v3.2/PlacementGroup/directorySiteIdDimensionValue": directory_site_id_dimension_value +"/dfareporting:v3.2/PlacementGroup/externalId": external_id +"/dfareporting:v3.2/PlacementGroup/id": id +"/dfareporting:v3.2/PlacementGroup/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/PlacementGroup/kind": kind +"/dfareporting:v3.2/PlacementGroup/lastModifiedInfo": last_modified_info +"/dfareporting:v3.2/PlacementGroup/name": name +"/dfareporting:v3.2/PlacementGroup/placementGroupType": placement_group_type +"/dfareporting:v3.2/PlacementGroup/placementStrategyId": placement_strategy_id +"/dfareporting:v3.2/PlacementGroup/pricingSchedule": pricing_schedule +"/dfareporting:v3.2/PlacementGroup/primaryPlacementId": primary_placement_id +"/dfareporting:v3.2/PlacementGroup/primaryPlacementIdDimensionValue": primary_placement_id_dimension_value +"/dfareporting:v3.2/PlacementGroup/siteId": site_id +"/dfareporting:v3.2/PlacementGroup/siteIdDimensionValue": site_id_dimension_value +"/dfareporting:v3.2/PlacementGroup/subaccountId": subaccount_id +"/dfareporting:v3.2/PlacementGroupsListResponse": placement_groups_list_response +"/dfareporting:v3.2/PlacementGroupsListResponse/kind": kind +"/dfareporting:v3.2/PlacementGroupsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/PlacementGroupsListResponse/placementGroups": placement_groups +"/dfareporting:v3.2/PlacementGroupsListResponse/placementGroups/placement_group": placement_group +"/dfareporting:v3.2/PlacementStrategiesListResponse": placement_strategies_list_response +"/dfareporting:v3.2/PlacementStrategiesListResponse/kind": kind +"/dfareporting:v3.2/PlacementStrategiesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/PlacementStrategiesListResponse/placementStrategies": placement_strategies +"/dfareporting:v3.2/PlacementStrategiesListResponse/placementStrategies/placement_strategy": placement_strategy +"/dfareporting:v3.2/PlacementStrategy": placement_strategy +"/dfareporting:v3.2/PlacementStrategy/accountId": account_id +"/dfareporting:v3.2/PlacementStrategy/id": id +"/dfareporting:v3.2/PlacementStrategy/kind": kind +"/dfareporting:v3.2/PlacementStrategy/name": name +"/dfareporting:v3.2/PlacementTag": placement_tag +"/dfareporting:v3.2/PlacementTag/placementId": placement_id +"/dfareporting:v3.2/PlacementTag/tagDatas": tag_datas +"/dfareporting:v3.2/PlacementTag/tagDatas/tag_data": tag_data +"/dfareporting:v3.2/PlacementsGenerateTagsResponse": placements_generate_tags_response +"/dfareporting:v3.2/PlacementsGenerateTagsResponse/kind": kind +"/dfareporting:v3.2/PlacementsGenerateTagsResponse/placementTags": placement_tags +"/dfareporting:v3.2/PlacementsGenerateTagsResponse/placementTags/placement_tag": placement_tag +"/dfareporting:v3.2/PlacementsListResponse": placements_list_response +"/dfareporting:v3.2/PlacementsListResponse/kind": kind +"/dfareporting:v3.2/PlacementsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/PlacementsListResponse/placements": placements +"/dfareporting:v3.2/PlacementsListResponse/placements/placement": placement +"/dfareporting:v3.2/PlatformType": platform_type +"/dfareporting:v3.2/PlatformType/id": id +"/dfareporting:v3.2/PlatformType/kind": kind +"/dfareporting:v3.2/PlatformType/name": name +"/dfareporting:v3.2/PlatformTypesListResponse": platform_types_list_response +"/dfareporting:v3.2/PlatformTypesListResponse/kind": kind +"/dfareporting:v3.2/PlatformTypesListResponse/platformTypes": platform_types +"/dfareporting:v3.2/PlatformTypesListResponse/platformTypes/platform_type": platform_type +"/dfareporting:v3.2/PopupWindowProperties": popup_window_properties +"/dfareporting:v3.2/PopupWindowProperties/dimension": dimension +"/dfareporting:v3.2/PopupWindowProperties/offset": offset +"/dfareporting:v3.2/PopupWindowProperties/positionType": position_type +"/dfareporting:v3.2/PopupWindowProperties/showAddressBar": show_address_bar +"/dfareporting:v3.2/PopupWindowProperties/showMenuBar": show_menu_bar +"/dfareporting:v3.2/PopupWindowProperties/showScrollBar": show_scroll_bar +"/dfareporting:v3.2/PopupWindowProperties/showStatusBar": show_status_bar +"/dfareporting:v3.2/PopupWindowProperties/showToolBar": show_tool_bar +"/dfareporting:v3.2/PopupWindowProperties/title": title +"/dfareporting:v3.2/PostalCode": postal_code +"/dfareporting:v3.2/PostalCode/code": code +"/dfareporting:v3.2/PostalCode/countryCode": country_code +"/dfareporting:v3.2/PostalCode/countryDartId": country_dart_id +"/dfareporting:v3.2/PostalCode/id": id +"/dfareporting:v3.2/PostalCode/kind": kind +"/dfareporting:v3.2/PostalCodesListResponse": postal_codes_list_response +"/dfareporting:v3.2/PostalCodesListResponse/kind": kind +"/dfareporting:v3.2/PostalCodesListResponse/postalCodes": postal_codes +"/dfareporting:v3.2/PostalCodesListResponse/postalCodes/postal_code": postal_code +"/dfareporting:v3.2/Pricing": pricing +"/dfareporting:v3.2/Pricing/capCostType": cap_cost_type +"/dfareporting:v3.2/Pricing/endDate": end_date +"/dfareporting:v3.2/Pricing/flights": flights +"/dfareporting:v3.2/Pricing/flights/flight": flight +"/dfareporting:v3.2/Pricing/groupType": group_type +"/dfareporting:v3.2/Pricing/pricingType": pricing_type +"/dfareporting:v3.2/Pricing/startDate": start_date +"/dfareporting:v3.2/PricingSchedule": pricing_schedule +"/dfareporting:v3.2/PricingSchedule/capCostOption": cap_cost_option +"/dfareporting:v3.2/PricingSchedule/disregardOverdelivery": disregard_overdelivery +"/dfareporting:v3.2/PricingSchedule/endDate": end_date +"/dfareporting:v3.2/PricingSchedule/flighted": flighted +"/dfareporting:v3.2/PricingSchedule/floodlightActivityId": floodlight_activity_id +"/dfareporting:v3.2/PricingSchedule/pricingPeriods": pricing_periods +"/dfareporting:v3.2/PricingSchedule/pricingPeriods/pricing_period": pricing_period +"/dfareporting:v3.2/PricingSchedule/pricingType": pricing_type +"/dfareporting:v3.2/PricingSchedule/startDate": start_date +"/dfareporting:v3.2/PricingSchedule/testingStartDate": testing_start_date +"/dfareporting:v3.2/PricingSchedulePricingPeriod": pricing_schedule_pricing_period +"/dfareporting:v3.2/PricingSchedulePricingPeriod/endDate": end_date +"/dfareporting:v3.2/PricingSchedulePricingPeriod/pricingComment": pricing_comment +"/dfareporting:v3.2/PricingSchedulePricingPeriod/rateOrCostNanos": rate_or_cost_nanos +"/dfareporting:v3.2/PricingSchedulePricingPeriod/startDate": start_date +"/dfareporting:v3.2/PricingSchedulePricingPeriod/units": units +"/dfareporting:v3.2/Project": project +"/dfareporting:v3.2/Project/accountId": account_id +"/dfareporting:v3.2/Project/advertiserId": advertiser_id +"/dfareporting:v3.2/Project/audienceAgeGroup": audience_age_group +"/dfareporting:v3.2/Project/audienceGender": audience_gender +"/dfareporting:v3.2/Project/budget": budget +"/dfareporting:v3.2/Project/clientBillingCode": client_billing_code +"/dfareporting:v3.2/Project/clientName": client_name +"/dfareporting:v3.2/Project/endDate": end_date +"/dfareporting:v3.2/Project/id": id +"/dfareporting:v3.2/Project/kind": kind +"/dfareporting:v3.2/Project/lastModifiedInfo": last_modified_info +"/dfareporting:v3.2/Project/name": name +"/dfareporting:v3.2/Project/overview": overview +"/dfareporting:v3.2/Project/startDate": start_date +"/dfareporting:v3.2/Project/subaccountId": subaccount_id +"/dfareporting:v3.2/Project/targetClicks": target_clicks +"/dfareporting:v3.2/Project/targetConversions": target_conversions +"/dfareporting:v3.2/Project/targetCpaNanos": target_cpa_nanos +"/dfareporting:v3.2/Project/targetCpcNanos": target_cpc_nanos +"/dfareporting:v3.2/Project/targetCpmActiveViewNanos": target_cpm_active_view_nanos +"/dfareporting:v3.2/Project/targetCpmNanos": target_cpm_nanos +"/dfareporting:v3.2/Project/targetImpressions": target_impressions +"/dfareporting:v3.2/ProjectsListResponse": projects_list_response +"/dfareporting:v3.2/ProjectsListResponse/kind": kind +"/dfareporting:v3.2/ProjectsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/ProjectsListResponse/projects": projects +"/dfareporting:v3.2/ProjectsListResponse/projects/project": project +"/dfareporting:v3.2/ReachReportCompatibleFields": reach_report_compatible_fields +"/dfareporting:v3.2/ReachReportCompatibleFields/dimensionFilters": dimension_filters +"/dfareporting:v3.2/ReachReportCompatibleFields/dimensionFilters/dimension_filter": dimension_filter +"/dfareporting:v3.2/ReachReportCompatibleFields/dimensions": dimensions +"/dfareporting:v3.2/ReachReportCompatibleFields/dimensions/dimension": dimension +"/dfareporting:v3.2/ReachReportCompatibleFields/kind": kind +"/dfareporting:v3.2/ReachReportCompatibleFields/metrics": metrics +"/dfareporting:v3.2/ReachReportCompatibleFields/metrics/metric": metric +"/dfareporting:v3.2/ReachReportCompatibleFields/pivotedActivityMetrics": pivoted_activity_metrics +"/dfareporting:v3.2/ReachReportCompatibleFields/pivotedActivityMetrics/pivoted_activity_metric": pivoted_activity_metric +"/dfareporting:v3.2/ReachReportCompatibleFields/reachByFrequencyMetrics": reach_by_frequency_metrics +"/dfareporting:v3.2/ReachReportCompatibleFields/reachByFrequencyMetrics/reach_by_frequency_metric": reach_by_frequency_metric +"/dfareporting:v3.2/Recipient": recipient +"/dfareporting:v3.2/Recipient/deliveryType": delivery_type +"/dfareporting:v3.2/Recipient/email": email +"/dfareporting:v3.2/Recipient/kind": kind +"/dfareporting:v3.2/Region": region +"/dfareporting:v3.2/Region/countryCode": country_code +"/dfareporting:v3.2/Region/countryDartId": country_dart_id +"/dfareporting:v3.2/Region/dartId": dart_id +"/dfareporting:v3.2/Region/kind": kind +"/dfareporting:v3.2/Region/name": name +"/dfareporting:v3.2/Region/regionCode": region_code +"/dfareporting:v3.2/RegionsListResponse": regions_list_response +"/dfareporting:v3.2/RegionsListResponse/kind": kind +"/dfareporting:v3.2/RegionsListResponse/regions": regions +"/dfareporting:v3.2/RegionsListResponse/regions/region": region +"/dfareporting:v3.2/RemarketingList": remarketing_list +"/dfareporting:v3.2/RemarketingList/accountId": account_id +"/dfareporting:v3.2/RemarketingList/active": active +"/dfareporting:v3.2/RemarketingList/advertiserId": advertiser_id +"/dfareporting:v3.2/RemarketingList/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/RemarketingList/description": description +"/dfareporting:v3.2/RemarketingList/id": id +"/dfareporting:v3.2/RemarketingList/kind": kind +"/dfareporting:v3.2/RemarketingList/lifeSpan": life_span +"/dfareporting:v3.2/RemarketingList/listPopulationRule": list_population_rule +"/dfareporting:v3.2/RemarketingList/listSize": list_size +"/dfareporting:v3.2/RemarketingList/listSource": list_source +"/dfareporting:v3.2/RemarketingList/name": name +"/dfareporting:v3.2/RemarketingList/subaccountId": subaccount_id +"/dfareporting:v3.2/RemarketingListShare": remarketing_list_share +"/dfareporting:v3.2/RemarketingListShare/kind": kind +"/dfareporting:v3.2/RemarketingListShare/remarketingListId": remarketing_list_id +"/dfareporting:v3.2/RemarketingListShare/sharedAccountIds": shared_account_ids +"/dfareporting:v3.2/RemarketingListShare/sharedAccountIds/shared_account_id": shared_account_id +"/dfareporting:v3.2/RemarketingListShare/sharedAdvertiserIds": shared_advertiser_ids +"/dfareporting:v3.2/RemarketingListShare/sharedAdvertiserIds/shared_advertiser_id": shared_advertiser_id +"/dfareporting:v3.2/RemarketingListsListResponse": remarketing_lists_list_response +"/dfareporting:v3.2/RemarketingListsListResponse/kind": kind +"/dfareporting:v3.2/RemarketingListsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/RemarketingListsListResponse/remarketingLists": remarketing_lists +"/dfareporting:v3.2/RemarketingListsListResponse/remarketingLists/remarketing_list": remarketing_list +"/dfareporting:v3.2/Report": report +"/dfareporting:v3.2/Report/accountId": account_id +"/dfareporting:v3.2/Report/criteria": criteria +"/dfareporting:v3.2/Report/criteria/activities": activities +"/dfareporting:v3.2/Report/criteria/customRichMediaEvents": custom_rich_media_events +"/dfareporting:v3.2/Report/criteria/dateRange": date_range +"/dfareporting:v3.2/Report/criteria/dimensionFilters": dimension_filters +"/dfareporting:v3.2/Report/criteria/dimensionFilters/dimension_filter": dimension_filter +"/dfareporting:v3.2/Report/criteria/dimensions": dimensions +"/dfareporting:v3.2/Report/criteria/dimensions/dimension": dimension +"/dfareporting:v3.2/Report/criteria/metricNames": metric_names +"/dfareporting:v3.2/Report/criteria/metricNames/metric_name": metric_name +"/dfareporting:v3.2/Report/crossDimensionReachCriteria": cross_dimension_reach_criteria +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/breakdown": breakdown +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/breakdown/breakdown": breakdown +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/dateRange": date_range +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/dimension": dimension +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/dimensionFilters": dimension_filters +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/dimensionFilters/dimension_filter": dimension_filter +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/metricNames": metric_names +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/metricNames/metric_name": metric_name +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/overlapMetricNames": overlap_metric_names +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/overlapMetricNames/overlap_metric_name": overlap_metric_name +"/dfareporting:v3.2/Report/crossDimensionReachCriteria/pivoted": pivoted +"/dfareporting:v3.2/Report/delivery": delivery +"/dfareporting:v3.2/Report/delivery/emailOwner": email_owner +"/dfareporting:v3.2/Report/delivery/emailOwnerDeliveryType": email_owner_delivery_type +"/dfareporting:v3.2/Report/delivery/message": message +"/dfareporting:v3.2/Report/delivery/recipients": recipients +"/dfareporting:v3.2/Report/delivery/recipients/recipient": recipient +"/dfareporting:v3.2/Report/etag": etag +"/dfareporting:v3.2/Report/fileName": file_name +"/dfareporting:v3.2/Report/floodlightCriteria": floodlight_criteria +"/dfareporting:v3.2/Report/floodlightCriteria/customRichMediaEvents": custom_rich_media_events +"/dfareporting:v3.2/Report/floodlightCriteria/customRichMediaEvents/custom_rich_media_event": custom_rich_media_event +"/dfareporting:v3.2/Report/floodlightCriteria/dateRange": date_range +"/dfareporting:v3.2/Report/floodlightCriteria/dimensionFilters": dimension_filters +"/dfareporting:v3.2/Report/floodlightCriteria/dimensionFilters/dimension_filter": dimension_filter +"/dfareporting:v3.2/Report/floodlightCriteria/dimensions": dimensions +"/dfareporting:v3.2/Report/floodlightCriteria/dimensions/dimension": dimension +"/dfareporting:v3.2/Report/floodlightCriteria/floodlightConfigId": floodlight_config_id +"/dfareporting:v3.2/Report/floodlightCriteria/metricNames": metric_names +"/dfareporting:v3.2/Report/floodlightCriteria/metricNames/metric_name": metric_name +"/dfareporting:v3.2/Report/floodlightCriteria/reportProperties": report_properties +"/dfareporting:v3.2/Report/floodlightCriteria/reportProperties/includeAttributedIPConversions": include_attributed_ip_conversions +"/dfareporting:v3.2/Report/floodlightCriteria/reportProperties/includeUnattributedCookieConversions": include_unattributed_cookie_conversions +"/dfareporting:v3.2/Report/floodlightCriteria/reportProperties/includeUnattributedIPConversions": include_unattributed_ip_conversions +"/dfareporting:v3.2/Report/format": format +"/dfareporting:v3.2/Report/id": id +"/dfareporting:v3.2/Report/kind": kind +"/dfareporting:v3.2/Report/lastModifiedTime": last_modified_time +"/dfareporting:v3.2/Report/name": name +"/dfareporting:v3.2/Report/ownerProfileId": owner_profile_id +"/dfareporting:v3.2/Report/pathToConversionCriteria": path_to_conversion_criteria +"/dfareporting:v3.2/Report/pathToConversionCriteria/activityFilters": activity_filters +"/dfareporting:v3.2/Report/pathToConversionCriteria/activityFilters/activity_filter": activity_filter +"/dfareporting:v3.2/Report/pathToConversionCriteria/conversionDimensions": conversion_dimensions +"/dfareporting:v3.2/Report/pathToConversionCriteria/conversionDimensions/conversion_dimension": conversion_dimension +"/dfareporting:v3.2/Report/pathToConversionCriteria/customFloodlightVariables": custom_floodlight_variables +"/dfareporting:v3.2/Report/pathToConversionCriteria/customFloodlightVariables/custom_floodlight_variable": custom_floodlight_variable +"/dfareporting:v3.2/Report/pathToConversionCriteria/customRichMediaEvents": custom_rich_media_events +"/dfareporting:v3.2/Report/pathToConversionCriteria/customRichMediaEvents/custom_rich_media_event": custom_rich_media_event +"/dfareporting:v3.2/Report/pathToConversionCriteria/dateRange": date_range +"/dfareporting:v3.2/Report/pathToConversionCriteria/floodlightConfigId": floodlight_config_id +"/dfareporting:v3.2/Report/pathToConversionCriteria/metricNames": metric_names +"/dfareporting:v3.2/Report/pathToConversionCriteria/metricNames/metric_name": metric_name +"/dfareporting:v3.2/Report/pathToConversionCriteria/perInteractionDimensions": per_interaction_dimensions +"/dfareporting:v3.2/Report/pathToConversionCriteria/perInteractionDimensions/per_interaction_dimension": per_interaction_dimension +"/dfareporting:v3.2/Report/pathToConversionCriteria/reportProperties": report_properties +"/dfareporting:v3.2/Report/pathToConversionCriteria/reportProperties/clicksLookbackWindow": clicks_lookback_window +"/dfareporting:v3.2/Report/pathToConversionCriteria/reportProperties/impressionsLookbackWindow": impressions_lookback_window +"/dfareporting:v3.2/Report/pathToConversionCriteria/reportProperties/includeAttributedIPConversions": include_attributed_ip_conversions +"/dfareporting:v3.2/Report/pathToConversionCriteria/reportProperties/includeUnattributedCookieConversions": include_unattributed_cookie_conversions +"/dfareporting:v3.2/Report/pathToConversionCriteria/reportProperties/includeUnattributedIPConversions": include_unattributed_ip_conversions +"/dfareporting:v3.2/Report/pathToConversionCriteria/reportProperties/maximumClickInteractions": maximum_click_interactions +"/dfareporting:v3.2/Report/pathToConversionCriteria/reportProperties/maximumImpressionInteractions": maximum_impression_interactions +"/dfareporting:v3.2/Report/pathToConversionCriteria/reportProperties/maximumInteractionGap": maximum_interaction_gap +"/dfareporting:v3.2/Report/pathToConversionCriteria/reportProperties/pivotOnInteractionPath": pivot_on_interaction_path +"/dfareporting:v3.2/Report/reachCriteria": reach_criteria +"/dfareporting:v3.2/Report/reachCriteria/activities": activities +"/dfareporting:v3.2/Report/reachCriteria/customRichMediaEvents": custom_rich_media_events +"/dfareporting:v3.2/Report/reachCriteria/dateRange": date_range +"/dfareporting:v3.2/Report/reachCriteria/dimensionFilters": dimension_filters +"/dfareporting:v3.2/Report/reachCriteria/dimensionFilters/dimension_filter": dimension_filter +"/dfareporting:v3.2/Report/reachCriteria/dimensions": dimensions +"/dfareporting:v3.2/Report/reachCriteria/dimensions/dimension": dimension +"/dfareporting:v3.2/Report/reachCriteria/enableAllDimensionCombinations": enable_all_dimension_combinations +"/dfareporting:v3.2/Report/reachCriteria/metricNames": metric_names +"/dfareporting:v3.2/Report/reachCriteria/metricNames/metric_name": metric_name +"/dfareporting:v3.2/Report/reachCriteria/reachByFrequencyMetricNames": reach_by_frequency_metric_names +"/dfareporting:v3.2/Report/reachCriteria/reachByFrequencyMetricNames/reach_by_frequency_metric_name": reach_by_frequency_metric_name +"/dfareporting:v3.2/Report/schedule": schedule +"/dfareporting:v3.2/Report/schedule/active": active +"/dfareporting:v3.2/Report/schedule/every": every +"/dfareporting:v3.2/Report/schedule/expirationDate": expiration_date +"/dfareporting:v3.2/Report/schedule/repeats": repeats +"/dfareporting:v3.2/Report/schedule/repeatsOnWeekDays": repeats_on_week_days +"/dfareporting:v3.2/Report/schedule/repeatsOnWeekDays/repeats_on_week_day": repeats_on_week_day +"/dfareporting:v3.2/Report/schedule/runsOnDayOfMonth": runs_on_day_of_month +"/dfareporting:v3.2/Report/schedule/startDate": start_date +"/dfareporting:v3.2/Report/subAccountId": sub_account_id +"/dfareporting:v3.2/Report/type": type +"/dfareporting:v3.2/ReportCompatibleFields": report_compatible_fields +"/dfareporting:v3.2/ReportCompatibleFields/dimensionFilters": dimension_filters +"/dfareporting:v3.2/ReportCompatibleFields/dimensionFilters/dimension_filter": dimension_filter +"/dfareporting:v3.2/ReportCompatibleFields/dimensions": dimensions +"/dfareporting:v3.2/ReportCompatibleFields/dimensions/dimension": dimension +"/dfareporting:v3.2/ReportCompatibleFields/kind": kind +"/dfareporting:v3.2/ReportCompatibleFields/metrics": metrics +"/dfareporting:v3.2/ReportCompatibleFields/metrics/metric": metric +"/dfareporting:v3.2/ReportCompatibleFields/pivotedActivityMetrics": pivoted_activity_metrics +"/dfareporting:v3.2/ReportCompatibleFields/pivotedActivityMetrics/pivoted_activity_metric": pivoted_activity_metric +"/dfareporting:v3.2/ReportList": report_list +"/dfareporting:v3.2/ReportList/etag": etag +"/dfareporting:v3.2/ReportList/items": items +"/dfareporting:v3.2/ReportList/items/item": item +"/dfareporting:v3.2/ReportList/kind": kind +"/dfareporting:v3.2/ReportList/nextPageToken": next_page_token +"/dfareporting:v3.2/ReportsConfiguration": reports_configuration +"/dfareporting:v3.2/ReportsConfiguration/exposureToConversionEnabled": exposure_to_conversion_enabled +"/dfareporting:v3.2/ReportsConfiguration/lookbackConfiguration": lookback_configuration +"/dfareporting:v3.2/ReportsConfiguration/reportGenerationTimeZoneId": report_generation_time_zone_id +"/dfareporting:v3.2/RichMediaExitOverride": rich_media_exit_override +"/dfareporting:v3.2/RichMediaExitOverride/clickThroughUrl": click_through_url +"/dfareporting:v3.2/RichMediaExitOverride/enabled": enabled +"/dfareporting:v3.2/RichMediaExitOverride/exitId": exit_id +"/dfareporting:v3.2/Rule": rule +"/dfareporting:v3.2/Rule/assetId": asset_id +"/dfareporting:v3.2/Rule/name": name +"/dfareporting:v3.2/Rule/targetingTemplateId": targeting_template_id +"/dfareporting:v3.2/Site": site +"/dfareporting:v3.2/Site/accountId": account_id +"/dfareporting:v3.2/Site/approved": approved +"/dfareporting:v3.2/Site/directorySiteId": directory_site_id +"/dfareporting:v3.2/Site/directorySiteIdDimensionValue": directory_site_id_dimension_value +"/dfareporting:v3.2/Site/id": id +"/dfareporting:v3.2/Site/idDimensionValue": id_dimension_value +"/dfareporting:v3.2/Site/keyName": key_name +"/dfareporting:v3.2/Site/kind": kind +"/dfareporting:v3.2/Site/name": name +"/dfareporting:v3.2/Site/siteContacts": site_contacts +"/dfareporting:v3.2/Site/siteContacts/site_contact": site_contact +"/dfareporting:v3.2/Site/siteSettings": site_settings +"/dfareporting:v3.2/Site/subaccountId": subaccount_id +"/dfareporting:v3.2/SiteContact": site_contact +"/dfareporting:v3.2/SiteContact/address": address +"/dfareporting:v3.2/SiteContact/contactType": contact_type +"/dfareporting:v3.2/SiteContact/email": email +"/dfareporting:v3.2/SiteContact/firstName": first_name +"/dfareporting:v3.2/SiteContact/id": id +"/dfareporting:v3.2/SiteContact/lastName": last_name +"/dfareporting:v3.2/SiteContact/phone": phone +"/dfareporting:v3.2/SiteContact/title": title +"/dfareporting:v3.2/SiteSettings": site_settings +"/dfareporting:v3.2/SiteSettings/activeViewOptOut": active_view_opt_out +"/dfareporting:v3.2/SiteSettings/adBlockingOptOut": ad_blocking_opt_out +"/dfareporting:v3.2/SiteSettings/creativeSettings": creative_settings +"/dfareporting:v3.2/SiteSettings/disableNewCookie": disable_new_cookie +"/dfareporting:v3.2/SiteSettings/lookbackConfiguration": lookback_configuration +"/dfareporting:v3.2/SiteSettings/tagSetting": tag_setting +"/dfareporting:v3.2/SiteSettings/videoActiveViewOptOutTemplate": video_active_view_opt_out_template +"/dfareporting:v3.2/SiteSettings/vpaidAdapterChoiceTemplate": vpaid_adapter_choice_template +"/dfareporting:v3.2/SitesListResponse": sites_list_response +"/dfareporting:v3.2/SitesListResponse/kind": kind +"/dfareporting:v3.2/SitesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/SitesListResponse/sites": sites +"/dfareporting:v3.2/SitesListResponse/sites/site": site +"/dfareporting:v3.2/Size": size +"/dfareporting:v3.2/Size/height": height +"/dfareporting:v3.2/Size/iab": iab +"/dfareporting:v3.2/Size/id": id +"/dfareporting:v3.2/Size/kind": kind +"/dfareporting:v3.2/Size/width": width +"/dfareporting:v3.2/SizesListResponse": sizes_list_response +"/dfareporting:v3.2/SizesListResponse/kind": kind +"/dfareporting:v3.2/SizesListResponse/sizes": sizes +"/dfareporting:v3.2/SizesListResponse/sizes/size": size +"/dfareporting:v3.2/SkippableSetting": skippable_setting +"/dfareporting:v3.2/SkippableSetting/kind": kind +"/dfareporting:v3.2/SkippableSetting/progressOffset": progress_offset +"/dfareporting:v3.2/SkippableSetting/skipOffset": skip_offset +"/dfareporting:v3.2/SkippableSetting/skippable": skippable +"/dfareporting:v3.2/SortedDimension": sorted_dimension +"/dfareporting:v3.2/SortedDimension/kind": kind +"/dfareporting:v3.2/SortedDimension/name": name +"/dfareporting:v3.2/SortedDimension/sortOrder": sort_order +"/dfareporting:v3.2/Subaccount": subaccount +"/dfareporting:v3.2/Subaccount/accountId": account_id +"/dfareporting:v3.2/Subaccount/availablePermissionIds": available_permission_ids +"/dfareporting:v3.2/Subaccount/availablePermissionIds/available_permission_id": available_permission_id +"/dfareporting:v3.2/Subaccount/id": id +"/dfareporting:v3.2/Subaccount/kind": kind +"/dfareporting:v3.2/Subaccount/name": name +"/dfareporting:v3.2/SubaccountsListResponse": subaccounts_list_response +"/dfareporting:v3.2/SubaccountsListResponse/kind": kind +"/dfareporting:v3.2/SubaccountsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/SubaccountsListResponse/subaccounts": subaccounts +"/dfareporting:v3.2/SubaccountsListResponse/subaccounts/subaccount": subaccount +"/dfareporting:v3.2/TagData": tag_data +"/dfareporting:v3.2/TagData/adId": ad_id +"/dfareporting:v3.2/TagData/clickTag": click_tag +"/dfareporting:v3.2/TagData/creativeId": creative_id +"/dfareporting:v3.2/TagData/format": format +"/dfareporting:v3.2/TagData/impressionTag": impression_tag +"/dfareporting:v3.2/TagSetting": tag_setting +"/dfareporting:v3.2/TagSetting/additionalKeyValues": additional_key_values +"/dfareporting:v3.2/TagSetting/includeClickThroughUrls": include_click_through_urls +"/dfareporting:v3.2/TagSetting/includeClickTracking": include_click_tracking +"/dfareporting:v3.2/TagSetting/keywordOption": keyword_option +"/dfareporting:v3.2/TagSettings": tag_settings +"/dfareporting:v3.2/TagSettings/dynamicTagEnabled": dynamic_tag_enabled +"/dfareporting:v3.2/TagSettings/imageTagEnabled": image_tag_enabled +"/dfareporting:v3.2/TargetWindow": target_window +"/dfareporting:v3.2/TargetWindow/customHtml": custom_html +"/dfareporting:v3.2/TargetWindow/targetWindowOption": target_window_option +"/dfareporting:v3.2/TargetableRemarketingList": targetable_remarketing_list +"/dfareporting:v3.2/TargetableRemarketingList/accountId": account_id +"/dfareporting:v3.2/TargetableRemarketingList/active": active +"/dfareporting:v3.2/TargetableRemarketingList/advertiserId": advertiser_id +"/dfareporting:v3.2/TargetableRemarketingList/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/TargetableRemarketingList/description": description +"/dfareporting:v3.2/TargetableRemarketingList/id": id +"/dfareporting:v3.2/TargetableRemarketingList/kind": kind +"/dfareporting:v3.2/TargetableRemarketingList/lifeSpan": life_span +"/dfareporting:v3.2/TargetableRemarketingList/listSize": list_size +"/dfareporting:v3.2/TargetableRemarketingList/listSource": list_source +"/dfareporting:v3.2/TargetableRemarketingList/name": name +"/dfareporting:v3.2/TargetableRemarketingList/subaccountId": subaccount_id +"/dfareporting:v3.2/TargetableRemarketingListsListResponse": targetable_remarketing_lists_list_response +"/dfareporting:v3.2/TargetableRemarketingListsListResponse/kind": kind +"/dfareporting:v3.2/TargetableRemarketingListsListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/TargetableRemarketingListsListResponse/targetableRemarketingLists": targetable_remarketing_lists +"/dfareporting:v3.2/TargetableRemarketingListsListResponse/targetableRemarketingLists/targetable_remarketing_list": targetable_remarketing_list +"/dfareporting:v3.2/TargetingTemplate": targeting_template +"/dfareporting:v3.2/TargetingTemplate/accountId": account_id +"/dfareporting:v3.2/TargetingTemplate/advertiserId": advertiser_id +"/dfareporting:v3.2/TargetingTemplate/advertiserIdDimensionValue": advertiser_id_dimension_value +"/dfareporting:v3.2/TargetingTemplate/dayPartTargeting": day_part_targeting +"/dfareporting:v3.2/TargetingTemplate/geoTargeting": geo_targeting +"/dfareporting:v3.2/TargetingTemplate/id": id +"/dfareporting:v3.2/TargetingTemplate/keyValueTargetingExpression": key_value_targeting_expression +"/dfareporting:v3.2/TargetingTemplate/kind": kind +"/dfareporting:v3.2/TargetingTemplate/languageTargeting": language_targeting +"/dfareporting:v3.2/TargetingTemplate/listTargetingExpression": list_targeting_expression +"/dfareporting:v3.2/TargetingTemplate/name": name +"/dfareporting:v3.2/TargetingTemplate/subaccountId": subaccount_id +"/dfareporting:v3.2/TargetingTemplate/technologyTargeting": technology_targeting +"/dfareporting:v3.2/TargetingTemplatesListResponse": targeting_templates_list_response +"/dfareporting:v3.2/TargetingTemplatesListResponse/kind": kind +"/dfareporting:v3.2/TargetingTemplatesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/TargetingTemplatesListResponse/targetingTemplates": targeting_templates +"/dfareporting:v3.2/TargetingTemplatesListResponse/targetingTemplates/targeting_template": targeting_template +"/dfareporting:v3.2/TechnologyTargeting": technology_targeting +"/dfareporting:v3.2/TechnologyTargeting/browsers": browsers +"/dfareporting:v3.2/TechnologyTargeting/browsers/browser": browser +"/dfareporting:v3.2/TechnologyTargeting/connectionTypes": connection_types +"/dfareporting:v3.2/TechnologyTargeting/connectionTypes/connection_type": connection_type +"/dfareporting:v3.2/TechnologyTargeting/mobileCarriers": mobile_carriers +"/dfareporting:v3.2/TechnologyTargeting/mobileCarriers/mobile_carrier": mobile_carrier +"/dfareporting:v3.2/TechnologyTargeting/operatingSystemVersions": operating_system_versions +"/dfareporting:v3.2/TechnologyTargeting/operatingSystemVersions/operating_system_version": operating_system_version +"/dfareporting:v3.2/TechnologyTargeting/operatingSystems": operating_systems +"/dfareporting:v3.2/TechnologyTargeting/operatingSystems/operating_system": operating_system +"/dfareporting:v3.2/TechnologyTargeting/platformTypes": platform_types +"/dfareporting:v3.2/TechnologyTargeting/platformTypes/platform_type": platform_type +"/dfareporting:v3.2/ThirdPartyAuthenticationToken": third_party_authentication_token +"/dfareporting:v3.2/ThirdPartyAuthenticationToken/name": name +"/dfareporting:v3.2/ThirdPartyAuthenticationToken/value": value +"/dfareporting:v3.2/ThirdPartyTrackingUrl": third_party_tracking_url +"/dfareporting:v3.2/ThirdPartyTrackingUrl/thirdPartyUrlType": third_party_url_type +"/dfareporting:v3.2/ThirdPartyTrackingUrl/url": url +"/dfareporting:v3.2/TranscodeSetting": transcode_setting +"/dfareporting:v3.2/TranscodeSetting/enabledVideoFormats": enabled_video_formats +"/dfareporting:v3.2/TranscodeSetting/enabledVideoFormats/enabled_video_format": enabled_video_format +"/dfareporting:v3.2/TranscodeSetting/kind": kind +"/dfareporting:v3.2/UniversalAdId": universal_ad_id +"/dfareporting:v3.2/UniversalAdId/registry": registry +"/dfareporting:v3.2/UniversalAdId/value": value +"/dfareporting:v3.2/UserDefinedVariableConfiguration": user_defined_variable_configuration +"/dfareporting:v3.2/UserDefinedVariableConfiguration/dataType": data_type +"/dfareporting:v3.2/UserDefinedVariableConfiguration/reportName": report_name +"/dfareporting:v3.2/UserDefinedVariableConfiguration/variableType": variable_type +"/dfareporting:v3.2/UserProfile": user_profile +"/dfareporting:v3.2/UserProfile/accountId": account_id +"/dfareporting:v3.2/UserProfile/accountName": account_name +"/dfareporting:v3.2/UserProfile/etag": etag +"/dfareporting:v3.2/UserProfile/kind": kind +"/dfareporting:v3.2/UserProfile/profileId": profile_id +"/dfareporting:v3.2/UserProfile/subAccountId": sub_account_id +"/dfareporting:v3.2/UserProfile/subAccountName": sub_account_name +"/dfareporting:v3.2/UserProfile/userName": user_name +"/dfareporting:v3.2/UserProfileList": user_profile_list +"/dfareporting:v3.2/UserProfileList/etag": etag +"/dfareporting:v3.2/UserProfileList/items": items +"/dfareporting:v3.2/UserProfileList/items/item": item +"/dfareporting:v3.2/UserProfileList/kind": kind +"/dfareporting:v3.2/UserRole": user_role +"/dfareporting:v3.2/UserRole/accountId": account_id +"/dfareporting:v3.2/UserRole/defaultUserRole": default_user_role +"/dfareporting:v3.2/UserRole/id": id +"/dfareporting:v3.2/UserRole/kind": kind +"/dfareporting:v3.2/UserRole/name": name +"/dfareporting:v3.2/UserRole/parentUserRoleId": parent_user_role_id +"/dfareporting:v3.2/UserRole/permissions": permissions +"/dfareporting:v3.2/UserRole/permissions/permission": permission +"/dfareporting:v3.2/UserRole/subaccountId": subaccount_id +"/dfareporting:v3.2/UserRolePermission": user_role_permission +"/dfareporting:v3.2/UserRolePermission/availability": availability +"/dfareporting:v3.2/UserRolePermission/id": id +"/dfareporting:v3.2/UserRolePermission/kind": kind +"/dfareporting:v3.2/UserRolePermission/name": name +"/dfareporting:v3.2/UserRolePermission/permissionGroupId": permission_group_id +"/dfareporting:v3.2/UserRolePermissionGroup": user_role_permission_group +"/dfareporting:v3.2/UserRolePermissionGroup/id": id +"/dfareporting:v3.2/UserRolePermissionGroup/kind": kind +"/dfareporting:v3.2/UserRolePermissionGroup/name": name +"/dfareporting:v3.2/UserRolePermissionGroupsListResponse": user_role_permission_groups_list_response +"/dfareporting:v3.2/UserRolePermissionGroupsListResponse/kind": kind +"/dfareporting:v3.2/UserRolePermissionGroupsListResponse/userRolePermissionGroups": user_role_permission_groups +"/dfareporting:v3.2/UserRolePermissionGroupsListResponse/userRolePermissionGroups/user_role_permission_group": user_role_permission_group +"/dfareporting:v3.2/UserRolePermissionsListResponse": user_role_permissions_list_response +"/dfareporting:v3.2/UserRolePermissionsListResponse/kind": kind +"/dfareporting:v3.2/UserRolePermissionsListResponse/userRolePermissions": user_role_permissions +"/dfareporting:v3.2/UserRolePermissionsListResponse/userRolePermissions/user_role_permission": user_role_permission +"/dfareporting:v3.2/UserRolesListResponse": user_roles_list_response +"/dfareporting:v3.2/UserRolesListResponse/kind": kind +"/dfareporting:v3.2/UserRolesListResponse/nextPageToken": next_page_token +"/dfareporting:v3.2/UserRolesListResponse/userRoles": user_roles +"/dfareporting:v3.2/UserRolesListResponse/userRoles/user_role": user_role +"/dfareporting:v3.2/VideoFormat": video_format +"/dfareporting:v3.2/VideoFormat/fileType": file_type +"/dfareporting:v3.2/VideoFormat/id": id +"/dfareporting:v3.2/VideoFormat/kind": kind +"/dfareporting:v3.2/VideoFormat/resolution": resolution +"/dfareporting:v3.2/VideoFormat/targetBitRate": target_bit_rate +"/dfareporting:v3.2/VideoFormatsListResponse": video_formats_list_response +"/dfareporting:v3.2/VideoFormatsListResponse/kind": kind +"/dfareporting:v3.2/VideoFormatsListResponse/videoFormats": video_formats +"/dfareporting:v3.2/VideoFormatsListResponse/videoFormats/video_format": video_format +"/dfareporting:v3.2/VideoOffset": video_offset +"/dfareporting:v3.2/VideoOffset/offsetPercentage": offset_percentage +"/dfareporting:v3.2/VideoOffset/offsetSeconds": offset_seconds +"/dfareporting:v3.2/VideoSettings": video_settings +"/dfareporting:v3.2/VideoSettings/companionSettings": companion_settings +"/dfareporting:v3.2/VideoSettings/kind": kind +"/dfareporting:v3.2/VideoSettings/orientation": orientation +"/dfareporting:v3.2/VideoSettings/skippableSettings": skippable_settings +"/dfareporting:v3.2/VideoSettings/transcodeSettings": transcode_settings +"/dfareporting:v3.2/dfareporting.accountActiveAdSummaries.get": get_account_active_ad_summary +"/dfareporting:v3.2/dfareporting.accountActiveAdSummaries.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accountActiveAdSummaries.get/summaryAccountId": summary_account_id +"/dfareporting:v3.2/dfareporting.accountPermissionGroups.get": get_account_permission_group +"/dfareporting:v3.2/dfareporting.accountPermissionGroups.get/id": id +"/dfareporting:v3.2/dfareporting.accountPermissionGroups.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accountPermissionGroups.list": list_account_permission_groups +"/dfareporting:v3.2/dfareporting.accountPermissionGroups.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accountPermissions.get": get_account_permission +"/dfareporting:v3.2/dfareporting.accountPermissions.get/id": id +"/dfareporting:v3.2/dfareporting.accountPermissions.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accountPermissions.list": list_account_permissions +"/dfareporting:v3.2/dfareporting.accountPermissions.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accountUserProfiles.get": get_account_user_profile +"/dfareporting:v3.2/dfareporting.accountUserProfiles.get/id": id +"/dfareporting:v3.2/dfareporting.accountUserProfiles.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accountUserProfiles.insert": insert_account_user_profile +"/dfareporting:v3.2/dfareporting.accountUserProfiles.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list": list_account_user_profiles +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list/active": active +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list/ids": ids +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list/subaccountId": subaccount_id +"/dfareporting:v3.2/dfareporting.accountUserProfiles.list/userRoleId": user_role_id +"/dfareporting:v3.2/dfareporting.accountUserProfiles.patch": patch_account_user_profile +"/dfareporting:v3.2/dfareporting.accountUserProfiles.patch/id": id +"/dfareporting:v3.2/dfareporting.accountUserProfiles.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accountUserProfiles.update": update_account_user_profile +"/dfareporting:v3.2/dfareporting.accountUserProfiles.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accounts.get": get_account +"/dfareporting:v3.2/dfareporting.accounts.get/id": id +"/dfareporting:v3.2/dfareporting.accounts.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accounts.list": list_accounts +"/dfareporting:v3.2/dfareporting.accounts.list/active": active +"/dfareporting:v3.2/dfareporting.accounts.list/ids": ids +"/dfareporting:v3.2/dfareporting.accounts.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.accounts.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.accounts.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accounts.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.accounts.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.accounts.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.accounts.patch": patch_account +"/dfareporting:v3.2/dfareporting.accounts.patch/id": id +"/dfareporting:v3.2/dfareporting.accounts.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.accounts.update": update_account +"/dfareporting:v3.2/dfareporting.accounts.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.ads.get": get_ad +"/dfareporting:v3.2/dfareporting.ads.get/id": id +"/dfareporting:v3.2/dfareporting.ads.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.ads.insert": insert_ad +"/dfareporting:v3.2/dfareporting.ads.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.ads.list": list_ads +"/dfareporting:v3.2/dfareporting.ads.list/active": active +"/dfareporting:v3.2/dfareporting.ads.list/advertiserId": advertiser_id +"/dfareporting:v3.2/dfareporting.ads.list/archived": archived +"/dfareporting:v3.2/dfareporting.ads.list/audienceSegmentIds": audience_segment_ids +"/dfareporting:v3.2/dfareporting.ads.list/campaignIds": campaign_ids +"/dfareporting:v3.2/dfareporting.ads.list/compatibility": compatibility +"/dfareporting:v3.2/dfareporting.ads.list/creativeIds": creative_ids +"/dfareporting:v3.2/dfareporting.ads.list/creativeOptimizationConfigurationIds": creative_optimization_configuration_ids +"/dfareporting:v3.2/dfareporting.ads.list/dynamicClickTracker": dynamic_click_tracker +"/dfareporting:v3.2/dfareporting.ads.list/ids": ids +"/dfareporting:v3.2/dfareporting.ads.list/landingPageIds": landing_page_ids +"/dfareporting:v3.2/dfareporting.ads.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.ads.list/overriddenEventTagId": overridden_event_tag_id +"/dfareporting:v3.2/dfareporting.ads.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.ads.list/placementIds": placement_ids +"/dfareporting:v3.2/dfareporting.ads.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.ads.list/remarketingListIds": remarketing_list_ids +"/dfareporting:v3.2/dfareporting.ads.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.ads.list/sizeIds": size_ids +"/dfareporting:v3.2/dfareporting.ads.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.ads.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.ads.list/sslCompliant": ssl_compliant +"/dfareporting:v3.2/dfareporting.ads.list/sslRequired": ssl_required +"/dfareporting:v3.2/dfareporting.ads.list/type": type +"/dfareporting:v3.2/dfareporting.ads.patch": patch_ad +"/dfareporting:v3.2/dfareporting.ads.patch/id": id +"/dfareporting:v3.2/dfareporting.ads.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.ads.update": update_ad +"/dfareporting:v3.2/dfareporting.ads.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserGroups.delete": delete_advertiser_group +"/dfareporting:v3.2/dfareporting.advertiserGroups.delete/id": id +"/dfareporting:v3.2/dfareporting.advertiserGroups.delete/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserGroups.get": get_advertiser_group +"/dfareporting:v3.2/dfareporting.advertiserGroups.get/id": id +"/dfareporting:v3.2/dfareporting.advertiserGroups.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserGroups.insert": insert_advertiser_group +"/dfareporting:v3.2/dfareporting.advertiserGroups.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserGroups.list": list_advertiser_groups +"/dfareporting:v3.2/dfareporting.advertiserGroups.list/ids": ids +"/dfareporting:v3.2/dfareporting.advertiserGroups.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.advertiserGroups.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.advertiserGroups.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserGroups.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.advertiserGroups.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.advertiserGroups.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.advertiserGroups.patch": patch_advertiser_group +"/dfareporting:v3.2/dfareporting.advertiserGroups.patch/id": id +"/dfareporting:v3.2/dfareporting.advertiserGroups.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserGroups.update": update_advertiser_group +"/dfareporting:v3.2/dfareporting.advertiserGroups.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.get": get_advertiser_landing_page +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.get/id": id +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.insert": insert_advertiser_landing_page +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list": list_advertiser_landing_pages +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list/advertiserIds": advertiser_ids +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list/archived": archived +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list/ids": ids +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.list/subaccountId": subaccount_id +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.patch": patch_advertiser_landing_page +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.patch/id": id +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.update": update_advertiser_landing_page +"/dfareporting:v3.2/dfareporting.advertiserLandingPages.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertisers.get": get_advertiser +"/dfareporting:v3.2/dfareporting.advertisers.get/id": id +"/dfareporting:v3.2/dfareporting.advertisers.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertisers.insert": insert_advertiser +"/dfareporting:v3.2/dfareporting.advertisers.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertisers.list": list_advertisers +"/dfareporting:v3.2/dfareporting.advertisers.list/advertiserGroupIds": advertiser_group_ids +"/dfareporting:v3.2/dfareporting.advertisers.list/floodlightConfigurationIds": floodlight_configuration_ids +"/dfareporting:v3.2/dfareporting.advertisers.list/ids": ids +"/dfareporting:v3.2/dfareporting.advertisers.list/includeAdvertisersWithoutGroupsOnly": include_advertisers_without_groups_only +"/dfareporting:v3.2/dfareporting.advertisers.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.advertisers.list/onlyParent": only_parent +"/dfareporting:v3.2/dfareporting.advertisers.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.advertisers.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertisers.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.advertisers.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.advertisers.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.advertisers.list/status": status +"/dfareporting:v3.2/dfareporting.advertisers.list/subaccountId": subaccount_id +"/dfareporting:v3.2/dfareporting.advertisers.patch": patch_advertiser +"/dfareporting:v3.2/dfareporting.advertisers.patch/id": id +"/dfareporting:v3.2/dfareporting.advertisers.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.advertisers.update": update_advertiser +"/dfareporting:v3.2/dfareporting.advertisers.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.browsers.list": list_browsers +"/dfareporting:v3.2/dfareporting.browsers.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.campaignCreativeAssociations.insert": insert_campaign_creative_association +"/dfareporting:v3.2/dfareporting.campaignCreativeAssociations.insert/campaignId": campaign_id +"/dfareporting:v3.2/dfareporting.campaignCreativeAssociations.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.campaignCreativeAssociations.list": list_campaign_creative_associations +"/dfareporting:v3.2/dfareporting.campaignCreativeAssociations.list/campaignId": campaign_id +"/dfareporting:v3.2/dfareporting.campaignCreativeAssociations.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.campaignCreativeAssociations.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.campaignCreativeAssociations.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.campaignCreativeAssociations.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.campaigns.get": get_campaign +"/dfareporting:v3.2/dfareporting.campaigns.get/id": id +"/dfareporting:v3.2/dfareporting.campaigns.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.campaigns.insert": insert_campaign +"/dfareporting:v3.2/dfareporting.campaigns.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.campaigns.list": list_campaigns +"/dfareporting:v3.2/dfareporting.campaigns.list/advertiserGroupIds": advertiser_group_ids +"/dfareporting:v3.2/dfareporting.campaigns.list/advertiserIds": advertiser_ids +"/dfareporting:v3.2/dfareporting.campaigns.list/archived": archived +"/dfareporting:v3.2/dfareporting.campaigns.list/atLeastOneOptimizationActivity": at_least_one_optimization_activity +"/dfareporting:v3.2/dfareporting.campaigns.list/excludedIds": excluded_ids +"/dfareporting:v3.2/dfareporting.campaigns.list/ids": ids +"/dfareporting:v3.2/dfareporting.campaigns.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.campaigns.list/overriddenEventTagId": overridden_event_tag_id +"/dfareporting:v3.2/dfareporting.campaigns.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.campaigns.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.campaigns.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.campaigns.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.campaigns.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.campaigns.list/subaccountId": subaccount_id +"/dfareporting:v3.2/dfareporting.campaigns.patch": patch_campaign +"/dfareporting:v3.2/dfareporting.campaigns.patch/id": id +"/dfareporting:v3.2/dfareporting.campaigns.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.campaigns.update": update_campaign +"/dfareporting:v3.2/dfareporting.campaigns.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.changeLogs.get": get_change_log +"/dfareporting:v3.2/dfareporting.changeLogs.get/id": id +"/dfareporting:v3.2/dfareporting.changeLogs.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.changeLogs.list": list_change_logs +"/dfareporting:v3.2/dfareporting.changeLogs.list/action": action +"/dfareporting:v3.2/dfareporting.changeLogs.list/ids": ids +"/dfareporting:v3.2/dfareporting.changeLogs.list/maxChangeTime": max_change_time +"/dfareporting:v3.2/dfareporting.changeLogs.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.changeLogs.list/minChangeTime": min_change_time +"/dfareporting:v3.2/dfareporting.changeLogs.list/objectIds": object_ids +"/dfareporting:v3.2/dfareporting.changeLogs.list/objectType": object_type +"/dfareporting:v3.2/dfareporting.changeLogs.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.changeLogs.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.changeLogs.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.changeLogs.list/userProfileIds": user_profile_ids +"/dfareporting:v3.2/dfareporting.cities.list": list_cities +"/dfareporting:v3.2/dfareporting.cities.list/countryDartIds": country_dart_ids +"/dfareporting:v3.2/dfareporting.cities.list/dartIds": dart_ids +"/dfareporting:v3.2/dfareporting.cities.list/namePrefix": name_prefix +"/dfareporting:v3.2/dfareporting.cities.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.cities.list/regionDartIds": region_dart_ids +"/dfareporting:v3.2/dfareporting.connectionTypes.get": get_connection_type +"/dfareporting:v3.2/dfareporting.connectionTypes.get/id": id +"/dfareporting:v3.2/dfareporting.connectionTypes.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.connectionTypes.list": list_connection_types +"/dfareporting:v3.2/dfareporting.connectionTypes.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.contentCategories.delete": delete_content_category +"/dfareporting:v3.2/dfareporting.contentCategories.delete/id": id +"/dfareporting:v3.2/dfareporting.contentCategories.delete/profileId": profile_id +"/dfareporting:v3.2/dfareporting.contentCategories.get": get_content_category +"/dfareporting:v3.2/dfareporting.contentCategories.get/id": id +"/dfareporting:v3.2/dfareporting.contentCategories.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.contentCategories.insert": insert_content_category +"/dfareporting:v3.2/dfareporting.contentCategories.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.contentCategories.list": list_content_categories +"/dfareporting:v3.2/dfareporting.contentCategories.list/ids": ids +"/dfareporting:v3.2/dfareporting.contentCategories.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.contentCategories.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.contentCategories.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.contentCategories.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.contentCategories.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.contentCategories.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.contentCategories.patch": patch_content_category +"/dfareporting:v3.2/dfareporting.contentCategories.patch/id": id +"/dfareporting:v3.2/dfareporting.contentCategories.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.contentCategories.update": update_content_category +"/dfareporting:v3.2/dfareporting.contentCategories.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.conversions.batchinsert": batchinsert_conversion +"/dfareporting:v3.2/dfareporting.conversions.batchinsert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.conversions.batchupdate": batchupdate_conversion +"/dfareporting:v3.2/dfareporting.conversions.batchupdate/profileId": profile_id +"/dfareporting:v3.2/dfareporting.countries.get": get_country +"/dfareporting:v3.2/dfareporting.countries.get/dartId": dart_id +"/dfareporting:v3.2/dfareporting.countries.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.countries.list": list_countries +"/dfareporting:v3.2/dfareporting.countries.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeAssets.insert": insert_creative_asset +"/dfareporting:v3.2/dfareporting.creativeAssets.insert/advertiserId": advertiser_id +"/dfareporting:v3.2/dfareporting.creativeAssets.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.delete": delete_creative_field_value +"/dfareporting:v3.2/dfareporting.creativeFieldValues.delete/creativeFieldId": creative_field_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.delete/id": id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.delete/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.get": get_creative_field_value +"/dfareporting:v3.2/dfareporting.creativeFieldValues.get/creativeFieldId": creative_field_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.get/id": id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.insert": insert_creative_field_value +"/dfareporting:v3.2/dfareporting.creativeFieldValues.insert/creativeFieldId": creative_field_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.list": list_creative_field_values +"/dfareporting:v3.2/dfareporting.creativeFieldValues.list/creativeFieldId": creative_field_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.list/ids": ids +"/dfareporting:v3.2/dfareporting.creativeFieldValues.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.creativeFieldValues.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.creativeFieldValues.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.creativeFieldValues.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.creativeFieldValues.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.creativeFieldValues.patch": patch_creative_field_value +"/dfareporting:v3.2/dfareporting.creativeFieldValues.patch/creativeFieldId": creative_field_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.patch/id": id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.update": update_creative_field_value +"/dfareporting:v3.2/dfareporting.creativeFieldValues.update/creativeFieldId": creative_field_id +"/dfareporting:v3.2/dfareporting.creativeFieldValues.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFields.delete": delete_creative_field +"/dfareporting:v3.2/dfareporting.creativeFields.delete/id": id +"/dfareporting:v3.2/dfareporting.creativeFields.delete/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFields.get": get_creative_field +"/dfareporting:v3.2/dfareporting.creativeFields.get/id": id +"/dfareporting:v3.2/dfareporting.creativeFields.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFields.insert": insert_creative_field +"/dfareporting:v3.2/dfareporting.creativeFields.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFields.list": list_creative_fields +"/dfareporting:v3.2/dfareporting.creativeFields.list/advertiserIds": advertiser_ids +"/dfareporting:v3.2/dfareporting.creativeFields.list/ids": ids +"/dfareporting:v3.2/dfareporting.creativeFields.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.creativeFields.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.creativeFields.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFields.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.creativeFields.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.creativeFields.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.creativeFields.patch": patch_creative_field +"/dfareporting:v3.2/dfareporting.creativeFields.patch/id": id +"/dfareporting:v3.2/dfareporting.creativeFields.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeFields.update": update_creative_field +"/dfareporting:v3.2/dfareporting.creativeFields.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeGroups.get": get_creative_group +"/dfareporting:v3.2/dfareporting.creativeGroups.get/id": id +"/dfareporting:v3.2/dfareporting.creativeGroups.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeGroups.insert": insert_creative_group +"/dfareporting:v3.2/dfareporting.creativeGroups.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeGroups.list": list_creative_groups +"/dfareporting:v3.2/dfareporting.creativeGroups.list/advertiserIds": advertiser_ids +"/dfareporting:v3.2/dfareporting.creativeGroups.list/groupNumber": group_number +"/dfareporting:v3.2/dfareporting.creativeGroups.list/ids": ids +"/dfareporting:v3.2/dfareporting.creativeGroups.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.creativeGroups.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.creativeGroups.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeGroups.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.creativeGroups.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.creativeGroups.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.creativeGroups.patch": patch_creative_group +"/dfareporting:v3.2/dfareporting.creativeGroups.patch/id": id +"/dfareporting:v3.2/dfareporting.creativeGroups.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creativeGroups.update": update_creative_group +"/dfareporting:v3.2/dfareporting.creativeGroups.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creatives.get": get_creative +"/dfareporting:v3.2/dfareporting.creatives.get/id": id +"/dfareporting:v3.2/dfareporting.creatives.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creatives.insert": insert_creative +"/dfareporting:v3.2/dfareporting.creatives.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creatives.list": list_creatives +"/dfareporting:v3.2/dfareporting.creatives.list/active": active +"/dfareporting:v3.2/dfareporting.creatives.list/advertiserId": advertiser_id +"/dfareporting:v3.2/dfareporting.creatives.list/archived": archived +"/dfareporting:v3.2/dfareporting.creatives.list/campaignId": campaign_id +"/dfareporting:v3.2/dfareporting.creatives.list/companionCreativeIds": companion_creative_ids +"/dfareporting:v3.2/dfareporting.creatives.list/creativeFieldIds": creative_field_ids +"/dfareporting:v3.2/dfareporting.creatives.list/ids": ids +"/dfareporting:v3.2/dfareporting.creatives.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.creatives.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.creatives.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creatives.list/renderingIds": rendering_ids +"/dfareporting:v3.2/dfareporting.creatives.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.creatives.list/sizeIds": size_ids +"/dfareporting:v3.2/dfareporting.creatives.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.creatives.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.creatives.list/studioCreativeId": studio_creative_id +"/dfareporting:v3.2/dfareporting.creatives.list/types": types +"/dfareporting:v3.2/dfareporting.creatives.patch": patch_creative +"/dfareporting:v3.2/dfareporting.creatives.patch/id": id +"/dfareporting:v3.2/dfareporting.creatives.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.creatives.update": update_creative +"/dfareporting:v3.2/dfareporting.creatives.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.dimensionValues.query": query_dimension_value +"/dfareporting:v3.2/dfareporting.dimensionValues.query/maxResults": max_results +"/dfareporting:v3.2/dfareporting.dimensionValues.query/pageToken": page_token +"/dfareporting:v3.2/dfareporting.dimensionValues.query/profileId": profile_id +"/dfareporting:v3.2/dfareporting.directorySiteContacts.get": get_directory_site_contact +"/dfareporting:v3.2/dfareporting.directorySiteContacts.get/id": id +"/dfareporting:v3.2/dfareporting.directorySiteContacts.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.directorySiteContacts.list": list_directory_site_contacts +"/dfareporting:v3.2/dfareporting.directorySiteContacts.list/directorySiteIds": directory_site_ids +"/dfareporting:v3.2/dfareporting.directorySiteContacts.list/ids": ids +"/dfareporting:v3.2/dfareporting.directorySiteContacts.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.directorySiteContacts.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.directorySiteContacts.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.directorySiteContacts.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.directorySiteContacts.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.directorySiteContacts.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.directorySites.get": get_directory_site +"/dfareporting:v3.2/dfareporting.directorySites.get/id": id +"/dfareporting:v3.2/dfareporting.directorySites.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.directorySites.insert": insert_directory_site +"/dfareporting:v3.2/dfareporting.directorySites.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.directorySites.list": list_directory_sites +"/dfareporting:v3.2/dfareporting.directorySites.list/acceptsInStreamVideoPlacements": accepts_in_stream_video_placements +"/dfareporting:v3.2/dfareporting.directorySites.list/acceptsInterstitialPlacements": accepts_interstitial_placements +"/dfareporting:v3.2/dfareporting.directorySites.list/acceptsPublisherPaidPlacements": accepts_publisher_paid_placements +"/dfareporting:v3.2/dfareporting.directorySites.list/active": active +"/dfareporting:v3.2/dfareporting.directorySites.list/countryId": country_id +"/dfareporting:v3.2/dfareporting.directorySites.list/dfpNetworkCode": dfp_network_code +"/dfareporting:v3.2/dfareporting.directorySites.list/ids": ids +"/dfareporting:v3.2/dfareporting.directorySites.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.directorySites.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.directorySites.list/parentId": parent_id +"/dfareporting:v3.2/dfareporting.directorySites.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.directorySites.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.directorySites.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.directorySites.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.delete": delete_dynamic_targeting_key +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.delete/name": name +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.delete/objectId": object_id_ +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.delete/objectType": object_type +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.delete/profileId": profile_id +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.insert": insert_dynamic_targeting_key +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.list": list_dynamic_targeting_keys +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.list/advertiserId": advertiser_id +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.list/names": names +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.list/objectId": object_id_ +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.list/objectType": object_type +"/dfareporting:v3.2/dfareporting.dynamicTargetingKeys.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.eventTags.delete": delete_event_tag +"/dfareporting:v3.2/dfareporting.eventTags.delete/id": id +"/dfareporting:v3.2/dfareporting.eventTags.delete/profileId": profile_id +"/dfareporting:v3.2/dfareporting.eventTags.get": get_event_tag +"/dfareporting:v3.2/dfareporting.eventTags.get/id": id +"/dfareporting:v3.2/dfareporting.eventTags.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.eventTags.insert": insert_event_tag +"/dfareporting:v3.2/dfareporting.eventTags.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.eventTags.list": list_event_tags +"/dfareporting:v3.2/dfareporting.eventTags.list/adId": ad_id +"/dfareporting:v3.2/dfareporting.eventTags.list/advertiserId": advertiser_id +"/dfareporting:v3.2/dfareporting.eventTags.list/campaignId": campaign_id +"/dfareporting:v3.2/dfareporting.eventTags.list/definitionsOnly": definitions_only +"/dfareporting:v3.2/dfareporting.eventTags.list/enabled": enabled +"/dfareporting:v3.2/dfareporting.eventTags.list/eventTagTypes": event_tag_types +"/dfareporting:v3.2/dfareporting.eventTags.list/ids": ids +"/dfareporting:v3.2/dfareporting.eventTags.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.eventTags.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.eventTags.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.eventTags.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.eventTags.patch": patch_event_tag +"/dfareporting:v3.2/dfareporting.eventTags.patch/id": id +"/dfareporting:v3.2/dfareporting.eventTags.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.eventTags.update": update_event_tag +"/dfareporting:v3.2/dfareporting.eventTags.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.files.get": get_file +"/dfareporting:v3.2/dfareporting.files.get/fileId": file_id +"/dfareporting:v3.2/dfareporting.files.get/reportId": report_id +"/dfareporting:v3.2/dfareporting.files.list": list_files +"/dfareporting:v3.2/dfareporting.files.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.files.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.files.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.files.list/scope": scope +"/dfareporting:v3.2/dfareporting.files.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.files.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.floodlightActivities.delete": delete_floodlight_activity +"/dfareporting:v3.2/dfareporting.floodlightActivities.delete/id": id +"/dfareporting:v3.2/dfareporting.floodlightActivities.delete/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivities.generatetag": generatetag_floodlight_activity +"/dfareporting:v3.2/dfareporting.floodlightActivities.generatetag/floodlightActivityId": floodlight_activity_id +"/dfareporting:v3.2/dfareporting.floodlightActivities.generatetag/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivities.get": get_floodlight_activity +"/dfareporting:v3.2/dfareporting.floodlightActivities.get/id": id +"/dfareporting:v3.2/dfareporting.floodlightActivities.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivities.insert": insert_floodlight_activity +"/dfareporting:v3.2/dfareporting.floodlightActivities.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivities.list": list_floodlight_activities +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/advertiserId": advertiser_id +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/floodlightActivityGroupIds": floodlight_activity_group_ids +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/floodlightActivityGroupName": floodlight_activity_group_name +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/floodlightActivityGroupTagString": floodlight_activity_group_tag_string +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/floodlightActivityGroupType": floodlight_activity_group_type +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/floodlightConfigurationId": floodlight_configuration_id +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/ids": ids +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.floodlightActivities.list/tagString": tag_string +"/dfareporting:v3.2/dfareporting.floodlightActivities.patch": patch_floodlight_activity +"/dfareporting:v3.2/dfareporting.floodlightActivities.patch/id": id +"/dfareporting:v3.2/dfareporting.floodlightActivities.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivities.update": update_floodlight_activity +"/dfareporting:v3.2/dfareporting.floodlightActivities.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.get": get_floodlight_activity_group +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.get/id": id +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.insert": insert_floodlight_activity_group +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list": list_floodlight_activity_groups +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list/advertiserId": advertiser_id +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list/floodlightConfigurationId": floodlight_configuration_id +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list/ids": ids +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.list/type": type +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.patch": patch_floodlight_activity_group +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.patch/id": id +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.update": update_floodlight_activity_group +"/dfareporting:v3.2/dfareporting.floodlightActivityGroups.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.get": get_floodlight_configuration +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.get/id": id +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.list": list_floodlight_configurations +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.list/ids": ids +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.patch": patch_floodlight_configuration +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.patch/id": id +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.update": update_floodlight_configuration +"/dfareporting:v3.2/dfareporting.floodlightConfigurations.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.inventoryItems.get": get_inventory_item +"/dfareporting:v3.2/dfareporting.inventoryItems.get/id": id +"/dfareporting:v3.2/dfareporting.inventoryItems.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.inventoryItems.get/projectId": project_id +"/dfareporting:v3.2/dfareporting.inventoryItems.list": list_inventory_items +"/dfareporting:v3.2/dfareporting.inventoryItems.list/ids": ids +"/dfareporting:v3.2/dfareporting.inventoryItems.list/inPlan": in_plan +"/dfareporting:v3.2/dfareporting.inventoryItems.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.inventoryItems.list/orderId": order_id +"/dfareporting:v3.2/dfareporting.inventoryItems.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.inventoryItems.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.inventoryItems.list/projectId": project_id +"/dfareporting:v3.2/dfareporting.inventoryItems.list/siteId": site_id +"/dfareporting:v3.2/dfareporting.inventoryItems.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.inventoryItems.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.inventoryItems.list/type": type +"/dfareporting:v3.2/dfareporting.languages.list": list_languages +"/dfareporting:v3.2/dfareporting.languages.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.metros.list": list_metros +"/dfareporting:v3.2/dfareporting.metros.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.mobileApps.get": get_mobile_app +"/dfareporting:v3.2/dfareporting.mobileApps.get/id": id +"/dfareporting:v3.2/dfareporting.mobileApps.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.mobileApps.list": list_mobile_apps +"/dfareporting:v3.2/dfareporting.mobileApps.list/directories": directories +"/dfareporting:v3.2/dfareporting.mobileApps.list/ids": ids +"/dfareporting:v3.2/dfareporting.mobileApps.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.mobileApps.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.mobileApps.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.mobileApps.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.mobileCarriers.get": get_mobile_carrier +"/dfareporting:v3.2/dfareporting.mobileCarriers.get/id": id +"/dfareporting:v3.2/dfareporting.mobileCarriers.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.mobileCarriers.list": list_mobile_carriers +"/dfareporting:v3.2/dfareporting.mobileCarriers.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.operatingSystemVersions.get": get_operating_system_version +"/dfareporting:v3.2/dfareporting.operatingSystemVersions.get/id": id +"/dfareporting:v3.2/dfareporting.operatingSystemVersions.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.operatingSystemVersions.list": list_operating_system_versions +"/dfareporting:v3.2/dfareporting.operatingSystemVersions.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.operatingSystems.get": get_operating_system +"/dfareporting:v3.2/dfareporting.operatingSystems.get/dartId": dart_id +"/dfareporting:v3.2/dfareporting.operatingSystems.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.operatingSystems.list": list_operating_systems +"/dfareporting:v3.2/dfareporting.operatingSystems.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.orderDocuments.get": get_order_document +"/dfareporting:v3.2/dfareporting.orderDocuments.get/id": id +"/dfareporting:v3.2/dfareporting.orderDocuments.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.orderDocuments.get/projectId": project_id +"/dfareporting:v3.2/dfareporting.orderDocuments.list": list_order_documents +"/dfareporting:v3.2/dfareporting.orderDocuments.list/approved": approved +"/dfareporting:v3.2/dfareporting.orderDocuments.list/ids": ids +"/dfareporting:v3.2/dfareporting.orderDocuments.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.orderDocuments.list/orderId": order_id +"/dfareporting:v3.2/dfareporting.orderDocuments.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.orderDocuments.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.orderDocuments.list/projectId": project_id +"/dfareporting:v3.2/dfareporting.orderDocuments.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.orderDocuments.list/siteId": site_id +"/dfareporting:v3.2/dfareporting.orderDocuments.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.orderDocuments.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.orders.get": get_order +"/dfareporting:v3.2/dfareporting.orders.get/id": id +"/dfareporting:v3.2/dfareporting.orders.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.orders.get/projectId": project_id +"/dfareporting:v3.2/dfareporting.orders.list": list_orders +"/dfareporting:v3.2/dfareporting.orders.list/ids": ids +"/dfareporting:v3.2/dfareporting.orders.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.orders.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.orders.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.orders.list/projectId": project_id +"/dfareporting:v3.2/dfareporting.orders.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.orders.list/siteId": site_id +"/dfareporting:v3.2/dfareporting.orders.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.orders.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.placementGroups.get": get_placement_group +"/dfareporting:v3.2/dfareporting.placementGroups.get/id": id +"/dfareporting:v3.2/dfareporting.placementGroups.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placementGroups.insert": insert_placement_group +"/dfareporting:v3.2/dfareporting.placementGroups.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placementGroups.list": list_placement_groups +"/dfareporting:v3.2/dfareporting.placementGroups.list/advertiserIds": advertiser_ids +"/dfareporting:v3.2/dfareporting.placementGroups.list/archived": archived +"/dfareporting:v3.2/dfareporting.placementGroups.list/campaignIds": campaign_ids +"/dfareporting:v3.2/dfareporting.placementGroups.list/contentCategoryIds": content_category_ids +"/dfareporting:v3.2/dfareporting.placementGroups.list/directorySiteIds": directory_site_ids +"/dfareporting:v3.2/dfareporting.placementGroups.list/ids": ids +"/dfareporting:v3.2/dfareporting.placementGroups.list/maxEndDate": max_end_date +"/dfareporting:v3.2/dfareporting.placementGroups.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.placementGroups.list/maxStartDate": max_start_date +"/dfareporting:v3.2/dfareporting.placementGroups.list/minEndDate": min_end_date +"/dfareporting:v3.2/dfareporting.placementGroups.list/minStartDate": min_start_date +"/dfareporting:v3.2/dfareporting.placementGroups.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.placementGroups.list/placementGroupType": placement_group_type +"/dfareporting:v3.2/dfareporting.placementGroups.list/placementStrategyIds": placement_strategy_ids +"/dfareporting:v3.2/dfareporting.placementGroups.list/pricingTypes": pricing_types +"/dfareporting:v3.2/dfareporting.placementGroups.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placementGroups.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.placementGroups.list/siteIds": site_ids +"/dfareporting:v3.2/dfareporting.placementGroups.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.placementGroups.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.placementGroups.patch": patch_placement_group +"/dfareporting:v3.2/dfareporting.placementGroups.patch/id": id +"/dfareporting:v3.2/dfareporting.placementGroups.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placementGroups.update": update_placement_group +"/dfareporting:v3.2/dfareporting.placementGroups.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placementStrategies.delete": delete_placement_strategy +"/dfareporting:v3.2/dfareporting.placementStrategies.delete/id": id +"/dfareporting:v3.2/dfareporting.placementStrategies.delete/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placementStrategies.get": get_placement_strategy +"/dfareporting:v3.2/dfareporting.placementStrategies.get/id": id +"/dfareporting:v3.2/dfareporting.placementStrategies.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placementStrategies.insert": insert_placement_strategy +"/dfareporting:v3.2/dfareporting.placementStrategies.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placementStrategies.list": list_placement_strategies +"/dfareporting:v3.2/dfareporting.placementStrategies.list/ids": ids +"/dfareporting:v3.2/dfareporting.placementStrategies.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.placementStrategies.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.placementStrategies.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placementStrategies.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.placementStrategies.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.placementStrategies.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.placementStrategies.patch": patch_placement_strategy +"/dfareporting:v3.2/dfareporting.placementStrategies.patch/id": id +"/dfareporting:v3.2/dfareporting.placementStrategies.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placementStrategies.update": update_placement_strategy +"/dfareporting:v3.2/dfareporting.placementStrategies.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placements.generatetags": generatetags_placement +"/dfareporting:v3.2/dfareporting.placements.generatetags/campaignId": campaign_id +"/dfareporting:v3.2/dfareporting.placements.generatetags/placementIds": placement_ids +"/dfareporting:v3.2/dfareporting.placements.generatetags/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placements.generatetags/tagFormats": tag_formats +"/dfareporting:v3.2/dfareporting.placements.get": get_placement +"/dfareporting:v3.2/dfareporting.placements.get/id": id +"/dfareporting:v3.2/dfareporting.placements.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placements.insert": insert_placement +"/dfareporting:v3.2/dfareporting.placements.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placements.list": list_placements +"/dfareporting:v3.2/dfareporting.placements.list/advertiserIds": advertiser_ids +"/dfareporting:v3.2/dfareporting.placements.list/archived": archived +"/dfareporting:v3.2/dfareporting.placements.list/campaignIds": campaign_ids +"/dfareporting:v3.2/dfareporting.placements.list/compatibilities": compatibilities +"/dfareporting:v3.2/dfareporting.placements.list/contentCategoryIds": content_category_ids +"/dfareporting:v3.2/dfareporting.placements.list/directorySiteIds": directory_site_ids +"/dfareporting:v3.2/dfareporting.placements.list/groupIds": group_ids +"/dfareporting:v3.2/dfareporting.placements.list/ids": ids +"/dfareporting:v3.2/dfareporting.placements.list/maxEndDate": max_end_date +"/dfareporting:v3.2/dfareporting.placements.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.placements.list/maxStartDate": max_start_date +"/dfareporting:v3.2/dfareporting.placements.list/minEndDate": min_end_date +"/dfareporting:v3.2/dfareporting.placements.list/minStartDate": min_start_date +"/dfareporting:v3.2/dfareporting.placements.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.placements.list/paymentSource": payment_source +"/dfareporting:v3.2/dfareporting.placements.list/placementStrategyIds": placement_strategy_ids +"/dfareporting:v3.2/dfareporting.placements.list/pricingTypes": pricing_types +"/dfareporting:v3.2/dfareporting.placements.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placements.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.placements.list/siteIds": site_ids +"/dfareporting:v3.2/dfareporting.placements.list/sizeIds": size_ids +"/dfareporting:v3.2/dfareporting.placements.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.placements.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.placements.patch": patch_placement +"/dfareporting:v3.2/dfareporting.placements.patch/id": id +"/dfareporting:v3.2/dfareporting.placements.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.placements.update": update_placement +"/dfareporting:v3.2/dfareporting.placements.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.platformTypes.get": get_platform_type +"/dfareporting:v3.2/dfareporting.platformTypes.get/id": id +"/dfareporting:v3.2/dfareporting.platformTypes.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.platformTypes.list": list_platform_types +"/dfareporting:v3.2/dfareporting.platformTypes.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.postalCodes.get": get_postal_code +"/dfareporting:v3.2/dfareporting.postalCodes.get/code": code +"/dfareporting:v3.2/dfareporting.postalCodes.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.postalCodes.list": list_postal_codes +"/dfareporting:v3.2/dfareporting.postalCodes.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.projects.get": get_project +"/dfareporting:v3.2/dfareporting.projects.get/id": id +"/dfareporting:v3.2/dfareporting.projects.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.projects.list": list_projects +"/dfareporting:v3.2/dfareporting.projects.list/advertiserIds": advertiser_ids +"/dfareporting:v3.2/dfareporting.projects.list/ids": ids +"/dfareporting:v3.2/dfareporting.projects.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.projects.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.projects.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.projects.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.projects.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.projects.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.regions.list": list_regions +"/dfareporting:v3.2/dfareporting.regions.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.remarketingListShares.get": get_remarketing_list_share +"/dfareporting:v3.2/dfareporting.remarketingListShares.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.remarketingListShares.get/remarketingListId": remarketing_list_id +"/dfareporting:v3.2/dfareporting.remarketingListShares.patch": patch_remarketing_list_share +"/dfareporting:v3.2/dfareporting.remarketingListShares.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.remarketingListShares.patch/remarketingListId": remarketing_list_id +"/dfareporting:v3.2/dfareporting.remarketingListShares.update": update_remarketing_list_share +"/dfareporting:v3.2/dfareporting.remarketingListShares.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.remarketingLists.get": get_remarketing_list +"/dfareporting:v3.2/dfareporting.remarketingLists.get/id": id +"/dfareporting:v3.2/dfareporting.remarketingLists.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.remarketingLists.insert": insert_remarketing_list +"/dfareporting:v3.2/dfareporting.remarketingLists.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.remarketingLists.list": list_remarketing_lists +"/dfareporting:v3.2/dfareporting.remarketingLists.list/active": active +"/dfareporting:v3.2/dfareporting.remarketingLists.list/advertiserId": advertiser_id +"/dfareporting:v3.2/dfareporting.remarketingLists.list/floodlightActivityId": floodlight_activity_id +"/dfareporting:v3.2/dfareporting.remarketingLists.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.remarketingLists.list/name": name +"/dfareporting:v3.2/dfareporting.remarketingLists.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.remarketingLists.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.remarketingLists.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.remarketingLists.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.remarketingLists.patch": patch_remarketing_list +"/dfareporting:v3.2/dfareporting.remarketingLists.patch/id": id +"/dfareporting:v3.2/dfareporting.remarketingLists.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.remarketingLists.update": update_remarketing_list +"/dfareporting:v3.2/dfareporting.remarketingLists.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.compatibleFields.query": query_report_compatible_field +"/dfareporting:v3.2/dfareporting.reports.compatibleFields.query/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.delete": delete_report +"/dfareporting:v3.2/dfareporting.reports.delete/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.delete/reportId": report_id +"/dfareporting:v3.2/dfareporting.reports.files.get": get_report_file +"/dfareporting:v3.2/dfareporting.reports.files.get/fileId": file_id +"/dfareporting:v3.2/dfareporting.reports.files.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.files.get/reportId": report_id +"/dfareporting:v3.2/dfareporting.reports.files.list": list_report_files +"/dfareporting:v3.2/dfareporting.reports.files.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.reports.files.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.reports.files.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.files.list/reportId": report_id +"/dfareporting:v3.2/dfareporting.reports.files.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.reports.files.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.reports.get": get_report +"/dfareporting:v3.2/dfareporting.reports.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.get/reportId": report_id +"/dfareporting:v3.2/dfareporting.reports.insert": insert_report +"/dfareporting:v3.2/dfareporting.reports.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.list": list_reports +"/dfareporting:v3.2/dfareporting.reports.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.reports.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.reports.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.list/scope": scope +"/dfareporting:v3.2/dfareporting.reports.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.reports.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.reports.patch": patch_report +"/dfareporting:v3.2/dfareporting.reports.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.patch/reportId": report_id +"/dfareporting:v3.2/dfareporting.reports.run": run_report +"/dfareporting:v3.2/dfareporting.reports.run/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.run/reportId": report_id +"/dfareporting:v3.2/dfareporting.reports.run/synchronous": synchronous +"/dfareporting:v3.2/dfareporting.reports.update": update_report +"/dfareporting:v3.2/dfareporting.reports.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.reports.update/reportId": report_id +"/dfareporting:v3.2/dfareporting.sites.get": get_site +"/dfareporting:v3.2/dfareporting.sites.get/id": id +"/dfareporting:v3.2/dfareporting.sites.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.sites.insert": insert_site +"/dfareporting:v3.2/dfareporting.sites.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.sites.list": list_sites +"/dfareporting:v3.2/dfareporting.sites.list/acceptsInStreamVideoPlacements": accepts_in_stream_video_placements +"/dfareporting:v3.2/dfareporting.sites.list/acceptsInterstitialPlacements": accepts_interstitial_placements +"/dfareporting:v3.2/dfareporting.sites.list/acceptsPublisherPaidPlacements": accepts_publisher_paid_placements +"/dfareporting:v3.2/dfareporting.sites.list/adWordsSite": ad_words_site +"/dfareporting:v3.2/dfareporting.sites.list/approved": approved +"/dfareporting:v3.2/dfareporting.sites.list/campaignIds": campaign_ids +"/dfareporting:v3.2/dfareporting.sites.list/directorySiteIds": directory_site_ids +"/dfareporting:v3.2/dfareporting.sites.list/ids": ids +"/dfareporting:v3.2/dfareporting.sites.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.sites.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.sites.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.sites.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.sites.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.sites.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.sites.list/subaccountId": subaccount_id +"/dfareporting:v3.2/dfareporting.sites.list/unmappedSite": unmapped_site +"/dfareporting:v3.2/dfareporting.sites.patch": patch_site +"/dfareporting:v3.2/dfareporting.sites.patch/id": id +"/dfareporting:v3.2/dfareporting.sites.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.sites.update": update_site +"/dfareporting:v3.2/dfareporting.sites.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.sizes.get": get_size +"/dfareporting:v3.2/dfareporting.sizes.get/id": id +"/dfareporting:v3.2/dfareporting.sizes.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.sizes.insert": insert_size +"/dfareporting:v3.2/dfareporting.sizes.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.sizes.list": list_sizes +"/dfareporting:v3.2/dfareporting.sizes.list/height": height +"/dfareporting:v3.2/dfareporting.sizes.list/iabStandard": iab_standard +"/dfareporting:v3.2/dfareporting.sizes.list/ids": ids +"/dfareporting:v3.2/dfareporting.sizes.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.sizes.list/width": width +"/dfareporting:v3.2/dfareporting.subaccounts.get": get_subaccount +"/dfareporting:v3.2/dfareporting.subaccounts.get/id": id +"/dfareporting:v3.2/dfareporting.subaccounts.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.subaccounts.insert": insert_subaccount +"/dfareporting:v3.2/dfareporting.subaccounts.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.subaccounts.list": list_subaccounts +"/dfareporting:v3.2/dfareporting.subaccounts.list/ids": ids +"/dfareporting:v3.2/dfareporting.subaccounts.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.subaccounts.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.subaccounts.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.subaccounts.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.subaccounts.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.subaccounts.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.subaccounts.patch": patch_subaccount +"/dfareporting:v3.2/dfareporting.subaccounts.patch/id": id +"/dfareporting:v3.2/dfareporting.subaccounts.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.subaccounts.update": update_subaccount +"/dfareporting:v3.2/dfareporting.subaccounts.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.get": get_targetable_remarketing_list +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.get/id": id +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.list": list_targetable_remarketing_lists +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.list/active": active +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.list/advertiserId": advertiser_id +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.list/name": name +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.targetableRemarketingLists.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.targetingTemplates.get": get_targeting_template +"/dfareporting:v3.2/dfareporting.targetingTemplates.get/id": id +"/dfareporting:v3.2/dfareporting.targetingTemplates.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.targetingTemplates.insert": insert_targeting_template +"/dfareporting:v3.2/dfareporting.targetingTemplates.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.targetingTemplates.list": list_targeting_templates +"/dfareporting:v3.2/dfareporting.targetingTemplates.list/advertiserId": advertiser_id +"/dfareporting:v3.2/dfareporting.targetingTemplates.list/ids": ids +"/dfareporting:v3.2/dfareporting.targetingTemplates.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.targetingTemplates.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.targetingTemplates.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.targetingTemplates.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.targetingTemplates.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.targetingTemplates.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.targetingTemplates.patch": patch_targeting_template +"/dfareporting:v3.2/dfareporting.targetingTemplates.patch/id": id +"/dfareporting:v3.2/dfareporting.targetingTemplates.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.targetingTemplates.update": update_targeting_template +"/dfareporting:v3.2/dfareporting.targetingTemplates.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userProfiles.get": get_user_profile +"/dfareporting:v3.2/dfareporting.userProfiles.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userProfiles.list": list_user_profiles +"/dfareporting:v3.2/dfareporting.userRolePermissionGroups.get": get_user_role_permission_group +"/dfareporting:v3.2/dfareporting.userRolePermissionGroups.get/id": id +"/dfareporting:v3.2/dfareporting.userRolePermissionGroups.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userRolePermissionGroups.list": list_user_role_permission_groups +"/dfareporting:v3.2/dfareporting.userRolePermissionGroups.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userRolePermissions.get": get_user_role_permission +"/dfareporting:v3.2/dfareporting.userRolePermissions.get/id": id +"/dfareporting:v3.2/dfareporting.userRolePermissions.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userRolePermissions.list": list_user_role_permissions +"/dfareporting:v3.2/dfareporting.userRolePermissions.list/ids": ids +"/dfareporting:v3.2/dfareporting.userRolePermissions.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userRoles.delete": delete_user_role +"/dfareporting:v3.2/dfareporting.userRoles.delete/id": id +"/dfareporting:v3.2/dfareporting.userRoles.delete/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userRoles.get": get_user_role +"/dfareporting:v3.2/dfareporting.userRoles.get/id": id +"/dfareporting:v3.2/dfareporting.userRoles.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userRoles.insert": insert_user_role +"/dfareporting:v3.2/dfareporting.userRoles.insert/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userRoles.list": list_user_roles +"/dfareporting:v3.2/dfareporting.userRoles.list/accountUserRoleOnly": account_user_role_only +"/dfareporting:v3.2/dfareporting.userRoles.list/ids": ids +"/dfareporting:v3.2/dfareporting.userRoles.list/maxResults": max_results +"/dfareporting:v3.2/dfareporting.userRoles.list/pageToken": page_token +"/dfareporting:v3.2/dfareporting.userRoles.list/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userRoles.list/searchString": search_string +"/dfareporting:v3.2/dfareporting.userRoles.list/sortField": sort_field +"/dfareporting:v3.2/dfareporting.userRoles.list/sortOrder": sort_order +"/dfareporting:v3.2/dfareporting.userRoles.list/subaccountId": subaccount_id +"/dfareporting:v3.2/dfareporting.userRoles.patch": patch_user_role +"/dfareporting:v3.2/dfareporting.userRoles.patch/id": id +"/dfareporting:v3.2/dfareporting.userRoles.patch/profileId": profile_id +"/dfareporting:v3.2/dfareporting.userRoles.update": update_user_role +"/dfareporting:v3.2/dfareporting.userRoles.update/profileId": profile_id +"/dfareporting:v3.2/dfareporting.videoFormats.get": get_video_format +"/dfareporting:v3.2/dfareporting.videoFormats.get/id": id +"/dfareporting:v3.2/dfareporting.videoFormats.get/profileId": profile_id +"/dfareporting:v3.2/dfareporting.videoFormats.list": list_video_formats +"/dfareporting:v3.2/dfareporting.videoFormats.list/profileId": profile_id +"/dfareporting:v3.2/fields": fields +"/dfareporting:v3.2/key": key +"/dfareporting:v3.2/quotaUser": quota_user +"/dfareporting:v3.2/userIp": user_ip "/dialogflow:v2/GoogleCloudDialogflowV2Agent": google_cloud_dialogflow_v2_agent "/dialogflow:v2/GoogleCloudDialogflowV2Agent/avatarUri": avatar_uri "/dialogflow:v2/GoogleCloudDialogflowV2Agent/classificationThreshold": classification_threshold @@ -50776,6 +54718,7 @@ "/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/defaultResponsePlatforms": default_response_platforms "/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/defaultResponsePlatforms/default_response_platform": default_response_platform "/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/displayName": display_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/endInteraction": end_interaction "/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/events": events "/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/events/event": event "/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/followupIntentInfo": followup_intent_info @@ -50815,6 +54758,9 @@ "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/quickReplies": quick_replies "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/simpleResponses": simple_responses "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/suggestions": suggestions +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/telephonyPlayAudio": telephony_play_audio +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/telephonySynthesizeSpeech": telephony_synthesize_speech +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/telephonyTransferCall": telephony_transfer_call "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/text": text "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCard": google_cloud_dialogflow_v2beta1_intent_message_basic_card "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCard/buttons": buttons @@ -50880,6 +54826,13 @@ "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSuggestions": google_cloud_dialogflow_v2beta1_intent_message_suggestions "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSuggestions/suggestions": suggestions "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSuggestions/suggestions/suggestion": suggestion +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio": google_cloud_dialogflow_v2beta1_intent_message_telephony_play_audio +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio/audioUri": audio_uri +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech": google_cloud_dialogflow_v2beta1_intent_message_telephony_synthesize_speech +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech/ssml": ssml +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall": google_cloud_dialogflow_v2beta1_intent_message_telephony_transfer_call +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall/phoneNumber": phone_number "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageText": google_cloud_dialogflow_v2beta1_intent_message_text "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageText/text": text "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageText/text/text": text @@ -50904,6 +54857,15 @@ "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/entityType": entity_type "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/text": text "/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/userDefined": user_defined +"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeAnswers": google_cloud_dialogflow_v2beta1_knowledge_answers +"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeAnswers/answers": answers +"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeAnswers/answers/answer": answer +"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer": google_cloud_dialogflow_v2beta1_knowledge_answers_answer +"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer/answer": answer +"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer/faqQuestion": faq_question +"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer/matchConfidence": match_confidence +"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer/matchConfidenceLevel": match_confidence_level +"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer/source": source "/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata": google_cloud_dialogflow_v2beta1_knowledge_operation_metadata "/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata/state": state "/dialogflow:v2/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest": google_cloud_dialogflow_v2beta1_original_detect_intent_request @@ -50921,22 +54883,32 @@ "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/fulfillmentText": fulfillment_text "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/intent": intent "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/intentDetectionConfidence": intent_detection_confidence +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/knowledgeAnswers": knowledge_answers "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/languageCode": language_code "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/outputContexts": output_contexts "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/outputContexts/output_context": output_context "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/parameters": parameters "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/parameters/parameter": parameter "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/queryText": query_text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/sentimentAnalysisResult": sentiment_analysis_result "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/speechRecognitionConfidence": speech_recognition_confidence "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload": webhook_payload "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload/webhook_payload": webhook_payload "/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/webhookSource": webhook_source +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Sentiment": google_cloud_dialogflow_v2beta1_sentiment +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Sentiment/magnitude": magnitude +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Sentiment/score": score +"/dialogflow:v2/GoogleCloudDialogflowV2beta1SentimentAnalysisResult": google_cloud_dialogflow_v2beta1_sentiment_analysis_result +"/dialogflow:v2/GoogleCloudDialogflowV2beta1SentimentAnalysisResult/queryTextSentiment": query_text_sentiment "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest": google_cloud_dialogflow_v2beta1_webhook_request +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/alternativeQueryResults": alternative_query_results +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/alternativeQueryResults/alternative_query_result": alternative_query_result "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/originalDetectIntentRequest": original_detect_intent_request "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/queryResult": query_result "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/responseId": response_id "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/session": session "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse": google_cloud_dialogflow_v2beta1_webhook_response +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/endInteraction": end_interaction "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/followupEventInput": followup_event_input "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/fulfillmentMessages": fulfillment_messages "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/fulfillmentMessages/fulfillment_message": fulfillment_message @@ -51439,12 +55411,26 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Context/parameters/parameter": parameter "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentRequest": google_cloud_dialogflow_v2beta1_detect_intent_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentRequest/inputAudio": input_audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentRequest/outputAudioConfig": output_audio_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentRequest/queryInput": query_input "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentRequest/queryParams": query_params "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentResponse": google_cloud_dialogflow_v2beta1_detect_intent_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentResponse/alternativeQueryResults": alternative_query_results +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentResponse/alternativeQueryResults/alternative_query_result": alternative_query_result +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentResponse/outputAudio": output_audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentResponse/outputAudioConfig": output_audio_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentResponse/queryResult": query_result "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentResponse/responseId": response_id "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentResponse/webhookStatus": webhook_status +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Document": google_cloud_dialogflow_v2beta1_document +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Document/content": content +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Document/contentUri": content_uri +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Document/displayName": display_name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Document/knowledgeTypes": knowledge_types +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Document/knowledgeTypes/knowledge_type": knowledge_type +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Document/mimeType": mime_type +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Document/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Document/rawContent": raw_content "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1EntityType": google_cloud_dialogflow_v2beta1_entity_type "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1EntityType/autoExpansionMode": auto_expansion_mode "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1EntityType/displayName": display_name @@ -51475,6 +55461,7 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig": google_cloud_dialogflow_v2beta1_input_audio_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/audioEncoding": audio_encoding "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/languageCode": language_code +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/model": model "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/phraseHints": phrase_hints "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/phraseHints/phrase_hint": phrase_hint "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/sampleRateHertz": sample_rate_hertz @@ -51483,6 +55470,7 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/defaultResponsePlatforms": default_response_platforms "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/defaultResponsePlatforms/default_response_platform": default_response_platform "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/displayName": display_name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/endInteraction": end_interaction "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/events": events "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/events/event": event "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/followupIntentInfo": followup_intent_info @@ -51525,6 +55513,9 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessage/quickReplies": quick_replies "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessage/simpleResponses": simple_responses "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessage/suggestions": suggestions +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessage/telephonyPlayAudio": telephony_play_audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessage/telephonySynthesizeSpeech": telephony_synthesize_speech +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessage/telephonyTransferCall": telephony_transfer_call "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessage/text": text "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageBasicCard": google_cloud_dialogflow_v2beta1_intent_message_basic_card "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageBasicCard/buttons": buttons @@ -51590,6 +55581,13 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageSuggestions": google_cloud_dialogflow_v2beta1_intent_message_suggestions "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageSuggestions/suggestions": suggestions "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageSuggestions/suggestions/suggestion": suggestion +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio": google_cloud_dialogflow_v2beta1_intent_message_telephony_play_audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio/audioUri": audio_uri +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech": google_cloud_dialogflow_v2beta1_intent_message_telephony_synthesize_speech +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech/ssml": ssml +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech/text": text +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall": google_cloud_dialogflow_v2beta1_intent_message_telephony_transfer_call +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall/phoneNumber": phone_number "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageText": google_cloud_dialogflow_v2beta1_intent_message_text "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageText/text": text "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentMessageText/text/text": text @@ -51614,12 +55612,28 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/entityType": entity_type "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/text": text "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/userDefined": user_defined +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeAnswers": google_cloud_dialogflow_v2beta1_knowledge_answers +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeAnswers/answers": answers +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeAnswers/answers/answer": answer +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer": google_cloud_dialogflow_v2beta1_knowledge_answers_answer +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer/answer": answer +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer/faqQuestion": faq_question +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer/matchConfidence": match_confidence +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer/matchConfidenceLevel": match_confidence_level +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer/source": source +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeBase": google_cloud_dialogflow_v2beta1_knowledge_base +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeBase/displayName": display_name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeBase/name": name "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata": google_cloud_dialogflow_v2beta1_knowledge_operation_metadata "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata/state": state "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListContextsResponse": google_cloud_dialogflow_v2beta1_list_contexts_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListContextsResponse/contexts": contexts "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListContextsResponse/contexts/context": context "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListContextsResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListDocumentsResponse": google_cloud_dialogflow_v2beta1_list_documents_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListDocumentsResponse/documents": documents +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListDocumentsResponse/documents/document": document +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListDocumentsResponse/nextPageToken": next_page_token "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListEntityTypesResponse": google_cloud_dialogflow_v2beta1_list_entity_types_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListEntityTypesResponse/entityTypes": entity_types "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListEntityTypesResponse/entityTypes/entity_type": entity_type @@ -51628,6 +55642,10 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListIntentsResponse/intents": intents "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListIntentsResponse/intents/intent": intent "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListIntentsResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse": google_cloud_dialogflow_v2beta1_list_knowledge_bases_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse/knowledgeBases": knowledge_bases +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse/knowledgeBases/knowledge_basis": knowledge_basis +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse/nextPageToken": next_page_token "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse": google_cloud_dialogflow_v2beta1_list_session_entity_types_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse/nextPageToken": next_page_token "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse/sessionEntityTypes": session_entity_types @@ -51637,6 +55655,10 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/payload/payload": payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/source": source "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/version": version +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudioConfig": google_cloud_dialogflow_v2beta1_output_audio_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudioConfig/audioEncoding": audio_encoding +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudioConfig/sampleRateHertz": sample_rate_hertz +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudioConfig/synthesizeSpeechConfig": synthesize_speech_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryInput": google_cloud_dialogflow_v2beta1_query_input "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryInput/audioConfig": audio_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryInput/event": event @@ -51645,9 +55667,12 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/contexts": contexts "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/contexts/context": context "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/geoLocation": geo_location +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/knowledgeBaseNames": knowledge_base_names +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/knowledgeBaseNames/knowledge_base_name": knowledge_base_name "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/payload": payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/payload/payload": payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/resetContexts": reset_contexts +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/sentimentAnalysisRequestConfig": sentiment_analysis_request_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/sessionEntityTypes": session_entity_types "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/sessionEntityTypes/session_entity_type": session_entity_type "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryParameters/timeZone": time_zone @@ -51661,12 +55686,14 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/fulfillmentText": fulfillment_text "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/intent": intent "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/intentDetectionConfidence": intent_detection_confidence +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/knowledgeAnswers": knowledge_answers "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/languageCode": language_code "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/outputContexts": output_contexts "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/outputContexts/output_context": output_context "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/parameters": parameters "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/parameters/parameter": parameter "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/queryText": query_text +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/sentimentAnalysisResult": sentiment_analysis_result "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/speechRecognitionConfidence": speech_recognition_confidence "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload": webhook_payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload/webhook_payload": webhook_payload @@ -51678,21 +55705,41 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SearchAgentsResponse/agents": agents "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SearchAgentsResponse/agents/agent": agent "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SearchAgentsResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Sentiment": google_cloud_dialogflow_v2beta1_sentiment +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Sentiment/magnitude": magnitude +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Sentiment/score": score +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig": google_cloud_dialogflow_v2beta1_sentiment_analysis_request_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig/analyzeQueryTextSentiment": analyze_query_text_sentiment +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SentimentAnalysisResult": google_cloud_dialogflow_v2beta1_sentiment_analysis_result +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SentimentAnalysisResult/queryTextSentiment": query_text_sentiment "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType": google_cloud_dialogflow_v2beta1_session_entity_type "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType/entities": entities "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType/entities/entity": entity "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType/entityOverrideMode": entity_override_mode "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig": google_cloud_dialogflow_v2beta1_synthesize_speech_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig/effectsProfileId": effects_profile_id +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig/effectsProfileId/effects_profile_id": effects_profile_id +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig/pitch": pitch +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig/speakingRate": speaking_rate +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig/voice": voice +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig/volumeGainDb": volume_gain_db "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1TextInput": google_cloud_dialogflow_v2beta1_text_input "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1TextInput/languageCode": language_code "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1TextInput/text": text "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1TrainAgentRequest": google_cloud_dialogflow_v2beta1_train_agent_request +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1VoiceSelectionParams": google_cloud_dialogflow_v2beta1_voice_selection_params +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1VoiceSelectionParams/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1VoiceSelectionParams/ssmlGender": ssml_gender "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookRequest": google_cloud_dialogflow_v2beta1_webhook_request +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookRequest/alternativeQueryResults": alternative_query_results +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookRequest/alternativeQueryResults/alternative_query_result": alternative_query_result "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookRequest/originalDetectIntentRequest": original_detect_intent_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookRequest/queryResult": query_result "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookRequest/responseId": response_id "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookRequest/session": session "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse": google_cloud_dialogflow_v2beta1_webhook_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/endInteraction": end_interaction "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/followupEventInput": followup_event_input "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/fulfillmentMessages": fulfillment_messages "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/fulfillmentMessages/fulfillment_message": fulfillment_message @@ -52052,6 +56099,27 @@ "/dialogflow:v2beta1/dialogflow.projects.agent.intents.patch/languageCode": language_code "/dialogflow:v2beta1/dialogflow.projects.agent.intents.patch/name": name "/dialogflow:v2beta1/dialogflow.projects.agent.intents.patch/updateMask": update_mask +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.create": create_project_agent_knowledge_basis +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.delete": delete_project_agent_knowledge_basis +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.delete/force": force +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.delete/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.create": create_project_agent_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.delete": delete_project_agent_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.delete/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.get": get_project_agent_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.list": list_project_agent_knowledge_basis_documents +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.get": get_project_agent_knowledge_basis +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.list": list_project_agent_knowledge_bases +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.list/parent": parent "/dialogflow:v2beta1/dialogflow.projects.agent.restore": restore_agent "/dialogflow:v2beta1/dialogflow.projects.agent.restore/parent": parent "/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.create": create_project_agent_runtime_session_context @@ -52122,6 +56190,27 @@ "/dialogflow:v2beta1/dialogflow.projects.agent.train/parent": parent "/dialogflow:v2beta1/dialogflow.projects.getAgent": get_project_agent "/dialogflow:v2beta1/dialogflow.projects.getAgent/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.create": create_project_knowledge_basis +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.delete": delete_project_knowledge_basis +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.delete/force": force +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.delete/name": name +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.create": create_project_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.delete": delete_project_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.delete/name": name +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.get": get_project_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.list": list_project_knowledge_basis_documents +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.get": get_project_knowledge_basis +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list": list_project_knowledge_bases +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list/parent": parent "/dialogflow:v2beta1/dialogflow.projects.operations.get": get_project_operation "/dialogflow:v2beta1/dialogflow.projects.operations.get/name": name "/dialogflow:v2beta1/fields": fields @@ -52329,6 +56418,9 @@ "/dlp:v2/GooglePrivacyDlpV2AuxiliaryTable/quasiIds/quasi_id": quasi_id "/dlp:v2/GooglePrivacyDlpV2AuxiliaryTable/relativeFrequency": relative_frequency "/dlp:v2/GooglePrivacyDlpV2AuxiliaryTable/table": table +"/dlp:v2/GooglePrivacyDlpV2BigQueryField": google_privacy_dlp_v2_big_query_field +"/dlp:v2/GooglePrivacyDlpV2BigQueryField/field": field +"/dlp:v2/GooglePrivacyDlpV2BigQueryField/table": table "/dlp:v2/GooglePrivacyDlpV2BigQueryKey": google_privacy_dlp_v2_big_query_key "/dlp:v2/GooglePrivacyDlpV2BigQueryKey/rowNumber": row_number "/dlp:v2/GooglePrivacyDlpV2BigQueryKey/tableReference": table_reference @@ -52336,6 +56428,7 @@ "/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/identifyingFields": identifying_fields "/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/identifyingFields/identifying_field": identifying_field "/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/rowsLimit": rows_limit +"/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/rowsLimitPercent": rows_limit_percent "/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/sampleMethod": sample_method "/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/tableReference": table_reference "/dlp:v2/GooglePrivacyDlpV2BigQueryTable": google_privacy_dlp_v2_big_query_table @@ -52379,8 +56472,11 @@ "/dlp:v2/GooglePrivacyDlpV2CharsToIgnore": google_privacy_dlp_v2_chars_to_ignore "/dlp:v2/GooglePrivacyDlpV2CharsToIgnore/charactersToSkip": characters_to_skip "/dlp:v2/GooglePrivacyDlpV2CharsToIgnore/commonCharactersToIgnore": common_characters_to_ignore +"/dlp:v2/GooglePrivacyDlpV2CloudStorageFileSet": google_privacy_dlp_v2_cloud_storage_file_set +"/dlp:v2/GooglePrivacyDlpV2CloudStorageFileSet/url": url "/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions": google_privacy_dlp_v2_cloud_storage_options "/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/bytesLimitPerFile": bytes_limit_per_file +"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/bytesLimitPerFilePercent": bytes_limit_per_file_percent "/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/fileSet": file_set "/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/fileTypes": file_types "/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/fileTypes/file_type": file_type @@ -52423,6 +56519,9 @@ "/dlp:v2/GooglePrivacyDlpV2CreateJobTriggerRequest": google_privacy_dlp_v2_create_job_trigger_request "/dlp:v2/GooglePrivacyDlpV2CreateJobTriggerRequest/jobTrigger": job_trigger "/dlp:v2/GooglePrivacyDlpV2CreateJobTriggerRequest/triggerId": trigger_id +"/dlp:v2/GooglePrivacyDlpV2CreateStoredInfoTypeRequest": google_privacy_dlp_v2_create_stored_info_type_request +"/dlp:v2/GooglePrivacyDlpV2CreateStoredInfoTypeRequest/config": config +"/dlp:v2/GooglePrivacyDlpV2CreateStoredInfoTypeRequest/storedInfoTypeId": stored_info_type_id "/dlp:v2/GooglePrivacyDlpV2CryptoHashConfig": google_privacy_dlp_v2_crypto_hash_config "/dlp:v2/GooglePrivacyDlpV2CryptoHashConfig/cryptoKey": crypto_key "/dlp:v2/GooglePrivacyDlpV2CryptoKey": google_privacy_dlp_v2_crypto_key @@ -52443,6 +56542,7 @@ "/dlp:v2/GooglePrivacyDlpV2CustomInfoType/infoType": info_type "/dlp:v2/GooglePrivacyDlpV2CustomInfoType/likelihood": likelihood "/dlp:v2/GooglePrivacyDlpV2CustomInfoType/regex": regex +"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/storedType": stored_type "/dlp:v2/GooglePrivacyDlpV2CustomInfoType/surrogateType": surrogate_type "/dlp:v2/GooglePrivacyDlpV2DatastoreKey": google_privacy_dlp_v2_datastore_key "/dlp:v2/GooglePrivacyDlpV2DatastoreKey/entityKey": entity_key @@ -52701,6 +56801,10 @@ "/dlp:v2/GooglePrivacyDlpV2LDiversityResult": google_privacy_dlp_v2_l_diversity_result "/dlp:v2/GooglePrivacyDlpV2LDiversityResult/sensitiveValueFrequencyHistogramBuckets": sensitive_value_frequency_histogram_buckets "/dlp:v2/GooglePrivacyDlpV2LDiversityResult/sensitiveValueFrequencyHistogramBuckets/sensitive_value_frequency_histogram_bucket": sensitive_value_frequency_histogram_bucket +"/dlp:v2/GooglePrivacyDlpV2LargeCustomDictionaryConfig": google_privacy_dlp_v2_large_custom_dictionary_config +"/dlp:v2/GooglePrivacyDlpV2LargeCustomDictionaryConfig/bigQueryField": big_query_field +"/dlp:v2/GooglePrivacyDlpV2LargeCustomDictionaryConfig/cloudStorageFileSet": cloud_storage_file_set +"/dlp:v2/GooglePrivacyDlpV2LargeCustomDictionaryConfig/outputPath": output_path "/dlp:v2/GooglePrivacyDlpV2LikelihoodAdjustment": google_privacy_dlp_v2_likelihood_adjustment "/dlp:v2/GooglePrivacyDlpV2LikelihoodAdjustment/fixedLikelihood": fixed_likelihood "/dlp:v2/GooglePrivacyDlpV2LikelihoodAdjustment/relativeLikelihood": relative_likelihood @@ -52723,6 +56827,10 @@ "/dlp:v2/GooglePrivacyDlpV2ListJobTriggersResponse/jobTriggers": job_triggers "/dlp:v2/GooglePrivacyDlpV2ListJobTriggersResponse/jobTriggers/job_trigger": job_trigger "/dlp:v2/GooglePrivacyDlpV2ListJobTriggersResponse/nextPageToken": next_page_token +"/dlp:v2/GooglePrivacyDlpV2ListStoredInfoTypesResponse": google_privacy_dlp_v2_list_stored_info_types_response +"/dlp:v2/GooglePrivacyDlpV2ListStoredInfoTypesResponse/nextPageToken": next_page_token +"/dlp:v2/GooglePrivacyDlpV2ListStoredInfoTypesResponse/storedInfoTypes": stored_info_types +"/dlp:v2/GooglePrivacyDlpV2ListStoredInfoTypesResponse/storedInfoTypes/stored_info_type": stored_info_type "/dlp:v2/GooglePrivacyDlpV2Location": google_privacy_dlp_v2_location "/dlp:v2/GooglePrivacyDlpV2Location/byteRange": byte_range "/dlp:v2/GooglePrivacyDlpV2Location/codepointRange": codepoint_range @@ -52856,6 +56964,24 @@ "/dlp:v2/GooglePrivacyDlpV2StorageConfig/cloudStorageOptions": cloud_storage_options "/dlp:v2/GooglePrivacyDlpV2StorageConfig/datastoreOptions": datastore_options "/dlp:v2/GooglePrivacyDlpV2StorageConfig/timespanConfig": timespan_config +"/dlp:v2/GooglePrivacyDlpV2StoredInfoType": google_privacy_dlp_v2_stored_info_type +"/dlp:v2/GooglePrivacyDlpV2StoredInfoType/currentVersion": current_version +"/dlp:v2/GooglePrivacyDlpV2StoredInfoType/name": name +"/dlp:v2/GooglePrivacyDlpV2StoredInfoType/pendingVersions": pending_versions +"/dlp:v2/GooglePrivacyDlpV2StoredInfoType/pendingVersions/pending_version": pending_version +"/dlp:v2/GooglePrivacyDlpV2StoredInfoTypeConfig": google_privacy_dlp_v2_stored_info_type_config +"/dlp:v2/GooglePrivacyDlpV2StoredInfoTypeConfig/description": description +"/dlp:v2/GooglePrivacyDlpV2StoredInfoTypeConfig/displayName": display_name +"/dlp:v2/GooglePrivacyDlpV2StoredInfoTypeConfig/largeCustomDictionary": large_custom_dictionary +"/dlp:v2/GooglePrivacyDlpV2StoredInfoTypeVersion": google_privacy_dlp_v2_stored_info_type_version +"/dlp:v2/GooglePrivacyDlpV2StoredInfoTypeVersion/config": config +"/dlp:v2/GooglePrivacyDlpV2StoredInfoTypeVersion/createTime": create_time +"/dlp:v2/GooglePrivacyDlpV2StoredInfoTypeVersion/errors": errors +"/dlp:v2/GooglePrivacyDlpV2StoredInfoTypeVersion/errors/error": error +"/dlp:v2/GooglePrivacyDlpV2StoredInfoTypeVersion/state": state +"/dlp:v2/GooglePrivacyDlpV2StoredType": google_privacy_dlp_v2_stored_type +"/dlp:v2/GooglePrivacyDlpV2StoredType/createTime": create_time +"/dlp:v2/GooglePrivacyDlpV2StoredType/name": name "/dlp:v2/GooglePrivacyDlpV2SummaryResult": google_privacy_dlp_v2_summary_result "/dlp:v2/GooglePrivacyDlpV2SummaryResult/code": code "/dlp:v2/GooglePrivacyDlpV2SummaryResult/count": count @@ -52911,6 +57037,9 @@ "/dlp:v2/GooglePrivacyDlpV2UpdateJobTriggerRequest": google_privacy_dlp_v2_update_job_trigger_request "/dlp:v2/GooglePrivacyDlpV2UpdateJobTriggerRequest/jobTrigger": job_trigger "/dlp:v2/GooglePrivacyDlpV2UpdateJobTriggerRequest/updateMask": update_mask +"/dlp:v2/GooglePrivacyDlpV2UpdateStoredInfoTypeRequest": google_privacy_dlp_v2_update_stored_info_type_request +"/dlp:v2/GooglePrivacyDlpV2UpdateStoredInfoTypeRequest/config": config +"/dlp:v2/GooglePrivacyDlpV2UpdateStoredInfoTypeRequest/updateMask": update_mask "/dlp:v2/GooglePrivacyDlpV2Value": google_privacy_dlp_v2_value "/dlp:v2/GooglePrivacyDlpV2Value/booleanValue": boolean_value "/dlp:v2/GooglePrivacyDlpV2Value/dateValue": date_value @@ -53163,6 +57292,18 @@ "/dlp:v2/dlp.organizations.inspectTemplates.list/parent": parent "/dlp:v2/dlp.organizations.inspectTemplates.patch": patch_organization_inspect_template "/dlp:v2/dlp.organizations.inspectTemplates.patch/name": name +"/dlp:v2/dlp.organizations.storedInfoTypes.create": create_organization_stored_info_type +"/dlp:v2/dlp.organizations.storedInfoTypes.create/parent": parent +"/dlp:v2/dlp.organizations.storedInfoTypes.delete": delete_organization_stored_info_type +"/dlp:v2/dlp.organizations.storedInfoTypes.delete/name": name +"/dlp:v2/dlp.organizations.storedInfoTypes.get": get_organization_stored_info_type +"/dlp:v2/dlp.organizations.storedInfoTypes.get/name": name +"/dlp:v2/dlp.organizations.storedInfoTypes.list": list_organization_stored_info_types +"/dlp:v2/dlp.organizations.storedInfoTypes.list/pageSize": page_size +"/dlp:v2/dlp.organizations.storedInfoTypes.list/pageToken": page_token +"/dlp:v2/dlp.organizations.storedInfoTypes.list/parent": parent +"/dlp:v2/dlp.organizations.storedInfoTypes.patch": patch_organization_stored_info_type +"/dlp:v2/dlp.organizations.storedInfoTypes.patch/name": name "/dlp:v2/dlp.projects.content.deidentify": deidentify_project_content "/dlp:v2/dlp.projects.content.deidentify/parent": parent "/dlp:v2/dlp.projects.content.inspect": inspect_project_content @@ -53222,6 +57363,18 @@ "/dlp:v2/dlp.projects.jobTriggers.list/parent": parent "/dlp:v2/dlp.projects.jobTriggers.patch": patch_project_job_trigger "/dlp:v2/dlp.projects.jobTriggers.patch/name": name +"/dlp:v2/dlp.projects.storedInfoTypes.create": create_project_stored_info_type +"/dlp:v2/dlp.projects.storedInfoTypes.create/parent": parent +"/dlp:v2/dlp.projects.storedInfoTypes.delete": delete_project_stored_info_type +"/dlp:v2/dlp.projects.storedInfoTypes.delete/name": name +"/dlp:v2/dlp.projects.storedInfoTypes.get": get_project_stored_info_type +"/dlp:v2/dlp.projects.storedInfoTypes.get/name": name +"/dlp:v2/dlp.projects.storedInfoTypes.list": list_project_stored_info_types +"/dlp:v2/dlp.projects.storedInfoTypes.list/pageSize": page_size +"/dlp:v2/dlp.projects.storedInfoTypes.list/pageToken": page_token +"/dlp:v2/dlp.projects.storedInfoTypes.list/parent": parent +"/dlp:v2/dlp.projects.storedInfoTypes.patch": patch_project_stored_info_type +"/dlp:v2/dlp.projects.storedInfoTypes.patch/name": name "/dlp:v2/fields": fields "/dlp:v2/key": key "/dlp:v2/quotaUser": quota_user @@ -57017,6 +61170,59 @@ "/firebaserules:v1/firebaserules.projects.test/name": name "/firebaserules:v1/key": key "/firebaserules:v1/quotaUser": quota_user +"/firestore:v1/Empty": empty +"/firestore:v1/GoogleLongrunningCancelOperationRequest": google_longrunning_cancel_operation_request +"/firestore:v1/GoogleLongrunningListOperationsResponse": google_longrunning_list_operations_response +"/firestore:v1/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token +"/firestore:v1/GoogleLongrunningListOperationsResponse/operations": operations +"/firestore:v1/GoogleLongrunningListOperationsResponse/operations/operation": operation +"/firestore:v1/GoogleLongrunningOperation": google_longrunning_operation +"/firestore:v1/GoogleLongrunningOperation/done": done +"/firestore:v1/GoogleLongrunningOperation/error": error +"/firestore:v1/GoogleLongrunningOperation/metadata": metadata +"/firestore:v1/GoogleLongrunningOperation/metadata/metadatum": metadatum +"/firestore:v1/GoogleLongrunningOperation/name": name +"/firestore:v1/GoogleLongrunningOperation/response": response +"/firestore:v1/GoogleLongrunningOperation/response/response": response +"/firestore:v1/ListLocationsResponse": list_locations_response +"/firestore:v1/ListLocationsResponse/locations": locations +"/firestore:v1/ListLocationsResponse/locations/location": location +"/firestore:v1/ListLocationsResponse/nextPageToken": next_page_token +"/firestore:v1/Location": location +"/firestore:v1/Location/displayName": display_name +"/firestore:v1/Location/labels": labels +"/firestore:v1/Location/labels/label": label +"/firestore:v1/Location/locationId": location_id +"/firestore:v1/Location/metadata": metadata +"/firestore:v1/Location/metadata/metadatum": metadatum +"/firestore:v1/Location/name": name +"/firestore:v1/Status": status +"/firestore:v1/Status/code": code +"/firestore:v1/Status/details": details +"/firestore:v1/Status/details/detail": detail +"/firestore:v1/Status/details/detail/detail": detail +"/firestore:v1/Status/message": message +"/firestore:v1/fields": fields +"/firestore:v1/firestore.projects.databases.operations.cancel": cancel_project_database_operation +"/firestore:v1/firestore.projects.databases.operations.cancel/name": name +"/firestore:v1/firestore.projects.databases.operations.delete": delete_project_database_operation +"/firestore:v1/firestore.projects.databases.operations.delete/name": name +"/firestore:v1/firestore.projects.databases.operations.get": get_project_database_operation +"/firestore:v1/firestore.projects.databases.operations.get/name": name +"/firestore:v1/firestore.projects.databases.operations.list": list_project_database_operations +"/firestore:v1/firestore.projects.databases.operations.list/filter": filter +"/firestore:v1/firestore.projects.databases.operations.list/name": name +"/firestore:v1/firestore.projects.databases.operations.list/pageSize": page_size +"/firestore:v1/firestore.projects.databases.operations.list/pageToken": page_token +"/firestore:v1/firestore.projects.locations.get": get_project_location +"/firestore:v1/firestore.projects.locations.get/name": name +"/firestore:v1/firestore.projects.locations.list": list_project_locations +"/firestore:v1/firestore.projects.locations.list/filter": filter +"/firestore:v1/firestore.projects.locations.list/name": name +"/firestore:v1/firestore.projects.locations.list/pageSize": page_size +"/firestore:v1/firestore.projects.locations.list/pageToken": page_token +"/firestore:v1/key": key +"/firestore:v1/quotaUser": quota_user "/firestore:v1beta1/ArrayValue": array_value "/firestore:v1beta1/ArrayValue/values": values "/firestore:v1beta1/ArrayValue/values/value": value @@ -57106,6 +61312,34 @@ "/firestore:v1beta1/Filter/compositeFilter": composite_filter "/firestore:v1beta1/Filter/fieldFilter": field_filter "/firestore:v1beta1/Filter/unaryFilter": unary_filter +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsMetadata": google_firestore_admin_v1beta1_export_documents_metadata +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsMetadata/collectionIds": collection_ids +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsMetadata/collectionIds/collection_id": collection_id +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsMetadata/endTime": end_time +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsMetadata/operationState": operation_state +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsMetadata/outputUriPrefix": output_uri_prefix +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsMetadata/progressBytes": progress_bytes +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsMetadata/progressDocuments": progress_documents +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsMetadata/startTime": start_time +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsRequest": google_firestore_admin_v1beta1_export_documents_request +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsRequest/collectionIds": collection_ids +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsRequest/collectionIds/collection_id": collection_id +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsRequest/outputUriPrefix": output_uri_prefix +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsResponse": google_firestore_admin_v1beta1_export_documents_response +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ExportDocumentsResponse/outputUriPrefix": output_uri_prefix +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsMetadata": google_firestore_admin_v1beta1_import_documents_metadata +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsMetadata/collectionIds": collection_ids +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsMetadata/collectionIds/collection_id": collection_id +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsMetadata/endTime": end_time +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsMetadata/inputUriPrefix": input_uri_prefix +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsMetadata/operationState": operation_state +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsMetadata/progressBytes": progress_bytes +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsMetadata/progressDocuments": progress_documents +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsMetadata/startTime": start_time +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsRequest": google_firestore_admin_v1beta1_import_documents_request +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsRequest/collectionIds": collection_ids +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsRequest/collectionIds/collection_id": collection_id +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ImportDocumentsRequest/inputUriPrefix": input_uri_prefix "/firestore:v1beta1/GoogleFirestoreAdminV1beta1Index": google_firestore_admin_v1beta1_index "/firestore:v1beta1/GoogleFirestoreAdminV1beta1Index/collectionId": collection_id "/firestore:v1beta1/GoogleFirestoreAdminV1beta1Index/fields": fields @@ -57115,10 +61349,21 @@ "/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexField": google_firestore_admin_v1beta1_index_field "/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexField/fieldPath": field_path "/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexField/mode": mode +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexOperationMetadata": google_firestore_admin_v1beta1_index_operation_metadata +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexOperationMetadata/cancelled": cancelled +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexOperationMetadata/documentProgress": document_progress +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexOperationMetadata/endTime": end_time +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexOperationMetadata/index": index +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexOperationMetadata/operationType": operation_type +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexOperationMetadata/startTime": start_time "/firestore:v1beta1/GoogleFirestoreAdminV1beta1ListIndexesResponse": google_firestore_admin_v1beta1_list_indexes_response "/firestore:v1beta1/GoogleFirestoreAdminV1beta1ListIndexesResponse/indexes": indexes "/firestore:v1beta1/GoogleFirestoreAdminV1beta1ListIndexesResponse/indexes/index": index "/firestore:v1beta1/GoogleFirestoreAdminV1beta1ListIndexesResponse/nextPageToken": next_page_token +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1LocationMetadata": google_firestore_admin_v1beta1_location_metadata +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1Progress": google_firestore_admin_v1beta1_progress +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1Progress/workCompleted": work_completed +"/firestore:v1beta1/GoogleFirestoreAdminV1beta1Progress/workEstimated": work_estimated "/firestore:v1beta1/GoogleLongrunningOperation": google_longrunning_operation "/firestore:v1beta1/GoogleLongrunningOperation/done": done "/firestore:v1beta1/GoogleLongrunningOperation/error": error @@ -57335,6 +61580,10 @@ "/firestore:v1beta1/firestore.projects.databases.documents.runQuery/parent": parent "/firestore:v1beta1/firestore.projects.databases.documents.write": write_document "/firestore:v1beta1/firestore.projects.databases.documents.write/database": database +"/firestore:v1beta1/firestore.projects.databases.exportDocuments": export_project_database_documents +"/firestore:v1beta1/firestore.projects.databases.exportDocuments/name": name +"/firestore:v1beta1/firestore.projects.databases.importDocuments": import_project_database_documents +"/firestore:v1beta1/firestore.projects.databases.importDocuments/name": name "/firestore:v1beta1/firestore.projects.databases.indexes.create": create_project_database_index "/firestore:v1beta1/firestore.projects.databases.indexes.create/parent": parent "/firestore:v1beta1/firestore.projects.databases.indexes.delete": delete_project_database_index @@ -57348,6 +61597,71 @@ "/firestore:v1beta1/firestore.projects.databases.indexes.list/parent": parent "/firestore:v1beta1/key": key "/firestore:v1beta1/quotaUser": quota_user +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Field": google_firestore_admin_v1beta2_field +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Field/indexConfig": index_config +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Field/name": name +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata": google_firestore_admin_v1beta2_field_operation_metadata +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/bytesProgress": bytes_progress +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/documentProgress": document_progress +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/endTime": end_time +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/field": field +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/indexConfigDeltas": index_config_deltas +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/indexConfigDeltas/index_config_delta": index_config_delta +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/startTime": start_time +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/state": state +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Index": google_firestore_admin_v1beta2_index +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Index/fields": fields +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Index/fields/field": field +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Index/name": name +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Index/queryScope": query_scope +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Index/state": state +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexConfig": google_firestore_admin_v1beta2_index_config +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexConfig/ancestorField": ancestor_field +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexConfig/indexes": indexes +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexConfig/indexes/index": index +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexConfig/reverting": reverting +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexConfig/usesAncestorConfig": uses_ancestor_config +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexConfigDelta": google_firestore_admin_v1beta2_index_config_delta +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexConfigDelta/changeType": change_type +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexConfigDelta/index": index +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexField": google_firestore_admin_v1beta2_index_field +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexField/arrayConfig": array_config +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexField/fieldPath": field_path +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2IndexField/order": order +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ListFieldsResponse": google_firestore_admin_v1beta2_list_fields_response +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ListFieldsResponse/fields": fields +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ListFieldsResponse/fields/field": field +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ListFieldsResponse/nextPageToken": next_page_token +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Progress": google_firestore_admin_v1beta2_progress +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Progress/completedWork": completed_work +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2Progress/estimatedWork": estimated_work +"/firestore:v1beta2/GoogleLongrunningOperation": google_longrunning_operation +"/firestore:v1beta2/GoogleLongrunningOperation/done": done +"/firestore:v1beta2/GoogleLongrunningOperation/error": error +"/firestore:v1beta2/GoogleLongrunningOperation/metadata": metadata +"/firestore:v1beta2/GoogleLongrunningOperation/metadata/metadatum": metadatum +"/firestore:v1beta2/GoogleLongrunningOperation/name": name +"/firestore:v1beta2/GoogleLongrunningOperation/response": response +"/firestore:v1beta2/GoogleLongrunningOperation/response/response": response +"/firestore:v1beta2/Status": status +"/firestore:v1beta2/Status/code": code +"/firestore:v1beta2/Status/details": details +"/firestore:v1beta2/Status/details/detail": detail +"/firestore:v1beta2/Status/details/detail/detail": detail +"/firestore:v1beta2/Status/message": message +"/firestore:v1beta2/fields": fields +"/firestore:v1beta2/firestore.projects.databases.collectionGroups.fields.get": get_project_database_collection_group_field +"/firestore:v1beta2/firestore.projects.databases.collectionGroups.fields.get/name": name +"/firestore:v1beta2/firestore.projects.databases.collectionGroups.fields.list": list_project_database_collection_group_fields +"/firestore:v1beta2/firestore.projects.databases.collectionGroups.fields.list/filter": filter +"/firestore:v1beta2/firestore.projects.databases.collectionGroups.fields.list/pageSize": page_size +"/firestore:v1beta2/firestore.projects.databases.collectionGroups.fields.list/pageToken": page_token +"/firestore:v1beta2/firestore.projects.databases.collectionGroups.fields.list/parent": parent +"/firestore:v1beta2/firestore.projects.databases.collectionGroups.fields.patch": patch_project_database_collection_group_field +"/firestore:v1beta2/firestore.projects.databases.collectionGroups.fields.patch/name": name +"/firestore:v1beta2/firestore.projects.databases.collectionGroups.fields.patch/updateMask": update_mask +"/firestore:v1beta2/key": key +"/firestore:v1beta2/quotaUser": quota_user "/fitness:v1/AggregateBucket": aggregate_bucket "/fitness:v1/AggregateBucket/activity": activity "/fitness:v1/AggregateBucket/dataset": dataset @@ -59156,6 +63470,7 @@ "/genomics:v1/BatchCreateAnnotationsResponse/entries": entries "/genomics:v1/BatchCreateAnnotationsResponse/entries/entry": entry "/genomics:v1/Binding": binding +"/genomics:v1/Binding/condition": condition "/genomics:v1/Binding/members": members "/genomics:v1/Binding/members/member": member "/genomics:v1/Binding/role": role @@ -59190,6 +63505,8 @@ "/genomics:v1/ComputeEngine/instanceName": instance_name "/genomics:v1/ComputeEngine/machineType": machine_type "/genomics:v1/ComputeEngine/zone": zone +"/genomics:v1/ContainerKilledEvent": container_killed_event +"/genomics:v1/ContainerKilledEvent/actionId": action_id "/genomics:v1/ContainerStartedEvent": container_started_event "/genomics:v1/ContainerStartedEvent/actionId": action_id "/genomics:v1/ContainerStartedEvent/ipAddress": ip_address @@ -59241,6 +63558,11 @@ "/genomics:v1/ExportVariantSetRequest/callSetIds/call_set_id": call_set_id "/genomics:v1/ExportVariantSetRequest/format": format "/genomics:v1/ExportVariantSetRequest/projectId": project_id +"/genomics:v1/Expr": expr +"/genomics:v1/Expr/description": description +"/genomics:v1/Expr/expression": expression +"/genomics:v1/Expr/location": location +"/genomics:v1/Expr/title": title "/genomics:v1/ExternalId": external_id "/genomics:v1/ExternalId/id": id "/genomics:v1/ExternalId/sourceName": source_name @@ -59741,6 +64063,8 @@ "/genomics:v1alpha2/ComputeEngine/instanceName": instance_name "/genomics:v1alpha2/ComputeEngine/machineType": machine_type "/genomics:v1alpha2/ComputeEngine/zone": zone +"/genomics:v1alpha2/ContainerKilledEvent": container_killed_event +"/genomics:v1alpha2/ContainerKilledEvent/actionId": action_id "/genomics:v1alpha2/ContainerStartedEvent": container_started_event "/genomics:v1alpha2/ContainerStartedEvent/actionId": action_id "/genomics:v1alpha2/ContainerStartedEvent/ipAddress": ip_address @@ -59983,12 +64307,14 @@ "/genomics:v2alpha1/Action/pidNamespace": pid_namespace "/genomics:v2alpha1/Action/portMappings": port_mappings "/genomics:v2alpha1/Action/portMappings/port_mapping": port_mapping +"/genomics:v2alpha1/Action/timeout": timeout "/genomics:v2alpha1/CancelOperationRequest": cancel_operation_request "/genomics:v2alpha1/CheckInRequest": check_in_request "/genomics:v2alpha1/CheckInRequest/deadlineExpired": deadline_expired "/genomics:v2alpha1/CheckInRequest/event": event "/genomics:v2alpha1/CheckInRequest/event/event": event "/genomics:v2alpha1/CheckInRequest/result": result +"/genomics:v2alpha1/CheckInRequest/workerStatus": worker_status "/genomics:v2alpha1/CheckInResponse": check_in_response "/genomics:v2alpha1/CheckInResponse/deadline": deadline "/genomics:v2alpha1/CheckInResponse/metadata": metadata @@ -59999,6 +64325,8 @@ "/genomics:v2alpha1/ComputeEngine/instanceName": instance_name "/genomics:v2alpha1/ComputeEngine/machineType": machine_type "/genomics:v2alpha1/ComputeEngine/zone": zone +"/genomics:v2alpha1/ContainerKilledEvent": container_killed_event +"/genomics:v2alpha1/ContainerKilledEvent/actionId": action_id "/genomics:v2alpha1/ContainerStartedEvent": container_started_event "/genomics:v2alpha1/ContainerStartedEvent/actionId": action_id "/genomics:v2alpha1/ContainerStartedEvent/ipAddress": ip_address @@ -60017,6 +64345,9 @@ "/genomics:v2alpha1/Disk/sizeGb": size_gb "/genomics:v2alpha1/Disk/sourceImage": source_image "/genomics:v2alpha1/Disk/type": type +"/genomics:v2alpha1/DiskStatus": disk_status +"/genomics:v2alpha1/DiskStatus/freeSpaceBytes": free_space_bytes +"/genomics:v2alpha1/DiskStatus/totalSpaceBytes": total_space_bytes "/genomics:v2alpha1/Empty": empty "/genomics:v2alpha1/Event": event "/genomics:v2alpha1/Event/description": description @@ -60085,6 +64416,7 @@ "/genomics:v2alpha1/Pipeline/environment": environment "/genomics:v2alpha1/Pipeline/environment/environment": environment "/genomics:v2alpha1/Pipeline/resources": resources +"/genomics:v2alpha1/Pipeline/timeout": timeout "/genomics:v2alpha1/PullStartedEvent": pull_started_event "/genomics:v2alpha1/PullStartedEvent/imageUri": image_uri "/genomics:v2alpha1/PullStoppedEvent": pull_stopped_event @@ -60139,6 +64471,13 @@ "/genomics:v2alpha1/WorkerReleasedEvent": worker_released_event "/genomics:v2alpha1/WorkerReleasedEvent/instance": instance "/genomics:v2alpha1/WorkerReleasedEvent/zone": zone +"/genomics:v2alpha1/WorkerStatus": worker_status +"/genomics:v2alpha1/WorkerStatus/attachedDisks": attached_disks +"/genomics:v2alpha1/WorkerStatus/attachedDisks/attached_disk": attached_disk +"/genomics:v2alpha1/WorkerStatus/bootDisk": boot_disk +"/genomics:v2alpha1/WorkerStatus/freeRamBytes": free_ram_bytes +"/genomics:v2alpha1/WorkerStatus/totalRamBytes": total_ram_bytes +"/genomics:v2alpha1/WorkerStatus/uptimeSeconds": uptime_seconds "/genomics:v2alpha1/fields": fields "/genomics:v2alpha1/genomics.pipelines.run": run_pipeline "/genomics:v2alpha1/genomics.projects.operations.cancel": cancel_operation @@ -60635,6 +64974,7 @@ "/iam:v1/AuditableService": auditable_service "/iam:v1/AuditableService/name": name "/iam:v1/Binding": binding +"/iam:v1/Binding/condition": condition "/iam:v1/Binding/members": members "/iam:v1/Binding/members/member": member "/iam:v1/Binding/role": role @@ -60659,6 +64999,24 @@ "/iam:v1/Expr/expression": expression "/iam:v1/Expr/location": location "/iam:v1/Expr/title": title +"/iam:v1/LintPolicyRequest": lint_policy_request +"/iam:v1/LintPolicyRequest/binding": binding +"/iam:v1/LintPolicyRequest/condition": condition +"/iam:v1/LintPolicyRequest/context": context +"/iam:v1/LintPolicyRequest/context/context": context +"/iam:v1/LintPolicyRequest/fullResourceName": full_resource_name +"/iam:v1/LintPolicyRequest/policy": policy +"/iam:v1/LintPolicyResponse": lint_policy_response +"/iam:v1/LintPolicyResponse/lintResults": lint_results +"/iam:v1/LintPolicyResponse/lintResults/lint_result": lint_result +"/iam:v1/LintResult": lint_result +"/iam:v1/LintResult/bindingOrdinal": binding_ordinal +"/iam:v1/LintResult/debugMessage": debug_message +"/iam:v1/LintResult/fieldName": field_name +"/iam:v1/LintResult/level": level +"/iam:v1/LintResult/locationOffset": location_offset +"/iam:v1/LintResult/severity": severity +"/iam:v1/LintResult/validationUnitName": validation_unit_name "/iam:v1/ListRolesResponse": list_roles_response "/iam:v1/ListRolesResponse/nextPageToken": next_page_token "/iam:v1/ListRolesResponse/roles": roles @@ -60757,6 +65115,7 @@ "/iam:v1/UndeleteRoleRequest": undelete_role_request "/iam:v1/UndeleteRoleRequest/etag": etag "/iam:v1/fields": fields +"/iam:v1/iam.iamPolicies.lintPolicy": lint_iam_policy_policy "/iam:v1/iam.iamPolicies.queryAuditableServices": query_iam_policy_auditable_services "/iam:v1/iam.organizations.roles.create": create_organization_role "/iam:v1/iam.organizations.roles.create/parent": parent @@ -60879,6 +65238,62 @@ "/iamcredentials:v1/iamcredentials.projects.serviceAccounts.signJwt/name": name "/iamcredentials:v1/key": key "/iamcredentials:v1/quotaUser": quota_user +"/iap:v1beta1/AuditConfig": audit_config +"/iap:v1beta1/AuditConfig/auditLogConfigs": audit_log_configs +"/iap:v1beta1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config +"/iap:v1beta1/AuditConfig/service": service +"/iap:v1beta1/AuditLogConfig": audit_log_config +"/iap:v1beta1/AuditLogConfig/exemptedMembers": exempted_members +"/iap:v1beta1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member +"/iap:v1beta1/AuditLogConfig/logType": log_type +"/iap:v1beta1/Binding": binding +"/iap:v1beta1/Binding/condition": condition +"/iap:v1beta1/Binding/members": members +"/iap:v1beta1/Binding/members/member": member +"/iap:v1beta1/Binding/role": role +"/iap:v1beta1/Expr": expr +"/iap:v1beta1/Expr/description": description +"/iap:v1beta1/Expr/expression": expression +"/iap:v1beta1/Expr/location": location +"/iap:v1beta1/Expr/title": title +"/iap:v1beta1/GetIamPolicyRequest": get_iam_policy_request +"/iap:v1beta1/Policy": policy +"/iap:v1beta1/Policy/auditConfigs": audit_configs +"/iap:v1beta1/Policy/auditConfigs/audit_config": audit_config +"/iap:v1beta1/Policy/bindings": bindings +"/iap:v1beta1/Policy/bindings/binding": binding +"/iap:v1beta1/Policy/etag": etag +"/iap:v1beta1/Policy/version": version +"/iap:v1beta1/SetIamPolicyRequest": set_iam_policy_request +"/iap:v1beta1/SetIamPolicyRequest/policy": policy +"/iap:v1beta1/SetIamPolicyRequest/updateMask": update_mask +"/iap:v1beta1/TestIamPermissionsRequest": test_iam_permissions_request +"/iap:v1beta1/TestIamPermissionsRequest/permissions": permissions +"/iap:v1beta1/TestIamPermissionsRequest/permissions/permission": permission +"/iap:v1beta1/TestIamPermissionsResponse": test_iam_permissions_response +"/iap:v1beta1/TestIamPermissionsResponse/permissions": permissions +"/iap:v1beta1/TestIamPermissionsResponse/permissions/permission": permission +"/iap:v1beta1/fields": fields +"/iap:v1beta1/iap.projects.iap_web.getIamPolicy": get_iap_web_iam_policy +"/iap:v1beta1/iap.projects.iap_web.getIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_web.services.getIamPolicy": get_service_iam_policy +"/iap:v1beta1/iap.projects.iap_web.services.getIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_web.services.setIamPolicy": set_service_iam_policy +"/iap:v1beta1/iap.projects.iap_web.services.setIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_web.services.testIamPermissions": test_service_iam_permissions +"/iap:v1beta1/iap.projects.iap_web.services.testIamPermissions/resource": resource +"/iap:v1beta1/iap.projects.iap_web.services.versions.getIamPolicy": get_version_iam_policy +"/iap:v1beta1/iap.projects.iap_web.services.versions.getIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_web.services.versions.setIamPolicy": set_version_iam_policy +"/iap:v1beta1/iap.projects.iap_web.services.versions.setIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_web.services.versions.testIamPermissions": test_version_iam_permissions +"/iap:v1beta1/iap.projects.iap_web.services.versions.testIamPermissions/resource": resource +"/iap:v1beta1/iap.projects.iap_web.setIamPolicy": set_iap_web_iam_policy +"/iap:v1beta1/iap.projects.iap_web.setIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_web.testIamPermissions": test_iap_web_iam_permissions +"/iap:v1beta1/iap.projects.iap_web.testIamPermissions/resource": resource +"/iap:v1beta1/key": key +"/iap:v1beta1/quotaUser": quota_user "/identitytoolkit:v3/CreateAuthUriResponse": create_auth_uri_response "/identitytoolkit:v3/CreateAuthUriResponse/allProviders": all_providers "/identitytoolkit:v3/CreateAuthUriResponse/allProviders/all_provider": all_provider @@ -61402,6 +65817,7 @@ "/jobs:v2/CreateJobRequest": create_job_request "/jobs:v2/CreateJobRequest/disableStreetAddressResolution": disable_street_address_resolution "/jobs:v2/CreateJobRequest/job": job +"/jobs:v2/CreateJobRequest/processingOptions": processing_options "/jobs:v2/CustomAttribute": custom_attribute "/jobs:v2/CustomAttribute/filterable": filterable "/jobs:v2/CustomAttribute/longValue": long_value @@ -61570,6 +65986,9 @@ "/jobs:v2/JobLocation/locationType": location_type "/jobs:v2/JobLocation/postalAddress": postal_address "/jobs:v2/JobLocation/radiusMeters": radius_meters +"/jobs:v2/JobProcessingOptions": job_processing_options +"/jobs:v2/JobProcessingOptions/disableStreetAddressResolution": disable_street_address_resolution +"/jobs:v2/JobProcessingOptions/htmlSanitization": html_sanitization "/jobs:v2/JobQuery": job_query "/jobs:v2/JobQuery/categories": categories "/jobs:v2/JobQuery/categories/category": category @@ -61696,6 +66115,7 @@ "/jobs:v2/UpdateJobRequest": update_job_request "/jobs:v2/UpdateJobRequest/disableStreetAddressResolution": disable_street_address_resolution "/jobs:v2/UpdateJobRequest/job": job +"/jobs:v2/UpdateJobRequest/processingOptions": processing_options "/jobs:v2/UpdateJobRequest/updateJobFields": update_job_fields "/jobs:v2/fields": fields "/jobs:v2/jobs.companies.create": create_company @@ -62362,6 +66782,7 @@ "/logging:v2/RequestLog/taskName": task_name "/logging:v2/RequestLog/taskQueueName": task_queue_name "/logging:v2/RequestLog/traceId": trace_id +"/logging:v2/RequestLog/traceSampled": trace_sampled "/logging:v2/RequestLog/urlMapEntry": url_map_entry "/logging:v2/RequestLog/userAgent": user_agent "/logging:v2/RequestLog/versionId": version_id @@ -62770,6 +67191,7 @@ "/logging:v2beta1/RequestLog/taskName": task_name "/logging:v2beta1/RequestLog/taskQueueName": task_queue_name "/logging:v2beta1/RequestLog/traceId": trace_id +"/logging:v2beta1/RequestLog/traceSampled": trace_sampled "/logging:v2beta1/RequestLog/urlMapEntry": url_map_entry "/logging:v2beta1/RequestLog/userAgent": user_agent "/logging:v2beta1/RequestLog/versionId": version_id @@ -63183,6 +67605,9 @@ "/ml:v1/GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric": google_cloud_ml_v1_hyperparameter_output_hyperparameter_metric "/ml:v1/GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric/objectiveValue": objective_value "/ml:v1/GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric/trainingStep": training_step +"/ml:v1/GoogleCloudMlV1__AcceleratorConfig": google_cloud_ml_v1__accelerator_config +"/ml:v1/GoogleCloudMlV1__AcceleratorConfig/count": count +"/ml:v1/GoogleCloudMlV1__AcceleratorConfig/type": type "/ml:v1/GoogleCloudMlV1__AutoScaling": google_cloud_ml_v1__auto_scaling "/ml:v1/GoogleCloudMlV1__AutoScaling/minNodes": min_nodes "/ml:v1/GoogleCloudMlV1__CancelJobRequest": google_cloud_ml_v1__cancel_job_request @@ -63284,6 +67709,7 @@ "/ml:v1/GoogleCloudMlV1__PredictRequest": google_cloud_ml_v1__predict_request "/ml:v1/GoogleCloudMlV1__PredictRequest/httpBody": http_body "/ml:v1/GoogleCloudMlV1__PredictionInput": google_cloud_ml_v1__prediction_input +"/ml:v1/GoogleCloudMlV1__PredictionInput/accelerator": accelerator "/ml:v1/GoogleCloudMlV1__PredictionInput/batchSize": batch_size "/ml:v1/GoogleCloudMlV1__PredictionInput/dataFormat": data_format "/ml:v1/GoogleCloudMlV1__PredictionInput/inputPaths": input_paths @@ -63929,6 +68355,9 @@ "/monitoring:v3/Documentation": documentation "/monitoring:v3/Documentation/content": content "/monitoring:v3/Documentation/mimeType": mime_type +"/monitoring:v3/DroppedLabels": dropped_labels +"/monitoring:v3/DroppedLabels/label": label +"/monitoring:v3/DroppedLabels/label/label": label "/monitoring:v3/Empty": empty "/monitoring:v3/Exemplar": exemplar "/monitoring:v3/Exemplar/attachments": attachments @@ -64123,6 +68552,8 @@ "/monitoring:v3/SendNotificationChannelVerificationCodeRequest": send_notification_channel_verification_code_request "/monitoring:v3/SourceContext": source_context "/monitoring:v3/SourceContext/fileName": file_name +"/monitoring:v3/SpanContext": span_context +"/monitoring:v3/SpanContext/spanName": span_name "/monitoring:v3/Status": status "/monitoring:v3/Status/code": code "/monitoring:v3/Status/details": details @@ -66922,6 +71353,7 @@ "/poly:v1/Asset/metadata": metadata "/poly:v1/Asset/name": name "/poly:v1/Asset/presentationParams": presentation_params +"/poly:v1/Asset/remixInfo": remix_info "/poly:v1/Asset/thumbnail": thumbnail "/poly:v1/Asset/updateTime": update_time "/poly:v1/Asset/visibility": visibility @@ -66977,6 +71409,9 @@ "/poly:v1/Quaternion/x": x "/poly:v1/Quaternion/y": y "/poly:v1/Quaternion/z": z +"/poly:v1/RemixInfo": remix_info +"/poly:v1/RemixInfo/sourceAsset": source_asset +"/poly:v1/RemixInfo/sourceAsset/source_asset": source_asset "/poly:v1/StartAssetImportResponse": start_asset_import_response "/poly:v1/StartAssetImportResponse/assetId": asset_id "/poly:v1/StartAssetImportResponse/assetImportId": asset_import_id @@ -67549,6 +71984,7 @@ "/pubsub:v1/AcknowledgeRequest/ackIds": ack_ids "/pubsub:v1/AcknowledgeRequest/ackIds/ack_id": ack_id "/pubsub:v1/Binding": binding +"/pubsub:v1/Binding/condition": condition "/pubsub:v1/Binding/members": members "/pubsub:v1/Binding/members/member": member "/pubsub:v1/Binding/role": role @@ -67557,6 +71993,11 @@ "/pubsub:v1/CreateSnapshotRequest/labels/label": label "/pubsub:v1/CreateSnapshotRequest/subscription": subscription "/pubsub:v1/Empty": empty +"/pubsub:v1/Expr": expr +"/pubsub:v1/Expr/description": description +"/pubsub:v1/Expr/expression": expression +"/pubsub:v1/Expr/location": location +"/pubsub:v1/Expr/title": title "/pubsub:v1/ListSnapshotsResponse": list_snapshots_response "/pubsub:v1/ListSnapshotsResponse/nextPageToken": next_page_token "/pubsub:v1/ListSnapshotsResponse/snapshots": snapshots @@ -67831,10 +72272,16 @@ "/pubsub:v1beta2/AcknowledgeRequest/ackIds": ack_ids "/pubsub:v1beta2/AcknowledgeRequest/ackIds/ack_id": ack_id "/pubsub:v1beta2/Binding": binding +"/pubsub:v1beta2/Binding/condition": condition "/pubsub:v1beta2/Binding/members": members "/pubsub:v1beta2/Binding/members/member": member "/pubsub:v1beta2/Binding/role": role "/pubsub:v1beta2/Empty": empty +"/pubsub:v1beta2/Expr": expr +"/pubsub:v1beta2/Expr/description": description +"/pubsub:v1beta2/Expr/expression": expression +"/pubsub:v1beta2/Expr/location": location +"/pubsub:v1beta2/Expr/title": title "/pubsub:v1beta2/ListSubscriptionsResponse": list_subscriptions_response "/pubsub:v1beta2/ListSubscriptionsResponse/nextPageToken": next_page_token "/pubsub:v1beta2/ListSubscriptionsResponse/subscriptions": subscriptions @@ -68132,6 +72579,7 @@ "/qpxExpress:v1/qpxExpress.trips.search": search_trips "/qpxExpress:v1/quotaUser": quota_user "/qpxExpress:v1/userIp": user_ip +"/redis:v1beta1/Empty": empty "/redis:v1beta1/GoogleCloudCommonOperationMetadata": google_cloud_common_operation_metadata "/redis:v1beta1/GoogleCloudCommonOperationMetadata/apiVersion": api_version "/redis:v1beta1/GoogleCloudCommonOperationMetadata/cancelRequested": cancel_requested @@ -68234,6 +72682,10 @@ "/redis:v1beta1/redis.projects.locations.list/name": name "/redis:v1beta1/redis.projects.locations.list/pageSize": page_size "/redis:v1beta1/redis.projects.locations.list/pageToken": page_token +"/redis:v1beta1/redis.projects.locations.operations.cancel": cancel_project_location_operation +"/redis:v1beta1/redis.projects.locations.operations.cancel/name": name +"/redis:v1beta1/redis.projects.locations.operations.delete": delete_project_location_operation +"/redis:v1beta1/redis.projects.locations.operations.delete/name": name "/redis:v1beta1/redis.projects.locations.operations.get": get_project_location_operation "/redis:v1beta1/redis.projects.locations.operations.get/name": name "/redis:v1beta1/redis.projects.locations.operations.list": list_project_location_operations @@ -69120,6 +73572,7 @@ "/runtimeconfig:v1/runtimeconfig.operations.list/pageSize": page_size "/runtimeconfig:v1/runtimeconfig.operations.list/pageToken": page_token "/runtimeconfig:v1beta1/Binding": binding +"/runtimeconfig:v1beta1/Binding/condition": condition "/runtimeconfig:v1beta1/Binding/members": members "/runtimeconfig:v1beta1/Binding/members/member": member "/runtimeconfig:v1beta1/Binding/role": role @@ -69129,6 +73582,11 @@ "/runtimeconfig:v1beta1/Empty": empty "/runtimeconfig:v1beta1/EndCondition": end_condition "/runtimeconfig:v1beta1/EndCondition/cardinality": cardinality +"/runtimeconfig:v1beta1/Expr": expr +"/runtimeconfig:v1beta1/Expr/description": description +"/runtimeconfig:v1beta1/Expr/expression": expression +"/runtimeconfig:v1beta1/Expr/location": location +"/runtimeconfig:v1beta1/Expr/title": title "/runtimeconfig:v1beta1/ListConfigsResponse": list_configs_response "/runtimeconfig:v1beta1/ListConfigsResponse/configs": configs "/runtimeconfig:v1beta1/ListConfigsResponse/configs/config": config @@ -69632,6 +74090,7 @@ "/searchconsole:v1/quotaUser": quota_user "/searchconsole:v1/searchconsole.urlTestingTools.mobileFriendlyTest.run": run_mobile_friendly_test "/servicebroker:v1/GoogleIamV1__Binding": google_iam_v1__binding +"/servicebroker:v1/GoogleIamV1__Binding/condition": condition "/servicebroker:v1/GoogleIamV1__Binding/members": members "/servicebroker:v1/GoogleIamV1__Binding/members/member": member "/servicebroker:v1/GoogleIamV1__Binding/role": role @@ -69648,6 +74107,11 @@ "/servicebroker:v1/GoogleIamV1__TestIamPermissionsResponse": google_iam_v1__test_iam_permissions_response "/servicebroker:v1/GoogleIamV1__TestIamPermissionsResponse/permissions": permissions "/servicebroker:v1/GoogleIamV1__TestIamPermissionsResponse/permissions/permission": permission +"/servicebroker:v1/GoogleType__Expr": google_type__expr +"/servicebroker:v1/GoogleType__Expr/description": description +"/servicebroker:v1/GoogleType__Expr/expression": expression +"/servicebroker:v1/GoogleType__Expr/location": location +"/servicebroker:v1/GoogleType__Expr/title": title "/servicebroker:v1/fields": fields "/servicebroker:v1/key": key "/servicebroker:v1/quotaUser": quota_user @@ -69757,6 +74221,7 @@ "/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse/description": description "/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse/operation": operation "/servicebroker:v1alpha1/GoogleIamV1__Binding": google_iam_v1__binding +"/servicebroker:v1alpha1/GoogleIamV1__Binding/condition": condition "/servicebroker:v1alpha1/GoogleIamV1__Binding/members": members "/servicebroker:v1alpha1/GoogleIamV1__Binding/members/member": member "/servicebroker:v1alpha1/GoogleIamV1__Binding/role": role @@ -69773,6 +74238,11 @@ "/servicebroker:v1alpha1/GoogleIamV1__TestIamPermissionsResponse": google_iam_v1__test_iam_permissions_response "/servicebroker:v1alpha1/GoogleIamV1__TestIamPermissionsResponse/permissions": permissions "/servicebroker:v1alpha1/GoogleIamV1__TestIamPermissionsResponse/permissions/permission": permission +"/servicebroker:v1alpha1/GoogleType__Expr": google_type__expr +"/servicebroker:v1alpha1/GoogleType__Expr/description": description +"/servicebroker:v1alpha1/GoogleType__Expr/expression": expression +"/servicebroker:v1alpha1/GoogleType__Expr/location": location +"/servicebroker:v1alpha1/GoogleType__Expr/title": title "/servicebroker:v1alpha1/fields": fields "/servicebroker:v1alpha1/key": key "/servicebroker:v1alpha1/quotaUser": quota_user @@ -69958,6 +74428,7 @@ "/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse/description": description "/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse/operation": operation "/servicebroker:v1beta1/GoogleIamV1__Binding": google_iam_v1__binding +"/servicebroker:v1beta1/GoogleIamV1__Binding/condition": condition "/servicebroker:v1beta1/GoogleIamV1__Binding/members": members "/servicebroker:v1beta1/GoogleIamV1__Binding/members/member": member "/servicebroker:v1beta1/GoogleIamV1__Binding/role": role @@ -69975,6 +74446,11 @@ "/servicebroker:v1beta1/GoogleIamV1__TestIamPermissionsResponse/permissions": permissions "/servicebroker:v1beta1/GoogleIamV1__TestIamPermissionsResponse/permissions/permission": permission "/servicebroker:v1beta1/GoogleProtobuf__Empty": google_protobuf__empty +"/servicebroker:v1beta1/GoogleType__Expr": google_type__expr +"/servicebroker:v1beta1/GoogleType__Expr/description": description +"/servicebroker:v1beta1/GoogleType__Expr/expression": expression +"/servicebroker:v1beta1/GoogleType__Expr/location": location +"/servicebroker:v1beta1/GoogleType__Expr/title": title "/servicebroker:v1beta1/fields": fields "/servicebroker:v1beta1/key": key "/servicebroker:v1beta1/quotaUser": quota_user @@ -70595,15 +75071,33 @@ "/servicecontrol:v1/ExponentialBuckets/growthFactor": growth_factor "/servicecontrol:v1/ExponentialBuckets/numFiniteBuckets": num_finite_buckets "/servicecontrol:v1/ExponentialBuckets/scale": scale +"/servicecontrol:v1/HttpRequest": http_request +"/servicecontrol:v1/HttpRequest/cacheFillBytes": cache_fill_bytes +"/servicecontrol:v1/HttpRequest/cacheHit": cache_hit +"/servicecontrol:v1/HttpRequest/cacheLookup": cache_lookup +"/servicecontrol:v1/HttpRequest/cacheValidatedWithOriginServer": cache_validated_with_origin_server +"/servicecontrol:v1/HttpRequest/latency": latency +"/servicecontrol:v1/HttpRequest/protocol": protocol +"/servicecontrol:v1/HttpRequest/referer": referer +"/servicecontrol:v1/HttpRequest/remoteIp": remote_ip +"/servicecontrol:v1/HttpRequest/requestMethod": request_method +"/servicecontrol:v1/HttpRequest/requestSize": request_size +"/servicecontrol:v1/HttpRequest/requestUrl": request_url +"/servicecontrol:v1/HttpRequest/responseSize": response_size +"/servicecontrol:v1/HttpRequest/serverIp": server_ip +"/servicecontrol:v1/HttpRequest/status": status +"/servicecontrol:v1/HttpRequest/userAgent": user_agent "/servicecontrol:v1/LinearBuckets": linear_buckets "/servicecontrol:v1/LinearBuckets/numFiniteBuckets": num_finite_buckets "/servicecontrol:v1/LinearBuckets/offset": offset "/servicecontrol:v1/LinearBuckets/width": width "/servicecontrol:v1/LogEntry": log_entry +"/servicecontrol:v1/LogEntry/httpRequest": http_request "/servicecontrol:v1/LogEntry/insertId": insert_id "/servicecontrol:v1/LogEntry/labels": labels "/servicecontrol:v1/LogEntry/labels/label": label "/servicecontrol:v1/LogEntry/name": name +"/servicecontrol:v1/LogEntry/operation": operation "/servicecontrol:v1/LogEntry/protoPayload": proto_payload "/servicecontrol:v1/LogEntry/protoPayload/proto_payload": proto_payload "/servicecontrol:v1/LogEntry/severity": severity @@ -70611,6 +75105,12 @@ "/servicecontrol:v1/LogEntry/structPayload/struct_payload": struct_payload "/servicecontrol:v1/LogEntry/textPayload": text_payload "/servicecontrol:v1/LogEntry/timestamp": timestamp +"/servicecontrol:v1/LogEntry/trace": trace +"/servicecontrol:v1/LogEntryOperation": log_entry_operation +"/servicecontrol:v1/LogEntryOperation/first": first +"/servicecontrol:v1/LogEntryOperation/id": id +"/servicecontrol:v1/LogEntryOperation/last": last +"/servicecontrol:v1/LogEntryOperation/producer": producer "/servicecontrol:v1/MetricValue": metric_value "/servicecontrol:v1/MetricValue/boolValue": bool_value "/servicecontrol:v1/MetricValue/distributionValue": distribution_value @@ -70651,6 +75151,14 @@ "/servicecontrol:v1/Operation/startTime": start_time "/servicecontrol:v1/Operation/userLabels": user_labels "/servicecontrol:v1/Operation/userLabels/user_label": user_label +"/servicecontrol:v1/Peer": peer +"/servicecontrol:v1/Peer/ip": ip +"/servicecontrol:v1/Peer/labels": labels +"/servicecontrol:v1/Peer/labels/label": label +"/servicecontrol:v1/Peer/port": port +"/servicecontrol:v1/Peer/principal": principal +"/servicecontrol:v1/Peer/regionCode": region_code +"/servicecontrol:v1/Peer/service": service "/servicecontrol:v1/QuotaError": quota_error "/servicecontrol:v1/QuotaError/code": code "/servicecontrol:v1/QuotaError/description": description @@ -70720,6 +75228,7 @@ "/servicecontrol:v1/RequestMetadata/callerIp": caller_ip "/servicecontrol:v1/RequestMetadata/callerNetwork": caller_network "/servicecontrol:v1/RequestMetadata/callerSuppliedUserAgent": caller_supplied_user_agent +"/servicecontrol:v1/RequestMetadata/destinationAttributes": destination_attributes "/servicecontrol:v1/RequestMetadata/requestAttributes": request_attributes "/servicecontrol:v1/Resource": resource "/servicecontrol:v1/Resource/labels": labels @@ -71581,6 +76090,7 @@ "/serviceusage:v1/HttpRule/patch": patch "/serviceusage:v1/HttpRule/post": post "/serviceusage:v1/HttpRule/put": put +"/serviceusage:v1/HttpRule/responseBody": response_body "/serviceusage:v1/HttpRule/restCollection": rest_collection "/serviceusage:v1/HttpRule/restMethodName": rest_method_name "/serviceusage:v1/HttpRule/selector": selector @@ -72042,6 +76552,7 @@ "/serviceusage:v1beta1/HttpRule/patch": patch "/serviceusage:v1beta1/HttpRule/post": post "/serviceusage:v1beta1/HttpRule/put": put +"/serviceusage:v1beta1/HttpRule/responseBody": response_body "/serviceusage:v1beta1/HttpRule/restCollection": rest_collection "/serviceusage:v1beta1/HttpRule/restMethodName": rest_method_name "/serviceusage:v1beta1/HttpRule/selector": selector @@ -78795,6 +83306,40 @@ "/testing:v1/testing.testEnvironmentCatalog.get": get_test_environment_catalog "/testing:v1/testing.testEnvironmentCatalog.get/environmentType": environment_type "/testing:v1/testing.testEnvironmentCatalog.get/projectId": project_id +"/texttospeech:v1/AudioConfig": audio_config +"/texttospeech:v1/AudioConfig/audioEncoding": audio_encoding +"/texttospeech:v1/AudioConfig/pitch": pitch +"/texttospeech:v1/AudioConfig/sampleRateHertz": sample_rate_hertz +"/texttospeech:v1/AudioConfig/speakingRate": speaking_rate +"/texttospeech:v1/AudioConfig/volumeGainDb": volume_gain_db +"/texttospeech:v1/ListVoicesResponse": list_voices_response +"/texttospeech:v1/ListVoicesResponse/voices": voices +"/texttospeech:v1/ListVoicesResponse/voices/voice": voice +"/texttospeech:v1/SynthesisInput": synthesis_input +"/texttospeech:v1/SynthesisInput/ssml": ssml +"/texttospeech:v1/SynthesisInput/text": text +"/texttospeech:v1/SynthesizeSpeechRequest": synthesize_speech_request +"/texttospeech:v1/SynthesizeSpeechRequest/audioConfig": audio_config +"/texttospeech:v1/SynthesizeSpeechRequest/input": input +"/texttospeech:v1/SynthesizeSpeechRequest/voice": voice +"/texttospeech:v1/SynthesizeSpeechResponse": synthesize_speech_response +"/texttospeech:v1/SynthesizeSpeechResponse/audioContent": audio_content +"/texttospeech:v1/Voice": voice +"/texttospeech:v1/Voice/languageCodes": language_codes +"/texttospeech:v1/Voice/languageCodes/language_code": language_code +"/texttospeech:v1/Voice/name": name +"/texttospeech:v1/Voice/naturalSampleRateHertz": natural_sample_rate_hertz +"/texttospeech:v1/Voice/ssmlGender": ssml_gender +"/texttospeech:v1/VoiceSelectionParams": voice_selection_params +"/texttospeech:v1/VoiceSelectionParams/languageCode": language_code +"/texttospeech:v1/VoiceSelectionParams/name": name +"/texttospeech:v1/VoiceSelectionParams/ssmlGender": ssml_gender +"/texttospeech:v1/fields": fields +"/texttospeech:v1/key": key +"/texttospeech:v1/quotaUser": quota_user +"/texttospeech:v1/texttospeech.text.synthesize": synthesize_text_speech +"/texttospeech:v1/texttospeech.voices.list": list_voices +"/texttospeech:v1/texttospeech.voices.list/languageCode": language_code "/texttospeech:v1beta1/AudioConfig": audio_config "/texttospeech:v1beta1/AudioConfig/audioEncoding": audio_encoding "/texttospeech:v1beta1/AudioConfig/effectsProfileId": effects_profile_id @@ -79947,6 +84492,20 @@ "/urlshortener:v1/urlshortener.url.list/projection": projection "/urlshortener:v1/urlshortener.url.list/start-token": start_token "/urlshortener:v1/userIp": user_ip +"/vault:v1/AccountInfo": account_info +"/vault:v1/AccountInfo/emails": emails +"/vault:v1/AccountInfo/emails/email": email +"/vault:v1/AddHeldAccountResult": add_held_account_result +"/vault:v1/AddHeldAccountResult/account": account +"/vault:v1/AddHeldAccountResult/status": status +"/vault:v1/AddHeldAccountsRequest": add_held_accounts_request +"/vault:v1/AddHeldAccountsRequest/accountIds": account_ids +"/vault:v1/AddHeldAccountsRequest/accountIds/account_id": account_id +"/vault:v1/AddHeldAccountsRequest/emails": emails +"/vault:v1/AddHeldAccountsRequest/emails/email": email +"/vault:v1/AddHeldAccountsResponse": add_held_accounts_response +"/vault:v1/AddHeldAccountsResponse/responses": responses +"/vault:v1/AddHeldAccountsResponse/responses/response": response "/vault:v1/AddMatterPermissionsRequest": add_matter_permissions_request "/vault:v1/AddMatterPermissionsRequest/ccMe": cc_me "/vault:v1/AddMatterPermissionsRequest/matterPermission": matter_permission @@ -79954,12 +84513,54 @@ "/vault:v1/CloseMatterRequest": close_matter_request "/vault:v1/CloseMatterResponse": close_matter_response "/vault:v1/CloseMatterResponse/matter": matter +"/vault:v1/CloudStorageFile": cloud_storage_file +"/vault:v1/CloudStorageFile/bucketName": bucket_name +"/vault:v1/CloudStorageFile/md5Hash": md5_hash +"/vault:v1/CloudStorageFile/objectName": object_name +"/vault:v1/CloudStorageFile/size": size +"/vault:v1/CloudStorageSink": cloud_storage_sink +"/vault:v1/CloudStorageSink/files": files +"/vault:v1/CloudStorageSink/files/file": file "/vault:v1/CorpusQuery": corpus_query "/vault:v1/CorpusQuery/driveQuery": drive_query "/vault:v1/CorpusQuery/groupsQuery": groups_query "/vault:v1/CorpusQuery/hangoutsChatQuery": hangouts_chat_query "/vault:v1/CorpusQuery/mailQuery": mail_query +"/vault:v1/DriveExportOptions": drive_export_options +"/vault:v1/DriveExportOptions/includeAccessInfo": include_access_info +"/vault:v1/DriveOptions": drive_options +"/vault:v1/DriveOptions/includeTeamDrives": include_team_drives +"/vault:v1/DriveOptions/versionDate": version_date "/vault:v1/Empty": empty +"/vault:v1/Export": export +"/vault:v1/Export/cloudStorageSink": cloud_storage_sink +"/vault:v1/Export/createTime": create_time +"/vault:v1/Export/exportOptions": export_options +"/vault:v1/Export/id": id +"/vault:v1/Export/matterId": matter_id +"/vault:v1/Export/name": name +"/vault:v1/Export/query": query +"/vault:v1/Export/requester": requester +"/vault:v1/Export/stats": stats +"/vault:v1/Export/status": status +"/vault:v1/ExportOptions": export_options +"/vault:v1/ExportOptions/driveOptions": drive_options +"/vault:v1/ExportOptions/groupsOptions": groups_options +"/vault:v1/ExportOptions/hangoutsChatOptions": hangouts_chat_options +"/vault:v1/ExportOptions/mailOptions": mail_options +"/vault:v1/ExportStats": export_stats +"/vault:v1/ExportStats/exportedArtifactCount": exported_artifact_count +"/vault:v1/ExportStats/sizeInBytes": size_in_bytes +"/vault:v1/ExportStats/totalArtifactCount": total_artifact_count +"/vault:v1/GroupsExportOptions": groups_export_options +"/vault:v1/GroupsExportOptions/exportFormat": export_format +"/vault:v1/HangoutsChatExportOptions": hangouts_chat_export_options +"/vault:v1/HangoutsChatExportOptions/exportFormat": export_format +"/vault:v1/HangoutsChatInfo": hangouts_chat_info +"/vault:v1/HangoutsChatInfo/roomId": room_id +"/vault:v1/HangoutsChatInfo/roomId/room_id": room_id +"/vault:v1/HangoutsChatOptions": hangouts_chat_options +"/vault:v1/HangoutsChatOptions/includeRooms": include_rooms "/vault:v1/HeldAccount": held_account "/vault:v1/HeldAccount/accountId": account_id "/vault:v1/HeldAccount/holdTime": hold_time @@ -79987,6 +84588,10 @@ "/vault:v1/Hold/orgUnit": org_unit "/vault:v1/Hold/query": query "/vault:v1/Hold/updateTime": update_time +"/vault:v1/ListExportsResponse": list_exports_response +"/vault:v1/ListExportsResponse/exports": exports +"/vault:v1/ListExportsResponse/exports/export": export +"/vault:v1/ListExportsResponse/nextPageToken": next_page_token "/vault:v1/ListHeldAccountsResponse": list_held_accounts_response "/vault:v1/ListHeldAccountsResponse/accounts": accounts "/vault:v1/ListHeldAccountsResponse/accounts/account": account @@ -79998,6 +84603,10 @@ "/vault:v1/ListMattersResponse/matters": matters "/vault:v1/ListMattersResponse/matters/matter": matter "/vault:v1/ListMattersResponse/nextPageToken": next_page_token +"/vault:v1/MailExportOptions": mail_export_options +"/vault:v1/MailExportOptions/exportFormat": export_format +"/vault:v1/MailOptions": mail_options +"/vault:v1/MailOptions/excludeDrafts": exclude_drafts "/vault:v1/Matter": matter "/vault:v1/Matter/description": description "/vault:v1/Matter/matterId": matter_id @@ -80008,12 +84617,47 @@ "/vault:v1/MatterPermission": matter_permission "/vault:v1/MatterPermission/accountId": account_id "/vault:v1/MatterPermission/role": role +"/vault:v1/OrgUnitInfo": org_unit_info +"/vault:v1/OrgUnitInfo/orgUnitId": org_unit_id +"/vault:v1/Query": query +"/vault:v1/Query/accountInfo": account_info +"/vault:v1/Query/corpus": corpus +"/vault:v1/Query/dataScope": data_scope +"/vault:v1/Query/driveOptions": drive_options +"/vault:v1/Query/endTime": end_time +"/vault:v1/Query/hangoutsChatInfo": hangouts_chat_info +"/vault:v1/Query/hangoutsChatOptions": hangouts_chat_options +"/vault:v1/Query/mailOptions": mail_options +"/vault:v1/Query/orgUnitInfo": org_unit_info +"/vault:v1/Query/searchMethod": search_method +"/vault:v1/Query/startTime": start_time +"/vault:v1/Query/teamDriveInfo": team_drive_info +"/vault:v1/Query/terms": terms +"/vault:v1/Query/timeZone": time_zone +"/vault:v1/RemoveHeldAccountsRequest": remove_held_accounts_request +"/vault:v1/RemoveHeldAccountsRequest/accountIds": account_ids +"/vault:v1/RemoveHeldAccountsRequest/accountIds/account_id": account_id +"/vault:v1/RemoveHeldAccountsResponse": remove_held_accounts_response +"/vault:v1/RemoveHeldAccountsResponse/statuses": statuses +"/vault:v1/RemoveHeldAccountsResponse/statuses/status": status "/vault:v1/RemoveMatterPermissionsRequest": remove_matter_permissions_request "/vault:v1/RemoveMatterPermissionsRequest/accountId": account_id "/vault:v1/ReopenMatterRequest": reopen_matter_request "/vault:v1/ReopenMatterResponse": reopen_matter_response "/vault:v1/ReopenMatterResponse/matter": matter +"/vault:v1/Status": status +"/vault:v1/Status/code": code +"/vault:v1/Status/details": details +"/vault:v1/Status/details/detail": detail +"/vault:v1/Status/details/detail/detail": detail +"/vault:v1/Status/message": message +"/vault:v1/TeamDriveInfo": team_drive_info +"/vault:v1/TeamDriveInfo/teamDriveIds": team_drive_ids +"/vault:v1/TeamDriveInfo/teamDriveIds/team_drive_id": team_drive_id "/vault:v1/UndeleteMatterRequest": undelete_matter_request +"/vault:v1/UserInfo": user_info +"/vault:v1/UserInfo/displayName": display_name +"/vault:v1/UserInfo/email": email "/vault:v1/fields": fields "/vault:v1/key": key "/vault:v1/quotaUser": quota_user @@ -80024,6 +84668,18 @@ "/vault:v1/vault.matters.create": create_matter "/vault:v1/vault.matters.delete": delete_matter "/vault:v1/vault.matters.delete/matterId": matter_id +"/vault:v1/vault.matters.exports.create": create_matter_export +"/vault:v1/vault.matters.exports.create/matterId": matter_id +"/vault:v1/vault.matters.exports.delete": delete_matter_export +"/vault:v1/vault.matters.exports.delete/exportId": export_id +"/vault:v1/vault.matters.exports.delete/matterId": matter_id +"/vault:v1/vault.matters.exports.get": get_matter_export +"/vault:v1/vault.matters.exports.get/exportId": export_id +"/vault:v1/vault.matters.exports.get/matterId": matter_id +"/vault:v1/vault.matters.exports.list": list_matter_exports +"/vault:v1/vault.matters.exports.list/matterId": matter_id +"/vault:v1/vault.matters.exports.list/pageSize": page_size +"/vault:v1/vault.matters.exports.list/pageToken": page_token "/vault:v1/vault.matters.get": get_matter "/vault:v1/vault.matters.get/matterId": matter_id "/vault:v1/vault.matters.get/view": view @@ -80037,6 +84693,9 @@ "/vault:v1/vault.matters.holds.accounts.list": list_matter_hold_accounts "/vault:v1/vault.matters.holds.accounts.list/holdId": hold_id "/vault:v1/vault.matters.holds.accounts.list/matterId": matter_id +"/vault:v1/vault.matters.holds.addHeldAccounts": add_hold_held_accounts +"/vault:v1/vault.matters.holds.addHeldAccounts/holdId": hold_id +"/vault:v1/vault.matters.holds.addHeldAccounts/matterId": matter_id "/vault:v1/vault.matters.holds.create": create_matter_hold "/vault:v1/vault.matters.holds.create/matterId": matter_id "/vault:v1/vault.matters.holds.delete": delete_matter_hold @@ -80051,6 +84710,9 @@ "/vault:v1/vault.matters.holds.list/pageSize": page_size "/vault:v1/vault.matters.holds.list/pageToken": page_token "/vault:v1/vault.matters.holds.list/view": view +"/vault:v1/vault.matters.holds.removeHeldAccounts": remove_hold_held_accounts +"/vault:v1/vault.matters.holds.removeHeldAccounts/holdId": hold_id +"/vault:v1/vault.matters.holds.removeHeldAccounts/matterId": matter_id "/vault:v1/vault.matters.holds.update": update_matter_hold "/vault:v1/vault.matters.holds.update/holdId": hold_id "/vault:v1/vault.matters.holds.update/matterId": matter_id @@ -81224,6 +85886,196 @@ "/vision:v1/GoogleCloudVisionV1Word/property": property "/vision:v1/GoogleCloudVisionV1Word/symbols": symbols "/vision:v1/GoogleCloudVisionV1Word/symbols/symbol": symbol +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateFileResponse": google_cloud_vision_v1p1beta1_annotate_file_response +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateFileResponse/inputConfig": input_config +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateFileResponse/responses": responses +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateFileResponse/responses/response": response +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse": google_cloud_vision_v1p1beta1_annotate_image_response +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/context": context +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/error": error +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/faceAnnotations": face_annotations +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/faceAnnotations/face_annotation": face_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/fullTextAnnotation": full_text_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/labelAnnotations": label_annotations +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/landmarkAnnotations": landmark_annotations +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/landmarkAnnotations/landmark_annotation": landmark_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/logoAnnotations": logo_annotations +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/textAnnotations": text_annotations +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/textAnnotations/text_annotation": text_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/webDetection": web_detection +"/vision:v1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p1beta1_async_annotate_file_response +"/vision:v1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse/outputConfig": output_config +"/vision:v1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse": google_cloud_vision_v1p1beta1_async_batch_annotate_files_response +"/vision:v1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse/responses": responses +"/vision:v1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse/responses/response": response +"/vision:v1/GoogleCloudVisionV1p1beta1Block": google_cloud_vision_v1p1beta1_block +"/vision:v1/GoogleCloudVisionV1p1beta1Block/blockType": block_type +"/vision:v1/GoogleCloudVisionV1p1beta1Block/boundingBox": bounding_box +"/vision:v1/GoogleCloudVisionV1p1beta1Block/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p1beta1Block/paragraphs": paragraphs +"/vision:v1/GoogleCloudVisionV1p1beta1Block/paragraphs/paragraph": paragraph +"/vision:v1/GoogleCloudVisionV1p1beta1Block/property": property +"/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly": google_cloud_vision_v1p1beta1_bounding_poly +"/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices": vertices +"/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices/vertex": vertex +"/vision:v1/GoogleCloudVisionV1p1beta1ColorInfo": google_cloud_vision_v1p1beta1_color_info +"/vision:v1/GoogleCloudVisionV1p1beta1ColorInfo/color": color +"/vision:v1/GoogleCloudVisionV1p1beta1ColorInfo/pixelFraction": pixel_fraction +"/vision:v1/GoogleCloudVisionV1p1beta1ColorInfo/score": score +"/vision:v1/GoogleCloudVisionV1p1beta1CropHint": google_cloud_vision_v1p1beta1_crop_hint +"/vision:v1/GoogleCloudVisionV1p1beta1CropHint/boundingPoly": bounding_poly +"/vision:v1/GoogleCloudVisionV1p1beta1CropHint/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p1beta1CropHint/importanceFraction": importance_fraction +"/vision:v1/GoogleCloudVisionV1p1beta1CropHintsAnnotation": google_cloud_vision_v1p1beta1_crop_hints_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1CropHintsAnnotation/cropHints": crop_hints +"/vision:v1/GoogleCloudVisionV1p1beta1CropHintsAnnotation/cropHints/crop_hint": crop_hint +"/vision:v1/GoogleCloudVisionV1p1beta1DominantColorsAnnotation": google_cloud_vision_v1p1beta1_dominant_colors_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1DominantColorsAnnotation/colors": colors +"/vision:v1/GoogleCloudVisionV1p1beta1DominantColorsAnnotation/colors/color": color +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation": google_cloud_vision_v1p1beta1_entity_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/boundingPoly": bounding_poly +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/description": description +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/locale": locale +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/locations": locations +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/locations/location": location +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/mid": mid +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/properties": properties +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/properties/property": property +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/score": score +"/vision:v1/GoogleCloudVisionV1p1beta1EntityAnnotation/topicality": topicality +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation": google_cloud_vision_v1p1beta1_face_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/angerLikelihood": anger_likelihood +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/blurredLikelihood": blurred_likelihood +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/boundingPoly": bounding_poly +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/detectionConfidence": detection_confidence +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/fdBoundingPoly": fd_bounding_poly +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/headwearLikelihood": headwear_likelihood +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/joyLikelihood": joy_likelihood +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/landmarkingConfidence": landmarking_confidence +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/landmarks": landmarks +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/landmarks/landmark": landmark +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/panAngle": pan_angle +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/rollAngle": roll_angle +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/sorrowLikelihood": sorrow_likelihood +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/surpriseLikelihood": surprise_likelihood +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/tiltAngle": tilt_angle +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotation/underExposedLikelihood": under_exposed_likelihood +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotationLandmark": google_cloud_vision_v1p1beta1_face_annotation_landmark +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotationLandmark/position": position +"/vision:v1/GoogleCloudVisionV1p1beta1FaceAnnotationLandmark/type": type +"/vision:v1/GoogleCloudVisionV1p1beta1GcsDestination": google_cloud_vision_v1p1beta1_gcs_destination +"/vision:v1/GoogleCloudVisionV1p1beta1GcsDestination/uri": uri +"/vision:v1/GoogleCloudVisionV1p1beta1GcsSource": google_cloud_vision_v1p1beta1_gcs_source +"/vision:v1/GoogleCloudVisionV1p1beta1GcsSource/uri": uri +"/vision:v1/GoogleCloudVisionV1p1beta1ImageAnnotationContext": google_cloud_vision_v1p1beta1_image_annotation_context +"/vision:v1/GoogleCloudVisionV1p1beta1ImageAnnotationContext/pageNumber": page_number +"/vision:v1/GoogleCloudVisionV1p1beta1ImageAnnotationContext/uri": uri +"/vision:v1/GoogleCloudVisionV1p1beta1ImageProperties": google_cloud_vision_v1p1beta1_image_properties +"/vision:v1/GoogleCloudVisionV1p1beta1ImageProperties/dominantColors": dominant_colors +"/vision:v1/GoogleCloudVisionV1p1beta1InputConfig": google_cloud_vision_v1p1beta1_input_config +"/vision:v1/GoogleCloudVisionV1p1beta1InputConfig/gcsSource": gcs_source +"/vision:v1/GoogleCloudVisionV1p1beta1InputConfig/mimeType": mime_type +"/vision:v1/GoogleCloudVisionV1p1beta1LocationInfo": google_cloud_vision_v1p1beta1_location_info +"/vision:v1/GoogleCloudVisionV1p1beta1LocationInfo/latLng": lat_lng +"/vision:v1/GoogleCloudVisionV1p1beta1OperationMetadata": google_cloud_vision_v1p1beta1_operation_metadata +"/vision:v1/GoogleCloudVisionV1p1beta1OperationMetadata/createTime": create_time +"/vision:v1/GoogleCloudVisionV1p1beta1OperationMetadata/state": state +"/vision:v1/GoogleCloudVisionV1p1beta1OperationMetadata/updateTime": update_time +"/vision:v1/GoogleCloudVisionV1p1beta1OutputConfig": google_cloud_vision_v1p1beta1_output_config +"/vision:v1/GoogleCloudVisionV1p1beta1OutputConfig/batchSize": batch_size +"/vision:v1/GoogleCloudVisionV1p1beta1OutputConfig/gcsDestination": gcs_destination +"/vision:v1/GoogleCloudVisionV1p1beta1Page": google_cloud_vision_v1p1beta1_page +"/vision:v1/GoogleCloudVisionV1p1beta1Page/blocks": blocks +"/vision:v1/GoogleCloudVisionV1p1beta1Page/blocks/block": block +"/vision:v1/GoogleCloudVisionV1p1beta1Page/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p1beta1Page/height": height +"/vision:v1/GoogleCloudVisionV1p1beta1Page/property": property +"/vision:v1/GoogleCloudVisionV1p1beta1Page/width": width +"/vision:v1/GoogleCloudVisionV1p1beta1Paragraph": google_cloud_vision_v1p1beta1_paragraph +"/vision:v1/GoogleCloudVisionV1p1beta1Paragraph/boundingBox": bounding_box +"/vision:v1/GoogleCloudVisionV1p1beta1Paragraph/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p1beta1Paragraph/property": property +"/vision:v1/GoogleCloudVisionV1p1beta1Paragraph/words": words +"/vision:v1/GoogleCloudVisionV1p1beta1Paragraph/words/word": word +"/vision:v1/GoogleCloudVisionV1p1beta1Position": google_cloud_vision_v1p1beta1_position +"/vision:v1/GoogleCloudVisionV1p1beta1Position/x": x +"/vision:v1/GoogleCloudVisionV1p1beta1Position/y": y +"/vision:v1/GoogleCloudVisionV1p1beta1Position/z": z +"/vision:v1/GoogleCloudVisionV1p1beta1Property": google_cloud_vision_v1p1beta1_property +"/vision:v1/GoogleCloudVisionV1p1beta1Property/name": name +"/vision:v1/GoogleCloudVisionV1p1beta1Property/uint64Value": uint64_value +"/vision:v1/GoogleCloudVisionV1p1beta1Property/value": value +"/vision:v1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation": google_cloud_vision_v1p1beta1_safe_search_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation/adult": adult +"/vision:v1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation/medical": medical +"/vision:v1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation/racy": racy +"/vision:v1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation/spoof": spoof +"/vision:v1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation/violence": violence +"/vision:v1/GoogleCloudVisionV1p1beta1Symbol": google_cloud_vision_v1p1beta1_symbol +"/vision:v1/GoogleCloudVisionV1p1beta1Symbol/boundingBox": bounding_box +"/vision:v1/GoogleCloudVisionV1p1beta1Symbol/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p1beta1Symbol/property": property +"/vision:v1/GoogleCloudVisionV1p1beta1Symbol/text": text +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotation": google_cloud_vision_v1p1beta1_text_annotation +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotation/pages": pages +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotation/pages/page": page +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotation/text": text +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak": google_cloud_vision_v1p1beta1_text_annotation_detected_break +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak/isPrefix": is_prefix +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak/type": type +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage": google_cloud_vision_v1p1beta1_text_annotation_detected_language +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage/languageCode": language_code +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty": google_cloud_vision_v1p1beta1_text_annotation_text_property +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty/detectedBreak": detected_break +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty/detectedLanguages": detected_languages +"/vision:v1/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty/detectedLanguages/detected_language": detected_language +"/vision:v1/GoogleCloudVisionV1p1beta1Vertex": google_cloud_vision_v1p1beta1_vertex +"/vision:v1/GoogleCloudVisionV1p1beta1Vertex/x": x +"/vision:v1/GoogleCloudVisionV1p1beta1Vertex/y": y +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection": google_cloud_vision_v1p1beta1_web_detection +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/bestGuessLabels": best_guess_labels +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/bestGuessLabels/best_guess_label": best_guess_label +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/fullMatchingImages": full_matching_images +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/pagesWithMatchingImages": pages_with_matching_images +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/partialMatchingImages": partial_matching_images +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/visuallySimilarImages": visually_similar_images +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/webEntities": web_entities +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetection/webEntities/web_entity": web_entity +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebEntity": google_cloud_vision_v1p1beta1_web_detection_web_entity +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebEntity/description": description +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebEntity/entityId": entity_id +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebEntity/score": score +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebImage": google_cloud_vision_v1p1beta1_web_detection_web_image +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebImage/score": score +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebImage/url": url +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebLabel": google_cloud_vision_v1p1beta1_web_detection_web_label +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebLabel/label": label +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebLabel/languageCode": language_code +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebPage": google_cloud_vision_v1p1beta1_web_detection_web_page +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/fullMatchingImages": full_matching_images +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/pageTitle": page_title +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/partialMatchingImages": partial_matching_images +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/score": score +"/vision:v1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/url": url +"/vision:v1/GoogleCloudVisionV1p1beta1Word": google_cloud_vision_v1p1beta1_word +"/vision:v1/GoogleCloudVisionV1p1beta1Word/boundingBox": bounding_box +"/vision:v1/GoogleCloudVisionV1p1beta1Word/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p1beta1Word/property": property +"/vision:v1/GoogleCloudVisionV1p1beta1Word/symbols": symbols +"/vision:v1/GoogleCloudVisionV1p1beta1Word/symbols/symbol": symbol "/vision:v1/GoogleCloudVisionV1p2beta1AnnotateFileResponse": google_cloud_vision_v1p2beta1_annotate_file_response "/vision:v1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/inputConfig": input_config "/vision:v1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/responses": responses @@ -81421,31 +86273,242 @@ "/vision:v1/GoogleCloudVisionV1p2beta1Word/property": property "/vision:v1/GoogleCloudVisionV1p2beta1Word/symbols": symbols "/vision:v1/GoogleCloudVisionV1p2beta1Word/symbols/symbol": symbol +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateFileResponse": google_cloud_vision_v1p3beta1_annotate_file_response +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateFileResponse/inputConfig": input_config +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateFileResponse/responses": responses +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateFileResponse/responses/response": response +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse": google_cloud_vision_v1p3beta1_annotate_image_response +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/context": context +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/error": error +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/faceAnnotations": face_annotations +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/faceAnnotations/face_annotation": face_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/fullTextAnnotation": full_text_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/labelAnnotations": label_annotations +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/landmarkAnnotations": landmark_annotations +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/landmarkAnnotations/landmark_annotation": landmark_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/localizedObjectAnnotations": localized_object_annotations +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/localizedObjectAnnotations/localized_object_annotation": localized_object_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/logoAnnotations": logo_annotations +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/productSearchResults": product_search_results +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/textAnnotations": text_annotations +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/textAnnotations/text_annotation": text_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/webDetection": web_detection +"/vision:v1/GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p3beta1_async_annotate_file_response +"/vision:v1/GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse/outputConfig": output_config +"/vision:v1/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse": google_cloud_vision_v1p3beta1_async_batch_annotate_files_response +"/vision:v1/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse/responses": responses +"/vision:v1/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse/responses/response": response "/vision:v1/GoogleCloudVisionV1p3beta1BatchOperationMetadata": google_cloud_vision_v1p3beta1_batch_operation_metadata "/vision:v1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/endTime": end_time "/vision:v1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/state": state "/vision:v1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/submitTime": submit_time +"/vision:v1/GoogleCloudVisionV1p3beta1Block": google_cloud_vision_v1p3beta1_block +"/vision:v1/GoogleCloudVisionV1p3beta1Block/blockType": block_type +"/vision:v1/GoogleCloudVisionV1p3beta1Block/boundingBox": bounding_box +"/vision:v1/GoogleCloudVisionV1p3beta1Block/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p3beta1Block/paragraphs": paragraphs +"/vision:v1/GoogleCloudVisionV1p3beta1Block/paragraphs/paragraph": paragraph +"/vision:v1/GoogleCloudVisionV1p3beta1Block/property": property "/vision:v1/GoogleCloudVisionV1p3beta1BoundingPoly": google_cloud_vision_v1p3beta1_bounding_poly "/vision:v1/GoogleCloudVisionV1p3beta1BoundingPoly/normalizedVertices": normalized_vertices "/vision:v1/GoogleCloudVisionV1p3beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex "/vision:v1/GoogleCloudVisionV1p3beta1BoundingPoly/vertices": vertices "/vision:v1/GoogleCloudVisionV1p3beta1BoundingPoly/vertices/vertex": vertex +"/vision:v1/GoogleCloudVisionV1p3beta1ColorInfo": google_cloud_vision_v1p3beta1_color_info +"/vision:v1/GoogleCloudVisionV1p3beta1ColorInfo/color": color +"/vision:v1/GoogleCloudVisionV1p3beta1ColorInfo/pixelFraction": pixel_fraction +"/vision:v1/GoogleCloudVisionV1p3beta1ColorInfo/score": score +"/vision:v1/GoogleCloudVisionV1p3beta1CropHint": google_cloud_vision_v1p3beta1_crop_hint +"/vision:v1/GoogleCloudVisionV1p3beta1CropHint/boundingPoly": bounding_poly +"/vision:v1/GoogleCloudVisionV1p3beta1CropHint/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p3beta1CropHint/importanceFraction": importance_fraction +"/vision:v1/GoogleCloudVisionV1p3beta1CropHintsAnnotation": google_cloud_vision_v1p3beta1_crop_hints_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1CropHintsAnnotation/cropHints": crop_hints +"/vision:v1/GoogleCloudVisionV1p3beta1CropHintsAnnotation/cropHints/crop_hint": crop_hint +"/vision:v1/GoogleCloudVisionV1p3beta1DominantColorsAnnotation": google_cloud_vision_v1p3beta1_dominant_colors_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1DominantColorsAnnotation/colors": colors +"/vision:v1/GoogleCloudVisionV1p3beta1DominantColorsAnnotation/colors/color": color +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation": google_cloud_vision_v1p3beta1_entity_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/boundingPoly": bounding_poly +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/description": description +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/locale": locale +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/locations": locations +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/locations/location": location +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/mid": mid +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/properties": properties +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/properties/property": property +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/score": score +"/vision:v1/GoogleCloudVisionV1p3beta1EntityAnnotation/topicality": topicality +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation": google_cloud_vision_v1p3beta1_face_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/angerLikelihood": anger_likelihood +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/blurredLikelihood": blurred_likelihood +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/boundingPoly": bounding_poly +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/detectionConfidence": detection_confidence +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/fdBoundingPoly": fd_bounding_poly +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/headwearLikelihood": headwear_likelihood +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/joyLikelihood": joy_likelihood +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/landmarkingConfidence": landmarking_confidence +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/landmarks": landmarks +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/landmarks/landmark": landmark +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/panAngle": pan_angle +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/rollAngle": roll_angle +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/sorrowLikelihood": sorrow_likelihood +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/surpriseLikelihood": surprise_likelihood +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/tiltAngle": tilt_angle +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotation/underExposedLikelihood": under_exposed_likelihood +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark": google_cloud_vision_v1p3beta1_face_annotation_landmark +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark/position": position +"/vision:v1/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark/type": type +"/vision:v1/GoogleCloudVisionV1p3beta1GcsDestination": google_cloud_vision_v1p3beta1_gcs_destination +"/vision:v1/GoogleCloudVisionV1p3beta1GcsDestination/uri": uri +"/vision:v1/GoogleCloudVisionV1p3beta1GcsSource": google_cloud_vision_v1p3beta1_gcs_source +"/vision:v1/GoogleCloudVisionV1p3beta1GcsSource/uri": uri +"/vision:v1/GoogleCloudVisionV1p3beta1ImageAnnotationContext": google_cloud_vision_v1p3beta1_image_annotation_context +"/vision:v1/GoogleCloudVisionV1p3beta1ImageAnnotationContext/pageNumber": page_number +"/vision:v1/GoogleCloudVisionV1p3beta1ImageAnnotationContext/uri": uri +"/vision:v1/GoogleCloudVisionV1p3beta1ImageProperties": google_cloud_vision_v1p3beta1_image_properties +"/vision:v1/GoogleCloudVisionV1p3beta1ImageProperties/dominantColors": dominant_colors "/vision:v1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse": google_cloud_vision_v1p3beta1_import_product_sets_response "/vision:v1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/referenceImages": reference_images "/vision:v1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/referenceImages/reference_image": reference_image "/vision:v1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/statuses": statuses "/vision:v1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/statuses/status": status +"/vision:v1/GoogleCloudVisionV1p3beta1InputConfig": google_cloud_vision_v1p3beta1_input_config +"/vision:v1/GoogleCloudVisionV1p3beta1InputConfig/gcsSource": gcs_source +"/vision:v1/GoogleCloudVisionV1p3beta1InputConfig/mimeType": mime_type +"/vision:v1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation": google_cloud_vision_v1p3beta1_localized_object_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/boundingPoly": bounding_poly +"/vision:v1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/languageCode": language_code +"/vision:v1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/mid": mid +"/vision:v1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/name": name +"/vision:v1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/score": score +"/vision:v1/GoogleCloudVisionV1p3beta1LocationInfo": google_cloud_vision_v1p3beta1_location_info +"/vision:v1/GoogleCloudVisionV1p3beta1LocationInfo/latLng": lat_lng "/vision:v1/GoogleCloudVisionV1p3beta1NormalizedVertex": google_cloud_vision_v1p3beta1_normalized_vertex "/vision:v1/GoogleCloudVisionV1p3beta1NormalizedVertex/x": x "/vision:v1/GoogleCloudVisionV1p3beta1NormalizedVertex/y": y +"/vision:v1/GoogleCloudVisionV1p3beta1OperationMetadata": google_cloud_vision_v1p3beta1_operation_metadata +"/vision:v1/GoogleCloudVisionV1p3beta1OperationMetadata/createTime": create_time +"/vision:v1/GoogleCloudVisionV1p3beta1OperationMetadata/state": state +"/vision:v1/GoogleCloudVisionV1p3beta1OperationMetadata/updateTime": update_time +"/vision:v1/GoogleCloudVisionV1p3beta1OutputConfig": google_cloud_vision_v1p3beta1_output_config +"/vision:v1/GoogleCloudVisionV1p3beta1OutputConfig/batchSize": batch_size +"/vision:v1/GoogleCloudVisionV1p3beta1OutputConfig/gcsDestination": gcs_destination +"/vision:v1/GoogleCloudVisionV1p3beta1Page": google_cloud_vision_v1p3beta1_page +"/vision:v1/GoogleCloudVisionV1p3beta1Page/blocks": blocks +"/vision:v1/GoogleCloudVisionV1p3beta1Page/blocks/block": block +"/vision:v1/GoogleCloudVisionV1p3beta1Page/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p3beta1Page/height": height +"/vision:v1/GoogleCloudVisionV1p3beta1Page/property": property +"/vision:v1/GoogleCloudVisionV1p3beta1Page/width": width +"/vision:v1/GoogleCloudVisionV1p3beta1Paragraph": google_cloud_vision_v1p3beta1_paragraph +"/vision:v1/GoogleCloudVisionV1p3beta1Paragraph/boundingBox": bounding_box +"/vision:v1/GoogleCloudVisionV1p3beta1Paragraph/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p3beta1Paragraph/property": property +"/vision:v1/GoogleCloudVisionV1p3beta1Paragraph/words": words +"/vision:v1/GoogleCloudVisionV1p3beta1Paragraph/words/word": word +"/vision:v1/GoogleCloudVisionV1p3beta1Position": google_cloud_vision_v1p3beta1_position +"/vision:v1/GoogleCloudVisionV1p3beta1Position/x": x +"/vision:v1/GoogleCloudVisionV1p3beta1Position/y": y +"/vision:v1/GoogleCloudVisionV1p3beta1Position/z": z +"/vision:v1/GoogleCloudVisionV1p3beta1Product": google_cloud_vision_v1p3beta1_product +"/vision:v1/GoogleCloudVisionV1p3beta1Product/description": description +"/vision:v1/GoogleCloudVisionV1p3beta1Product/displayName": display_name +"/vision:v1/GoogleCloudVisionV1p3beta1Product/name": name +"/vision:v1/GoogleCloudVisionV1p3beta1Product/productCategory": product_category +"/vision:v1/GoogleCloudVisionV1p3beta1Product/productLabels": product_labels +"/vision:v1/GoogleCloudVisionV1p3beta1Product/productLabels/product_label": product_label +"/vision:v1/GoogleCloudVisionV1p3beta1ProductKeyValue": google_cloud_vision_v1p3beta1_product_key_value +"/vision:v1/GoogleCloudVisionV1p3beta1ProductKeyValue/key": key +"/vision:v1/GoogleCloudVisionV1p3beta1ProductKeyValue/value": value +"/vision:v1/GoogleCloudVisionV1p3beta1ProductSearchResults": google_cloud_vision_v1p3beta1_product_search_results +"/vision:v1/GoogleCloudVisionV1p3beta1ProductSearchResults/indexTime": index_time +"/vision:v1/GoogleCloudVisionV1p3beta1ProductSearchResults/results": results +"/vision:v1/GoogleCloudVisionV1p3beta1ProductSearchResults/results/result": result +"/vision:v1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult": google_cloud_vision_v1p3beta1_product_search_results_result +"/vision:v1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult/image": image +"/vision:v1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult/product": product +"/vision:v1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult/score": score +"/vision:v1/GoogleCloudVisionV1p3beta1Property": google_cloud_vision_v1p3beta1_property +"/vision:v1/GoogleCloudVisionV1p3beta1Property/name": name +"/vision:v1/GoogleCloudVisionV1p3beta1Property/uint64Value": uint64_value +"/vision:v1/GoogleCloudVisionV1p3beta1Property/value": value "/vision:v1/GoogleCloudVisionV1p3beta1ReferenceImage": google_cloud_vision_v1p3beta1_reference_image "/vision:v1/GoogleCloudVisionV1p3beta1ReferenceImage/boundingPolys": bounding_polys "/vision:v1/GoogleCloudVisionV1p3beta1ReferenceImage/boundingPolys/bounding_poly": bounding_poly "/vision:v1/GoogleCloudVisionV1p3beta1ReferenceImage/name": name "/vision:v1/GoogleCloudVisionV1p3beta1ReferenceImage/uri": uri +"/vision:v1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation": google_cloud_vision_v1p3beta1_safe_search_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/adult": adult +"/vision:v1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/medical": medical +"/vision:v1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/racy": racy +"/vision:v1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/spoof": spoof +"/vision:v1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/violence": violence +"/vision:v1/GoogleCloudVisionV1p3beta1Symbol": google_cloud_vision_v1p3beta1_symbol +"/vision:v1/GoogleCloudVisionV1p3beta1Symbol/boundingBox": bounding_box +"/vision:v1/GoogleCloudVisionV1p3beta1Symbol/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p3beta1Symbol/property": property +"/vision:v1/GoogleCloudVisionV1p3beta1Symbol/text": text +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotation": google_cloud_vision_v1p3beta1_text_annotation +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotation/pages": pages +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotation/pages/page": page +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotation/text": text +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak": google_cloud_vision_v1p3beta1_text_annotation_detected_break +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak/isPrefix": is_prefix +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak/type": type +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage": google_cloud_vision_v1p3beta1_text_annotation_detected_language +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage/languageCode": language_code +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty": google_cloud_vision_v1p3beta1_text_annotation_text_property +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty/detectedBreak": detected_break +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty/detectedLanguages": detected_languages +"/vision:v1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty/detectedLanguages/detected_language": detected_language "/vision:v1/GoogleCloudVisionV1p3beta1Vertex": google_cloud_vision_v1p3beta1_vertex "/vision:v1/GoogleCloudVisionV1p3beta1Vertex/x": x "/vision:v1/GoogleCloudVisionV1p3beta1Vertex/y": y +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection": google_cloud_vision_v1p3beta1_web_detection +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/bestGuessLabels": best_guess_labels +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/bestGuessLabels/best_guess_label": best_guess_label +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/fullMatchingImages": full_matching_images +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/pagesWithMatchingImages": pages_with_matching_images +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/partialMatchingImages": partial_matching_images +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/visuallySimilarImages": visually_similar_images +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/webEntities": web_entities +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetection/webEntities/web_entity": web_entity +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity": google_cloud_vision_v1p3beta1_web_detection_web_entity +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity/description": description +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity/entityId": entity_id +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity/score": score +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebImage": google_cloud_vision_v1p3beta1_web_detection_web_image +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebImage/score": score +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebImage/url": url +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebLabel": google_cloud_vision_v1p3beta1_web_detection_web_label +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebLabel/label": label +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebLabel/languageCode": language_code +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebPage": google_cloud_vision_v1p3beta1_web_detection_web_page +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/fullMatchingImages": full_matching_images +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/pageTitle": page_title +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/partialMatchingImages": partial_matching_images +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/score": score +"/vision:v1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/url": url +"/vision:v1/GoogleCloudVisionV1p3beta1Word": google_cloud_vision_v1p3beta1_word +"/vision:v1/GoogleCloudVisionV1p3beta1Word/boundingBox": bounding_box +"/vision:v1/GoogleCloudVisionV1p3beta1Word/confidence": confidence +"/vision:v1/GoogleCloudVisionV1p3beta1Word/property": property +"/vision:v1/GoogleCloudVisionV1p3beta1Word/symbols": symbols +"/vision:v1/GoogleCloudVisionV1p3beta1Word/symbols/symbol": symbol "/vision:v1/GoogleRpcStatus": google_rpc_status "/vision:v1/GoogleRpcStatus/code": code "/vision:v1/GoogleRpcStatus/details": details @@ -81716,6 +86779,10 @@ "/vision:v1p1beta1/GcsDestination/uri": uri "/vision:v1p1beta1/GcsSource": gcs_source "/vision:v1p1beta1/GcsSource/uri": uri +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateFileResponse": google_cloud_vision_v1p1beta1_annotate_file_response +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateFileResponse/inputConfig": input_config +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateFileResponse/responses": responses +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateFileResponse/responses/response": response "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest": google_cloud_vision_v1p1beta1_annotate_image_request "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest/features": features "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest/features/feature": feature @@ -81745,9 +86812,14 @@ "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest/imageContext": image_context "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest/inputConfig": input_config "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest/outputConfig": output_config +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p1beta1_async_annotate_file_response +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse/outputConfig": output_config "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest": google_cloud_vision_v1p1beta1_async_batch_annotate_files_request "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest/requests": requests "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest/requests/request": request +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse": google_cloud_vision_v1p1beta1_async_batch_annotate_files_response +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse/responses": responses +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse/responses/response": response "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest": google_cloud_vision_v1p1beta1_batch_annotate_images_request "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest/requests": requests "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest/requests/request": request @@ -81846,6 +86918,10 @@ "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LatLongRect/minLatLng": min_lat_lng "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LocationInfo": google_cloud_vision_v1p1beta1_location_info "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LocationInfo/latLng": lat_lng +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OperationMetadata": google_cloud_vision_v1p1beta1_operation_metadata +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OperationMetadata/createTime": create_time +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OperationMetadata/state": state +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OperationMetadata/updateTime": update_time "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OutputConfig": google_cloud_vision_v1p1beta1_output_config "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OutputConfig/batchSize": batch_size "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OutputConfig/gcsDestination": gcs_destination @@ -82134,31 +87210,242 @@ "/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/property": property "/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/symbols": symbols "/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/symbols/symbol": symbol +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateFileResponse": google_cloud_vision_v1p3beta1_annotate_file_response +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateFileResponse/inputConfig": input_config +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateFileResponse/responses": responses +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateFileResponse/responses/response": response +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse": google_cloud_vision_v1p3beta1_annotate_image_response +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/context": context +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/error": error +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/faceAnnotations": face_annotations +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/faceAnnotations/face_annotation": face_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/fullTextAnnotation": full_text_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/labelAnnotations": label_annotations +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/landmarkAnnotations": landmark_annotations +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/landmarkAnnotations/landmark_annotation": landmark_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/localizedObjectAnnotations": localized_object_annotations +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/localizedObjectAnnotations/localized_object_annotation": localized_object_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/logoAnnotations": logo_annotations +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/productSearchResults": product_search_results +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/textAnnotations": text_annotations +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/textAnnotations/text_annotation": text_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/webDetection": web_detection +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p3beta1_async_annotate_file_response +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse/outputConfig": output_config +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse": google_cloud_vision_v1p3beta1_async_batch_annotate_files_response +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse/responses": responses +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse/responses/response": response "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata": google_cloud_vision_v1p3beta1_batch_operation_metadata "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/endTime": end_time "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/state": state "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/submitTime": submit_time +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Block": google_cloud_vision_v1p3beta1_block +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Block/blockType": block_type +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Block/boundingBox": bounding_box +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Block/confidence": confidence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Block/paragraphs": paragraphs +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Block/paragraphs/paragraph": paragraph +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Block/property": property "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BoundingPoly": google_cloud_vision_v1p3beta1_bounding_poly "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BoundingPoly/normalizedVertices": normalized_vertices "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BoundingPoly/vertices": vertices "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BoundingPoly/vertices/vertex": vertex +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ColorInfo": google_cloud_vision_v1p3beta1_color_info +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ColorInfo/color": color +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ColorInfo/pixelFraction": pixel_fraction +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ColorInfo/score": score +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1CropHint": google_cloud_vision_v1p3beta1_crop_hint +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1CropHint/boundingPoly": bounding_poly +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1CropHint/confidence": confidence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1CropHint/importanceFraction": importance_fraction +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1CropHintsAnnotation": google_cloud_vision_v1p3beta1_crop_hints_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1CropHintsAnnotation/cropHints": crop_hints +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1CropHintsAnnotation/cropHints/crop_hint": crop_hint +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1DominantColorsAnnotation": google_cloud_vision_v1p3beta1_dominant_colors_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1DominantColorsAnnotation/colors": colors +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1DominantColorsAnnotation/colors/color": color +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation": google_cloud_vision_v1p3beta1_entity_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/boundingPoly": bounding_poly +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/confidence": confidence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/description": description +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/locale": locale +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/locations": locations +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/locations/location": location +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/mid": mid +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/properties": properties +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/properties/property": property +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/score": score +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/topicality": topicality +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation": google_cloud_vision_v1p3beta1_face_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/angerLikelihood": anger_likelihood +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/blurredLikelihood": blurred_likelihood +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/boundingPoly": bounding_poly +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/detectionConfidence": detection_confidence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/fdBoundingPoly": fd_bounding_poly +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/headwearLikelihood": headwear_likelihood +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/joyLikelihood": joy_likelihood +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/landmarkingConfidence": landmarking_confidence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/landmarks": landmarks +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/landmarks/landmark": landmark +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/panAngle": pan_angle +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/rollAngle": roll_angle +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/sorrowLikelihood": sorrow_likelihood +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/surpriseLikelihood": surprise_likelihood +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/tiltAngle": tilt_angle +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/underExposedLikelihood": under_exposed_likelihood +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark": google_cloud_vision_v1p3beta1_face_annotation_landmark +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark/position": position +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark/type": type +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1GcsDestination": google_cloud_vision_v1p3beta1_gcs_destination +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1GcsDestination/uri": uri +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1GcsSource": google_cloud_vision_v1p3beta1_gcs_source +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1GcsSource/uri": uri +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImageAnnotationContext": google_cloud_vision_v1p3beta1_image_annotation_context +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImageAnnotationContext/pageNumber": page_number +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImageAnnotationContext/uri": uri +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImageProperties": google_cloud_vision_v1p3beta1_image_properties +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImageProperties/dominantColors": dominant_colors "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse": google_cloud_vision_v1p3beta1_import_product_sets_response "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/referenceImages": reference_images "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/referenceImages/reference_image": reference_image "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/statuses": statuses "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/statuses/status": status +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1InputConfig": google_cloud_vision_v1p3beta1_input_config +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1InputConfig/gcsSource": gcs_source +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1InputConfig/mimeType": mime_type +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation": google_cloud_vision_v1p3beta1_localized_object_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/boundingPoly": bounding_poly +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/languageCode": language_code +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/mid": mid +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/name": name +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/score": score +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1LocationInfo": google_cloud_vision_v1p3beta1_location_info +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1LocationInfo/latLng": lat_lng "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1NormalizedVertex": google_cloud_vision_v1p3beta1_normalized_vertex "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1NormalizedVertex/x": x "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1NormalizedVertex/y": y +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1OperationMetadata": google_cloud_vision_v1p3beta1_operation_metadata +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1OperationMetadata/createTime": create_time +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1OperationMetadata/state": state +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1OperationMetadata/updateTime": update_time +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1OutputConfig": google_cloud_vision_v1p3beta1_output_config +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1OutputConfig/batchSize": batch_size +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1OutputConfig/gcsDestination": gcs_destination +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Page": google_cloud_vision_v1p3beta1_page +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Page/blocks": blocks +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Page/blocks/block": block +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Page/confidence": confidence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Page/height": height +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Page/property": property +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Page/width": width +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Paragraph": google_cloud_vision_v1p3beta1_paragraph +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Paragraph/boundingBox": bounding_box +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Paragraph/confidence": confidence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Paragraph/property": property +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Paragraph/words": words +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Paragraph/words/word": word +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Position": google_cloud_vision_v1p3beta1_position +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Position/x": x +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Position/y": y +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Position/z": z +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Product": google_cloud_vision_v1p3beta1_product +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Product/description": description +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Product/displayName": display_name +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Product/name": name +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Product/productCategory": product_category +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Product/productLabels": product_labels +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Product/productLabels/product_label": product_label +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductKeyValue": google_cloud_vision_v1p3beta1_product_key_value +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductKeyValue/key": key +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductKeyValue/value": value +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductSearchResults": google_cloud_vision_v1p3beta1_product_search_results +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductSearchResults/indexTime": index_time +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductSearchResults/results": results +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductSearchResults/results/result": result +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult": google_cloud_vision_v1p3beta1_product_search_results_result +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult/image": image +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult/product": product +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult/score": score +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Property": google_cloud_vision_v1p3beta1_property +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Property/name": name +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Property/uint64Value": uint64_value +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Property/value": value "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ReferenceImage": google_cloud_vision_v1p3beta1_reference_image "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ReferenceImage/boundingPolys": bounding_polys "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ReferenceImage/boundingPolys/bounding_poly": bounding_poly "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ReferenceImage/name": name "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ReferenceImage/uri": uri +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation": google_cloud_vision_v1p3beta1_safe_search_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/adult": adult +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/medical": medical +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/racy": racy +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/spoof": spoof +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/violence": violence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Symbol": google_cloud_vision_v1p3beta1_symbol +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Symbol/boundingBox": bounding_box +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Symbol/confidence": confidence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Symbol/property": property +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Symbol/text": text +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotation": google_cloud_vision_v1p3beta1_text_annotation +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotation/pages": pages +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotation/pages/page": page +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotation/text": text +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak": google_cloud_vision_v1p3beta1_text_annotation_detected_break +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak/isPrefix": is_prefix +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak/type": type +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage": google_cloud_vision_v1p3beta1_text_annotation_detected_language +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage/confidence": confidence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage/languageCode": language_code +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty": google_cloud_vision_v1p3beta1_text_annotation_text_property +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty/detectedBreak": detected_break +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty/detectedLanguages": detected_languages +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty/detectedLanguages/detected_language": detected_language "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Vertex": google_cloud_vision_v1p3beta1_vertex "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Vertex/x": x "/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Vertex/y": y +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection": google_cloud_vision_v1p3beta1_web_detection +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/bestGuessLabels": best_guess_labels +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/bestGuessLabels/best_guess_label": best_guess_label +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/fullMatchingImages": full_matching_images +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/pagesWithMatchingImages": pages_with_matching_images +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/partialMatchingImages": partial_matching_images +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/visuallySimilarImages": visually_similar_images +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/webEntities": web_entities +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetection/webEntities/web_entity": web_entity +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity": google_cloud_vision_v1p3beta1_web_detection_web_entity +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity/description": description +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity/entityId": entity_id +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity/score": score +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebImage": google_cloud_vision_v1p3beta1_web_detection_web_image +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebImage/score": score +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebImage/url": url +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebLabel": google_cloud_vision_v1p3beta1_web_detection_web_label +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebLabel/label": label +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebLabel/languageCode": language_code +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage": google_cloud_vision_v1p3beta1_web_detection_web_page +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/fullMatchingImages": full_matching_images +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/pageTitle": page_title +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/partialMatchingImages": partial_matching_images +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/score": score +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/url": url +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Word": google_cloud_vision_v1p3beta1_word +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Word/boundingBox": bounding_box +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Word/confidence": confidence +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Word/property": property +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Word/symbols": symbols +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Word/symbols/symbol": symbol "/vision:v1p1beta1/GoogleRpcStatus": google_rpc_status "/vision:v1p1beta1/GoogleRpcStatus/code": code "/vision:v1p1beta1/GoogleRpcStatus/details": details @@ -82395,6 +87682,196 @@ "/vision:v1p2beta1/GcsDestination/uri": uri "/vision:v1p2beta1/GcsSource": gcs_source "/vision:v1p2beta1/GcsSource/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateFileResponse": google_cloud_vision_v1p1beta1_annotate_file_response +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateFileResponse/inputConfig": input_config +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateFileResponse/responses": responses +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateFileResponse/responses/response": response +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse": google_cloud_vision_v1p1beta1_annotate_image_response +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/context": context +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/error": error +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/faceAnnotations": face_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/faceAnnotations/face_annotation": face_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/fullTextAnnotation": full_text_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/labelAnnotations": label_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/landmarkAnnotations": landmark_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/landmarkAnnotations/landmark_annotation": landmark_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/logoAnnotations": logo_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/textAnnotations": text_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/textAnnotations/text_annotation": text_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/webDetection": web_detection +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p1beta1_async_annotate_file_response +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse/outputConfig": output_config +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse": google_cloud_vision_v1p1beta1_async_batch_annotate_files_response +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse/responses": responses +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse/responses/response": response +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block": google_cloud_vision_v1p1beta1_block +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block/blockType": block_type +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block/paragraphs": paragraphs +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block/paragraphs/paragraph": paragraph +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly": google_cloud_vision_v1p1beta1_bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices": vertices +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices/vertex": vertex +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ColorInfo": google_cloud_vision_v1p1beta1_color_info +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ColorInfo/color": color +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ColorInfo/pixelFraction": pixel_fraction +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ColorInfo/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1CropHint": google_cloud_vision_v1p1beta1_crop_hint +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1CropHint/boundingPoly": bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1CropHint/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1CropHint/importanceFraction": importance_fraction +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1CropHintsAnnotation": google_cloud_vision_v1p1beta1_crop_hints_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1CropHintsAnnotation/cropHints": crop_hints +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1CropHintsAnnotation/cropHints/crop_hint": crop_hint +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1DominantColorsAnnotation": google_cloud_vision_v1p1beta1_dominant_colors_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1DominantColorsAnnotation/colors": colors +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1DominantColorsAnnotation/colors/color": color +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation": google_cloud_vision_v1p1beta1_entity_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/boundingPoly": bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/description": description +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/locale": locale +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/locations": locations +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/locations/location": location +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/mid": mid +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/properties": properties +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/properties/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1EntityAnnotation/topicality": topicality +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation": google_cloud_vision_v1p1beta1_face_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/angerLikelihood": anger_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/blurredLikelihood": blurred_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/boundingPoly": bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/detectionConfidence": detection_confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/fdBoundingPoly": fd_bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/headwearLikelihood": headwear_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/joyLikelihood": joy_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/landmarkingConfidence": landmarking_confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/landmarks": landmarks +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/landmarks/landmark": landmark +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/panAngle": pan_angle +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/rollAngle": roll_angle +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/sorrowLikelihood": sorrow_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/surpriseLikelihood": surprise_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/tiltAngle": tilt_angle +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotation/underExposedLikelihood": under_exposed_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotationLandmark": google_cloud_vision_v1p1beta1_face_annotation_landmark +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotationLandmark/position": position +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1FaceAnnotationLandmark/type": type +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1GcsDestination": google_cloud_vision_v1p1beta1_gcs_destination +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1GcsDestination/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1GcsSource": google_cloud_vision_v1p1beta1_gcs_source +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1GcsSource/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ImageAnnotationContext": google_cloud_vision_v1p1beta1_image_annotation_context +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ImageAnnotationContext/pageNumber": page_number +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ImageAnnotationContext/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ImageProperties": google_cloud_vision_v1p1beta1_image_properties +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ImageProperties/dominantColors": dominant_colors +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1InputConfig": google_cloud_vision_v1p1beta1_input_config +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1InputConfig/gcsSource": gcs_source +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1InputConfig/mimeType": mime_type +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1LocationInfo": google_cloud_vision_v1p1beta1_location_info +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1LocationInfo/latLng": lat_lng +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OperationMetadata": google_cloud_vision_v1p1beta1_operation_metadata +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OperationMetadata/createTime": create_time +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OperationMetadata/state": state +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OperationMetadata/updateTime": update_time +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OutputConfig": google_cloud_vision_v1p1beta1_output_config +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OutputConfig/batchSize": batch_size +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OutputConfig/gcsDestination": gcs_destination +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Page": google_cloud_vision_v1p1beta1_page +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Page/blocks": blocks +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Page/blocks/block": block +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Page/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Page/height": height +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Page/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Page/width": width +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Paragraph": google_cloud_vision_v1p1beta1_paragraph +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Paragraph/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Paragraph/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Paragraph/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Paragraph/words": words +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Paragraph/words/word": word +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Position": google_cloud_vision_v1p1beta1_position +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Position/x": x +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Position/y": y +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Position/z": z +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Property": google_cloud_vision_v1p1beta1_property +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Property/name": name +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Property/uint64Value": uint64_value +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Property/value": value +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation": google_cloud_vision_v1p1beta1_safe_search_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation/adult": adult +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation/medical": medical +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation/racy": racy +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation/spoof": spoof +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1SafeSearchAnnotation/violence": violence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Symbol": google_cloud_vision_v1p1beta1_symbol +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Symbol/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Symbol/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Symbol/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Symbol/text": text +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotation": google_cloud_vision_v1p1beta1_text_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotation/pages": pages +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotation/pages/page": page +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotation/text": text +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak": google_cloud_vision_v1p1beta1_text_annotation_detected_break +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak/isPrefix": is_prefix +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak/type": type +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage": google_cloud_vision_v1p1beta1_text_annotation_detected_language +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage/languageCode": language_code +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty": google_cloud_vision_v1p1beta1_text_annotation_text_property +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty/detectedBreak": detected_break +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty/detectedLanguages": detected_languages +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty/detectedLanguages/detected_language": detected_language +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Vertex": google_cloud_vision_v1p1beta1_vertex +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Vertex/x": x +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Vertex/y": y +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection": google_cloud_vision_v1p1beta1_web_detection +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/bestGuessLabels": best_guess_labels +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/bestGuessLabels/best_guess_label": best_guess_label +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/fullMatchingImages": full_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/pagesWithMatchingImages": pages_with_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/partialMatchingImages": partial_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/visuallySimilarImages": visually_similar_images +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/webEntities": web_entities +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetection/webEntities/web_entity": web_entity +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebEntity": google_cloud_vision_v1p1beta1_web_detection_web_entity +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebEntity/description": description +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebEntity/entityId": entity_id +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebEntity/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebImage": google_cloud_vision_v1p1beta1_web_detection_web_image +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebImage/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebImage/url": url +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebLabel": google_cloud_vision_v1p1beta1_web_detection_web_label +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebLabel/label": label +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebLabel/languageCode": language_code +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebPage": google_cloud_vision_v1p1beta1_web_detection_web_page +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/fullMatchingImages": full_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/pageTitle": page_title +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/partialMatchingImages": partial_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1WebDetectionWebPage/url": url +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Word": google_cloud_vision_v1p1beta1_word +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Word/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Word/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Word/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Word/symbols": symbols +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Word/symbols/symbol": symbol "/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse": google_cloud_vision_v1p2beta1_annotate_file_response "/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/inputConfig": input_config "/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/responses": responses @@ -82636,31 +88113,242 @@ "/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Word/property": property "/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Word/symbols": symbols "/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Word/symbols/symbol": symbol +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateFileResponse": google_cloud_vision_v1p3beta1_annotate_file_response +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateFileResponse/inputConfig": input_config +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateFileResponse/responses": responses +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateFileResponse/responses/response": response +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse": google_cloud_vision_v1p3beta1_annotate_image_response +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/context": context +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/error": error +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/faceAnnotations": face_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/faceAnnotations/face_annotation": face_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/fullTextAnnotation": full_text_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/labelAnnotations": label_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/landmarkAnnotations": landmark_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/landmarkAnnotations/landmark_annotation": landmark_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/localizedObjectAnnotations": localized_object_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/localizedObjectAnnotations/localized_object_annotation": localized_object_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/logoAnnotations": logo_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/productSearchResults": product_search_results +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/textAnnotations": text_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/textAnnotations/text_annotation": text_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AnnotateImageResponse/webDetection": web_detection +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p3beta1_async_annotate_file_response +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse/outputConfig": output_config +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse": google_cloud_vision_v1p3beta1_async_batch_annotate_files_response +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse/responses": responses +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse/responses/response": response "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata": google_cloud_vision_v1p3beta1_batch_operation_metadata "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/endTime": end_time "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/state": state "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/submitTime": submit_time +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Block": google_cloud_vision_v1p3beta1_block +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Block/blockType": block_type +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Block/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Block/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Block/paragraphs": paragraphs +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Block/paragraphs/paragraph": paragraph +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Block/property": property "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1BoundingPoly": google_cloud_vision_v1p3beta1_bounding_poly "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1BoundingPoly/normalizedVertices": normalized_vertices "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1BoundingPoly/vertices": vertices "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1BoundingPoly/vertices/vertex": vertex +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ColorInfo": google_cloud_vision_v1p3beta1_color_info +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ColorInfo/color": color +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ColorInfo/pixelFraction": pixel_fraction +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ColorInfo/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1CropHint": google_cloud_vision_v1p3beta1_crop_hint +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1CropHint/boundingPoly": bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1CropHint/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1CropHint/importanceFraction": importance_fraction +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1CropHintsAnnotation": google_cloud_vision_v1p3beta1_crop_hints_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1CropHintsAnnotation/cropHints": crop_hints +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1CropHintsAnnotation/cropHints/crop_hint": crop_hint +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1DominantColorsAnnotation": google_cloud_vision_v1p3beta1_dominant_colors_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1DominantColorsAnnotation/colors": colors +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1DominantColorsAnnotation/colors/color": color +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation": google_cloud_vision_v1p3beta1_entity_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/boundingPoly": bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/description": description +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/locale": locale +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/locations": locations +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/locations/location": location +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/mid": mid +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/properties": properties +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/properties/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1EntityAnnotation/topicality": topicality +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation": google_cloud_vision_v1p3beta1_face_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/angerLikelihood": anger_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/blurredLikelihood": blurred_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/boundingPoly": bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/detectionConfidence": detection_confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/fdBoundingPoly": fd_bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/headwearLikelihood": headwear_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/joyLikelihood": joy_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/landmarkingConfidence": landmarking_confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/landmarks": landmarks +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/landmarks/landmark": landmark +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/panAngle": pan_angle +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/rollAngle": roll_angle +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/sorrowLikelihood": sorrow_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/surpriseLikelihood": surprise_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/tiltAngle": tilt_angle +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotation/underExposedLikelihood": under_exposed_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark": google_cloud_vision_v1p3beta1_face_annotation_landmark +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark/position": position +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark/type": type +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1GcsDestination": google_cloud_vision_v1p3beta1_gcs_destination +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1GcsDestination/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1GcsSource": google_cloud_vision_v1p3beta1_gcs_source +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1GcsSource/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ImageAnnotationContext": google_cloud_vision_v1p3beta1_image_annotation_context +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ImageAnnotationContext/pageNumber": page_number +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ImageAnnotationContext/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ImageProperties": google_cloud_vision_v1p3beta1_image_properties +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ImageProperties/dominantColors": dominant_colors "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse": google_cloud_vision_v1p3beta1_import_product_sets_response "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/referenceImages": reference_images "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/referenceImages/reference_image": reference_image "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/statuses": statuses "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/statuses/status": status +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1InputConfig": google_cloud_vision_v1p3beta1_input_config +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1InputConfig/gcsSource": gcs_source +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1InputConfig/mimeType": mime_type +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation": google_cloud_vision_v1p3beta1_localized_object_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/boundingPoly": bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/languageCode": language_code +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/mid": mid +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/name": name +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1LocationInfo": google_cloud_vision_v1p3beta1_location_info +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1LocationInfo/latLng": lat_lng "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1NormalizedVertex": google_cloud_vision_v1p3beta1_normalized_vertex "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1NormalizedVertex/x": x "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1NormalizedVertex/y": y +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1OperationMetadata": google_cloud_vision_v1p3beta1_operation_metadata +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1OperationMetadata/createTime": create_time +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1OperationMetadata/state": state +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1OperationMetadata/updateTime": update_time +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1OutputConfig": google_cloud_vision_v1p3beta1_output_config +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1OutputConfig/batchSize": batch_size +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1OutputConfig/gcsDestination": gcs_destination +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Page": google_cloud_vision_v1p3beta1_page +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Page/blocks": blocks +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Page/blocks/block": block +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Page/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Page/height": height +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Page/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Page/width": width +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Paragraph": google_cloud_vision_v1p3beta1_paragraph +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Paragraph/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Paragraph/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Paragraph/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Paragraph/words": words +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Paragraph/words/word": word +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Position": google_cloud_vision_v1p3beta1_position +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Position/x": x +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Position/y": y +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Position/z": z +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Product": google_cloud_vision_v1p3beta1_product +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Product/description": description +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Product/displayName": display_name +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Product/name": name +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Product/productCategory": product_category +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Product/productLabels": product_labels +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Product/productLabels/product_label": product_label +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductKeyValue": google_cloud_vision_v1p3beta1_product_key_value +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductKeyValue/key": key +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductKeyValue/value": value +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductSearchResults": google_cloud_vision_v1p3beta1_product_search_results +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductSearchResults/indexTime": index_time +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductSearchResults/results": results +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductSearchResults/results/result": result +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult": google_cloud_vision_v1p3beta1_product_search_results_result +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult/image": image +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult/product": product +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ProductSearchResultsResult/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Property": google_cloud_vision_v1p3beta1_property +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Property/name": name +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Property/uint64Value": uint64_value +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Property/value": value "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ReferenceImage": google_cloud_vision_v1p3beta1_reference_image "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ReferenceImage/boundingPolys": bounding_polys "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ReferenceImage/boundingPolys/bounding_poly": bounding_poly "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ReferenceImage/name": name "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1ReferenceImage/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation": google_cloud_vision_v1p3beta1_safe_search_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/adult": adult +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/medical": medical +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/racy": racy +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/spoof": spoof +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1SafeSearchAnnotation/violence": violence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Symbol": google_cloud_vision_v1p3beta1_symbol +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Symbol/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Symbol/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Symbol/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Symbol/text": text +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotation": google_cloud_vision_v1p3beta1_text_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotation/pages": pages +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotation/pages/page": page +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotation/text": text +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak": google_cloud_vision_v1p3beta1_text_annotation_detected_break +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak/isPrefix": is_prefix +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak/type": type +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage": google_cloud_vision_v1p3beta1_text_annotation_detected_language +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage/languageCode": language_code +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty": google_cloud_vision_v1p3beta1_text_annotation_text_property +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty/detectedBreak": detected_break +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty/detectedLanguages": detected_languages +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty/detectedLanguages/detected_language": detected_language "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Vertex": google_cloud_vision_v1p3beta1_vertex "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Vertex/x": x "/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Vertex/y": y +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection": google_cloud_vision_v1p3beta1_web_detection +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/bestGuessLabels": best_guess_labels +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/bestGuessLabels/best_guess_label": best_guess_label +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/fullMatchingImages": full_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/pagesWithMatchingImages": pages_with_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/partialMatchingImages": partial_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/visuallySimilarImages": visually_similar_images +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/webEntities": web_entities +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetection/webEntities/web_entity": web_entity +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity": google_cloud_vision_v1p3beta1_web_detection_web_entity +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity/description": description +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity/entityId": entity_id +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebEntity/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebImage": google_cloud_vision_v1p3beta1_web_detection_web_image +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebImage/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebImage/url": url +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebLabel": google_cloud_vision_v1p3beta1_web_detection_web_label +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebLabel/label": label +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebLabel/languageCode": language_code +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage": google_cloud_vision_v1p3beta1_web_detection_web_page +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/fullMatchingImages": full_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/pageTitle": page_title +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/partialMatchingImages": partial_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1WebDetectionWebPage/url": url +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Word": google_cloud_vision_v1p3beta1_word +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Word/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Word/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Word/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Word/symbols": symbols +"/vision:v1p2beta1/GoogleCloudVisionV1p3beta1Word/symbols/symbol": symbol "/vision:v1p2beta1/ImageAnnotationContext": image_annotation_context "/vision:v1p2beta1/ImageAnnotationContext/pageNumber": page_number "/vision:v1p2beta1/ImageAnnotationContext/uri": uri @@ -82956,6 +88644,7 @@ "/websecurityscanner:v1alpha/Finding/reproductionUrl": reproduction_url "/websecurityscanner:v1alpha/Finding/trackingId": tracking_id "/websecurityscanner:v1alpha/Finding/violatingResource": violating_resource +"/websecurityscanner:v1alpha/Finding/vulnerableHeaders": vulnerable_headers "/websecurityscanner:v1alpha/Finding/vulnerableParameters": vulnerable_parameters "/websecurityscanner:v1alpha/Finding/xss": xss "/websecurityscanner:v1alpha/FindingTypeStats": finding_type_stats @@ -82964,6 +88653,9 @@ "/websecurityscanner:v1alpha/GoogleAccount": google_account "/websecurityscanner:v1alpha/GoogleAccount/password": password "/websecurityscanner:v1alpha/GoogleAccount/username": username +"/websecurityscanner:v1alpha/Header": header +"/websecurityscanner:v1alpha/Header/name": name +"/websecurityscanner:v1alpha/Header/value": value "/websecurityscanner:v1alpha/ListCrawledUrlsResponse": list_crawled_urls_response "/websecurityscanner:v1alpha/ListCrawledUrlsResponse/crawledUrls": crawled_urls "/websecurityscanner:v1alpha/ListCrawledUrlsResponse/crawledUrls/crawled_url": crawled_url @@ -83019,6 +88711,11 @@ "/websecurityscanner:v1alpha/ViolatingResource": violating_resource "/websecurityscanner:v1alpha/ViolatingResource/contentType": content_type "/websecurityscanner:v1alpha/ViolatingResource/resourceUrl": resource_url +"/websecurityscanner:v1alpha/VulnerableHeaders": vulnerable_headers +"/websecurityscanner:v1alpha/VulnerableHeaders/headers": headers +"/websecurityscanner:v1alpha/VulnerableHeaders/headers/header": header +"/websecurityscanner:v1alpha/VulnerableHeaders/missingHeaders": missing_headers +"/websecurityscanner:v1alpha/VulnerableHeaders/missingHeaders/missing_header": missing_header "/websecurityscanner:v1alpha/VulnerableParameters": vulnerable_parameters "/websecurityscanner:v1alpha/VulnerableParameters/parameterNames": parameter_names "/websecurityscanner:v1alpha/VulnerableParameters/parameterNames/parameter_name": parameter_name diff --git a/generated/google/apis/abusiveexperiencereport_v1.rb b/generated/google/apis/abusiveexperiencereport_v1.rb index 18ea178c6..18bc12cf4 100644 --- a/generated/google/apis/abusiveexperiencereport_v1.rb +++ b/generated/google/apis/abusiveexperiencereport_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/abusive-experience-report/ module AbusiveexperiencereportV1 VERSION = 'V1' - REVISION = '20180419' + REVISION = '20180807' # Test scope for access to the Zoo service AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo' diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index 06cb2dbeb..68f901731 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20180709' + REVISION = '20180820' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb index 9522c016f..43d0526ef 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb @@ -481,7 +481,7 @@ module Google end # A creative and its classification data. - # Next ID: 36 + # Next ID: 38 class Creative include Google::Apis::Core::Hashable @@ -551,6 +551,11 @@ module Google # @return [String] attr_accessor :deals_status + # The set of declared destination URLs for the creative. + # Corresponds to the JSON property `declaredClickThroughUrls` + # @return [Array] + attr_accessor :declared_click_through_urls + # @OutputOnly Detected advertiser IDs, if any. # Corresponds to the JSON property `detectedAdvertiserIds` # @return [Array] @@ -664,6 +669,7 @@ module Google @corrections = args[:corrections] if args.key?(:corrections) @creative_id = args[:creative_id] if args.key?(:creative_id) @deals_status = args[:deals_status] if args.key?(:deals_status) + @declared_click_through_urls = args[:declared_click_through_urls] if args.key?(:declared_click_through_urls) @detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids) @detected_domains = args[:detected_domains] if args.key?(:detected_domains) @detected_languages = args[:detected_languages] if args.key?(:detected_languages) diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb index d7c991cb8..24e914ebc 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb @@ -496,6 +496,7 @@ module Google property :creative_id, as: 'creativeId' property :deals_status, as: 'dealsStatus' + collection :declared_click_through_urls, as: 'declaredClickThroughUrls' collection :detected_advertiser_ids, as: 'detectedAdvertiserIds' collection :detected_domains, as: 'detectedDomains' collection :detected_languages, as: 'detectedLanguages' diff --git a/generated/google/apis/adexchangebuyer_v1_2.rb b/generated/google/apis/adexchangebuyer_v1_2.rb index bf45ae2c4..a2c2203f9 100644 --- a/generated/google/apis/adexchangebuyer_v1_2.rb +++ b/generated/google/apis/adexchangebuyer_v1_2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest module AdexchangebuyerV1_2 VERSION = 'V1_2' - REVISION = '' + REVISION = '20180222' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer_v1_3.rb b/generated/google/apis/adexchangebuyer_v1_3.rb index 051d395e8..63e911014 100644 --- a/generated/google/apis/adexchangebuyer_v1_3.rb +++ b/generated/google/apis/adexchangebuyer_v1_3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest module AdexchangebuyerV1_3 VERSION = 'V1_3' - REVISION = '' + REVISION = '20180222' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer_v1_4.rb b/generated/google/apis/adexchangebuyer_v1_4.rb index b4891c63c..72a66487e 100644 --- a/generated/google/apis/adexchangebuyer_v1_4.rb +++ b/generated/google/apis/adexchangebuyer_v1_4.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest module AdexchangebuyerV1_4 VERSION = 'V1_4' - REVISION = '' + REVISION = '20180222' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangeseller_v1.rb b/generated/google/apis/adexchangeseller_v1.rb index 2504c4fc9..639aa435f 100644 --- a/generated/google/apis/adexchangeseller_v1.rb +++ b/generated/google/apis/adexchangeseller_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/ad-exchange/seller-rest/ module AdexchangesellerV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180708' # View and manage your Ad Exchange data AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' diff --git a/generated/google/apis/adexchangeseller_v1_1.rb b/generated/google/apis/adexchangeseller_v1_1.rb index b4976fede..00c2bb718 100644 --- a/generated/google/apis/adexchangeseller_v1_1.rb +++ b/generated/google/apis/adexchangeseller_v1_1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/ad-exchange/seller-rest/ module AdexchangesellerV1_1 VERSION = 'V1_1' - REVISION = '' + REVISION = '20180708' # View and manage your Ad Exchange data AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' diff --git a/generated/google/apis/adexchangeseller_v2_0.rb b/generated/google/apis/adexchangeseller_v2_0.rb index df27c046f..5e4c3c829 100644 --- a/generated/google/apis/adexchangeseller_v2_0.rb +++ b/generated/google/apis/adexchangeseller_v2_0.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/ad-exchange/seller-rest/ module AdexchangesellerV2_0 VERSION = 'V2_0' - REVISION = '' + REVISION = '20180708' # View and manage your Ad Exchange data AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' diff --git a/generated/google/apis/adexperiencereport_v1.rb b/generated/google/apis/adexperiencereport_v1.rb index eb989ba5c..bc0b9ca77 100644 --- a/generated/google/apis/adexperiencereport_v1.rb +++ b/generated/google/apis/adexperiencereport_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-experience-report/ module AdexperiencereportV1 VERSION = 'V1' - REVISION = '20180420' + REVISION = '20180807' # Test scope for access to the Zoo service AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo' diff --git a/generated/google/apis/admin_datatransfer_v1.rb b/generated/google/apis/admin_datatransfer_v1.rb index 103ef5138..0b1393650 100644 --- a/generated/google/apis/admin_datatransfer_v1.rb +++ b/generated/google/apis/admin_datatransfer_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/admin-sdk/data-transfer/ module AdminDatatransferV1 VERSION = 'DatatransferV1' - REVISION = '' + REVISION = '20160223' # View and manage data transfers between users in your organization AUTH_ADMIN_DATATRANSFER = 'https://www.googleapis.com/auth/admin.datatransfer' diff --git a/generated/google/apis/admin_directory_v1.rb b/generated/google/apis/admin_directory_v1.rb index 02b63533f..1092b2859 100644 --- a/generated/google/apis/admin_directory_v1.rb +++ b/generated/google/apis/admin_directory_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/directory/ module AdminDirectoryV1 VERSION = 'DirectoryV1' - REVISION = '' + REVISION = '20180705' # View and manage customer related information AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer' diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index 8c69c8eef..00bdf7893 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -2896,6 +2896,12 @@ module Google # @return [Array] attr_accessor :aliases + # Indicates if user is archived + # Corresponds to the JSON property `archived` + # @return [Boolean] + attr_accessor :archived + alias_method :archived?, :archived + # Boolean indicating if the user should change password in next login # Corresponds to the JSON property `changePasswordAtNextLogin` # @return [Boolean] @@ -3114,6 +3120,7 @@ module Google @addresses = args[:addresses] if args.key?(:addresses) @agreed_to_terms = args[:agreed_to_terms] if args.key?(:agreed_to_terms) @aliases = args[:aliases] if args.key?(:aliases) + @archived = args[:archived] if args.key?(:archived) @change_password_at_next_login = args[:change_password_at_next_login] if args.key?(:change_password_at_next_login) @creation_time = args[:creation_time] if args.key?(:creation_time) @custom_schemas = args[:custom_schemas] if args.key?(:custom_schemas) diff --git a/generated/google/apis/admin_directory_v1/representations.rb b/generated/google/apis/admin_directory_v1/representations.rb index 163685a2c..48b57cb0b 100644 --- a/generated/google/apis/admin_directory_v1/representations.rb +++ b/generated/google/apis/admin_directory_v1/representations.rb @@ -1229,6 +1229,7 @@ module Google property :addresses, as: 'addresses' property :agreed_to_terms, as: 'agreedToTerms' collection :aliases, as: 'aliases' + property :archived, as: 'archived' property :change_password_at_next_login, as: 'changePasswordAtNextLogin' property :creation_time, as: 'creationTime', type: DateTime diff --git a/generated/google/apis/admin_reports_v1.rb b/generated/google/apis/admin_reports_v1.rb index ca1f9c6cd..eb5a9fb89 100644 --- a/generated/google/apis/admin_reports_v1.rb +++ b/generated/google/apis/admin_reports_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/reports/ module AdminReportsV1 VERSION = 'ReportsV1' - REVISION = '' + REVISION = '20180806' # View audit reports for your G Suite domain AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly' diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index 6e29c6335..33d82150f 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '' + REVISION = '20180807' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsense_v1_4/classes.rb b/generated/google/apis/adsense_v1_4/classes.rb index b82e36932..e36b5c828 100644 --- a/generated/google/apis/adsense_v1_4/classes.rb +++ b/generated/google/apis/adsense_v1_4/classes.rb @@ -204,11 +204,21 @@ module Google class AdCode include Google::Apis::Core::Hashable - # The ad code snippet. + # The Auto ad code snippet. The ad code snippet. # Corresponds to the JSON property `adCode` # @return [String] attr_accessor :ad_code + # The AMP Auto ad code snippet that goes in the body of an AMP page. + # Corresponds to the JSON property `ampBody` + # @return [String] + attr_accessor :amp_body + + # The AMP Auto ad code snippet that goes in the head of an AMP page. + # Corresponds to the JSON property `ampHead` + # @return [String] + attr_accessor :amp_head + # Kind this is, in this case adsense#adCode. # Corresponds to the JSON property `kind` # @return [String] @@ -221,6 +231,8 @@ module Google # Update properties of this object def update!(**args) @ad_code = args[:ad_code] if args.key?(:ad_code) + @amp_body = args[:amp_body] if args.key?(:amp_body) + @amp_head = args[:amp_head] if args.key?(:amp_head) @kind = args[:kind] if args.key?(:kind) end end diff --git a/generated/google/apis/adsense_v1_4/representations.rb b/generated/google/apis/adsense_v1_4/representations.rb index d977a03f5..3bba548ab 100644 --- a/generated/google/apis/adsense_v1_4/representations.rb +++ b/generated/google/apis/adsense_v1_4/representations.rb @@ -259,6 +259,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :ad_code, as: 'adCode' + property :amp_body, as: 'ampBody' + property :amp_head, as: 'ampHead' property :kind, as: 'kind' end end diff --git a/generated/google/apis/adsense_v1_4/service.rb b/generated/google/apis/adsense_v1_4/service.rb index a271636aa..2b60f0be5 100644 --- a/generated/google/apis/adsense_v1_4/service.rb +++ b/generated/google/apis/adsense_v1_4/service.rb @@ -124,6 +124,42 @@ module Google execute_or_queue_command(command, &block) end + # Get Auto ad code for a given ad client. + # @param [String] account_id + # Account which contains the ad client. + # @param [String] ad_client_id + # Ad client to get the code for. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdsenseV1_4::AdCode] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdsenseV1_4::AdCode] + # + # @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_account_adclient_ad_code(account_id, ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adcode', options) + command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation + command.response_class = Google::Apis::AdsenseV1_4::AdCode + command.params['accountId'] = account_id unless account_id.nil? + command.params['adClientId'] = ad_client_id unless ad_client_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # List all ad clients in the specified account. # @param [String] account_id # Account for which to list ad clients. diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index 96c0f81ec..0b9e00a24 100644 --- a/generated/google/apis/adsensehost_v4_1.rb +++ b/generated/google/apis/adsensehost_v4_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/host/ module AdsensehostV4_1 VERSION = 'V4_1' - REVISION = '' + REVISION = '20180807' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/analytics_v2_4.rb b/generated/google/apis/analytics_v2_4.rb index 7bb2b920a..db3434c3d 100644 --- a/generated/google/apis/analytics_v2_4.rb +++ b/generated/google/apis/analytics_v2_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/analytics/ module AnalyticsV2_4 VERSION = 'V2_4' - REVISION = '' + REVISION = '20180622' # View and manage your Google Analytics data AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' diff --git a/generated/google/apis/analytics_v3.rb b/generated/google/apis/analytics_v3.rb index 8171ae00d..1ac33da19 100644 --- a/generated/google/apis/analytics_v3.rb +++ b/generated/google/apis/analytics_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/analytics/ module AnalyticsV3 VERSION = 'V3' - REVISION = '' + REVISION = '20180622' # View and manage your Google Analytics data AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' diff --git a/generated/google/apis/analytics_v3/classes.rb b/generated/google/apis/analytics_v3/classes.rb index 91a301dc8..d3940348f 100644 --- a/generated/google/apis/analytics_v3/classes.rb +++ b/generated/google/apis/analytics_v3/classes.rb @@ -3383,6 +3383,74 @@ module Google end end + # JSON template for a hash Client Id request resource. + class HashClientIdRequest + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `clientId` + # @return [String] + attr_accessor :client_id + + # + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `webPropertyId` + # @return [String] + attr_accessor :web_property_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_id = args[:client_id] if args.key?(:client_id) + @kind = args[:kind] if args.key?(:kind) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) + end + end + + # JSON template for a hash Client Id response resource. + class HashClientIdResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `clientId` + # @return [String] + attr_accessor :client_id + + # + # Corresponds to the JSON property `hashedClientId` + # @return [String] + attr_accessor :hashed_client_id + + # + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `webPropertyId` + # @return [String] + attr_accessor :web_property_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_id = args[:client_id] if args.key?(:client_id) + @hashed_client_id = args[:hashed_client_id] if args.key?(:hashed_client_id) + @kind = args[:kind] if args.key?(:kind) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) + end + end + # JSON template for an Analytics Remarketing Include Conditions. class IncludeConditions include Google::Apis::Core::Hashable diff --git a/generated/google/apis/analytics_v3/representations.rb b/generated/google/apis/analytics_v3/representations.rb index e433d94f8..6a5267cca 100644 --- a/generated/google/apis/analytics_v3/representations.rb +++ b/generated/google/apis/analytics_v3/representations.rb @@ -400,6 +400,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HashClientIdRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HashClientIdResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class IncludeConditions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1495,6 +1507,25 @@ module Google end end + class HashClientIdRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :client_id, as: 'clientId' + property :kind, as: 'kind' + property :web_property_id, as: 'webPropertyId' + end + end + + class HashClientIdResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :client_id, as: 'clientId' + property :hashed_client_id, as: 'hashedClientId' + property :kind, as: 'kind' + property :web_property_id, as: 'webPropertyId' + end + end + class IncludeConditions # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/analytics_v3/service.rb b/generated/google/apis/analytics_v3/service.rb index 299bf87ef..40510cbe0 100644 --- a/generated/google/apis/analytics_v3/service.rb +++ b/generated/google/apis/analytics_v3/service.rb @@ -478,6 +478,39 @@ module Google execute_or_queue_command(command, &block) end + # Hashes the given Client ID. + # @param [Google::Apis::AnalyticsV3::HashClientIdRequest] hash_client_id_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AnalyticsV3::HashClientIdResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsV3::HashClientIdResponse] + # + # @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 hash_client_id(hash_client_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'management/clientId:hashClientId', options) + command.request_representation = Google::Apis::AnalyticsV3::HashClientIdRequest::Representation + command.request_object = hash_client_id_request_object + command.response_representation = Google::Apis::AnalyticsV3::HashClientIdResponse::Representation + command.response_class = Google::Apis::AnalyticsV3::HashClientIdResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # List custom data sources to which the user has access. # @param [String] account_id # Account Id for the custom data sources to retrieve. diff --git a/generated/google/apis/analyticsreporting_v4.rb b/generated/google/apis/analyticsreporting_v4.rb index 5fde62286..11c5fe048 100644 --- a/generated/google/apis/analyticsreporting_v4.rb +++ b/generated/google/apis/analyticsreporting_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/analytics/devguides/reporting/core/v4/ module AnalyticsreportingV4 VERSION = 'V4' - REVISION = '20180515' + REVISION = '20180725' # View and manage your Google Analytics data AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' diff --git a/generated/google/apis/androiddeviceprovisioning_v1.rb b/generated/google/apis/androiddeviceprovisioning_v1.rb index 6b121ef54..46b04c919 100644 --- a/generated/google/apis/androiddeviceprovisioning_v1.rb +++ b/generated/google/apis/androiddeviceprovisioning_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/zero-touch/ module AndroiddeviceprovisioningV1 VERSION = 'V1' - REVISION = '20180604' + REVISION = '20180804' end end end diff --git a/generated/google/apis/androiddeviceprovisioning_v1/classes.rb b/generated/google/apis/androiddeviceprovisioning_v1/classes.rb index 3c3e95383..856fbc28b 100644 --- a/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +++ b/generated/google/apis/androiddeviceprovisioning_v1/classes.rb @@ -31,8 +31,9 @@ module Google # @return [Fixnum] attr_accessor :customer_id - # Encapsulates hardware and product IDs to identify a manufactured device. To - # learn more, read [Identifiers](/zero-touch/guides/identifiers). + # Encapsulates hardware and product IDs to identify a manufactured device. + # To understand requirements on identifier sets, read + # [Identifiers](/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -101,7 +102,7 @@ module Google end end - # A customer resource in the zero-touch enrollment API. + # A reseller, vendor, or customer in the zero-touch reseller and customer APIs. class Company include Google::Apis::Core::Hashable @@ -116,15 +117,18 @@ module Google # @return [Fixnum] attr_accessor :company_id - # Required. The name of the company. For example _XYZ Corp_. Characters - # allowed are: Latin letters, numerals, hyphens, and spaces. Displayed to the - # customer's employees in the zero-touch enrollment portal. + # Required. The name of the company. For example _XYZ Corp_. Displayed to the + # company's employees in the zero-touch enrollment portal. # Corresponds to the JSON property `companyName` # @return [String] attr_accessor :company_name - # Output only. The API resource name of the company in the format - # `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`. Assigned by the server. + # Output only. The API resource name of the company. The resource name is one + # of the following formats: + # * `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]` + # * `partners/[PARTNER_ID]/vendors/[VENDOR_ID]` + # * `partners/[PARTNER_ID]/vendors/[VENDOR_ID]/customers/[CUSTOMER_ID]` + # Assigned by the server. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -263,7 +267,7 @@ module Google class CreateCustomerRequest include Google::Apis::Core::Hashable - # A customer resource in the zero-touch enrollment API. + # A reseller, vendor, or customer in the zero-touch reseller and customer APIs. # Corresponds to the JSON property `customer` # @return [Google::Apis::AndroiddeviceprovisioningV1::Company] attr_accessor :customer @@ -479,8 +483,9 @@ module Google # @return [Fixnum] attr_accessor :device_id - # Encapsulates hardware and product IDs to identify a manufactured device. To - # learn more, read [Identifiers](/zero-touch/guides/identifiers). + # Encapsulates hardware and product IDs to identify a manufactured device. + # To understand requirements on identifier sets, read + # [Identifiers](/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -524,6 +529,11 @@ module Google # @return [Fixnum] attr_accessor :owner_company_id + # The ID of the reseller that claimed the device. + # Corresponds to the JSON property `resellerId` + # @return [Fixnum] + attr_accessor :reseller_id + # Output only. The type of claim made on the device. # Corresponds to the JSON property `sectionType` # @return [String] @@ -536,12 +546,14 @@ module Google # Update properties of this object def update!(**args) @owner_company_id = args[:owner_company_id] if args.key?(:owner_company_id) + @reseller_id = args[:reseller_id] if args.key?(:reseller_id) @section_type = args[:section_type] if args.key?(:section_type) end end - # Encapsulates hardware and product IDs to identify a manufactured device. To - # learn more, read [Identifiers](/zero-touch/guides/identifiers). + # Encapsulates hardware and product IDs to identify a manufactured device. + # To understand requirements on identifier sets, read + # [Identifiers](/zero-touch/guides/identifiers). class DeviceIdentifier include Google::Apis::Core::Hashable @@ -550,9 +562,10 @@ module Google # @return [String] attr_accessor :imei - # Required. The device manufacturer’s name. Matches the device's built-in + # The device manufacturer’s name. Matches the device's built-in # value returned from `android.os.Build.MANUFACTURER`. Allowed values are - # listed in [manufacturer names](/zero-touch/resources/manufacturer-names). + # listed in + # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). # Corresponds to the JSON property `manufacturer` # @return [String] attr_accessor :manufacturer @@ -562,8 +575,15 @@ module Google # @return [String] attr_accessor :meid + # The device model's name. Matches the device's built-in value returned from + # `android.os.Build.MODEL`. Allowed values are listed in + # [models](/zero-touch/resources/manufacturer-names#model-names). + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + # The manufacturer's serial number for the device. This value might not be - # unique. + # unique across different device models. # Corresponds to the JSON property `serialNumber` # @return [String] attr_accessor :serial_number @@ -577,6 +597,7 @@ module Google @imei = args[:imei] if args.key?(:imei) @manufacturer = args[:manufacturer] if args.key?(:manufacturer) @meid = args[:meid] if args.key?(:meid) + @model = args[:model] if args.key?(:model) @serial_number = args[:serial_number] if args.key?(:serial_number) end end @@ -617,8 +638,9 @@ module Google # @return [Fixnum] attr_accessor :device_id - # Encapsulates hardware and product IDs to identify a manufactured device. To - # learn more, read [Identifiers](/zero-touch/guides/identifiers). + # Encapsulates hardware and product IDs to identify a manufactured device. + # To understand requirements on identifier sets, read + # [Identifiers](/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -765,8 +787,9 @@ module Google class FindDevicesByDeviceIdentifierRequest include Google::Apis::Core::Hashable - # Encapsulates hardware and product IDs to identify a manufactured device. To - # learn more, read [Identifiers](/zero-touch/guides/identifiers). + # Encapsulates hardware and product IDs to identify a manufactured device. + # To understand requirements on identifier sets, read + # [Identifiers](/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -903,6 +926,59 @@ module Google end end + # Response message to list customers of the vendor. + class ListVendorCustomersResponse + include Google::Apis::Core::Hashable + + # List of customers of the vendor. + # Corresponds to the JSON property `customers` + # @return [Array] + attr_accessor :customers + + # A token to retrieve the next page of results. Omitted if no further results + # are available. + # 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) + @customers = args[:customers] if args.key?(:customers) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message to list vendors of the partner. + class ListVendorsResponse + include Google::Apis::Core::Hashable + + # A token to retrieve the next page of results. Omitted if no further results + # are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of vendors of the reseller partner. Fields `name`, `companyId` and + # `companyName` are populated to the Company object. + # Corresponds to the JSON property `vendors` + # @return [Array] + attr_accessor :vendors + + 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) + @vendors = args[:vendors] if args.key?(:vendors) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class Operation @@ -1039,8 +1115,9 @@ module Google # @return [Fixnum] attr_accessor :customer_id - # Encapsulates hardware and product IDs to identify a manufactured device. To - # learn more, read [Identifiers](/zero-touch/guides/identifiers). + # Encapsulates hardware and product IDs to identify a manufactured device. + # To understand requirements on identifier sets, read + # [Identifiers](/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -1078,8 +1155,9 @@ module Google # @return [Fixnum] attr_accessor :device_id - # Encapsulates hardware and product IDs to identify a manufactured device. To - # learn more, read [Identifiers](/zero-touch/guides/identifiers). + # Encapsulates hardware and product IDs to identify a manufactured device. + # To understand requirements on identifier sets, read + # [Identifiers](/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -1219,8 +1297,9 @@ module Google # @return [Fixnum] attr_accessor :device_id - # Encapsulates hardware and product IDs to identify a manufactured device. To - # learn more, read [Identifiers](/zero-touch/guides/identifiers). + # Encapsulates hardware and product IDs to identify a manufactured device. + # To understand requirements on identifier sets, read + # [Identifiers](/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -1309,8 +1388,9 @@ module Google # @return [Fixnum] attr_accessor :device_id - # Encapsulates hardware and product IDs to identify a manufactured device. To - # learn more, read [Identifiers](/zero-touch/guides/identifiers). + # Encapsulates hardware and product IDs to identify a manufactured device. + # To understand requirements on identifier sets, read + # [Identifiers](/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier diff --git a/generated/google/apis/androiddeviceprovisioning_v1/representations.rb b/generated/google/apis/androiddeviceprovisioning_v1/representations.rb index 375958617..e810376d9 100644 --- a/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +++ b/generated/google/apis/androiddeviceprovisioning_v1/representations.rb @@ -184,6 +184,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListVendorCustomersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListVendorsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -390,6 +402,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :owner_company_id, :numeric_string => true, as: 'ownerCompanyId' + property :reseller_id, :numeric_string => true, as: 'resellerId' property :section_type, as: 'sectionType' end end @@ -400,6 +413,7 @@ module Google property :imei, as: 'imei' property :manufacturer, as: 'manufacturer' property :meid, as: 'meid' + property :model, as: 'model' property :serial_number, as: 'serialNumber' end end @@ -499,6 +513,24 @@ module Google end end + class ListVendorCustomersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :customers, as: 'customers', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListVendorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :vendors, as: 'vendors', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation + + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/androiddeviceprovisioning_v1/service.rb b/generated/google/apis/androiddeviceprovisioning_v1/service.rb index dd284d960..049a76d47 100644 --- a/generated/google/apis/androiddeviceprovisioning_v1/service.rb +++ b/generated/google/apis/androiddeviceprovisioning_v1/service.rb @@ -871,6 +871,79 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Lists the vendors of the partner. + # @param [String] parent + # Required. The resource name in the format `partners/[PARTNER_ID]`. + # @param [Fixnum] page_size + # The maximum number of results to be returned. + # @param [String] page_token + # A token identifying a page of results returned by the server. + # @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::AndroiddeviceprovisioningV1::ListVendorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroiddeviceprovisioningV1::ListVendorsResponse] + # + # @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_partner_vendors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/vendors', options) + command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::ListVendorsResponse::Representation + command.response_class = Google::Apis::AndroiddeviceprovisioningV1::ListVendorsResponse + 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 + + # Lists the customers of the vendor. + # @param [String] parent + # Required. The resource name in the format + # `partners/[PARTNER_ID]/vendors/[VENDOR_ID]`. + # @param [Fixnum] page_size + # The maximum number of results to be returned. + # @param [String] page_token + # A token identifying a page of results returned by the server. + # @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::AndroiddeviceprovisioningV1::ListVendorCustomersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroiddeviceprovisioningV1::ListVendorCustomersResponse] + # + # @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_partner_vendor_customers(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/customers', options) + command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::ListVendorCustomersResponse::Representation + command.response_class = Google::Apis::AndroiddeviceprovisioningV1::ListVendorCustomersResponse + 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/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index d663c7821..6edea56e6 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180802' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/androidenterprise_v1/service.rb b/generated/google/apis/androidenterprise_v1/service.rb index f393b255e..61d813f9f 100644 --- a/generated/google/apis/androidenterprise_v1/service.rb +++ b/generated/google/apis/androidenterprise_v1/service.rb @@ -422,39 +422,6 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the binding between the EMM and enterprise. This is now deprecated. - # Use this method only to unenroll customers that were previously enrolled with - # the insert call, then enroll them again with the enroll call. - # @param [String] enterprise_id - # The ID of the enterprise. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @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_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'enterprises/{enterpriseId}', options) - command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Enrolls an enterprise with the calling EMM. # @param [String] token # The token provided by the enterprise to register the EMM. @@ -676,43 +643,6 @@ module Google execute_or_queue_command(command, &block) end - # Establishes the binding between the EMM and an enterprise. This is now - # deprecated; use enroll instead. - # @param [String] token - # The token provided by the enterprise to register the EMM. - # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AndroidenterpriseV1::Enterprise] - # - # @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 insert_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'enterprises', options) - command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation - command.request_object = enterprise_object - command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation - command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise - command.query['token'] = token unless token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Looks up an enterprise by domain name. This is only supported for enterprises # created via the Google-initiated creation flow. Lookup of the id is not needed # for enterprises created via the EMM-initiated flow since the EMM learns the diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb index 0b07a7427..53887df22 100644 --- a/generated/google/apis/androidmanagement_v1.rb +++ b/generated/google/apis/androidmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/management module AndroidmanagementV1 VERSION = 'V1' - REVISION = '20180706' + REVISION = '20180813' # Manage Android devices and apps for your customers AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' diff --git a/generated/google/apis/androidmanagement_v1/classes.rb b/generated/google/apis/androidmanagement_v1/classes.rb index ae4ddfb12..df7c3efe7 100644 --- a/generated/google/apis/androidmanagement_v1/classes.rb +++ b/generated/google/apis/androidmanagement_v1/classes.rb @@ -562,10 +562,7 @@ module Google # @return [Array] attr_accessor :hardware_status_samples - # The last time the device sent a policy compliance report. Important: This - # field is deprecated. The timestamp will be on last_status_report_time field, - # and last_status_report_time will be used for both status report and compliance - # report. + # Deprecated. # Corresponds to the JSON property `lastPolicyComplianceReportTime` # @return [String] attr_accessor :last_policy_compliance_report_time @@ -1734,7 +1731,7 @@ module Google class PermissionGrant include Google::Apis::Core::Hashable - # The android permission or group, e.g. android.permission.READ_CALENDAR or + # The Android permission or group, e.g. android.permission.READ_CALENDAR or # android.permission_group.CALENDAR. # Corresponds to the JSON property `permission` # @return [String] diff --git a/generated/google/apis/androidpublisher_v1.rb b/generated/google/apis/androidpublisher_v1.rb index 4d782c9d7..d58205e6a 100644 --- a/generated/google/apis/androidpublisher_v1.rb +++ b/generated/google/apis/androidpublisher_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180807' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v1_1.rb b/generated/google/apis/androidpublisher_v1_1.rb index c4a1c3925..cb2fa5422 100644 --- a/generated/google/apis/androidpublisher_v1_1.rb +++ b/generated/google/apis/androidpublisher_v1_1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV1_1 VERSION = 'V1_1' - REVISION = '' + REVISION = '20180807' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 982d15d2c..ba3ad600d 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV2 VERSION = 'V2' - REVISION = '' + REVISION = '20180807' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index 4c5800f9b..90caa7a93 100644 --- a/generated/google/apis/androidpublisher_v3.rb +++ b/generated/google/apis/androidpublisher_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV3 VERSION = 'V3' - REVISION = '' + REVISION = '20180807' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/appengine_v1.rb b/generated/google/apis/appengine_v1.rb index 216ca3dbf..84d76095d 100644 --- a/generated/google/apis/appengine_v1.rb +++ b/generated/google/apis/appengine_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1 VERSION = 'V1' - REVISION = '20180623' + REVISION = '20180726' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' diff --git a/generated/google/apis/appengine_v1beta.rb b/generated/google/apis/appengine_v1beta.rb index e117379f1..a220c8254 100644 --- a/generated/google/apis/appengine_v1beta.rb +++ b/generated/google/apis/appengine_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1beta VERSION = 'V1beta' - REVISION = '20180707' + REVISION = '20180726' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' diff --git a/generated/google/apis/appengine_v1beta/classes.rb b/generated/google/apis/appengine_v1beta/classes.rb index 3a6ff1eed..08efe21ae 100644 --- a/generated/google/apis/appengine_v1beta/classes.rb +++ b/generated/google/apis/appengine_v1beta/classes.rb @@ -480,12 +480,11 @@ module Google end end - # Google Cloud Container Builder build information. + # Google Cloud Build information. class BuildInfo include Google::Apis::Core::Hashable - # The Google Cloud Container Builder build id. Example: "f966068f-08b2-42c8-bdfe- - # 74137dff2bf9" + # The Google Cloud Build id. Example: "f966068f-08b2-42c8-bdfe-74137dff2bf9" # Corresponds to the JSON property `cloudBuildId` # @return [String] attr_accessor :cloud_build_id @@ -745,7 +744,7 @@ module Google class Deployment include Google::Apis::Core::Hashable - # Google Cloud Container Builder build information. + # Google Cloud Build information. # Corresponds to the JSON property `build` # @return [Google::Apis::AppengineV1beta::BuildInfo] attr_accessor :build diff --git a/generated/google/apis/appsactivity_v1.rb b/generated/google/apis/appsactivity_v1.rb index c6ccfa456..20957784a 100644 --- a/generated/google/apis/appsactivity_v1.rb +++ b/generated/google/apis/appsactivity_v1.rb @@ -18,14 +18,14 @@ require 'google/apis/appsactivity_v1/representations.rb' module Google module Apis - # G Suite Activity API + # Drive Activity API # # Provides a historical view of activity. # # @see https://developers.google.com/google-apps/activity/ module AppsactivityV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180819' # View the activity history of your Google apps AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity' diff --git a/generated/google/apis/appsactivity_v1/service.rb b/generated/google/apis/appsactivity_v1/service.rb index b4012f276..eaaa12fd7 100644 --- a/generated/google/apis/appsactivity_v1/service.rb +++ b/generated/google/apis/appsactivity_v1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module AppsactivityV1 - # G Suite Activity API + # Drive Activity API # # Provides a historical view of activity. # diff --git a/generated/google/apis/appsmarket_v2.rb b/generated/google/apis/appsmarket_v2.rb index 52da00710..90a85e57e 100644 --- a/generated/google/apis/appsmarket_v2.rb +++ b/generated/google/apis/appsmarket_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/google-apps/marketplace/v2/developers_guide module AppsmarketV2 VERSION = 'V2' - REVISION = '' + REVISION = '20160920' # View your installed application's licensing information AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index 791ab649a..7d304ff5e 100644 --- a/generated/google/apis/appstate_v1.rb +++ b/generated/google/apis/appstate_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/web/api/states module AppstateV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180816' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index b5581cd8e..d08394bc0 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '' + REVISION = '20180809' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index a08507cf5..e6ed85650 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -22,6 +22,34 @@ module Google module Apis module BigqueryV2 + # + class BigQueryModelTraining + include Google::Apis::Core::Hashable + + # [Output-only, Beta] Index of current ML training iteration. Updated during + # create model query job to show job progress. + # Corresponds to the JSON property `currentIteration` + # @return [Fixnum] + attr_accessor :current_iteration + + # [Output-only, Beta] Expected number of iterations for the create model query + # job specified as num_iterations in the input query. The actual total number of + # iterations may be less than this number due to early stop. + # Corresponds to the JSON property `expectedTotalIterations` + # @return [Fixnum] + attr_accessor :expected_total_iterations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_iteration = args[:current_iteration] if args.key?(:current_iteration) + @expected_total_iterations = args[:expected_total_iterations] if args.key?(:expected_total_iterations) + end + end + # class BigtableColumn include Google::Apis::Core::Hashable @@ -200,8 +228,9 @@ module Google include Google::Apis::Core::Hashable # [Repeated] One or more fields on which data should be clustered. Only top- - # level, non-repeated, simple-type fields are supported. The order of the fields - # will determine how clusters will be generated, so it is important. + # level, non-repeated, simple-type fields are supported. When you cluster a + # table using multiple columns, the order of columns you specify is important. + # The order of the specified columns determines the sort order of the data. # Corresponds to the JSON property `fields` # @return [Array] attr_accessor :fields @@ -374,7 +403,7 @@ module Google # The labels associated with this dataset. You can use these to organize and # group your datasets. You can set this property when inserting or updating a - # dataset. See Labeling Datasets for more information. + # dataset. See Creating and Updating Dataset Labels for more information. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -950,9 +979,10 @@ module Google # [Optional] The maximum number of bad records that BigQuery can ignore when # reading data. If the number of bad records exceeds this value, an invalid - # error is returned in the job result. The default value is 0, which requires - # that all records are valid. This setting is ignored for Google Cloud Bigtable, - # Google Cloud Datastore backups and Avro formats. + # error is returned in the job result. This is only valid for CSV, JSON, and + # Google Sheets. The default value is 0, which requires that all records are + # valid. This setting is ignored for Google Cloud Bigtable, Google Cloud + # Datastore backups and Avro formats. # Corresponds to the JSON property `maxBadRecords` # @return [Fixnum] attr_accessor :max_bad_records @@ -1133,8 +1163,8 @@ module Google class GoogleSheetsOptions include Google::Apis::Core::Hashable - # [Experimental] [Optional] Range of a sheet to query from. Only used when non- - # empty. Typical format: !: + # [Beta] [Optional] Range of a sheet to query from. Only used when non-empty. + # Typical format: !: # Corresponds to the JSON property `range` # @return [String] attr_accessor :range @@ -1463,9 +1493,9 @@ module Google attr_accessor :autodetect alias_method :autodetect?, :autodetect - # [Experimental] Clustering specification for the destination table. Must be - # specified with time-based partitioning, data in the table will be first - # partitioned and subsequently clustered. + # [Beta] Clustering specification for the destination table. Must be specified + # with time-based partitioning, data in the table will be first partitioned and + # subsequently clustered. # Corresponds to the JSON property `clustering` # @return [Google::Apis::BigqueryV2::Clustering] attr_accessor :clustering @@ -1490,8 +1520,8 @@ module Google # @return [Google::Apis::BigqueryV2::TableReference] attr_accessor :destination_table - # [Experimental] [Optional] Properties with which to create the destination - # table if it is new. + # [Beta] [Optional] Properties with which to create the destination table if it + # is new. # Corresponds to the JSON property `destinationTableProperties` # @return [Google::Apis::BigqueryV2::DestinationTableProperties] attr_accessor :destination_table_properties @@ -1528,8 +1558,8 @@ module Google # [Optional] The maximum number of bad records that BigQuery can ignore when # running the job. If the number of bad records exceeds this value, an invalid - # error is returned in the job result. The default value is 0, which requires - # that all records are valid. + # error is returned in the job result. This is only valid for CSV and JSON. The + # default value is 0, which requires that all records are valid. # Corresponds to the JSON property `maxBadRecords` # @return [Fixnum] attr_accessor :max_bad_records @@ -1685,9 +1715,9 @@ module Google attr_accessor :allow_large_results alias_method :allow_large_results?, :allow_large_results - # [Experimental] Clustering specification for the destination table. Must be - # specified with time-based partitioning, data in the table will be first - # partitioned and subsequently clustered. + # [Beta] Clustering specification for the destination table. Must be specified + # with time-based partitioning, data in the table will be first partitioned and + # subsequently clustered. # Corresponds to the JSON property `clustering` # @return [Google::Apis::BigqueryV2::Clustering] attr_accessor :clustering @@ -2042,8 +2072,8 @@ module Google # @return [String] attr_accessor :job_id - # [Experimental] The geographic location of the job. Required except for US and - # EU. See details at https://cloud.google.com/bigquery/docs/dataset-locations# + # The geographic location of the job. Required except for US and EU. See details + # at https://cloud.google.com/bigquery/docs/dataset-locations# # specifying_your_location. # Corresponds to the JSON property `location` # @return [String] @@ -2070,7 +2100,7 @@ module Google class JobStatistics include Google::Apis::Core::Hashable - # [Experimental] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT + # [TrustedTester] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT # jobs. # Corresponds to the JSON property `completionRatio` # @return [Float] @@ -2103,6 +2133,11 @@ module Google # @return [Google::Apis::BigqueryV2::JobStatistics2] attr_accessor :query + # [Output-only] Quotas which delayed this job's start time. + # Corresponds to the JSON property `quotaDeferments` + # @return [Array] + attr_accessor :quota_deferments + # [Output-only] Start time of this job, in milliseconds since the epoch. This # field will be present when the job transitions from the PENDING state to # either RUNNING or DONE. @@ -2128,6 +2163,7 @@ module Google @extract = args[:extract] if args.key?(:extract) @load = args[:load] if args.key?(:load) @query = args[:query] if args.key?(:query) + @quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments) @start_time = args[:start_time] if args.key?(:start_time) @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed) end @@ -2148,20 +2184,20 @@ module Google attr_accessor :cache_hit alias_method :cache_hit?, :cache_hit - # [Output-only, Experimental] The DDL operation performed, possibly dependent on - # the pre-existence of the DDL target. Possible values (new values might be - # added in the future): "CREATE": The query created the DDL target. "SKIP": No- - # op. Example cases: the query is CREATE TABLE IF NOT EXISTS while the table - # already exists, or the query is DROP TABLE IF EXISTS while the table does not - # exist. "REPLACE": The query replaced the DDL target. Example case: the query - # is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The query - # deleted the DDL target. + # [Output-only, Beta] The DDL operation performed, possibly dependent on the pre- + # existence of the DDL target. Possible values (new values might be added in the + # future): "CREATE": The query created the DDL target. "SKIP": No-op. Example + # cases: the query is CREATE TABLE IF NOT EXISTS while the table already exists, + # or the query is DROP TABLE IF EXISTS while the table does not exist. "REPLACE": + # The query replaced the DDL target. Example case: the query is CREATE OR + # REPLACE TABLE, and the table already exists. "DROP": The query deleted the DDL + # target. # Corresponds to the JSON property `ddlOperationPerformed` # @return [String] attr_accessor :ddl_operation_performed - # [Output-only, Experimental] The DDL target table. Present only for CREATE/DROP - # TABLE/VIEW queries. + # [Output-only, Beta] The DDL target table. Present only for CREATE/DROP TABLE/ + # VIEW queries. # Corresponds to the JSON property `ddlTargetTable` # @return [Google::Apis::BigqueryV2::TableReference] attr_accessor :ddl_target_table @@ -2171,15 +2207,17 @@ module Google # @return [Fixnum] attr_accessor :estimated_bytes_processed - # [Output-only, Beta] Index of current ML training iteration. Updated during - # create model query job to show job progress. + # [Output-only, Beta] Information about create model query job progress. + # Corresponds to the JSON property `modelTraining` + # @return [Google::Apis::BigqueryV2::BigQueryModelTraining] + attr_accessor :model_training + + # [Output-only, Beta] Deprecated; do not use. # Corresponds to the JSON property `modelTrainingCurrentIteration` # @return [Fixnum] attr_accessor :model_training_current_iteration - # [Output-only, Beta] Expected number of iterations for the create model query - # job specified as num_iterations in the input query. The actual total number of - # iterations may be less than this number due to early stop. + # [Output-only, Beta] Deprecated; do not use. # Corresponds to the JSON property `modelTrainingExpectedTotalIteration` # @return [Fixnum] attr_accessor :model_training_expected_total_iteration @@ -2212,23 +2250,23 @@ module Google # @return [Google::Apis::BigqueryV2::TableSchema] attr_accessor :schema - # [Output-only, Experimental] The type of query statement, if valid. Possible - # values (new values might be added in the future): "SELECT": SELECT query. " - # INSERT": INSERT query; see https://cloud.google.com/bigquery/docs/reference/ - # standard-sql/data-manipulation-language "UPDATE": UPDATE query; see https:// + # [Output-only, Beta] The type of query statement, if valid. Possible values ( + # new values might be added in the future): "SELECT": SELECT query. "INSERT": + # INSERT query; see https://cloud.google.com/bigquery/docs/reference/standard- + # sql/data-manipulation-language "UPDATE": UPDATE query; see https://cloud. + # google.com/bigquery/docs/reference/standard-sql/data-manipulation-language " + # DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/reference/ + # standard-sql/data-manipulation-language "MERGE": MERGE query; see https:// # cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation- - # language "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/ - # reference/standard-sql/data-manipulation-language "MERGE": MERGE query; see - # https://cloud.google.com/bigquery/docs/reference/standard-sql/data- - # manipulation-language "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS - # SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... " + # language "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. " + # CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... " # DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS # SELECT ... "DROP_VIEW": DROP VIEW query. # Corresponds to the JSON property `statementType` # @return [String] attr_accessor :statement_type - # [Output-only] [Experimental] Describes a timeline of job execution. + # [Output-only] [Beta] Describes a timeline of job execution. # Corresponds to the JSON property `timeline` # @return [Array] attr_accessor :timeline @@ -2254,8 +2292,8 @@ module Google # @return [Fixnum] attr_accessor :total_slot_ms - # [Output-only, Experimental] Standard SQL only: list of undeclared query - # parameters detected during a dry run validation. + # [Output-only, Beta] Standard SQL only: list of undeclared query parameters + # detected during a dry run validation. # Corresponds to the JSON property `undeclaredQueryParameters` # @return [Array] attr_accessor :undeclared_query_parameters @@ -2271,6 +2309,7 @@ module Google @ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed) @ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table) @estimated_bytes_processed = args[:estimated_bytes_processed] if args.key?(:estimated_bytes_processed) + @model_training = args[:model_training] if args.key?(:model_training) @model_training_current_iteration = args[:model_training_current_iteration] if args.key?(:model_training_current_iteration) @model_training_expected_total_iteration = args[:model_training_expected_total_iteration] if args.key?(:model_training_expected_total_iteration) @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows) @@ -2737,8 +2776,8 @@ module Google # @return [String] attr_accessor :kind - # [Experimental] The geographic location where the job should run. Required - # except for US and EU. + # The geographic location where the job should run. Required except for US and + # EU. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -3002,8 +3041,8 @@ module Google class Table include Google::Apis::Core::Hashable - # [Experimental] Clustering specification for the table. Must be specified with - # time-based partitioning, data in the table will be first partitioned and + # [Beta] Clustering specification for the table. Must be specified with time- + # based partitioning, data in the table will be first partitioned and # subsequently clustered. # Corresponds to the JSON property `clustering` # @return [Google::Apis::BigqueryV2::Clustering] @@ -3025,7 +3064,10 @@ module Google # @return [Google::Apis::BigqueryV2::EncryptionConfiguration] attr_accessor :encryption_configuration - # [Output-only] A hash of this resource. + # [Output-only] A hash of the table metadata. Used to ensure there were no + # concurrent modifications to the resource when attempting an update. Not + # guaranteed to change when the table contents or the fields numRows, numBytes, + # numLongTermBytes or lastModifiedTime change. # Corresponds to the JSON property `etag` # @return [String] attr_accessor :etag @@ -3470,7 +3512,7 @@ module Google class Table include Google::Apis::Core::Hashable - # [Experimental] Clustering specification for this table, if configured. + # [Beta] Clustering specification for this table, if configured. # Corresponds to the JSON property `clustering` # @return [Google::Apis::BigqueryV2::Clustering] attr_accessor :clustering @@ -3650,17 +3692,17 @@ module Google # @return [Fixnum] attr_accessor :expiration_ms - # [Experimental] [Optional] If not set, the table is partitioned by pseudo - # column, referenced via either '_PARTITIONTIME' as TIMESTAMP type, or ' - # _PARTITIONDATE' as DATE type. If field is specified, the table is instead - # partitioned by this field. The field must be a top-level TIMESTAMP or DATE - # field. Its mode must be NULLABLE or REQUIRED. + # [Beta] [Optional] If not set, the table is partitioned by pseudo column, + # referenced via either '_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE' + # as DATE type. If field is specified, the table is instead partitioned by this + # field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be + # NULLABLE or REQUIRED. # Corresponds to the JSON property `field` # @return [String] attr_accessor :field - # [Experimental] [Optional] If set to true, queries over this table require a - # partition filter that can be used for partition elimination to be specified. + # [Beta] [Optional] If set to true, queries over this table require a partition + # filter that can be used for partition elimination to be specified. # Corresponds to the JSON property `requirePartitionFilter` # @return [Boolean] attr_accessor :require_partition_filter diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 0a78ffec3..0b2d3fc45 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module BigqueryV2 + class BigQueryModelTraining + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BigtableColumn class Representation < Google::Apis::Core::JsonRepresentation; end @@ -430,6 +436,14 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BigQueryModelTraining + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_iteration, as: 'currentIteration' + property :expected_total_iterations, :numeric_string => true, as: 'expectedTotalIterations' + end + end + class BigtableColumn # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -886,6 +900,7 @@ module Google property :query, as: 'query', class: Google::Apis::BigqueryV2::JobStatistics2, decorator: Google::Apis::BigqueryV2::JobStatistics2::Representation + collection :quota_deferments, as: 'quotaDeferments' property :start_time, :numeric_string => true, as: 'startTime' property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed' end @@ -900,6 +915,8 @@ module Google property :ddl_target_table, as: 'ddlTargetTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation property :estimated_bytes_processed, :numeric_string => true, as: 'estimatedBytesProcessed' + property :model_training, as: 'modelTraining', class: Google::Apis::BigqueryV2::BigQueryModelTraining, decorator: Google::Apis::BigqueryV2::BigQueryModelTraining::Representation + property :model_training_current_iteration, as: 'modelTrainingCurrentIteration' property :model_training_expected_total_iteration, :numeric_string => true, as: 'modelTrainingExpectedTotalIteration' property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows' diff --git a/generated/google/apis/bigquerydatatransfer_v1.rb b/generated/google/apis/bigquerydatatransfer_v1.rb index 045d11eb7..a9b010535 100644 --- a/generated/google/apis/bigquerydatatransfer_v1.rb +++ b/generated/google/apis/bigquerydatatransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigquerydatatransferV1 VERSION = 'V1' - REVISION = '20180630' + REVISION = '20180728' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/binaryauthorization_v1beta1.rb b/generated/google/apis/binaryauthorization_v1beta1.rb new file mode 100644 index 000000000..fd668b5a2 --- /dev/null +++ b/generated/google/apis/binaryauthorization_v1beta1.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/binaryauthorization_v1beta1/service.rb' +require 'google/apis/binaryauthorization_v1beta1/classes.rb' +require 'google/apis/binaryauthorization_v1beta1/representations.rb' + +module Google + module Apis + # Binary Authorization API + # + # The management interface for Binary Authorization, a system providing policy + # control for images deployed to Kubernetes Engine clusters. + # + # @see https://cloud.google.com/binary-authorization/ + module BinaryauthorizationV1beta1 + VERSION = 'V1beta1' + REVISION = '20180813' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/binaryauthorization_v1beta1/classes.rb b/generated/google/apis/binaryauthorization_v1beta1/classes.rb new file mode 100644 index 000000000..1d8c4d85b --- /dev/null +++ b/generated/google/apis/binaryauthorization_v1beta1/classes.rb @@ -0,0 +1,597 @@ +# 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 BinaryauthorizationV1beta1 + + # An admission rule specifies either that all container images + # used in a pod creation request must be attested to by one or more + # attestors, that all pod creations will be allowed, or that all + # pod creations will be denied. + # Images matching an admission whitelist pattern + # are exempted from admission rules and will never block a pod creation. + class AdmissionRule + include Google::Apis::Core::Hashable + + # Required. The action when a pod creation is denied by the admission rule. + # Corresponds to the JSON property `enforcementMode` + # @return [String] + attr_accessor :enforcement_mode + + # Required. How this admission rule will be evaluated. + # Corresponds to the JSON property `evaluationMode` + # @return [String] + attr_accessor :evaluation_mode + + # Optional. The resource names of the attestors that must attest to + # a container image, in the format `projects/*/attestors/*`. Each + # attestor must exist before a policy can reference it. To add an attestor + # to a policy the principal issuing the policy change request must be able + # to read the attestor resource. + # Note: this field must be non-empty when the evaluation_mode field specifies + # REQUIRE_ATTESTATION, otherwise it must be empty. + # Corresponds to the JSON property `requireAttestationsBy` + # @return [Array] + attr_accessor :require_attestations_by + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enforcement_mode = args[:enforcement_mode] if args.key?(:enforcement_mode) + @evaluation_mode = args[:evaluation_mode] if args.key?(:evaluation_mode) + @require_attestations_by = args[:require_attestations_by] if args.key?(:require_attestations_by) + end + end + + # An admission whitelist pattern exempts images + # from checks by admission rules. + class AdmissionWhitelistPattern + include Google::Apis::Core::Hashable + + # An image name pattern to whitelist, in the form `registry/path/to/image`. + # This supports a trailing `*` as a wildcard, but this is allowed only in + # text after the `registry/` part. + # Corresponds to the JSON property `namePattern` + # @return [String] + attr_accessor :name_pattern + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name_pattern = args[:name_pattern] if args.key?(:name_pattern) + end + end + + # An attestor that attests to container image + # artifacts. An existing attestor cannot be modified except where + # indicated. + class Attestor + include Google::Apis::Core::Hashable + + # Optional. A descriptive comment. This field may be updated. + # The field may be displayed in chooser dialogs. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The resource name, in the format: + # `projects/*/attestors/*`. This field may not be updated. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Time when the attestor was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # An user owned drydock note references a Drydock + # ATTESTATION_AUTHORITY Note created by the user. + # Corresponds to the JSON property `userOwnedDrydockNote` + # @return [Google::Apis::BinaryauthorizationV1beta1::UserOwnedDrydockNote] + attr_accessor :user_owned_drydock_note + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + @user_owned_drydock_note = args[:user_owned_drydock_note] if args.key?(:user_owned_drydock_note) + end + end + + # An attestator public key that will be used to + # verify attestations signed by this attestor. + class AttestorPublicKey + include Google::Apis::Core::Hashable + + # ASCII-armored representation of a PGP public key, as the entire output by + # the command `gpg --export --armor foo@example.com` (either LF or CRLF + # line endings). + # Corresponds to the JSON property `asciiArmoredPgpPublicKey` + # @return [String] + attr_accessor :ascii_armored_pgp_public_key + + # Optional. A descriptive comment. This field may be updated. + # Corresponds to the JSON property `comment` + # @return [String] + attr_accessor :comment + + # Output only. This field will be overwritten with key ID information, for + # example, an identifier extracted from a PGP public key. This field may not + # be updated. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ascii_armored_pgp_public_key = args[:ascii_armored_pgp_public_key] if args.key?(:ascii_armored_pgp_public_key) + @comment = args[:comment] if args.key?(:comment) + @id = args[:id] if args.key?(:id) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::BinaryauthorizationV1beta1::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@gmail.com` . + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: A Google Apps domain name that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # 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) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + 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.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + class IamPolicy + include Google::Apis::Core::Hashable + + # Associates a list of `members` to a `role`. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # If no `etag` is provided in the call to `setIamPolicy`, then the existing + # policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Deprecated. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # Response message for BinauthzManagementService.ListAttestors. + class ListAttestorsResponse + include Google::Apis::Core::Hashable + + # The list of attestors. + # Corresponds to the JSON property `attestors` + # @return [Array] + attr_accessor :attestors + + # A token to retrieve the next page of results. Pass this value in the + # ListAttestorsRequest.page_token field in the subsequent call to the + # `ListAttestors` method 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) + @attestors = args[:attestors] if args.key?(:attestors) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A policy for container image binary authorization. + class Policy + include Google::Apis::Core::Hashable + + # Optional. Admission policy whitelisting. A matching admission request will + # always be permitted. This feature is typically used to exclude Google or + # third-party infrastructure images from Binary Authorization policies. + # Corresponds to the JSON property `admissionWhitelistPatterns` + # @return [Array] + attr_accessor :admission_whitelist_patterns + + # Optional. Per-cluster admission rules. Cluster spec format: + # `location.clusterId`. There can be at most one admission rule per cluster + # spec. + # A `location` is either a compute zone (e.g. us-central1-a) or a region + # (e.g. us-central1). + # For `clusterId` syntax restrictions see + # https://cloud.google.com/container-engine/reference/rest/v1/projects.zones. + # clusters. + # Corresponds to the JSON property `clusterAdmissionRules` + # @return [Hash] + attr_accessor :cluster_admission_rules + + # An admission rule specifies either that all container images + # used in a pod creation request must be attested to by one or more + # attestors, that all pod creations will be allowed, or that all + # pod creations will be denied. + # Images matching an admission whitelist pattern + # are exempted from admission rules and will never block a pod creation. + # Corresponds to the JSON property `defaultAdmissionRule` + # @return [Google::Apis::BinaryauthorizationV1beta1::AdmissionRule] + attr_accessor :default_admission_rule + + # Optional. A descriptive comment. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. The resource name, in the format `projects/*/policy`. There is + # at most one policy per project. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Time when the policy was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @admission_whitelist_patterns = args[:admission_whitelist_patterns] if args.key?(:admission_whitelist_patterns) + @cluster_admission_rules = args[:cluster_admission_rules] if args.key?(:cluster_admission_rules) + @default_admission_rule = args[:default_admission_rule] if args.key?(:default_admission_rule) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # An user owned drydock note references a Drydock + # ATTESTATION_AUTHORITY Note created by the user. + class UserOwnedDrydockNote + include Google::Apis::Core::Hashable + + # Output only. This field will contain the service account email address + # that this Attestor will use as the principal when querying Container + # Analysis. Attestor administrators must grant this service account the + # IAM role needed to read attestations from the note_reference in + # Container Analysis (`containeranalysis.notes.occurrences.viewer`). + # This email address is fixed for the lifetime of the Attestor, but callers + # should not make any other assumptions about the service account email; + # future versions may use an email based on a different naming pattern. + # Corresponds to the JSON property `delegationServiceAccountEmail` + # @return [String] + attr_accessor :delegation_service_account_email + + # Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note, + # created by the user, in the format: `projects/*/notes/*` (or the legacy + # `providers/*/notes/*`). This field may not be updated. + # An attestation by this attestor is stored as a Drydock + # ATTESTATION_AUTHORITY Occurrence that names a container image and that + # links to this Note. Drydock is an external dependency. + # Corresponds to the JSON property `noteReference` + # @return [String] + attr_accessor :note_reference + + # Optional. Public keys that verify attestations signed by this + # attestor. This field may be updated. + # If this field is non-empty, one of the specified public keys must + # verify that an attestation was signed by this attestor for the + # image specified in the admission request. + # If this field is empty, this attestor always returns that no + # valid attestations exist. + # Corresponds to the JSON property `publicKeys` + # @return [Array] + attr_accessor :public_keys + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @delegation_service_account_email = args[:delegation_service_account_email] if args.key?(:delegation_service_account_email) + @note_reference = args[:note_reference] if args.key?(:note_reference) + @public_keys = args[:public_keys] if args.key?(:public_keys) + end + end + end + end +end diff --git a/generated/google/apis/binaryauthorization_v1beta1/representations.rb b/generated/google/apis/binaryauthorization_v1beta1/representations.rb new file mode 100644 index 000000000..daea983f6 --- /dev/null +++ b/generated/google/apis/binaryauthorization_v1beta1/representations.rb @@ -0,0 +1,238 @@ +# 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 BinaryauthorizationV1beta1 + + class AdmissionRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdmissionWhitelistPattern + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Attestor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AttestorPublicKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IamPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListAttestorsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserOwnedDrydockNote + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdmissionRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enforcement_mode, as: 'enforcementMode' + property :evaluation_mode, as: 'evaluationMode' + collection :require_attestations_by, as: 'requireAttestationsBy' + end + end + + class AdmissionWhitelistPattern + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name_pattern, as: 'namePattern' + end + end + + class Attestor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :name, as: 'name' + property :update_time, as: 'updateTime' + property :user_owned_drydock_note, as: 'userOwnedDrydockNote', class: Google::Apis::BinaryauthorizationV1beta1::UserOwnedDrydockNote, decorator: Google::Apis::BinaryauthorizationV1beta1::UserOwnedDrydockNote::Representation + + end + end + + class AttestorPublicKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ascii_armored_pgp_public_key, as: 'asciiArmoredPgpPublicKey' + property :comment, as: 'comment' + property :id, as: 'id' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::BinaryauthorizationV1beta1::Expr, decorator: Google::Apis::BinaryauthorizationV1beta1::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class IamPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bindings, as: 'bindings', class: Google::Apis::BinaryauthorizationV1beta1::Binding, decorator: Google::Apis::BinaryauthorizationV1beta1::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + end + end + + class ListAttestorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attestors, as: 'attestors', class: Google::Apis::BinaryauthorizationV1beta1::Attestor, decorator: Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :admission_whitelist_patterns, as: 'admissionWhitelistPatterns', class: Google::Apis::BinaryauthorizationV1beta1::AdmissionWhitelistPattern, decorator: Google::Apis::BinaryauthorizationV1beta1::AdmissionWhitelistPattern::Representation + + hash :cluster_admission_rules, as: 'clusterAdmissionRules', class: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule::Representation + + property :default_admission_rule, as: 'defaultAdmissionRule', class: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule::Representation + + property :description, as: 'description' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::BinaryauthorizationV1beta1::IamPolicy, decorator: Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation + + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class UserOwnedDrydockNote + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :delegation_service_account_email, as: 'delegationServiceAccountEmail' + property :note_reference, as: 'noteReference' + collection :public_keys, as: 'publicKeys', class: Google::Apis::BinaryauthorizationV1beta1::AttestorPublicKey, decorator: Google::Apis::BinaryauthorizationV1beta1::AttestorPublicKey::Representation + + end + end + end + end +end diff --git a/generated/google/apis/binaryauthorization_v1beta1/service.rb b/generated/google/apis/binaryauthorization_v1beta1/service.rb new file mode 100644 index 000000000..a15bbbb02 --- /dev/null +++ b/generated/google/apis/binaryauthorization_v1beta1/service.rb @@ -0,0 +1,523 @@ +# 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 BinaryauthorizationV1beta1 + # Binary Authorization API + # + # The management interface for Binary Authorization, a system providing policy + # control for images deployed to Kubernetes Engine clusters. + # + # @example + # require 'google/apis/binaryauthorization_v1beta1' + # + # Binaryauthorization = Google::Apis::BinaryauthorizationV1beta1 # Alias the module + # service = Binaryauthorization::BinaryAuthorizationService.new + # + # @see https://cloud.google.com/binary-authorization/ + class BinaryAuthorizationService < 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://binaryauthorization.googleapis.com/', '') + @batch_path = 'batch' + end + + # Gets the policy for this project. Returns a default + # policy if the project does not have one. + # @param [String] name + # Required. The resource name of the policy to retrieve, + # in the format `projects/*/policy`. + # @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::BinaryauthorizationV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::Policy] + # + # @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_policy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Policy::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::Policy + 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 or updates a project's policy, and returns a copy of the + # new policy. A policy is always updated as a whole, to avoid race + # conditions with concurrent policy enforcement (or management!) + # requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT + # if the request is malformed. + # @param [String] name + # Output only. The resource name, in the format `projects/*/policy`. There is + # at most one policy per project. + # @param [Google::Apis::BinaryauthorizationV1beta1::Policy] policy_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::BinaryauthorizationV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::Policy] + # + # @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 update_project_policy(name, policy_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::BinaryauthorizationV1beta1::Policy::Representation + command.request_object = policy_object + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Policy::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::Policy + 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 an attestor, and returns a copy of the new + # attestor. Returns NOT_FOUND if the project does not exist, + # INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the + # attestor already exists. + # @param [String] parent + # Required. The parent of this attestor. + # @param [Google::Apis::BinaryauthorizationV1beta1::Attestor] attestor_object + # @param [String] attestor_id + # Required. The attestors 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::BinaryauthorizationV1beta1::Attestor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::Attestor] + # + # @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_attestor(parent, attestor_object = nil, attestor_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/attestors', options) + command.request_representation = Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation + command.request_object = attestor_object + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::Attestor + command.params['parent'] = parent unless parent.nil? + command.query['attestorId'] = attestor_id unless attestor_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 an attestor. Returns NOT_FOUND if the + # attestor does not exist. + # @param [String] name + # Required. The name of the attestors to delete, in the format + # `projects/*/attestors/*`. + # @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::BinaryauthorizationV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::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_attestor(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Empty::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::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 an attestor. + # Returns NOT_FOUND if the attestor does not exist. + # @param [String] name + # Required. The name of the attestor to retrieve, in the format + # `projects/*/attestors/*`. + # @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::BinaryauthorizationV1beta1::Attestor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::Attestor] + # + # @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_attestor(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::Attestor + 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 + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @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::BinaryauthorizationV1beta1::IamPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy] + # + # @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_attestor_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::IamPolicy + command.params['resource'] = resource unless resource.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 attestors. + # Returns INVALID_ARGUMENT if the project does not exist. + # @param [String] parent + # Required. The resource name of the project associated with the + # attestors, in the format `projects/*`. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. If + # unspecified, the server will pick an appropriate default. + # @param [String] page_token + # A token identifying a page of results the server should return. Typically, + # this is the value of ListAttestorsResponse.next_page_token returned + # from the previous call to the `ListAttestors` method. + # @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::BinaryauthorizationV1beta1::ListAttestorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::ListAttestorsResponse] + # + # @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_attestors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/attestors', options) + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::ListAttestorsResponse::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::ListAttestorsResponse + 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 + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::BinaryauthorizationV1beta1::SetIamPolicyRequest] set_iam_policy_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::BinaryauthorizationV1beta1::IamPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy] + # + # @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 set_attestor_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::BinaryauthorizationV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::IamPolicy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # If the resource does not exist, this will return an empty set of + # permissions, not a NOT_FOUND error. + # Note: This operation is designed to be used for building permission-aware + # UIs and command-line tools, not for authorization checking. This operation + # may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsRequest] test_iam_permissions_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::BinaryauthorizationV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse] + # + # @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 test_attestor_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.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 an attestor. + # Returns NOT_FOUND if the attestor does not exist. + # @param [String] name + # Required. The resource name, in the format: + # `projects/*/attestors/*`. This field may not be updated. + # @param [Google::Apis::BinaryauthorizationV1beta1::Attestor] attestor_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::BinaryauthorizationV1beta1::Attestor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::Attestor] + # + # @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 update_project_attestor(name, attestor_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation + command.request_object = attestor_object + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::Attestor + 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 + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @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::BinaryauthorizationV1beta1::IamPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy] + # + # @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_policy_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::IamPolicy + command.params['resource'] = resource unless resource.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. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::BinaryauthorizationV1beta1::SetIamPolicyRequest] set_iam_policy_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::BinaryauthorizationV1beta1::IamPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy] + # + # @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 set_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::BinaryauthorizationV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::IamPolicy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # If the resource does not exist, this will return an empty set of + # permissions, not a NOT_FOUND error. + # Note: This operation is designed to be used for building permission-aware + # UIs and command-line tools, not for authorization checking. This operation + # may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsRequest] test_iam_permissions_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::BinaryauthorizationV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse] + # + # @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 test_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.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/blogger_v2.rb b/generated/google/apis/blogger_v2.rb index ed6e5838c..8d1368598 100644 --- a/generated/google/apis/blogger_v2.rb +++ b/generated/google/apis/blogger_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/blogger/docs/2.0/json/getting_started module BloggerV2 VERSION = 'V2' - REVISION = '' + REVISION = '20150422' # Manage your Blogger account AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger' diff --git a/generated/google/apis/blogger_v3.rb b/generated/google/apis/blogger_v3.rb index 1f27bab5b..65fd0980d 100644 --- a/generated/google/apis/blogger_v3.rb +++ b/generated/google/apis/blogger_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/blogger/docs/3.0/getting_started module BloggerV3 VERSION = 'V3' - REVISION = '' + REVISION = '20150422' # Manage your Blogger account AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger' diff --git a/generated/google/apis/books_v1.rb b/generated/google/apis/books_v1.rb index 79e98602f..0ddb49d61 100644 --- a/generated/google/apis/books_v1.rb +++ b/generated/google/apis/books_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/books/docs/v1/getting_started module BooksV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180810' # Manage your books AUTH_BOOKS = 'https://www.googleapis.com/auth/books' diff --git a/generated/google/apis/books_v1/classes.rb b/generated/google/apis/books_v1/classes.rb index 513e9e18f..9f0b90cc3 100644 --- a/generated/google/apis/books_v1/classes.rb +++ b/generated/google/apis/books_v1/classes.rb @@ -2091,6 +2091,12 @@ module Google # @return [String] attr_accessor :icon_url + # + # Corresponds to the JSON property `is_document_mature` + # @return [Boolean] + attr_accessor :is_document_mature + alias_method :is_document_mature?, :is_document_mature + # Resource type. # Corresponds to the JSON property `kind` # @return [String] @@ -2144,6 +2150,7 @@ module Google @doc_type = args[:doc_type] if args.key?(:doc_type) @dont_show_notification = args[:dont_show_notification] if args.key?(:dont_show_notification) @icon_url = args[:icon_url] if args.key?(:icon_url) + @is_document_mature = args[:is_document_mature] if args.key?(:is_document_mature) @kind = args[:kind] if args.key?(:kind) @notification_group = args[:notification_group] if args.key?(:notification_group) @notification_type = args[:notification_type] if args.key?(:notification_type) diff --git a/generated/google/apis/books_v1/representations.rb b/generated/google/apis/books_v1/representations.rb index b5ce849bf..8a6c62234 100644 --- a/generated/google/apis/books_v1/representations.rb +++ b/generated/google/apis/books_v1/representations.rb @@ -1261,6 +1261,7 @@ module Google property :doc_type, as: 'doc_type' property :dont_show_notification, as: 'dont_show_notification' property :icon_url, as: 'iconUrl' + property :is_document_mature, as: 'is_document_mature' property :kind, as: 'kind' property :notification_group, as: 'notificationGroup' property :notification_type, as: 'notification_type' diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 264b0c359..affec0b99 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 = '' + REVISION = '20180814' # Manage your calendars 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 da24c2cb2..8bb7c7bcd 100644 --- a/generated/google/apis/calendar_v3/classes.rb +++ b/generated/google/apis/calendar_v3/classes.rb @@ -442,6 +442,8 @@ module Google # - "email" - Reminders are sent via email. # - "sms" - Reminders are sent via SMS. This value is read-only and is ignored # on inserts and updates. SMS reminders are only available for G Suite customers. + # + # Required when adding a notification. # Corresponds to the JSON property `method` # @return [String] attr_accessor :delivery_method @@ -450,8 +452,10 @@ module Google # - "eventCreation" - Notification sent when a new event is put on the calendar. # - "eventChange" - Notification sent when an event is changed. # - "eventCancellation" - Notification sent when an event is cancelled. - # - "eventResponse" - Notification sent when an event is changed. + # - "eventResponse" - Notification sent when an attendee responds to the event + # invitation. # - "agenda" - An agenda with the events of the day (sent out in the morning). + # Required when adding a notification. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1186,7 +1190,8 @@ module Google # For an instance of a recurring event, this is the time at which this event # would start according to the recurrence data in the recurring event identified - # by recurringEventId. Immutable. + # by recurringEventId. It uniquely identifies the instance within the recurring + # event series even if the instance was moved to a different time. Immutable. # Corresponds to the JSON property `originalStartTime` # @return [Google::Apis::CalendarV3::EventDateTime] attr_accessor :original_start_time @@ -1239,7 +1244,30 @@ module Google # Status of the event. Optional. Possible values are: # - "confirmed" - The event is confirmed. This is the default status. # - "tentative" - The event is tentatively confirmed. - # - "cancelled" - The event is cancelled. + # - "cancelled" - The event is cancelled (deleted). The list method returns + # cancelled events only on incremental sync (when syncToken or updatedMin are + # specified) or if the showDeleted flag is set to true. The get method always + # returns them. + # A cancelled status represents two different states depending on the event type: + # + # - Cancelled exceptions of an uncancelled recurring event indicate that this + # instance should no longer be presented to the user. Clients should store these + # events for the lifetime of the parent recurring event. + # Cancelled exceptions are only guaranteed to have values for the id, + # recurringEventId and originalStartTime fields populated. The other fields + # might be empty. + # - All other cancelled events represent deleted events. Clients should remove + # their locally synced copies. Such cancelled events will eventually disappear, + # so do not rely on them being available indefinitely. + # Deleted events are only guaranteed to have the id field populated. On the + # organizer's calendar, cancelled events continue to expose event details ( + # summary, location, etc.) so that they can be restored (undeleted). Similarly, + # the events to which the user was invited and that they manually removed + # continue to provide details. However, incremental sync requests with + # showDeleted set to false will not return these details. + # If an event changes its organizer (for example via the move operation) and the + # original organizer is not on the attendee list, it will leave behind a + # cancelled event where only the id field is guaranteed to be populated. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -1336,7 +1364,7 @@ module Google # @return [String] attr_accessor :email - # The creator's Profile ID, if available. It corresponds to theid field in the + # The creator's Profile ID, if available. It corresponds to the id field in the # People collection of the Google+ API # Corresponds to the JSON property `id` # @return [String] @@ -1472,8 +1500,8 @@ module Google # @return [String] attr_accessor :email - # The organizer's Profile ID, if available. It corresponds to theid field in the - # People collection of the Google+ API + # The organizer's Profile ID, if available. It corresponds to the id field in + # the People collection of the Google+ API # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1568,6 +1596,7 @@ module Google # URL link to the attachment. # For adding Google Drive file attachments use the same format as in # alternateLink property of the Files resource in the Drive API. + # Required when adding an attachment. # Corresponds to the JSON property `fileUrl` # @return [String] attr_accessor :file_url @@ -1622,11 +1651,12 @@ module Google # The attendee's email address, if available. This field must be present when # adding an attendee. It must be a valid email address as per RFC5322. + # Required when adding an attendee. # Corresponds to the JSON property `email` # @return [String] attr_accessor :email - # The attendee's Profile ID, if available. It corresponds to theid field in the + # The attendee's Profile ID, if available. It corresponds to the id field in the # People collection of the Google+ API # Corresponds to the JSON property `id` # @return [String] @@ -1734,12 +1764,14 @@ module Google # - "sms" - Reminders are sent via SMS. These are only available for G Suite # customers. Requests to set SMS reminders for other account types are ignored. # - "popup" - Reminders are sent via a UI popup. + # Required when adding a reminder. # Corresponds to the JSON property `method` # @return [String] attr_accessor :reminder_method # Number of minutes before the start of the event when the reminder should # trigger. Valid values are between 0 and 40320 (4 weeks in minutes). + # Required when adding a reminder. # Corresponds to the JSON property `minutes` # @return [Fixnum] attr_accessor :minutes @@ -1904,14 +1936,14 @@ module Google include Google::Apis::Core::Hashable # Maximal number of calendars for which FreeBusy information is to be provided. - # Optional. + # Optional. Maximum value is 50. # Corresponds to the JSON property `calendarExpansionMax` # @return [Fixnum] attr_accessor :calendar_expansion_max # Maximal number of calendar identifiers to be provided for a single group. - # Optional. An error will be returned for a group with more members than this - # value. + # Optional. An error is returned for a group with more members than this value. + # Maximum value is 100. # Corresponds to the JSON property `groupExpansionMax` # @return [Fixnum] attr_accessor :group_expansion_max @@ -1921,12 +1953,12 @@ module Google # @return [Array] attr_accessor :items - # The end of the interval for the query. + # The end of the interval for the query formatted as per RFC3339. # Corresponds to the JSON property `timeMax` # @return [DateTime] attr_accessor :time_max - # The start of the interval for the query. + # The start of the interval for the query formatted as per RFC3339. # Corresponds to the JSON property `timeMin` # @return [DateTime] attr_accessor :time_min diff --git a/generated/google/apis/calendar_v3/service.rb b/generated/google/apis/calendar_v3/service.rb index 795c2feb9..9b69a3046 100644 --- a/generated/google/apis/calendar_v3/service.rb +++ b/generated/google/apis/calendar_v3/service.rb @@ -378,7 +378,7 @@ module Google execute_or_queue_command(command, &block) end - # Deletes an entry on the user's calendar list. + # Removes a calendar from the user's calendar list. # @param [String] calendar_id # Calendar identifier. To retrieve calendar IDs call the calendarList.list # method. If you want to access the primary calendar of the currently logged in @@ -411,7 +411,7 @@ module Google execute_or_queue_command(command, &block) end - # Returns an entry on the user's calendar list. + # Returns a calendar from the user's calendar list. # @param [String] calendar_id # Calendar identifier. To retrieve calendar IDs call the calendarList.list # method. If you want to access the primary calendar of the currently logged in @@ -446,7 +446,7 @@ module Google execute_or_queue_command(command, &block) end - # Adds an entry to the user's calendar list. + # Inserts an existing calendar into the user's calendar list. # @param [Google::Apis::CalendarV3::CalendarListEntry] calendar_list_entry_object # @param [Boolean] color_rgb_format # Whether to use the foregroundColor and backgroundColor fields to write the @@ -485,7 +485,7 @@ module Google execute_or_queue_command(command, &block) end - # Returns entries on the user's calendar list. + # Returns the calendars on the user's calendar list. # @param [Fixnum] max_results # Maximum number of entries returned on one result page. By default the value is # 100 entries. The page size can never be larger than 250 entries. Optional. @@ -549,8 +549,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates an entry on the user's calendar list. This method supports patch - # semantics. + # Updates an existing calendar on the user's calendar list. This method supports + # patch semantics. # @param [String] calendar_id # Calendar identifier. To retrieve calendar IDs call the calendarList.list # method. If you want to access the primary calendar of the currently logged in @@ -594,7 +594,7 @@ module Google execute_or_queue_command(command, &block) end - # Updates an entry on the user's calendar list. + # Updates an existing calendar on the user's calendar list. # @param [String] calendar_id # Calendar identifier. To retrieve calendar IDs call the calendarList.list # method. If you want to access the primary calendar of the currently logged in diff --git a/generated/google/apis/chat_v1.rb b/generated/google/apis/chat_v1.rb index 945039f21..f837ccb98 100644 --- a/generated/google/apis/chat_v1.rb +++ b/generated/google/apis/chat_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/hangouts/chat module ChatV1 VERSION = 'V1' - REVISION = '20180623' + REVISION = '20180806' end end end diff --git a/generated/google/apis/civicinfo_v2.rb b/generated/google/apis/civicinfo_v2.rb index bb4ada7d0..756f13777 100644 --- a/generated/google/apis/civicinfo_v2.rb +++ b/generated/google/apis/civicinfo_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/civic-information module CivicinfoV2 VERSION = 'V2' - REVISION = '' + REVISION = '20180716' end end end diff --git a/generated/google/apis/civicinfo_v2/classes.rb b/generated/google/apis/civicinfo_v2/classes.rb index 2a628f203..9d2d1c650 100644 --- a/generated/google/apis/civicinfo_v2/classes.rb +++ b/generated/google/apis/civicinfo_v2/classes.rb @@ -736,6 +736,25 @@ module Google end end + # + class FieldMetadataProto + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `internal` + # @return [Google::Apis::CivicinfoV2::InternalFieldMetadataProto] + attr_accessor :internal + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @internal = args[:internal] if args.key?(:internal) + end + end + # Describes a political geography. class GeographicDivision include Google::Apis::Core::Hashable @@ -777,6 +796,207 @@ module Google end end + # + class InternalFieldMetadataProto + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `isAuto` + # @return [Boolean] + attr_accessor :is_auto + alias_method :is_auto?, :is_auto + + # + # Corresponds to the JSON property `sourceSummary` + # @return [Google::Apis::CivicinfoV2::InternalSourceSummaryProto] + attr_accessor :source_summary + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_auto = args[:is_auto] if args.key?(:is_auto) + @source_summary = args[:source_summary] if args.key?(:source_summary) + end + end + + # + class InternalSourceSummaryProto + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `dataset` + # @return [String] + attr_accessor :dataset + + # + # Corresponds to the JSON property `provider` + # @return [String] + attr_accessor :provider + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dataset = args[:dataset] if args.key?(:dataset) + @provider = args[:provider] if args.key?(:provider) + end + end + + # + class LivegraphBacktraceRecordInfo + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `dataSourcePublishMsec` + # @return [Fixnum] + attr_accessor :data_source_publish_msec + + # + # Corresponds to the JSON property `expId` + # @return [String] + attr_accessor :exp_id + + # + # Corresponds to the JSON property `expInfo` + # @return [Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfoExpInfo] + attr_accessor :exp_info + + # + # Corresponds to the JSON property `isRecon` + # @return [Boolean] + attr_accessor :is_recon + alias_method :is_recon?, :is_recon + + # + # Corresponds to the JSON property `isWlmThrottled` + # @return [Boolean] + attr_accessor :is_wlm_throttled + alias_method :is_wlm_throttled?, :is_wlm_throttled + + # + # Corresponds to the JSON property `numberOfTriples` + # @return [Fixnum] + attr_accessor :number_of_triples + + # + # Corresponds to the JSON property `priority` + # @return [String] + attr_accessor :priority + + # + # Corresponds to the JSON property `process` + # @return [String] + attr_accessor :process + + # + # Corresponds to the JSON property `proxyReceiveMsec` + # @return [Fixnum] + attr_accessor :proxy_receive_msec + + # + # Corresponds to the JSON property `proxySentMsec` + # @return [Fixnum] + attr_accessor :proxy_sent_msec + + # + # Corresponds to the JSON property `recordId` + # @return [String] + attr_accessor :record_id + + # + # Corresponds to the JSON property `shouldMonitorLatency` + # @return [Boolean] + attr_accessor :should_monitor_latency + alias_method :should_monitor_latency?, :should_monitor_latency + + # + # Corresponds to the JSON property `subscriberReceiveMsec` + # @return [Fixnum] + attr_accessor :subscriber_receive_msec + + # + # Corresponds to the JSON property `topicBuildFinishMsec` + # @return [Fixnum] + attr_accessor :topic_build_finish_msec + + # + # Corresponds to the JSON property `topicBuildStartMsec` + # @return [Fixnum] + attr_accessor :topic_build_start_msec + + # + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_source_publish_msec = args[:data_source_publish_msec] if args.key?(:data_source_publish_msec) + @exp_id = args[:exp_id] if args.key?(:exp_id) + @exp_info = args[:exp_info] if args.key?(:exp_info) + @is_recon = args[:is_recon] if args.key?(:is_recon) + @is_wlm_throttled = args[:is_wlm_throttled] if args.key?(:is_wlm_throttled) + @number_of_triples = args[:number_of_triples] if args.key?(:number_of_triples) + @priority = args[:priority] if args.key?(:priority) + @process = args[:process] if args.key?(:process) + @proxy_receive_msec = args[:proxy_receive_msec] if args.key?(:proxy_receive_msec) + @proxy_sent_msec = args[:proxy_sent_msec] if args.key?(:proxy_sent_msec) + @record_id = args[:record_id] if args.key?(:record_id) + @should_monitor_latency = args[:should_monitor_latency] if args.key?(:should_monitor_latency) + @subscriber_receive_msec = args[:subscriber_receive_msec] if args.key?(:subscriber_receive_msec) + @topic_build_finish_msec = args[:topic_build_finish_msec] if args.key?(:topic_build_finish_msec) + @topic_build_start_msec = args[:topic_build_start_msec] if args.key?(:topic_build_start_msec) + @version = args[:version] if args.key?(:version) + end + end + + # + class LivegraphBacktraceRecordInfoExpInfo + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `deletedIns` + # @return [Array] + attr_accessor :deleted_ins + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deleted_ins = args[:deleted_ins] if args.key?(:deleted_ins) + end + end + + # + class MessageSet + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `recordMessageSetExt` + # @return [Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfo] + attr_accessor :record_message_set_ext + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @record_message_set_ext = args[:record_message_set_ext] if args.key?(:record_message_set_ext) + end + end + # Information about an Office held by one or more Officials. class Office include Google::Apis::Core::Hashable @@ -896,6 +1116,43 @@ module Google end end + # + class PointProto + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `latE7` + # @return [Fixnum] + attr_accessor :lat_e7 + + # + # Corresponds to the JSON property `lngE7` + # @return [Fixnum] + attr_accessor :lng_e7 + + # + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::CivicinfoV2::FieldMetadataProto] + attr_accessor :metadata + + # + # Corresponds to the JSON property `temporaryData` + # @return [Google::Apis::CivicinfoV2::MessageSet] + attr_accessor :temporary_data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @lat_e7 = args[:lat_e7] if args.key?(:lat_e7) + @lng_e7 = args[:lng_e7] if args.key?(:lng_e7) + @metadata = args[:metadata] if args.key?(:metadata) + @temporary_data = args[:temporary_data] if args.key?(:temporary_data) + end + end + # A location where a voter can vote. This may be an early vote site, an election # day voting location, or a drop off location for a completed ballot. class PollingLocation @@ -1105,6 +1362,79 @@ module Google end end + # + class Provenance + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `collidedSegmentSource` + # @return [Google::Apis::CivicinfoV2::StreetSegmentList] + attr_accessor :collided_segment_source + + # + # Corresponds to the JSON property `ctclContestUuid` + # @return [String] + attr_accessor :ctcl_contest_uuid + + # + # Corresponds to the JSON property `ctclOfficeUuid` + # @return [String] + attr_accessor :ctcl_office_uuid + + # + # Corresponds to the JSON property `datasetId` + # @return [Fixnum] + attr_accessor :dataset_id + + # + # Corresponds to the JSON property `precinctId` + # @return [Fixnum] + attr_accessor :precinct_id + + # + # Corresponds to the JSON property `precinctSplitId` + # @return [Fixnum] + attr_accessor :precinct_split_id + + # + # Corresponds to the JSON property `tsStreetSegmentId` + # @return [String] + attr_accessor :ts_street_segment_id + + # + # Corresponds to the JSON property `vip5PrecinctId` + # @return [String] + attr_accessor :vip5_precinct_id + + # + # Corresponds to the JSON property `vip5StreetSegmentId` + # @return [String] + attr_accessor :vip5_street_segment_id + + # + # Corresponds to the JSON property `vipStreetSegmentId` + # @return [Fixnum] + attr_accessor :vip_street_segment_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collided_segment_source = args[:collided_segment_source] if args.key?(:collided_segment_source) + @ctcl_contest_uuid = args[:ctcl_contest_uuid] if args.key?(:ctcl_contest_uuid) + @ctcl_office_uuid = args[:ctcl_office_uuid] if args.key?(:ctcl_office_uuid) + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @precinct_id = args[:precinct_id] if args.key?(:precinct_id) + @precinct_split_id = args[:precinct_split_id] if args.key?(:precinct_split_id) + @ts_street_segment_id = args[:ts_street_segment_id] if args.key?(:ts_street_segment_id) + @vip5_precinct_id = args[:vip5_precinct_id] if args.key?(:vip5_precinct_id) + @vip5_street_segment_id = args[:vip5_street_segment_id] if args.key?(:vip5_street_segment_id) + @vip_street_segment_id = args[:vip_street_segment_id] if args.key?(:vip_street_segment_id) + end + end + # class RepresentativeInfoData include Google::Apis::Core::Hashable @@ -1285,6 +1615,311 @@ module Google end end + # + class StreetSegment + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `administrationRegionIds` + # @return [Array] + attr_accessor :administration_region_ids + + # + # Corresponds to the JSON property `beforeGeocodeId` + # @return [String] + attr_accessor :before_geocode_id + + # + # Corresponds to the JSON property `catalistUniquePrecinctCode` + # @return [String] + attr_accessor :catalist_unique_precinct_code + + # + # Corresponds to the JSON property `city` + # @return [String] + attr_accessor :city + + # + # Corresponds to the JSON property `cityCouncilDistrict` + # @return [String] + attr_accessor :city_council_district + + # + # Corresponds to the JSON property `congressionalDistrict` + # @return [String] + attr_accessor :congressional_district + + # + # Corresponds to the JSON property `contestIds` + # @return [Array] + attr_accessor :contest_ids + + # + # Corresponds to the JSON property `countyCouncilDistrict` + # @return [String] + attr_accessor :county_council_district + + # + # Corresponds to the JSON property `countyFips` + # @return [String] + attr_accessor :county_fips + + # + # Corresponds to the JSON property `datasetId` + # @return [Fixnum] + attr_accessor :dataset_id + + # + # Corresponds to the JSON property `earlyVoteSiteByIds` + # @return [Array] + attr_accessor :early_vote_site_by_ids + + # + # Corresponds to the JSON property `endHouseNumber` + # @return [Fixnum] + attr_accessor :end_house_number + + # + # Corresponds to the JSON property `geocodedPoint` + # @return [Google::Apis::CivicinfoV2::PointProto] + attr_accessor :geocoded_point + + # + # Corresponds to the JSON property `geographicDivisionOcdIds` + # @return [Array] + attr_accessor :geographic_division_ocd_ids + + # + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # + # Corresponds to the JSON property `judicialDistrict` + # @return [String] + attr_accessor :judicial_district + + # + # Corresponds to the JSON property `mailOnly` + # @return [Boolean] + attr_accessor :mail_only + alias_method :mail_only?, :mail_only + + # + # Corresponds to the JSON property `municipalDistrict` + # @return [String] + attr_accessor :municipal_district + + # + # Corresponds to the JSON property `ncoaAddress` + # @return [String] + attr_accessor :ncoa_address + + # + # Corresponds to the JSON property `oddOrEvens` + # @return [Array] + attr_accessor :odd_or_evens + + # + # Corresponds to the JSON property `originalId` + # @return [String] + attr_accessor :original_id + + # + # Corresponds to the JSON property `pollinglocationByIds` + # @return [Array] + attr_accessor :pollinglocation_by_ids + + # + # Corresponds to the JSON property `precinctName` + # @return [String] + attr_accessor :precinct_name + + # + # Corresponds to the JSON property `precinctOcdId` + # @return [String] + attr_accessor :precinct_ocd_id + + # + # Corresponds to the JSON property `provenances` + # @return [Array] + attr_accessor :provenances + + # + # Corresponds to the JSON property `published` + # @return [Boolean] + attr_accessor :published + alias_method :published?, :published + + # + # Corresponds to the JSON property `schoolDistrict` + # @return [String] + attr_accessor :school_district + + # + # Corresponds to the JSON property `startHouseNumber` + # @return [Fixnum] + attr_accessor :start_house_number + + # + # Corresponds to the JSON property `startLatE7` + # @return [Fixnum] + attr_accessor :start_lat_e7 + + # + # Corresponds to the JSON property `startLngE7` + # @return [Fixnum] + attr_accessor :start_lng_e7 + + # + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # + # Corresponds to the JSON property `stateHouseDistrict` + # @return [String] + attr_accessor :state_house_district + + # + # Corresponds to the JSON property `stateSenateDistrict` + # @return [String] + attr_accessor :state_senate_district + + # + # Corresponds to the JSON property `streetName` + # @return [String] + attr_accessor :street_name + + # + # Corresponds to the JSON property `subAdministrativeAreaName` + # @return [String] + attr_accessor :sub_administrative_area_name + + # + # Corresponds to the JSON property `surrogateId` + # @return [Fixnum] + attr_accessor :surrogate_id + + # + # Corresponds to the JSON property `targetsmartUniquePrecinctCode` + # @return [String] + attr_accessor :targetsmart_unique_precinct_code + + # + # Corresponds to the JSON property `townshipDistrict` + # @return [String] + attr_accessor :township_district + + # + # Corresponds to the JSON property `unitNumber` + # @return [String] + attr_accessor :unit_number + + # + # Corresponds to the JSON property `unitType` + # @return [String] + attr_accessor :unit_type + + # + # Corresponds to the JSON property `vanPrecinctCode` + # @return [String] + attr_accessor :van_precinct_code + + # + # Corresponds to the JSON property `voterGeographicDivisionOcdIds` + # @return [Array] + attr_accessor :voter_geographic_division_ocd_ids + + # + # Corresponds to the JSON property `wardDistrict` + # @return [String] + attr_accessor :ward_district + + # + # Corresponds to the JSON property `wildcard` + # @return [Boolean] + attr_accessor :wildcard + alias_method :wildcard?, :wildcard + + # + # Corresponds to the JSON property `zip` + # @return [String] + attr_accessor :zip + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @administration_region_ids = args[:administration_region_ids] if args.key?(:administration_region_ids) + @before_geocode_id = args[:before_geocode_id] if args.key?(:before_geocode_id) + @catalist_unique_precinct_code = args[:catalist_unique_precinct_code] if args.key?(:catalist_unique_precinct_code) + @city = args[:city] if args.key?(:city) + @city_council_district = args[:city_council_district] if args.key?(:city_council_district) + @congressional_district = args[:congressional_district] if args.key?(:congressional_district) + @contest_ids = args[:contest_ids] if args.key?(:contest_ids) + @county_council_district = args[:county_council_district] if args.key?(:county_council_district) + @county_fips = args[:county_fips] if args.key?(:county_fips) + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @early_vote_site_by_ids = args[:early_vote_site_by_ids] if args.key?(:early_vote_site_by_ids) + @end_house_number = args[:end_house_number] if args.key?(:end_house_number) + @geocoded_point = args[:geocoded_point] if args.key?(:geocoded_point) + @geographic_division_ocd_ids = args[:geographic_division_ocd_ids] if args.key?(:geographic_division_ocd_ids) + @id = args[:id] if args.key?(:id) + @judicial_district = args[:judicial_district] if args.key?(:judicial_district) + @mail_only = args[:mail_only] if args.key?(:mail_only) + @municipal_district = args[:municipal_district] if args.key?(:municipal_district) + @ncoa_address = args[:ncoa_address] if args.key?(:ncoa_address) + @odd_or_evens = args[:odd_or_evens] if args.key?(:odd_or_evens) + @original_id = args[:original_id] if args.key?(:original_id) + @pollinglocation_by_ids = args[:pollinglocation_by_ids] if args.key?(:pollinglocation_by_ids) + @precinct_name = args[:precinct_name] if args.key?(:precinct_name) + @precinct_ocd_id = args[:precinct_ocd_id] if args.key?(:precinct_ocd_id) + @provenances = args[:provenances] if args.key?(:provenances) + @published = args[:published] if args.key?(:published) + @school_district = args[:school_district] if args.key?(:school_district) + @start_house_number = args[:start_house_number] if args.key?(:start_house_number) + @start_lat_e7 = args[:start_lat_e7] if args.key?(:start_lat_e7) + @start_lng_e7 = args[:start_lng_e7] if args.key?(:start_lng_e7) + @state = args[:state] if args.key?(:state) + @state_house_district = args[:state_house_district] if args.key?(:state_house_district) + @state_senate_district = args[:state_senate_district] if args.key?(:state_senate_district) + @street_name = args[:street_name] if args.key?(:street_name) + @sub_administrative_area_name = args[:sub_administrative_area_name] if args.key?(:sub_administrative_area_name) + @surrogate_id = args[:surrogate_id] if args.key?(:surrogate_id) + @targetsmart_unique_precinct_code = args[:targetsmart_unique_precinct_code] if args.key?(:targetsmart_unique_precinct_code) + @township_district = args[:township_district] if args.key?(:township_district) + @unit_number = args[:unit_number] if args.key?(:unit_number) + @unit_type = args[:unit_type] if args.key?(:unit_type) + @van_precinct_code = args[:van_precinct_code] if args.key?(:van_precinct_code) + @voter_geographic_division_ocd_ids = args[:voter_geographic_division_ocd_ids] if args.key?(:voter_geographic_division_ocd_ids) + @ward_district = args[:ward_district] if args.key?(:ward_district) + @wildcard = args[:wildcard] if args.key?(:wildcard) + @zip = args[:zip] if args.key?(:zip) + end + end + + # + class StreetSegmentList + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `segments` + # @return [Array] + attr_accessor :segments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @segments = args[:segments] if args.key?(:segments) + end + end + # A request for information about a voter. class VoterInfoRequest include Google::Apis::Core::Hashable @@ -1379,6 +2014,11 @@ module Google # @return [String] attr_accessor :precinct_id + # + # Corresponds to the JSON property `segments` + # @return [Array] + attr_accessor :segments + # Local Election Information for the state that the voter votes in. For the US, # there will only be one element in this array. # Corresponds to the JSON property `state` @@ -1401,6 +2041,7 @@ module Google @other_elections = args[:other_elections] if args.key?(:other_elections) @polling_locations = args[:polling_locations] if args.key?(:polling_locations) @precinct_id = args[:precinct_id] if args.key?(:precinct_id) + @segments = args[:segments] if args.key?(:segments) @state = args[:state] if args.key?(:state) end end diff --git a/generated/google/apis/civicinfo_v2/representations.rb b/generated/google/apis/civicinfo_v2/representations.rb index c722cec0a..7058cb70b 100644 --- a/generated/google/apis/civicinfo_v2/representations.rb +++ b/generated/google/apis/civicinfo_v2/representations.rb @@ -112,12 +112,48 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FieldMetadataProto + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GeographicDivision class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class InternalFieldMetadataProto + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InternalSourceSummaryProto + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LivegraphBacktraceRecordInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LivegraphBacktraceRecordInfoExpInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MessageSet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Office class Representation < Google::Apis::Core::JsonRepresentation; end @@ -130,6 +166,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PointProto + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PollingLocation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,6 +184,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Provenance + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RepresentativeInfoData class Representation < Google::Apis::Core::JsonRepresentation; end @@ -172,6 +220,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class StreetSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StreetSegmentList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VoterInfoRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -373,6 +433,14 @@ module Google end end + class FieldMetadataProto + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :internal, as: 'internal', class: Google::Apis::CivicinfoV2::InternalFieldMetadataProto, decorator: Google::Apis::CivicinfoV2::InternalFieldMetadataProto::Representation + + end + end + class GeographicDivision # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -382,6 +450,61 @@ module Google end end + class InternalFieldMetadataProto + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_auto, as: 'isAuto' + property :source_summary, as: 'sourceSummary', class: Google::Apis::CivicinfoV2::InternalSourceSummaryProto, decorator: Google::Apis::CivicinfoV2::InternalSourceSummaryProto::Representation + + end + end + + class InternalSourceSummaryProto + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dataset, as: 'dataset' + property :provider, as: 'provider' + end + end + + class LivegraphBacktraceRecordInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_source_publish_msec, :numeric_string => true, as: 'dataSourcePublishMsec' + property :exp_id, as: 'expId' + property :exp_info, as: 'expInfo', class: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfoExpInfo, decorator: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfoExpInfo::Representation + + property :is_recon, as: 'isRecon' + property :is_wlm_throttled, as: 'isWlmThrottled' + property :number_of_triples, :numeric_string => true, as: 'numberOfTriples' + property :priority, as: 'priority' + property :process, as: 'process' + property :proxy_receive_msec, :numeric_string => true, as: 'proxyReceiveMsec' + property :proxy_sent_msec, :numeric_string => true, as: 'proxySentMsec' + property :record_id, as: 'recordId' + property :should_monitor_latency, as: 'shouldMonitorLatency' + property :subscriber_receive_msec, :numeric_string => true, as: 'subscriberReceiveMsec' + property :topic_build_finish_msec, :numeric_string => true, as: 'topicBuildFinishMsec' + property :topic_build_start_msec, :numeric_string => true, as: 'topicBuildStartMsec' + property :version, as: 'version' + end + end + + class LivegraphBacktraceRecordInfoExpInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deleted_ins, as: 'deletedIns' + end + end + + class MessageSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :record_message_set_ext, as: 'recordMessageSetExt', class: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfo, decorator: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfo::Representation + + end + end + class Office # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -411,6 +534,18 @@ module Google end end + class PointProto + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lat_e7, as: 'latE7' + property :lng_e7, as: 'lngE7' + property :metadata, as: 'metadata', class: Google::Apis::CivicinfoV2::FieldMetadataProto, decorator: Google::Apis::CivicinfoV2::FieldMetadataProto::Representation + + property :temporary_data, as: 'temporaryData', class: Google::Apis::CivicinfoV2::MessageSet, decorator: Google::Apis::CivicinfoV2::MessageSet::Representation + + end + end + class PollingLocation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -454,6 +589,23 @@ module Google end end + class Provenance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :collided_segment_source, as: 'collidedSegmentSource', class: Google::Apis::CivicinfoV2::StreetSegmentList, decorator: Google::Apis::CivicinfoV2::StreetSegmentList::Representation + + property :ctcl_contest_uuid, as: 'ctclContestUuid' + property :ctcl_office_uuid, as: 'ctclOfficeUuid' + property :dataset_id, :numeric_string => true, as: 'datasetId' + property :precinct_id, :numeric_string => true, as: 'precinctId' + property :precinct_split_id, :numeric_string => true, as: 'precinctSplitId' + property :ts_street_segment_id, as: 'tsStreetSegmentId' + property :vip5_precinct_id, as: 'vip5PrecinctId' + property :vip5_street_segment_id, as: 'vip5StreetSegmentId' + property :vip_street_segment_id, :numeric_string => true, as: 'vipStreetSegmentId' + end + end + class RepresentativeInfoData # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -510,6 +662,67 @@ module Google end end + class StreetSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :administration_region_ids, as: 'administrationRegionIds' + property :before_geocode_id, as: 'beforeGeocodeId' + property :catalist_unique_precinct_code, as: 'catalistUniquePrecinctCode' + property :city, as: 'city' + property :city_council_district, as: 'cityCouncilDistrict' + property :congressional_district, as: 'congressionalDistrict' + collection :contest_ids, as: 'contestIds' + property :county_council_district, as: 'countyCouncilDistrict' + property :county_fips, as: 'countyFips' + property :dataset_id, :numeric_string => true, as: 'datasetId' + collection :early_vote_site_by_ids, as: 'earlyVoteSiteByIds' + property :end_house_number, :numeric_string => true, as: 'endHouseNumber' + property :geocoded_point, as: 'geocodedPoint', class: Google::Apis::CivicinfoV2::PointProto, decorator: Google::Apis::CivicinfoV2::PointProto::Representation + + collection :geographic_division_ocd_ids, as: 'geographicDivisionOcdIds' + property :id, as: 'id' + property :judicial_district, as: 'judicialDistrict' + property :mail_only, as: 'mailOnly' + property :municipal_district, as: 'municipalDistrict' + property :ncoa_address, as: 'ncoaAddress' + collection :odd_or_evens, as: 'oddOrEvens' + property :original_id, as: 'originalId' + collection :pollinglocation_by_ids, as: 'pollinglocationByIds' + property :precinct_name, as: 'precinctName' + property :precinct_ocd_id, as: 'precinctOcdId' + collection :provenances, as: 'provenances', class: Google::Apis::CivicinfoV2::Provenance, decorator: Google::Apis::CivicinfoV2::Provenance::Representation + + property :published, as: 'published' + property :school_district, as: 'schoolDistrict' + property :start_house_number, :numeric_string => true, as: 'startHouseNumber' + property :start_lat_e7, :numeric_string => true, as: 'startLatE7' + property :start_lng_e7, :numeric_string => true, as: 'startLngE7' + property :state, as: 'state' + property :state_house_district, as: 'stateHouseDistrict' + property :state_senate_district, as: 'stateSenateDistrict' + property :street_name, as: 'streetName' + property :sub_administrative_area_name, as: 'subAdministrativeAreaName' + property :surrogate_id, :numeric_string => true, as: 'surrogateId' + property :targetsmart_unique_precinct_code, as: 'targetsmartUniquePrecinctCode' + property :township_district, as: 'townshipDistrict' + property :unit_number, as: 'unitNumber' + property :unit_type, as: 'unitType' + property :van_precinct_code, as: 'vanPrecinctCode' + collection :voter_geographic_division_ocd_ids, as: 'voterGeographicDivisionOcdIds' + property :ward_district, as: 'wardDistrict' + property :wildcard, as: 'wildcard' + property :zip, as: 'zip' + end + end + + class StreetSegmentList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :segments, as: 'segments', class: Google::Apis::CivicinfoV2::StreetSegment, decorator: Google::Apis::CivicinfoV2::StreetSegment::Representation + + end + end + class VoterInfoRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -540,6 +753,8 @@ module Google collection :polling_locations, as: 'pollingLocations', class: Google::Apis::CivicinfoV2::PollingLocation, decorator: Google::Apis::CivicinfoV2::PollingLocation::Representation property :precinct_id, as: 'precinctId' + collection :segments, as: 'segments', class: Google::Apis::CivicinfoV2::StreetSegment, decorator: Google::Apis::CivicinfoV2::StreetSegment::Representation + collection :state, as: 'state', class: Google::Apis::CivicinfoV2::AdministrationRegion, decorator: Google::Apis::CivicinfoV2::AdministrationRegion::Representation end diff --git a/generated/google/apis/classroom_v1.rb b/generated/google/apis/classroom_v1.rb index 6f806be9c..6bbce7252 100644 --- a/generated/google/apis/classroom_v1.rb +++ b/generated/google/apis/classroom_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/classroom/ module ClassroomV1 VERSION = 'V1' - REVISION = '20180602' + REVISION = '20180807' # View and manage announcements in Google Classroom AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements' diff --git a/generated/google/apis/classroom_v1/classes.rb b/generated/google/apis/classroom_v1/classes.rb index 6413db328..3784b1939 100644 --- a/generated/google/apis/classroom_v1/classes.rb +++ b/generated/google/apis/classroom_v1/classes.rb @@ -687,6 +687,25 @@ module Google end end + # Information about a `Feed` with a `feed_type` of `COURSE_WORK_CHANGES`. + class CourseWorkChangesInfo + include Google::Apis::Core::Hashable + + # The `course_id` of the course to subscribe to work changes for. + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @course_id = args[:course_id] if args.key?(:course_id) + end + end + # Represents a whole calendar date, e.g. date of birth. The time of day and # time zone are either specified elsewhere or are not significant. The date # is relative to the Proleptic Gregorian Calendar. The day may be 0 to @@ -829,6 +848,11 @@ module Google # @return [Google::Apis::ClassroomV1::CourseRosterChangesInfo] attr_accessor :course_roster_changes_info + # Information about a `Feed` with a `feed_type` of `COURSE_WORK_CHANGES`. + # Corresponds to the JSON property `courseWorkChangesInfo` + # @return [Google::Apis::ClassroomV1::CourseWorkChangesInfo] + attr_accessor :course_work_changes_info + # The type of feed. # Corresponds to the JSON property `feedType` # @return [String] @@ -841,6 +865,7 @@ module Google # Update properties of this object def update!(**args) @course_roster_changes_info = args[:course_roster_changes_info] if args.key?(:course_roster_changes_info) + @course_work_changes_info = args[:course_work_changes_info] if args.key?(:course_work_changes_info) @feed_type = args[:feed_type] if args.key?(:feed_type) end end diff --git a/generated/google/apis/classroom_v1/representations.rb b/generated/google/apis/classroom_v1/representations.rb index 88fd940a9..2177b6791 100644 --- a/generated/google/apis/classroom_v1/representations.rb +++ b/generated/google/apis/classroom_v1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CourseWorkChangesInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Date class Representation < Google::Apis::Core::JsonRepresentation; end @@ -511,6 +517,13 @@ module Google end end + class CourseWorkChangesInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :course_id, as: 'courseId' + end + end + class Date # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -550,6 +563,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :course_roster_changes_info, as: 'courseRosterChangesInfo', class: Google::Apis::ClassroomV1::CourseRosterChangesInfo, decorator: Google::Apis::ClassroomV1::CourseRosterChangesInfo::Representation + property :course_work_changes_info, as: 'courseWorkChangesInfo', class: Google::Apis::ClassroomV1::CourseWorkChangesInfo, decorator: Google::Apis::ClassroomV1::CourseWorkChangesInfo::Representation + property :feed_type, as: 'feedType' end end diff --git a/generated/google/apis/cloudbilling_v1.rb b/generated/google/apis/cloudbilling_v1.rb index 7c0d741c5..c41660b5f 100644 --- a/generated/google/apis/cloudbilling_v1.rb +++ b/generated/google/apis/cloudbilling_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/billing/ module CloudbillingV1 VERSION = 'V1' - REVISION = '20180410' + REVISION = '20180806' # 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/cloudbilling_v1/classes.rb b/generated/google/apis/cloudbilling_v1/classes.rb index 4b287105b..85bfae5cd 100644 --- a/generated/google/apis/cloudbilling_v1/classes.rb +++ b/generated/google/apis/cloudbilling_v1/classes.rb @@ -187,8 +187,6 @@ module Google # will be the resource name of the master billing account that it is being # resold through. # Otherwise this will be empty. - # > This field is currently in - # > [Beta](https://cloud.google.com/terms/launch-stages). # Corresponds to the JSON property `masterBillingAccount` # @return [String] attr_accessor :master_billing_account @@ -226,6 +224,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudbillingV1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -233,7 +239,7 @@ module Google # * `allAuthenticatedUsers`: A special identifier that represents anyone # who is authenticated with a Google account or a service account. # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@gmail.com` or `joe@example.com`. + # account. For example, `alice@gmail.com` . # * `serviceAccount:`emailid``: An email address that represents a service # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. @@ -246,7 +252,6 @@ module Google # Role that is assigned to `members`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -257,6 +262,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -302,6 +308,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # Response message for `ListBillingAccounts`. class ListBillingAccountsResponse include Google::Apis::Core::Hashable @@ -450,11 +503,11 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of # `members` to a `role`, where the members can be user accounts, Google groups, # Google domains, and service accounts. A `role` is a named list of permissions # defined by IAM. - # **Example** + # **JSON Example** # ` # "bindings": [ # ` @@ -463,7 +516,7 @@ module Google # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" # ] # `, # ` @@ -472,6 +525,17 @@ module Google # ` # ] # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy @@ -747,11 +811,11 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of # `members` to a `role`, where the members can be user accounts, Google groups, # Google domains, and service accounts. A `role` is a named list of permissions # defined by IAM. - # **Example** + # **JSON Example** # ` # "bindings": [ # ` @@ -760,7 +824,7 @@ module Google # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" # ] # `, # ` @@ -769,6 +833,17 @@ module Google # ` # ] # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` diff --git a/generated/google/apis/cloudbilling_v1/representations.rb b/generated/google/apis/cloudbilling_v1/representations.rb index e3e5ed0c1..bca4a5f73 100644 --- a/generated/google/apis/cloudbilling_v1/representations.rb +++ b/generated/google/apis/cloudbilling_v1/representations.rb @@ -58,6 +58,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListBillingAccountsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -187,6 +193,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudbillingV1::Expr, decorator: Google::Apis::CloudbillingV1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -202,6 +210,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class ListBillingAccountsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudbilling_v1/service.rb b/generated/google/apis/cloudbilling_v1/service.rb index 1d8cd7cdd..a7fe778b7 100644 --- a/generated/google/apis/cloudbilling_v1/service.rb +++ b/generated/google/apis/cloudbilling_v1/service.rb @@ -51,13 +51,13 @@ module Google # Creates a billing account. # This method can only be used to create # [billing subaccounts](https://cloud.google.com/billing/docs/concepts) - # for GCP resellers. + # by GCP resellers. # When creating a subaccount, the current authenticated user must have the # `billing.accounts.update` IAM permission on the master account, which is # typically given to billing account # [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). - # > This method is currently in - # > [Beta](https://cloud.google.com/terms/launch-stages). + # This method will return an error if the master account has not been + # provisioned as a reseller account. # @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -124,8 +124,6 @@ module Google # The caller must have the `billing.accounts.getIamPolicy` permission on the # account, which is often given to billing account # [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). - # > This method is currently in - # > [Beta](https://cloud.google.com/terms/launch-stages). # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. @@ -166,8 +164,6 @@ module Google # single provided reseller billing account. # (e.g. "master_billing_account=billingAccounts/012345-678901-ABCDEF"). # Boolean algebra and other fields are not currently supported. - # > This field is currently in - # > [Beta](https://cloud.google.com/terms/launch-stages). # @param [Fixnum] page_size # Requested page size. The maximum page size is 100; this is also the # default. @@ -210,8 +206,6 @@ module Google # IAM permission, which is typically given to the # [administrator](https://cloud.google.com/billing/docs/how-to/billing-access) # of the billing account. - # > This method is currently in - # > [Beta](https://cloud.google.com/terms/launch-stages). # @param [String] name # The name of the billing account resource to be updated. # @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object @@ -253,8 +247,6 @@ module Google # The caller must have the `billing.accounts.setIamPolicy` permission on the # account, which is often given to billing account # [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). - # > This method is currently in - # > [Beta](https://cloud.google.com/terms/launch-stages). # @param [String] resource # REQUIRED: The resource for which the policy is being specified. # See the operation documentation for the appropriate value for this field. @@ -291,8 +283,6 @@ module Google # Tests the access control policy for a billing account. This method takes # the resource and a set of permissions as input and returns the subset of # the input permissions that the caller is allowed for that resource. - # > This method is currently in - # > [Beta](https://cloud.google.com/terms/launch-stages). # @param [String] resource # REQUIRED: The resource for which the policy detail is being requested. # See the operation documentation for the appropriate value for this field. diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index f0853f672..62914b257 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -18,14 +18,14 @@ require 'google/apis/cloudbuild_v1/representations.rb' module Google module Apis - # Cloud Container Builder + # Cloud Build API # - # Builds container images in the cloud. + # Creates and manages builds on Google Cloud Platform. # - # @see https://cloud.google.com/container-builder/docs/ + # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20180621' + REVISION = '20180820' # 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 3ea307a44..3b4fd6cce 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -119,7 +119,7 @@ module Google end end - # A build resource in the Container Builder API. + # 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. @@ -305,7 +305,7 @@ module Google class BuildOperationMetadata include Google::Apis::Core::Hashable - # A build resource in the Container Builder API. + # 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. @@ -523,7 +523,7 @@ module Google class BuildTrigger include Google::Apis::Core::Hashable - # A build resource in the Container Builder API. + # 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. @@ -568,6 +568,28 @@ module Google # @return [String] attr_accessor :id + # ignored_files and included_files are file glob matches using + # http://godoc/pkg/path/filepath#Match extended with support for "**". + # If ignored_files and changed files are both empty, then they are + # not used to determine whether or not to trigger a build. + # If ignored_files is not empty, then we ignore any files that match + # any of the ignored_file globs. If the change has no files that are + # outside of the ignored_files globs, then we do not trigger a build. + # Corresponds to the JSON property `ignoredFiles` + # @return [Array] + attr_accessor :ignored_files + + # If any of the files altered in the commit pass the ignored_files + # filter and included_files is empty, then as far as this filter is + # concerned, we should trigger the build. + # If any of the files altered in the commit pass the ignored_files + # filter and included_files is not empty, then we make sure that at + # least one of those files matches a included_files glob. If not, + # then we do not trigger a build. + # Corresponds to the JSON property `includedFiles` + # @return [Array] + attr_accessor :included_files + # Substitutions data for Build resource. # Corresponds to the JSON property `substitutions` # @return [Hash] @@ -590,6 +612,8 @@ module Google @disabled = args[:disabled] if args.key?(:disabled) @filename = args[:filename] if args.key?(:filename) @id = args[:id] if args.key?(:id) + @ignored_files = args[:ignored_files] if args.key?(:ignored_files) + @included_files = args[:included_files] if args.key?(:included_files) @substitutions = args[:substitutions] if args.key?(:substitutions) @trigger_template = args[:trigger_template] if args.key?(:trigger_template) end @@ -952,6 +976,15 @@ module Google # @return [Array] attr_accessor :build_step_images + # List of build step outputs, produced by builder images, in the order + # corresponding to build step indices. + # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) + # can produce this output by writing to `$BUILDER_OUTPUT/output`. + # Only the first 4KB of data is stored. + # Corresponds to the JSON property `buildStepOutputs` + # @return [Array] + attr_accessor :build_step_outputs + # Container images that were built as a part of the build. # Corresponds to the JSON property `images` # @return [Array] @@ -970,6 +1003,7 @@ module Google def update!(**args) @artifact_manifest = args[:artifact_manifest] if args.key?(:artifact_manifest) @build_step_images = args[:build_step_images] if args.key?(:build_step_images) + @build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs) @images = args[:images] if args.key?(:images) @num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts) end diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index 94c4f20d4..e128c6016 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -304,6 +304,8 @@ module Google property :disabled, as: 'disabled' property :filename, as: 'filename' property :id, as: 'id' + collection :ignored_files, as: 'ignoredFiles' + collection :included_files, as: 'includedFiles' hash :substitutions, as: 'substitutions' property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation @@ -409,6 +411,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :artifact_manifest, as: 'artifactManifest' collection :build_step_images, as: 'buildStepImages' + collection :build_step_outputs, as: 'buildStepOutputs' collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation property :num_artifacts, :numeric_string => true, as: 'numArtifacts' diff --git a/generated/google/apis/cloudbuild_v1/service.rb b/generated/google/apis/cloudbuild_v1/service.rb index b12c49036..fc74f77f3 100644 --- a/generated/google/apis/cloudbuild_v1/service.rb +++ b/generated/google/apis/cloudbuild_v1/service.rb @@ -20,9 +20,9 @@ require 'google/apis/errors' module Google module Apis module CloudbuildV1 - # Cloud Container Builder + # Cloud Build API # - # Builds container images in the cloud. + # Creates and manages builds on Google Cloud Platform. # # @example # require 'google/apis/cloudbuild_v1' @@ -30,7 +30,7 @@ module Google # Cloudbuild = Google::Apis::CloudbuildV1 # Alias the module # service = Cloudbuild::CloudBuildService.new # - # @see https://cloud.google.com/container-builder/docs/ + # @see https://cloud.google.com/cloud-build/docs/ class CloudBuildService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, diff --git a/generated/google/apis/clouddebugger_v2.rb b/generated/google/apis/clouddebugger_v2.rb index 465bb7764..afab77a53 100644 --- a/generated/google/apis/clouddebugger_v2.rb +++ b/generated/google/apis/clouddebugger_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/debugger module ClouddebuggerV2 VERSION = 'V2' - REVISION = '20180604' + REVISION = '20180801' # 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/clouddebugger_v2/classes.rb b/generated/google/apis/clouddebugger_v2/classes.rb index 68c19be05..681195f04 100644 --- a/generated/google/apis/clouddebugger_v2/classes.rb +++ b/generated/google/apis/clouddebugger_v2/classes.rb @@ -807,6 +807,13 @@ module Google class SourceLocation include Google::Apis::Core::Hashable + # Column within a line. The first column in a line as the value `1`. + # Agents that do not support setting breakpoints on specific columns ignore + # this field. + # Corresponds to the JSON property `column` + # @return [Fixnum] + attr_accessor :column + # Line inside the file. The first line in the file has the value `1`. # Corresponds to the JSON property `line` # @return [Fixnum] @@ -823,6 +830,7 @@ module Google # Update properties of this object def update!(**args) + @column = args[:column] if args.key?(:column) @line = args[:line] if args.key?(:line) @path = args[:path] if args.key?(:path) end diff --git a/generated/google/apis/clouddebugger_v2/representations.rb b/generated/google/apis/clouddebugger_v2/representations.rb index e33425f1e..ef633fe6b 100644 --- a/generated/google/apis/clouddebugger_v2/representations.rb +++ b/generated/google/apis/clouddebugger_v2/representations.rb @@ -405,6 +405,7 @@ module Google class SourceLocation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :column, as: 'column' property :line, as: 'line' property :path, as: 'path' end diff --git a/generated/google/apis/clouderrorreporting_v1beta1.rb b/generated/google/apis/clouderrorreporting_v1beta1.rb index 5f144296b..c3ffecaed 100644 --- a/generated/google/apis/clouderrorreporting_v1beta1.rb +++ b/generated/google/apis/clouderrorreporting_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/error-reporting/ module ClouderrorreportingV1beta1 VERSION = 'V1beta1' - REVISION = '20180611' + REVISION = '20180706' # 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/clouderrorreporting_v1beta1/service.rb b/generated/google/apis/clouderrorreporting_v1beta1/service.rb index d4fdda891..2047a9d97 100644 --- a/generated/google/apis/clouderrorreporting_v1beta1/service.rb +++ b/generated/google/apis/clouderrorreporting_v1beta1/service.rb @@ -144,13 +144,12 @@ module Google end # Report an individual error event. - # This endpoint accepts either an OAuth token, - # or an - # API key + # This endpoint accepts **either** an OAuth token, + # **or** an [API key](https://support.google.com/cloud/answer/6158862) # for authentication. To use an API key, append it to the URL as the value of # a `key` parameter. For example: - #
POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-
-        # project/events:report?key=123ABC456
+ # `POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example- + # project/events:report?key=123ABC456` # @param [String] project_name # [Required] The resource name of the Google Cloud Platform project. Written # as `projects/` plus the diff --git a/generated/google/apis/cloudiot_v1.rb b/generated/google/apis/cloudiot_v1.rb index 11aa0af71..ef0128f8e 100644 --- a/generated/google/apis/cloudiot_v1.rb +++ b/generated/google/apis/cloudiot_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/iot module CloudiotV1 VERSION = 'V1' - REVISION = '20180703' + REVISION = '20180731' # 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/cloudiot_v1/classes.rb b/generated/google/apis/cloudiot_v1/classes.rb index 55e530020..d4682aed8 100644 --- a/generated/google/apis/cloudiot_v1/classes.rb +++ b/generated/google/apis/cloudiot_v1/classes.rb @@ -26,6 +26,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudiotV1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -56,6 +64,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -462,6 +471,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # Request message for `GetIamPolicy` method. class GetIamPolicyRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/cloudiot_v1/representations.rb b/generated/google/apis/cloudiot_v1/representations.rb index 6568df4d6..38a787015 100644 --- a/generated/google/apis/cloudiot_v1/representations.rb +++ b/generated/google/apis/cloudiot_v1/representations.rb @@ -70,6 +70,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -181,6 +187,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudiotV1::Expr, decorator: Google::Apis::CloudiotV1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -270,6 +278,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudiot_v1/service.rb b/generated/google/apis/cloudiot_v1/service.rb index b3b952c2b..6c6f45128 100644 --- a/generated/google/apis/cloudiot_v1/service.rb +++ b/generated/google/apis/cloudiot_v1/service.rb @@ -648,6 +648,361 @@ module Google 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 + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudiotV1::GetIamPolicyRequest] get_iam_policy_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::CloudiotV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudiotV1::Policy] + # + # @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_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::CloudiotV1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::CloudiotV1::Policy::Representation + command.response_class = Google::Apis::CloudiotV1::Policy + command.params['resource'] = resource unless resource.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. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudiotV1::SetIamPolicyRequest] set_iam_policy_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::CloudiotV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudiotV1::Policy] + # + # @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 set_group_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::CloudiotV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::CloudiotV1::Policy::Representation + command.response_class = Google::Apis::CloudiotV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # If the resource does not exist, this will return an empty set of + # permissions, not a NOT_FOUND error. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudiotV1::TestIamPermissionsRequest] test_iam_permissions_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::CloudiotV1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudiotV1::TestIamPermissionsResponse] + # + # @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 test_group_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::CloudiotV1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::CloudiotV1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::CloudiotV1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.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 details about a device. + # @param [String] name + # The name of the device. For example, + # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or + # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # @param [String] field_mask + # The fields of the `Device` resource to be returned in the response. If the + # field mask is unset or empty, all fields are returned. + # @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::CloudiotV1::Device] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudiotV1::Device] + # + # @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_registry_group_device(name, field_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudiotV1::Device::Representation + command.response_class = Google::Apis::CloudiotV1::Device + command.params['name'] = name unless name.nil? + command.query['fieldMask'] = field_mask unless field_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 + + # List devices in a device registry. + # @param [String] parent + # The device registry path. Required. For example, + # `projects/my-project/locations/us-central1/registries/my-registry`. + # @param [Array, String] device_ids + # A list of device string identifiers. If empty, it will ignore this field. + # For example, `['device0', 'device12']`. This field cannot hold more than + # 10,000 entries. + # @param [Array, Fixnum] device_num_ids + # A list of device numerical ids. If empty, it will ignore this field. This + # field cannot hold more than 10,000 entries. + # @param [String] field_mask + # The fields of the `Device` resource to be returned in the response. The + # fields `id`, and `num_id` are always returned by default, along with any + # other fields specified. + # @param [Fixnum] page_size + # The maximum number of devices to return in the response. If this value + # is zero, the service will select a default size. A call may return fewer + # objects than requested, but if there is a non-empty `page_token`, it + # indicates that more entries are available. + # @param [String] page_token + # The value returned by the last `ListDevicesResponse`; indicates + # that this is a continuation of a prior `ListDevices` call, and + # that the system should return the next page of data. + # @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::CloudiotV1::ListDevicesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudiotV1::ListDevicesResponse] + # + # @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_registry_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/devices', options) + command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation + command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse + command.params['parent'] = parent unless parent.nil? + command.query['deviceIds'] = device_ids unless device_ids.nil? + command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil? + command.query['fieldMask'] = field_mask unless field_mask.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 + + # Modifies the configuration for the device, which is eventually sent from + # the Cloud IoT Core servers. Returns the modified configuration version and + # its metadata. + # @param [String] name + # The name of the device. For example, + # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or + # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # @param [Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest] modify_cloud_to_device_config_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::CloudiotV1::DeviceConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudiotV1::DeviceConfig] + # + # @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 modify_project_location_registry_group_device_cloud_to_device_config(name, modify_cloud_to_device_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:modifyCloudToDeviceConfig', options) + command.request_representation = Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest::Representation + command.request_object = modify_cloud_to_device_config_request_object + command.response_representation = Google::Apis::CloudiotV1::DeviceConfig::Representation + command.response_class = Google::Apis::CloudiotV1::DeviceConfig + 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 + + # Updates a device. + # @param [String] name + # The resource path name. For example, + # `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or + # `projects/p1/locations/us-central1/registries/registry0/devices/`num_id``. + # When `name` is populated as a response from the service, it always ends + # in the device numeric ID. + # @param [Google::Apis::CloudiotV1::Device] device_object + # @param [String] update_mask + # Only updates the `device` fields indicated by this mask. + # The field mask must not be empty, and it must not contain fields that + # are immutable or only set by the server. + # Mutable top-level fields: `credentials`, `blocked`, and `metadata` + # @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::CloudiotV1::Device] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudiotV1::Device] + # + # @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_registry_group_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::CloudiotV1::Device::Representation + command.request_object = device_object + command.response_representation = Google::Apis::CloudiotV1::Device::Representation + command.response_class = Google::Apis::CloudiotV1::Device + 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 + + # Lists the last few versions of the device configuration in descending + # order (i.e.: newest first). + # @param [String] name + # The name of the device. For example, + # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or + # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # @param [Fixnum] num_versions + # The number of versions to list. Versions are listed in decreasing order of + # the version number. The maximum number of versions retained is 10. If this + # value is zero, it will return all the versions available. + # @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::CloudiotV1::ListDeviceConfigVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse] + # + # @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_registry_group_device_config_versions(name, num_versions: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/configVersions', options) + command.response_representation = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse::Representation + command.response_class = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse + command.params['name'] = name unless name.nil? + command.query['numVersions'] = num_versions unless num_versions.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 last few versions of the device state in descending order (i.e.: + # newest first). + # @param [String] name + # The name of the device. For example, + # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or + # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # @param [Fixnum] num_states + # The number of states to list. States are listed in descending order of + # update time. The maximum number of states retained is 10. If this + # value is zero, it will return all the states available. + # @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::CloudiotV1::ListDeviceStatesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudiotV1::ListDeviceStatesResponse] + # + # @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_registry_group_device_states(name, num_states: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/states', options) + command.response_representation = Google::Apis::CloudiotV1::ListDeviceStatesResponse::Representation + command.response_class = Google::Apis::CloudiotV1::ListDeviceStatesResponse + command.params['name'] = name unless name.nil? + command.query['numStates'] = num_states unless num_states.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/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index a28d47e1a..7037bd9ed 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -20,13 +20,16 @@ module Google module Apis # Cloud Key Management Service (KMS) API # - # Manages encryption for your cloud services the same way you do on-premises. - # You can generate, use, rotate, and destroy AES256 encryption keys. + # Cloud KMS allows you to keep cryptographic keys in one central cloud service, + # for direct use by other cloud resources and applications. With Cloud KMS you + # are the ultimate custodian of your data, you can manage encryption in the + # cloud the same way you do on-premises, and you have a provable and monitorable + # root of trust over your data. # # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20180702' + REVISION = '20180821' # 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/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index a2cb0c8ab..f0b19a3de 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -22,6 +22,86 @@ module Google module Apis module CloudkmsV1 + # Request message for KeyManagementService.AsymmetricDecrypt. + class AsymmetricDecryptRequest + include Google::Apis::Core::Hashable + + # Required. The data encrypted with the named CryptoKeyVersion's public + # key using OAEP. + # Corresponds to the JSON property `ciphertext` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :ciphertext + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ciphertext = args[:ciphertext] if args.key?(:ciphertext) + end + end + + # Response message for KeyManagementService.AsymmetricDecrypt. + class AsymmetricDecryptResponse + include Google::Apis::Core::Hashable + + # The decrypted data originally encrypted with the matching public key. + # Corresponds to the JSON property `plaintext` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :plaintext + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @plaintext = args[:plaintext] if args.key?(:plaintext) + end + end + + # Request message for KeyManagementService.AsymmetricSign. + class AsymmetricSignRequest + include Google::Apis::Core::Hashable + + # A Digest holds a cryptographic message digest. + # Corresponds to the JSON property `digest` + # @return [Google::Apis::CloudkmsV1::Digest] + attr_accessor :digest + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @digest = args[:digest] if args.key?(:digest) + end + end + + # Response message for KeyManagementService.AsymmetricSign. + class AsymmetricSignResponse + include Google::Apis::Core::Hashable + + # The created signature. + # Corresponds to the JSON property `signature` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :signature + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @signature = args[:signature] if args.key?(:signature) + 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. @@ -142,6 +222,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudkmsV1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -172,6 +260,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -208,25 +297,26 @@ module Google # CreateCryptoKeyVersion and # UpdateCryptoKeyPrimaryVersion # do not affect next_rotation_time. + # Keys with purpose + # ENCRYPT_DECRYPT support + # automatic rotation. For other keys, this field must be omitted. # Corresponds to the JSON property `nextRotationTime` # @return [String] attr_accessor :next_rotation_time # A CryptoKeyVersion represents an individual cryptographic key, and the # associated key material. - # It can be used for cryptographic operations either directly, or via its - # parent CryptoKey, in which case the server will choose the appropriate - # version for the operation. + # An ENABLED version can be + # used for cryptographic operations. # For security reasons, the raw cryptographic key material represented by a # CryptoKeyVersion can never be viewed or exported. It can only be used to - # encrypt or decrypt data when an authorized user or application invokes Cloud - # KMS. + # encrypt, decrypt, or sign data when an authorized user or application invokes + # Cloud KMS. # Corresponds to the JSON property `primary` # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] attr_accessor :primary - # The immutable purpose of this CryptoKey. Currently, the only acceptable - # purpose is ENCRYPT_DECRYPT. + # The immutable purpose of this CryptoKey. # Corresponds to the JSON property `purpose` # @return [String] attr_accessor :purpose @@ -234,10 +324,21 @@ module Google # next_rotation_time will be advanced by this period when the service # automatically rotates a key. Must be at least one day. # If rotation_period is set, next_rotation_time must also be set. + # Keys with purpose + # ENCRYPT_DECRYPT support + # automatic rotation. For other keys, this field must be omitted. # Corresponds to the JSON property `rotationPeriod` # @return [String] attr_accessor :rotation_period + # A CryptoKeyVersionTemplate specifies the properties to use when creating + # a new CryptoKeyVersion, either manually with + # CreateCryptoKeyVersion or + # automatically as a result of auto-rotation. + # Corresponds to the JSON property `versionTemplate` + # @return [Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate] + attr_accessor :version_template + def initialize(**args) update!(**args) end @@ -251,21 +352,32 @@ module Google @primary = args[:primary] if args.key?(:primary) @purpose = args[:purpose] if args.key?(:purpose) @rotation_period = args[:rotation_period] if args.key?(:rotation_period) + @version_template = args[:version_template] if args.key?(:version_template) end end # A CryptoKeyVersion represents an individual cryptographic key, and the # associated key material. - # It can be used for cryptographic operations either directly, or via its - # parent CryptoKey, in which case the server will choose the appropriate - # version for the operation. + # An ENABLED version can be + # used for cryptographic operations. # For security reasons, the raw cryptographic key material represented by a # CryptoKeyVersion can never be viewed or exported. It can only be used to - # encrypt or decrypt data when an authorized user or application invokes Cloud - # KMS. + # encrypt, decrypt, or sign data when an authorized user or application invokes + # Cloud KMS. class CryptoKeyVersion include Google::Apis::Core::Hashable + # Output only. The CryptoKeyVersionAlgorithm that this + # CryptoKeyVersion supports. + # Corresponds to the JSON property `algorithm` + # @return [String] + attr_accessor :algorithm + + # Contains an HSM-generated attestation about a key operation. + # Corresponds to the JSON property `attestation` + # @return [Google::Apis::CloudkmsV1::KeyOperationAttestation] + attr_accessor :attestation + # Output only. The time at which this CryptoKeyVersion was created. # Corresponds to the JSON property `createTime` # @return [String] @@ -285,12 +397,24 @@ module Google # @return [String] attr_accessor :destroy_time + # Output only. The time this CryptoKeyVersion's key material was + # generated. + # Corresponds to the JSON property `generateTime` + # @return [String] + attr_accessor :generate_time + # Output only. The resource name for this CryptoKeyVersion in the format # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # Output only. The ProtectionLevel describing how crypto operations are + # performed with this CryptoKeyVersion. + # Corresponds to the JSON property `protectionLevel` + # @return [String] + attr_accessor :protection_level + # The current state of the CryptoKeyVersion. # Corresponds to the JSON property `state` # @return [String] @@ -302,14 +426,51 @@ module Google # Update properties of this object def update!(**args) + @algorithm = args[:algorithm] if args.key?(:algorithm) + @attestation = args[:attestation] if args.key?(:attestation) @create_time = args[:create_time] if args.key?(:create_time) @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time) @destroy_time = args[:destroy_time] if args.key?(:destroy_time) + @generate_time = args[:generate_time] if args.key?(:generate_time) @name = args[:name] if args.key?(:name) + @protection_level = args[:protection_level] if args.key?(:protection_level) @state = args[:state] if args.key?(:state) end end + # A CryptoKeyVersionTemplate specifies the properties to use when creating + # a new CryptoKeyVersion, either manually with + # CreateCryptoKeyVersion or + # automatically as a result of auto-rotation. + class CryptoKeyVersionTemplate + include Google::Apis::Core::Hashable + + # Required. Algorithm to use + # when creating a CryptoKeyVersion based on this template. + # For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both + # this field is omitted and CryptoKey.purpose is + # ENCRYPT_DECRYPT. + # Corresponds to the JSON property `algorithm` + # @return [String] + attr_accessor :algorithm + + # ProtectionLevel to use when creating a CryptoKeyVersion based on + # this template. Immutable. Defaults to SOFTWARE. + # Corresponds to the JSON property `protectionLevel` + # @return [String] + attr_accessor :protection_level + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @algorithm = args[:algorithm] if args.key?(:algorithm) + @protection_level = args[:protection_level] if args.key?(:protection_level) + end + end + # Request message for KeyManagementService.Decrypt. class DecryptRequest include Google::Apis::Core::Hashable @@ -372,19 +533,64 @@ module Google end end + # A Digest holds a cryptographic message digest. + class Digest + include Google::Apis::Core::Hashable + + # A message digest produced with the SHA-256 algorithm. + # Corresponds to the JSON property `sha256` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :sha256 + + # A message digest produced with the SHA-384 algorithm. + # Corresponds to the JSON property `sha384` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :sha384 + + # A message digest produced with the SHA-512 algorithm. + # Corresponds to the JSON property `sha512` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :sha512 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sha256 = args[:sha256] if args.key?(:sha256) + @sha384 = args[:sha384] if args.key?(:sha384) + @sha512 = args[:sha512] if args.key?(:sha512) + end + end + # Request message for KeyManagementService.Encrypt. class EncryptRequest include Google::Apis::Core::Hashable # Optional data that, if specified, must also be provided during decryption - # through DecryptRequest.additional_authenticated_data. Must be no - # larger than 64KiB. + # through DecryptRequest.additional_authenticated_data. + # The maximum size depends on the key version's + # protection_level. For + # SOFTWARE keys, the AAD must be no larger than + # 64KiB. For HSM keys, the combined length of the + # plaintext and additional_authenticated_data fields must be no larger than + # 8KiB. # Corresponds to the JSON property `additionalAuthenticatedData` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :additional_authenticated_data # Required. The data to encrypt. Must be no larger than 64KiB. + # The maximum size depends on the key version's + # protection_level. For + # SOFTWARE keys, the plaintext must be no larger + # than 64KiB. For HSM keys, the combined length of the + # plaintext and additional_authenticated_data fields must be no larger than + # 8KiB. # Corresponds to the JSON property `plaintext` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -427,6 +633,80 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Contains an HSM-generated attestation about a key operation. + class KeyOperationAttestation + include Google::Apis::Core::Hashable + + # Output only. The attestation data provided by the HSM when the key + # operation was performed. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # Output only. The format of the attestation data. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @format = args[:format] if args.key?(:format) + end + end + # A KeyRing is a toplevel logical grouping of CryptoKeys. class KeyRing include Google::Apis::Core::Hashable @@ -623,6 +903,28 @@ module Google end end + # Cloud KMS metadata for the given google.cloud.location.Location. + class LocationMetadata + include Google::Apis::Core::Hashable + + # Indicates whether CryptoKeys with + # protection_level + # HSM can be created in this location. + # Corresponds to the JSON property `hsmAvailable` + # @return [Boolean] + attr_accessor :hsm_available + alias_method :hsm_available?, :hsm_available + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hsm_available = args[:hsm_available] if args.key?(:hsm_available) + end + end + # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. # A `Policy` consists of a list of `bindings`. A `binding` binds a list of @@ -706,6 +1008,30 @@ module Google end end + # The public key for a given CryptoKeyVersion. Obtained via + # GetPublicKey. + class PublicKey + include Google::Apis::Core::Hashable + + # The public key, encoded in PEM format. For more information, see the + # [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for + # [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and + # [Textual Encoding of Subject Public Key Info] + # (https://tools.ietf.org/html/rfc7468#section-13). + # Corresponds to the JSON property `pem` + # @return [String] + attr_accessor :pem + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pem = args[:pem] if args.key?(:pem) + end + end + # Request message for KeyManagementService.RestoreCryptoKeyVersion. class RestoreCryptoKeyVersionRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/cloudkms_v1/representations.rb b/generated/google/apis/cloudkms_v1/representations.rb index d8a50115d..bf14dc199 100644 --- a/generated/google/apis/cloudkms_v1/representations.rb +++ b/generated/google/apis/cloudkms_v1/representations.rb @@ -22,6 +22,30 @@ module Google module Apis module CloudkmsV1 + class AsymmetricDecryptRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AsymmetricDecryptResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AsymmetricSignRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AsymmetricSignResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AuditConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -52,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CryptoKeyVersionTemplate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DecryptRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -70,6 +100,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Digest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class EncryptRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,6 +118,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class KeyOperationAttestation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class KeyRing class Representation < Google::Apis::Core::JsonRepresentation; end @@ -118,12 +166,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LocationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Policy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class PublicKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RestoreCryptoKeyVersionRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,6 +214,35 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AsymmetricDecryptRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ciphertext, :base64 => true, as: 'ciphertext' + end + end + + class AsymmetricDecryptResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :plaintext, :base64 => true, as: 'plaintext' + end + end + + class AsymmetricSignRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :digest, as: 'digest', class: Google::Apis::CloudkmsV1::Digest, decorator: Google::Apis::CloudkmsV1::Digest::Representation + + end + end + + class AsymmetricSignResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :signature, :base64 => true, as: 'signature' + end + end + class AuditConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -174,6 +263,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -190,20 +281,35 @@ module Google property :purpose, as: 'purpose' property :rotation_period, as: 'rotationPeriod' + property :version_template, as: 'versionTemplate', class: Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate::Representation + end end class CryptoKeyVersion # @private class Representation < Google::Apis::Core::JsonRepresentation + property :algorithm, as: 'algorithm' + property :attestation, as: 'attestation', class: Google::Apis::CloudkmsV1::KeyOperationAttestation, decorator: Google::Apis::CloudkmsV1::KeyOperationAttestation::Representation + property :create_time, as: 'createTime' property :destroy_event_time, as: 'destroyEventTime' property :destroy_time, as: 'destroyTime' + property :generate_time, as: 'generateTime' property :name, as: 'name' + property :protection_level, as: 'protectionLevel' property :state, as: 'state' end end + class CryptoKeyVersionTemplate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :algorithm, as: 'algorithm' + property :protection_level, as: 'protectionLevel' + end + end + class DecryptRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -225,6 +331,15 @@ module Google end end + class Digest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sha256, :base64 => true, as: 'sha256' + property :sha384, :base64 => true, as: 'sha384' + property :sha512, :base64 => true, as: 'sha512' + end + end + class EncryptRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -241,6 +356,24 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class KeyOperationAttestation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :format, as: 'format' + end + end + class KeyRing # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -299,6 +432,13 @@ module Google end end + class LocationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hsm_available, as: 'hsmAvailable' + end + end + class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -311,6 +451,13 @@ module Google end end + class PublicKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :pem, as: 'pem' + end + end + class RestoreCryptoKeyVersionRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudkms_v1/service.rb b/generated/google/apis/cloudkms_v1/service.rb index 985a6baf3..b53b7fde9 100644 --- a/generated/google/apis/cloudkms_v1/service.rb +++ b/generated/google/apis/cloudkms_v1/service.rb @@ -22,8 +22,11 @@ module Google module CloudkmsV1 # Cloud Key Management Service (KMS) API # - # Manages encryption for your cloud services the same way you do on-premises. - # You can generate, use, rotate, and destroy AES256 encryption keys. + # Cloud KMS allows you to keep cryptographic keys in one central cloud service, + # for direct use by other cloud resources and applications. With Cloud KMS you + # are the ultimate custodian of your data, you can manage encryption in the + # cloud the same way you do on-premises, and you have a provable and monitorable + # root of trust over your data. # # @example # require 'google/apis/cloudkms_v1' @@ -334,7 +337,9 @@ module Google end # Create a new CryptoKey within a KeyRing. - # CryptoKey.purpose is required. + # CryptoKey.purpose and + # CryptoKey.version_template.algorithm + # are required. # @param [String] parent # Required. The name of the KeyRing associated with the # CryptoKeys. @@ -372,7 +377,8 @@ module Google execute_or_queue_command(command, &block) end - # Decrypts data that was protected by Encrypt. + # Decrypts data that was protected by Encrypt. The CryptoKey.purpose + # must be ENCRYPT_DECRYPT. # @param [String] name # Required. The resource name of the CryptoKey to use for decryption. # The server will choose the appropriate version. @@ -407,6 +413,8 @@ module Google end # Encrypts data, so that it can only be recovered by a call to Decrypt. + # The CryptoKey.purpose must be + # ENCRYPT_DECRYPT. # @param [String] name # Required. The resource name of the CryptoKey or CryptoKeyVersion # to use for encryption. @@ -518,6 +526,8 @@ module Google # @param [String] page_token # Optional pagination token, returned earlier via # ListCryptoKeysResponse.next_page_token. + # @param [String] version_view + # The fields of the primary version to include in the response. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -535,13 +545,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 list_project_location_key_ring_crypto_keys(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_key_ring_crypto_keys(parent, page_size: nil, page_token: nil, version_view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options) command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse 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['versionView'] = version_view unless version_view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -659,6 +670,7 @@ module Google end # Update the version of a CryptoKey that will be used in Encrypt. + # Returns an error if called on an asymmetric key. # @param [String] name # The resource name of the CryptoKey to update. # @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object @@ -691,6 +703,77 @@ module Google execute_or_queue_command(command, &block) end + # Decrypts data that was encrypted with a public key retrieved from + # GetPublicKey corresponding to a CryptoKeyVersion with + # CryptoKey.purpose ASYMMETRIC_DECRYPT. + # @param [String] name + # Required. The resource name of the CryptoKeyVersion to use for + # decryption. + # @param [Google::Apis::CloudkmsV1::AsymmetricDecryptRequest] asymmetric_decrypt_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::CloudkmsV1::AsymmetricDecryptResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::AsymmetricDecryptResponse] + # + # @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 asymmetric_crypto_key_version_decrypt(name, asymmetric_decrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:asymmetricDecrypt', options) + command.request_representation = Google::Apis::CloudkmsV1::AsymmetricDecryptRequest::Representation + command.request_object = asymmetric_decrypt_request_object + command.response_representation = Google::Apis::CloudkmsV1::AsymmetricDecryptResponse::Representation + command.response_class = Google::Apis::CloudkmsV1::AsymmetricDecryptResponse + 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 + + # Signs data using a CryptoKeyVersion with CryptoKey.purpose + # ASYMMETRIC_SIGN, producing a signature that can be verified with the public + # key retrieved from GetPublicKey. + # @param [String] name + # Required. The resource name of the CryptoKeyVersion to use for signing. + # @param [Google::Apis::CloudkmsV1::AsymmetricSignRequest] asymmetric_sign_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::CloudkmsV1::AsymmetricSignResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::AsymmetricSignResponse] + # + # @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 asymmetric_crypto_key_version_sign(name, asymmetric_sign_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:asymmetricSign', options) + command.request_representation = Google::Apis::CloudkmsV1::AsymmetricSignRequest::Representation + command.request_object = asymmetric_sign_request_object + command.response_representation = Google::Apis::CloudkmsV1::AsymmetricSignResponse::Representation + command.response_class = Google::Apis::CloudkmsV1::AsymmetricSignResponse + 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 + # Create a new CryptoKeyVersion in a CryptoKey. # The server will assign the next sequential id. If unset, # state will be set to @@ -800,6 +883,40 @@ module Google execute_or_queue_command(command, &block) end + # Returns the public key for the given CryptoKeyVersion. The + # CryptoKey.purpose must be + # ASYMMETRIC_SIGN or + # ASYMMETRIC_DECRYPT. + # @param [String] name + # The name of the CryptoKeyVersion public key 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::CloudkmsV1::PublicKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::PublicKey] + # + # @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_key_ring_crypto_key_crypto_key_version_public_key(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/publicKey', options) + command.response_representation = Google::Apis::CloudkmsV1::PublicKey::Representation + command.response_class = Google::Apis::CloudkmsV1::PublicKey + 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 CryptoKeyVersions. # @param [String] parent # Required. The resource name of the CryptoKey to list, in the format @@ -813,6 +930,8 @@ module Google # @param [String] page_token # Optional pagination token, returned earlier via # ListCryptoKeyVersionsResponse.next_page_token. + # @param [String] view + # The fields to include in the response. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -830,13 +949,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 list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options) command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse 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['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) diff --git a/generated/google/apis/cloudprofiler_v2.rb b/generated/google/apis/cloudprofiler_v2.rb index 26e65aa02..41ea9c125 100644 --- a/generated/google/apis/cloudprofiler_v2.rb +++ b/generated/google/apis/cloudprofiler_v2.rb @@ -20,12 +20,12 @@ module Google module Apis # Stackdriver Profiler API # - # Allows Google services manage the continuous profiling information. + # Manages continuous profiling information. # - # @see https://cloud.google.com/ + # @see https://cloud.google.com/profiler/ module CloudprofilerV2 VERSION = 'V2' - REVISION = '20180625' + REVISION = '20180730' # 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/cloudprofiler_v2/classes.rb b/generated/google/apis/cloudprofiler_v2/classes.rb index 66b9afff4..f7b66be98 100644 --- a/generated/google/apis/cloudprofiler_v2/classes.rb +++ b/generated/google/apis/cloudprofiler_v2/classes.rb @@ -34,11 +34,6 @@ module Google # @return [Google::Apis::CloudprofilerV2::Deployment] attr_accessor :deployment - # Profile resource. - # Corresponds to the JSON property `profile` - # @return [Google::Apis::CloudprofilerV2::Profile] - attr_accessor :profile - # One or more profile types that the agent is capable of providing. # Corresponds to the JSON property `profileType` # @return [Array] @@ -51,7 +46,6 @@ module Google # Update properties of this object def update!(**args) @deployment = args[:deployment] if args.key?(:deployment) - @profile = args[:profile] if args.key?(:profile) @profile_type = args[:profile_type] if args.key?(:profile_type) end end diff --git a/generated/google/apis/cloudprofiler_v2/representations.rb b/generated/google/apis/cloudprofiler_v2/representations.rb index cad265550..1666f67bf 100644 --- a/generated/google/apis/cloudprofiler_v2/representations.rb +++ b/generated/google/apis/cloudprofiler_v2/representations.rb @@ -45,8 +45,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :deployment, as: 'deployment', class: Google::Apis::CloudprofilerV2::Deployment, decorator: Google::Apis::CloudprofilerV2::Deployment::Representation - property :profile, as: 'profile', class: Google::Apis::CloudprofilerV2::Profile, decorator: Google::Apis::CloudprofilerV2::Profile::Representation - collection :profile_type, as: 'profileType' end end diff --git a/generated/google/apis/cloudprofiler_v2/service.rb b/generated/google/apis/cloudprofiler_v2/service.rb index 30a7f5023..448dd9d71 100644 --- a/generated/google/apis/cloudprofiler_v2/service.rb +++ b/generated/google/apis/cloudprofiler_v2/service.rb @@ -22,7 +22,7 @@ module Google module CloudprofilerV2 # Stackdriver Profiler API # - # Allows Google services manage the continuous profiling information. + # Manages continuous profiling information. # # @example # require 'google/apis/cloudprofiler_v2' @@ -30,7 +30,7 @@ module Google # Cloudprofiler = Google::Apis::CloudprofilerV2 # Alias the module # service = Cloudprofiler::CloudProfilerService.new # - # @see https://cloud.google.com/ + # @see https://cloud.google.com/profiler/ class CloudProfilerService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index b57ec1f65..201a173c6 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20180709' + REVISION = '20180820' # 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/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb index 8a09bcf3d..607cd89a1 100644 --- a/generated/google/apis/cloudresourcemanager_v1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -164,6 +164,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudresourcemanagerV1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -194,6 +202,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -394,6 +403,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # Metadata describing a long running folder operation class FolderOperation include Google::Apis::Core::Hashable @@ -1455,7 +1511,7 @@ module Google attr_accessor :id # Required field representing the resource type this id is for. - # At present, the valid types are: "organization" + # At present, the valid types are: "organization" and "folder". # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/cloudresourcemanager_v1/representations.rb b/generated/google/apis/cloudresourcemanager_v1/representations.rb index da25df4cd..4e3ef32a7 100644 --- a/generated/google/apis/cloudresourcemanager_v1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1/representations.rb @@ -76,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FolderOperation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -302,6 +308,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV1::Expr, decorator: Google::Apis::CloudresourcemanagerV1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -349,6 +357,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class FolderOperation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index 986d2cf0d..088d095e3 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20180709' + REVISION = '20180806' # 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/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index f1ad5570c..de5fd0485 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -164,6 +164,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudresourcemanagerV1beta1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -194,6 +202,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -218,6 +227,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # Metadata describing a long running folder operation class FolderOperation include Google::Apis::Core::Hashable diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb index 75d8d9ded..83c5f4e6b 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb @@ -52,6 +52,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FolderOperation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -182,6 +188,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV1beta1::Expr, decorator: Google::Apis::CloudresourcemanagerV1beta1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -193,6 +201,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class FolderOperation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudresourcemanager_v2.rb b/generated/google/apis/cloudresourcemanager_v2.rb index 6e46312f8..428dff56f 100644 --- a/generated/google/apis/cloudresourcemanager_v2.rb +++ b/generated/google/apis/cloudresourcemanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2 VERSION = 'V2' - REVISION = '20180709' + REVISION = '20180815' # 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/cloudresourcemanager_v2/classes.rb b/generated/google/apis/cloudresourcemanager_v2/classes.rb index 5df752d59..4224b2083 100644 --- a/generated/google/apis/cloudresourcemanager_v2/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2/classes.rb @@ -142,6 +142,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudresourcemanagerV2::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -172,11 +180,59 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # A Folder in an Organization's resource hierarchy, used to # organize that Organization's resources. class Folder @@ -193,7 +249,7 @@ module Google # The display name must start and end with a letter or digit, may contain # letters, digits, spaces, hyphens and underscores and can be no longer # than 30 characters. This is captured by the regular expression: - # [\p`L`\p`N`](`\p`L`\p`N`_- ]`0,28`[\p`L`\p`N`])?. + # [\p`L`\p`N`]([\p`L`\p`N`_- ]`0,28`[\p`L`\p`N`])?. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name diff --git a/generated/google/apis/cloudresourcemanager_v2/representations.rb b/generated/google/apis/cloudresourcemanager_v2/representations.rb index cba9df7b8..ba7440f6e 100644 --- a/generated/google/apis/cloudresourcemanager_v2/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v2/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Folder class Representation < Google::Apis::Core::JsonRepresentation; end @@ -156,11 +162,23 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV2::Expr, decorator: Google::Apis::CloudresourcemanagerV2::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class Folder # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudresourcemanager_v2/service.rb b/generated/google/apis/cloudresourcemanager_v2/service.rb index 479360ab7..63050d0b5 100644 --- a/generated/google/apis/cloudresourcemanager_v2/service.rb +++ b/generated/google/apis/cloudresourcemanager_v2/service.rb @@ -327,7 +327,7 @@ module Google # The Folder's display name must start and end with a letter or digit, # may contain letters, digits, spaces, hyphens and underscores and can be # no longer than 30 characters. This is captured by the regular expression: - # [\p`L`\p`N`](`\p`L`\p`N`_- ]`0,28`[\p`L`\p`N`])?. + # [\p`L`\p`N`]([\p`L`\p`N`_- ]`0,28`[\p`L`\p`N`])?. # The caller must have `resourcemanager.folders.update` permission on the # identified folder. # If the update fails due to the unique name constraint then a diff --git a/generated/google/apis/cloudresourcemanager_v2beta1.rb b/generated/google/apis/cloudresourcemanager_v2beta1.rb index ffc88e51e..736e2fd84 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2beta1 VERSION = 'V2beta1' - REVISION = '20180709' + REVISION = '20180815' # 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/cloudresourcemanager_v2beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb index b6e0e2c22..528e166c0 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb @@ -142,6 +142,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudresourcemanagerV2beta1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -172,11 +180,59 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # A Folder in an Organization's resource hierarchy, used to # organize that Organization's resources. class Folder @@ -193,7 +249,7 @@ module Google # The display name must start and end with a letter or digit, may contain # letters, digits, spaces, hyphens and underscores and can be no longer # than 30 characters. This is captured by the regular expression: - # [\p`L`\p`N`](`\p`L`\p`N`_- ]`0,28`[\p`L`\p`N`])?. + # [\p`L`\p`N`]([\p`L`\p`N`_- ]`0,28`[\p`L`\p`N`])?. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name diff --git a/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb b/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb index 3bf9813fa..d33ceed96 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Folder class Representation < Google::Apis::Core::JsonRepresentation; end @@ -156,11 +162,23 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV2beta1::Expr, decorator: Google::Apis::CloudresourcemanagerV2beta1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class Folder # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudresourcemanager_v2beta1/service.rb b/generated/google/apis/cloudresourcemanager_v2beta1/service.rb index 2c22fd470..ff2d4de6f 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1/service.rb @@ -327,7 +327,7 @@ module Google # The Folder's display name must start and end with a letter or digit, # may contain letters, digits, spaces, hyphens and underscores and can be # no longer than 30 characters. This is captured by the regular expression: - # [\p`L`\p`N`](`\p`L`\p`N`_- ]`0,28`[\p`L`\p`N`])?. + # [\p`L`\p`N`]([\p`L`\p`N`_- ]`0,28`[\p`L`\p`N`])?. # The caller must have `resourcemanager.folders.update` permission on the # identified folder. # If the update fails due to the unique name constraint then a diff --git a/generated/google/apis/cloudshell_v1alpha1.rb b/generated/google/apis/cloudshell_v1alpha1.rb index 88ff38ac9..640d7bc4a 100644 --- a/generated/google/apis/cloudshell_v1alpha1.rb +++ b/generated/google/apis/cloudshell_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/shell/docs/ module CloudshellV1alpha1 VERSION = 'V1alpha1' - REVISION = '20180602' + REVISION = '20180809' # 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/cloudshell_v1alpha1/classes.rb b/generated/google/apis/cloudshell_v1alpha1/classes.rb index 85e1fa874..a277205f1 100644 --- a/generated/google/apis/cloudshell_v1alpha1/classes.rb +++ b/generated/google/apis/cloudshell_v1alpha1/classes.rb @@ -22,6 +22,25 @@ module Google module Apis module CloudshellV1alpha1 + # Request message for AuthorizeEnvironment. + class AuthorizeEnvironmentRequest + include Google::Apis::Core::Hashable + + # The OAuth access token that should be sent to the environment. + # Corresponds to the JSON property `accessToken` + # @return [String] + attr_accessor :access_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @access_token = args[:access_token] if args.key?(:access_token) + end + end + # Request message for CreatePublicKey. class CreatePublicKeyRequest include Google::Apis::Core::Hashable @@ -294,12 +313,21 @@ module Google class StartEnvironmentRequest include Google::Apis::Core::Hashable + # The initial access token passed to the environment. If this is present and + # valid, the environment will be pre-authenticated with gcloud so that the + # user can run gcloud commands in Cloud Shell without having to log in. This + # code can be updated later by calling AuthorizeEnvironment. + # Corresponds to the JSON property `accessToken` + # @return [String] + attr_accessor :access_token + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @access_token = args[:access_token] if args.key?(:access_token) end end diff --git a/generated/google/apis/cloudshell_v1alpha1/representations.rb b/generated/google/apis/cloudshell_v1alpha1/representations.rb index 087e6d1b5..d236626c1 100644 --- a/generated/google/apis/cloudshell_v1alpha1/representations.rb +++ b/generated/google/apis/cloudshell_v1alpha1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module CloudshellV1alpha1 + class AuthorizeEnvironmentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CreatePublicKeyRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -76,6 +82,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AuthorizeEnvironmentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :access_token, as: 'accessToken' + end + end + class CreatePublicKeyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -136,6 +149,7 @@ module Google class StartEnvironmentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :access_token, as: 'accessToken' end end diff --git a/generated/google/apis/cloudshell_v1alpha1/service.rb b/generated/google/apis/cloudshell_v1alpha1/service.rb index 29ca4605b..21ec49ad4 100644 --- a/generated/google/apis/cloudshell_v1alpha1/service.rb +++ b/generated/google/apis/cloudshell_v1alpha1/service.rb @@ -48,6 +48,43 @@ module Google @batch_path = 'batch' end + # Sends an access token to a running environment on behalf of a user. When + # this completes, the environment will be authorized to run gcloud commands + # without requiring the user to manually authenticate. + # @param [String] name + # Name of the resource that should receive the token, for example + # `users/me/environments/default` or + # `users/someone@example.com/environments/default`. + # @param [Google::Apis::CloudshellV1alpha1::AuthorizeEnvironmentRequest] authorize_environment_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::CloudshellV1alpha1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudshellV1alpha1::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 authorize_environment(name, authorize_environment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+name}:authorize', options) + command.request_representation = Google::Apis::CloudshellV1alpha1::AuthorizeEnvironmentRequest::Representation + command.request_object = authorize_environment_request_object + command.response_representation = Google::Apis::CloudshellV1alpha1::Empty::Representation + command.response_class = Google::Apis::CloudshellV1alpha1::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 an environment. Returns NOT_FOUND if the environment does not exist. # @param [String] name # Name of the requested resource, for example `users/me/environments/default` diff --git a/generated/google/apis/cloudtasks_v2beta2.rb b/generated/google/apis/cloudtasks_v2beta2.rb index 548523494..85b180b10 100644 --- a/generated/google/apis/cloudtasks_v2beta2.rb +++ b/generated/google/apis/cloudtasks_v2beta2.rb @@ -22,10 +22,10 @@ module Google # # Manages the execution of large numbers of distributed requests. # - # @see https://cloud.google.com/cloud-tasks/ + # @see https://cloud.google.com/tasks/ module CloudtasksV2beta2 VERSION = 'V2beta2' - REVISION = '20180622' + REVISION = '20180731' # 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/cloudtasks_v2beta2/classes.rb b/generated/google/apis/cloudtasks_v2beta2/classes.rb index 5515bbf8f..86e1d4af8 100644 --- a/generated/google/apis/cloudtasks_v2beta2/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta2/classes.rb @@ -53,16 +53,18 @@ module Google # This proto can only be used for tasks in a queue which has # app_engine_http_target set. # Using AppEngineHttpRequest requires - # [`appengine.applications.get`](/appengine/docs/admin-api/access-control) + # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- + # api/access-control) # Google IAM permission for the project # and the following scope: # `https://www.googleapis.com/auth/cloud-platform` # The task will be delivered to the App Engine app which belongs to the same # project as the queue. For more information, see - # [How Requests are Routed](/appengine/docs/standard/python/how-requests-are- - # routed) + # [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/ + # python/how-requests-are-routed) # and how routing is affected by - # [dispatch files](/appengine/docs/python/config/dispatchref). + # [dispatch files](https://cloud.google.com/appengine/docs/python/config/ + # dispatchref). # The AppEngineRouting used to construct the URL that the task is # delivered to can be set at the queue-level or task-level: # * If set, @@ -85,13 +87,14 @@ module Google # App Engine Routing. # For more information about services, versions, and instances see - # [An Overview of App Engine](/appengine/docs/python/an-overview-of-app-engine), - # [Microservices Architecture on Google App Engine](/appengine/docs/python/ - # microservices-on-app-engine), - # [App Engine Standard request routing](/appengine/docs/standard/python/how- - # requests-are-routed), - # and [App Engine Flex request routing](/appengine/docs/flexible/python/how- - # requests-are-routed). + # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an- + # overview-of-app-engine), + # [Microservices Architecture on Google App Engine](https://cloud.google.com/ + # appengine/docs/python/microservices-on-app-engine), + # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ + # standard/python/how-requests-are-routed), + # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ + # flexible/python/how-requests-are-routed). # Corresponds to the JSON property `appEngineRouting` # @return [Google::Apis::CloudtasksV2beta2::AppEngineRouting] attr_accessor :app_engine_routing @@ -99,7 +102,7 @@ module Google # HTTP request headers. # This map contains the header field names and values. # Headers can be set when the - # [task is created](google.cloud.tasks.v2beta2.CloudTasks.CreateTask). + # task is created. # Repeated headers are not supported but a header value can contain commas. # Cloud Tasks sets some headers to default values: # * `User-Agent`: By default, this header is @@ -112,7 +115,7 @@ module Google # * `Content-Type`: By default, the `Content-Type` header is set to # `"application/octet-stream"`. The default can be overridden by explicitly # setting `Content-Type` to a particular media type when the - # [task is created](google.cloud.tasks.v2beta2.CloudTasks.CreateTask). + # task is created. # For example, `Content-Type` can be set to `"application/json"`. # * `Content-Length`: This is computed by Cloud Tasks. This value is # output only. It cannot be changed. @@ -122,8 +125,8 @@ module Google # * `X-AppEngine-*` # In addition, Cloud Tasks sets some headers when the task is dispatched, # such as headers containing information about the task; see - # [request headers](/appengine/docs/python/taskqueue/push/creating-handlers# - # reading_request_headers). + # [request headers](https://cloud.google.com/appengine/docs/python/taskqueue/ + # push/creating-handlers#reading_request_headers). # These headers are set only when the task is dispatched, so they are not # visible when the task is returned in a Cloud Tasks response. # Although there is no specific limit for the maximum number of headers or @@ -137,12 +140,12 @@ module Google # The app's request handler for the task's target URL must be able to handle # HTTP requests with this http_method, otherwise the task attempt will fail # with error code 405 (Method Not Allowed). See - # [Writing a push task request handler](/appengine/docs/java/taskqueue/push/ - # creating-handlers#writing_a_push_task_request_handler) + # [Writing a push task request handler](https://cloud.google.com/appengine/docs/ + # java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) # and the documentation for the request handlers in the language your app is # written in e.g. - # [Python Request Handler](/appengine/docs/python/tools/webapp/ - # requesthandlerclass). + # [Python Request Handler](https://cloud.google.com/appengine/docs/python/tools/ + # webapp/requesthandlerclass). # Corresponds to the JSON property `httpMethod` # @return [String] attr_accessor :http_method @@ -186,7 +189,8 @@ module Google # The documentation for AppEngineHttpRequest explains how the # task's host URL is constructed. # Using AppEngineHttpTarget requires - # [`appengine.applications.get`](/appengine/docs/admin-api/access-control) + # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- + # api/access-control) # Google IAM permission for the project # and the following scope: # `https://www.googleapis.com/auth/cloud-platform` @@ -195,13 +199,14 @@ module Google # App Engine Routing. # For more information about services, versions, and instances see - # [An Overview of App Engine](/appengine/docs/python/an-overview-of-app-engine), - # [Microservices Architecture on Google App Engine](/appengine/docs/python/ - # microservices-on-app-engine), - # [App Engine Standard request routing](/appengine/docs/standard/python/how- - # requests-are-routed), - # and [App Engine Flex request routing](/appengine/docs/flexible/python/how- - # requests-are-routed). + # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an- + # overview-of-app-engine), + # [Microservices Architecture on Google App Engine](https://cloud.google.com/ + # appengine/docs/python/microservices-on-app-engine), + # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ + # standard/python/how-requests-are-routed), + # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ + # flexible/python/how-requests-are-routed). # Corresponds to the JSON property `appEngineRoutingOverride` # @return [Google::Apis::CloudtasksV2beta2::AppEngineRouting] attr_accessor :app_engine_routing_override @@ -218,20 +223,21 @@ module Google # App Engine Routing. # For more information about services, versions, and instances see - # [An Overview of App Engine](/appengine/docs/python/an-overview-of-app-engine), - # [Microservices Architecture on Google App Engine](/appengine/docs/python/ - # microservices-on-app-engine), - # [App Engine Standard request routing](/appengine/docs/standard/python/how- - # requests-are-routed), - # and [App Engine Flex request routing](/appengine/docs/flexible/python/how- - # requests-are-routed). + # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an- + # overview-of-app-engine), + # [Microservices Architecture on Google App Engine](https://cloud.google.com/ + # appengine/docs/python/microservices-on-app-engine), + # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ + # standard/python/how-requests-are-routed), + # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ + # flexible/python/how-requests-are-routed). class AppEngineRouting include Google::Apis::Core::Hashable # Output only. The host that the task is sent to. # For more information, see - # [How Requests are Routed](/appengine/docs/standard/python/how-requests-are- - # routed). + # [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/ + # python/how-requests-are-routed). # The host is constructed as: # * `host = [application_domain_name]`
# `| [service] + '.' + [application_domain_name]`
@@ -281,13 +287,14 @@ module Google # By default, the task is sent to an instance which is available when # the task is attempted. # Requests can only be sent to a specific instance if - # [manual scaling is used in App Engine Standard](/appengine/docs/python/an- - # overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + # [manual scaling is used in App Engine Standard](https://cloud.google.com/ + # appengine/docs/python/an-overview-of-app-engine?hl=en_US# + # scaling_types_and_instance_classes). # App Engine Flex does not support instances. For more information, see - # [App Engine Standard request routing](/appengine/docs/standard/python/how- - # requests-are-routed) - # and [App Engine Flex request routing](/appengine/docs/flexible/python/how- - # requests-are-routed). + # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ + # standard/python/how-requests-are-routed) + # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ + # flexible/python/how-requests-are-routed). # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance @@ -423,6 +430,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudtasksV2beta2::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -443,7 +458,6 @@ module Google # Role that is assigned to `members`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -454,6 +468,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -472,8 +487,8 @@ module Google # of its large size or because of the sensitivity of data that it # contains. # Authorization for FULL requires - # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the - # Task resource. + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. # Corresponds to the JSON property `responseView` # @return [String] attr_accessor :response_view @@ -511,8 +526,8 @@ module Google # of its large size or because of the sensitivity of data that it # contains. # Authorization for FULL requires - # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the - # Task resource. + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. # Corresponds to the JSON property `responseView` # @return [String] attr_accessor :response_view @@ -552,6 +567,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # Request message for `GetIamPolicy` method. class GetIamPolicyRequest include Google::Apis::Core::Hashable @@ -585,8 +647,8 @@ module Google # oldest task (ordered by schedule time). # SDK compatibility: Although the SDK allows tags to be either # string or - # [bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/api/ - # taskqueue/TaskOptions.html#tag-byte:A-), + # [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/ + # google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), # only UTF-8 encoded tags can be used in Cloud Tasks. Tag which # aren't UTF-8 encoded can't be used in the # filter and the task's @@ -611,6 +673,9 @@ module Google # The system will make a best effort to return as close to as # `max_tasks` as possible. # The largest that `max_tasks` can be is 1000. + # The maximum total size of a lease tasks response is + # 32 MB. If the sum of all task sizes requested reaches this limit, + # fewer tasks than requested are returned. # Corresponds to the JSON property `maxTasks` # @return [Fixnum] attr_accessor :max_tasks @@ -623,8 +688,8 @@ module Google # of its large size or because of the sensitivity of data that it # contains. # Authorization for FULL requires - # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the - # Task resource. + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. # Corresponds to the JSON property `responseView` # @return [String] attr_accessor :response_view @@ -906,8 +971,8 @@ module Google # task is created. # The tag must be less than 500 characters. # SDK compatibility: Although the SDK allows tags to be either - # string or [bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/ - # api/taskqueue/TaskOptions.html#tag-byte:A-), + # string or [bytes](https://cloud.google.com/appengine/docs/standard/java/ + # javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), # only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8 # encoded, the tag will be empty when the task is returned by Cloud Tasks. # Corresponds to the JSON property `tag` @@ -963,7 +1028,8 @@ module Google # The documentation for AppEngineHttpRequest explains how the # task's host URL is constructed. # Using AppEngineHttpTarget requires - # [`appengine.applications.get`](/appengine/docs/admin-api/access-control) + # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- + # api/access-control) # Google IAM permission for the project # and the following scope: # `https://www.googleapis.com/auth/cloud-platform` @@ -979,8 +1045,8 @@ module Google # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), # hyphens (-), colons (:), or periods (.). # For more information, see - # [Identifying projects](/resource-manager/docs/creating-managing-projects# - # identifying_projects) + # [Identifying projects](https://cloud.google.com/resource-manager/docs/ + # creating-managing-projects#identifying_projects) # * `LOCATION_ID` is the canonical ID for the queue's location. # The list of available locations can be obtained by calling # ListLocations. @@ -1000,9 +1066,9 @@ module Google # All tasks that were created before this time # were purged. # A queue can be purged using PurgeQueue, the - # [App Engine Task Queue SDK, or the Cloud Console](/appengine/docs/standard/ - # python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue) - # . + # [App Engine Task Queue SDK, or the Cloud Console](https://cloud.google.com/ + # appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues# + # purging_all_tasks_from_a_queue). # Purge time will be truncated to the nearest microsecond. Purge # time will be unset if the queue has never been purged. # Corresponds to the JSON property `purgeTime` @@ -1028,7 +1094,8 @@ module Google # `state` can only be changed by called # PauseQueue, # ResumeQueue, or uploading - # [queue.yaml/xml](/appengine/docs/python/config/queueref). + # [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/ + # queueref). # UpdateQueue cannot be used to change `state`. # Corresponds to the JSON property `state` # @return [String] @@ -1077,7 +1144,8 @@ module Google # max_tasks_dispatched_per_second. # For App Engine queues that were created or updated using # `queue.yaml/xml`, `max_burst_size` is equal to - # [bucket_size](/appengine/docs/standard/python/config/queueref#bucket_size). + # [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#bucket_size). # Since `max_burst_size` is output only, if # UpdateQueue is called on a queue # created by `queue.yaml/xml`, `max_burst_size` will be reset based @@ -1098,12 +1166,11 @@ module Google # default. # The maximum allowed value is 5,000. # This field is output only for - # [pull queues](google.cloud.tasks.v2beta2.PullTarget) and always -1, which - # indicates no limit. No other queue types can have `max_concurrent_tasks` - # set to -1. + # pull queues and always -1, which indicates no limit. No other + # queue types can have `max_concurrent_tasks` set to -1. # This field has the same meaning as - # [max_concurrent_requests in queue.yaml/xml](/appengine/docs/standard/python/ - # config/queueref#max_concurrent_requests). + # [max_concurrent_requests in queue.yaml/xml](https://cloud.google.com/appengine/ + # docs/standard/python/config/queueref#max_concurrent_requests). # Corresponds to the JSON property `maxConcurrentTasks` # @return [Fixnum] attr_accessor :max_concurrent_tasks @@ -1111,14 +1178,14 @@ module Google # The maximum rate at which tasks are dispatched from this queue. # If unspecified when the queue is created, Cloud Tasks will pick the # default. - # * For App Engine queues, the maximum allowed value is 500. - # * This field is output only for [pull queues](google.cloud.tasks.v2beta2. - # PullTarget). In - # addition to the `max_tasks_dispatched_per_second` limit, a - # maximum of 10 QPS of LeaseTasks - # requests are allowed per pull queue. + # * For App Engine queues, the maximum allowed value + # is 500. + # * This field is output only for pull queues. In addition to the + # `max_tasks_dispatched_per_second` limit, a maximum of 10 QPS of + # LeaseTasks requests are allowed per pull queue. # This field has the same meaning as - # [rate in queue.yaml/xml](/appengine/docs/standard/python/config/queueref#rate). + # [rate in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/ + # python/config/queueref#rate). # Corresponds to the JSON property `maxTasksDispatchedPerSecond` # @return [Float] attr_accessor :max_tasks_dispatched_per_second @@ -1156,8 +1223,8 @@ module Google # of its large size or because of the sensitivity of data that it # contains. # Authorization for FULL requires - # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the - # Task resource. + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. # Corresponds to the JSON property `responseView` # @return [String] attr_accessor :response_view @@ -1210,19 +1277,18 @@ module Google # @return [Fixnum] attr_accessor :max_attempts - # A task will be [scheduled](Task.schedule_time) for retry between + # A task will be scheduled for retry between # min_backoff and # max_backoff duration after it fails, # if the queue's RetryConfig specifies that the task should be # retried. # If unspecified when the queue is created, Cloud Tasks will pick the # default. - # This field is output only for - # [pull queues](google.cloud.tasks.v2beta2.PullTarget). + # This field is output only for pull queues. # `max_backoff` will be truncated to the nearest second. # This field has the same meaning as - # [max_backoff_seconds in queue.yaml/xml](/appengine/docs/standard/python/config/ - # queueref#retry_parameters). + # [max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/ + # docs/standard/python/config/queueref#retry_parameters). # Corresponds to the JSON property `maxBackoff` # @return [String] attr_accessor :max_backoff @@ -1245,11 +1311,10 @@ module Google # 240s, 300s, 300s, .... # If unspecified when the queue is created, Cloud Tasks will pick the # default. - # This field is output only for - # [pull queues](google.cloud.tasks.v2beta2.PullTarget). + # This field is output only for pull queues. # This field has the same meaning as - # [max_doublings in queue.yaml/xml](/appengine/docs/standard/python/config/ - # queueref#retry_parameters). + # [max_doublings in queue.yaml/xml](https://cloud.google.com/appengine/docs/ + # standard/python/config/queueref#retry_parameters). # Corresponds to the JSON property `maxDoublings` # @return [Fixnum] attr_accessor :max_doublings @@ -1263,29 +1328,27 @@ module Google # If zero, then the task age is unlimited. # If unspecified when the queue is created, Cloud Tasks will pick the # default. - # This field is output only for - # [pull queues](google.cloud.tasks.v2beta2.PullTarget). + # This field is output only for pull queues. # `max_retry_duration` will be truncated to the nearest second. # This field has the same meaning as - # [task_age_limit in queue.yaml/xml](/appengine/docs/standard/python/config/ - # queueref#retry_parameters). + # [task_age_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/ + # standard/python/config/queueref#retry_parameters). # Corresponds to the JSON property `maxRetryDuration` # @return [String] attr_accessor :max_retry_duration - # A task will be [scheduled](Task.schedule_time) for retry between + # A task will be scheduled for retry between # min_backoff and # max_backoff duration after it fails, # if the queue's RetryConfig specifies that the task should be # retried. # If unspecified when the queue is created, Cloud Tasks will pick the # default. - # This field is output only for - # [pull queues](google.cloud.tasks.v2beta2.PullTarget). + # This field is output only for pull queues. # `min_backoff` will be truncated to the nearest second. # This field has the same meaning as - # [min_backoff_seconds in queue.yaml/xml](/appengine/docs/standard/python/config/ - # queueref#retry_parameters). + # [min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/ + # docs/standard/python/config/queueref#retry_parameters). # Corresponds to the JSON property `minBackoff` # @return [String] attr_accessor :min_backoff @@ -1324,8 +1387,8 @@ module Google # of its large size or because of the sensitivity of data that it # contains. # Authorization for FULL requires - # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the - # Task resource. + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. # Corresponds to the JSON property `responseView` # @return [String] attr_accessor :response_view @@ -1477,16 +1540,18 @@ module Google # This proto can only be used for tasks in a queue which has # app_engine_http_target set. # Using AppEngineHttpRequest requires - # [`appengine.applications.get`](/appengine/docs/admin-api/access-control) + # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- + # api/access-control) # Google IAM permission for the project # and the following scope: # `https://www.googleapis.com/auth/cloud-platform` # The task will be delivered to the App Engine app which belongs to the same # project as the queue. For more information, see - # [How Requests are Routed](/appengine/docs/standard/python/how-requests-are- - # routed) + # [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/ + # python/how-requests-are-routed) # and how routing is affected by - # [dispatch files](/appengine/docs/python/config/dispatchref). + # [dispatch files](https://cloud.google.com/appengine/docs/python/config/ + # dispatchref). # The AppEngineRouting used to construct the URL that the task is # delivered to can be set at the queue-level or task-level: # * If set, @@ -1521,8 +1586,8 @@ module Google # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), # hyphens (-), colons (:), or periods (.). # For more information, see - # [Identifying projects](/resource-manager/docs/creating-managing-projects# - # identifying_projects) + # [Identifying projects](https://cloud.google.com/resource-manager/docs/ + # creating-managing-projects#identifying_projects) # * `LOCATION_ID` is the canonical ID for the task's location. # The list of available locations can be obtained by calling # ListLocations. @@ -1593,8 +1658,7 @@ module Google attr_accessor :attempt_dispatch_count # Output only. The number of attempts which have received a response. - # This field is not calculated for - # [pull tasks](google.cloud.tasks.v2beta2.PullTaskTarget). + # This field is not calculated for pull tasks. # Corresponds to the JSON property `attemptResponseCount` # @return [Fixnum] attr_accessor :attempt_response_count diff --git a/generated/google/apis/cloudtasks_v2beta2/representations.rb b/generated/google/apis/cloudtasks_v2beta2/representations.rb index 72272bba5..1f1f6720d 100644 --- a/generated/google/apis/cloudtasks_v2beta2/representations.rb +++ b/generated/google/apis/cloudtasks_v2beta2/representations.rb @@ -76,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -271,6 +277,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudtasksV2beta2::Expr, decorator: Google::Apis::CloudtasksV2beta2::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -299,6 +307,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudtasks_v2beta2/service.rb b/generated/google/apis/cloudtasks_v2beta2/service.rb index 847d758f8..21e67ef56 100644 --- a/generated/google/apis/cloudtasks_v2beta2/service.rb +++ b/generated/google/apis/cloudtasks_v2beta2/service.rb @@ -30,7 +30,7 @@ module Google # Cloudtasks = Google::Apis::CloudtasksV2beta2 # Alias the module # service = Cloudtasks::CloudTasksService.new # - # @see https://cloud.google.com/cloud-tasks/ + # @see https://cloud.google.com/tasks/ class CloudTasksService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, @@ -124,7 +124,8 @@ module Google # WARNING: Using this method may have unintended side effects if you are # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. # Read - # [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) + # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/ + # docs/queue-yaml) # before using this method. # @param [String] parent # Required. @@ -170,7 +171,8 @@ module Google # WARNING: Using this method may have unintended side effects if you are # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. # Read - # [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) + # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/ + # docs/queue-yaml) # before using this method. # @param [String] name # Required. @@ -238,8 +240,9 @@ module Google # Gets the access control policy for a Queue. # Returns an empty policy if the resource exists and does not have a policy # set. - # Authorization requires the following [Google IAM](/iam) permission on the - # specified resource parent: + # Authorization requires the following + # [Google IAM](https://cloud.google.com/iam) permission on the specified + # resource parent: # * `cloudtasks.queues.getIamPolicy` # @param [String] resource # REQUIRED: The resource for which the policy is being requested. @@ -285,7 +288,8 @@ module Google # field can be used as a filter and several operators as supported. # For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as # described in - # [Stackdriver's Advanced Logs Filters](/logging/docs/view/advanced_filters). + # [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/ + # view/advanced_filters). # Sample filter "app_engine_http_target: *". # Note that using filters might cause fewer queues than the # requested_page size to be returned. @@ -344,7 +348,8 @@ module Google # WARNING: Using this method may have unintended side effects if you are # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. # Read - # [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) + # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/ + # docs/queue-yaml) # before using this method. # @param [String] name # Caller-specified and required in CreateQueue, @@ -355,8 +360,8 @@ module Google # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), # hyphens (-), colons (:), or periods (.). # For more information, see - # [Identifying projects](/resource-manager/docs/creating-managing-projects# - # identifying_projects) + # [Identifying projects](https://cloud.google.com/resource-manager/docs/ + # creating-managing-projects#identifying_projects) # * `LOCATION_ID` is the canonical ID for the queue's location. # The list of available locations can be obtained by calling # ListLocations. @@ -484,8 +489,8 @@ module Google # WARNING: Resuming many high-QPS queues at the same time can # lead to target overloading. If you are resuming high-QPS # queues, follow the 500/50/5 pattern described in - # [Managing Cloud Tasks Scaling Risks](/cloud-tasks/pdfs/managing-cloud-tasks- - # scaling-risks-2017-06-05.pdf). + # [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/ + # manage-cloud-task-scaling). # @param [String] name # Required. # The queue name. For example: @@ -524,8 +529,9 @@ module Google # policy. # Note: The Cloud Console does not check queue-level IAM permissions yet. # Project-level permissions are required to use the Cloud Console. - # Authorization requires the following [Google IAM](/iam) permission on the - # specified resource parent: + # Authorization requires the following + # [Google IAM](https://cloud.google.com/iam) permission on the specified + # resource parent: # * `cloudtasks.queues.setIamPolicy` # @param [String] resource # REQUIRED: The resource for which the policy is being specified. @@ -685,10 +691,9 @@ module Google # Creates a task and adds it to a queue. # Tasks cannot be updated after creation; there is no UpdateTask command. - # * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget), - # the maximum task size is 100KB. - # * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this - # the maximum task size is 1MB. + # * For App Engine queues, the maximum task size is + # 100KB. + # * For pull queues, the maximum task size is 1MB. # @param [String] parent # Required. # The queue name. For example: @@ -773,8 +778,8 @@ module Google # of its large size or because of the sensitivity of data that it # contains. # Authorization for FULL requires - # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the - # Task resource. + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -861,6 +866,8 @@ module Google # due to performance considerations; # response_view controls the # subset of information which is returned. + # The tasks may be returned in any order. The ordering may change at any + # time. # @param [String] parent # Required. # The queue name. For example: @@ -889,8 +896,8 @@ module Google # of its large size or because of the sensitivity of data that it # contains. # Authorization for FULL requires - # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the - # Task resource. + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/cloudtrace_v1.rb b/generated/google/apis/cloudtrace_v1.rb index f0c68bc78..af372da7a 100644 --- a/generated/google/apis/cloudtrace_v1.rb +++ b/generated/google/apis/cloudtrace_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/trace module CloudtraceV1 VERSION = 'V1' - REVISION = '20180604' + REVISION = '20180813' # 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/cloudtrace_v1/classes.rb b/generated/google/apis/cloudtrace_v1/classes.rb index 14a81460a..6f8995743 100644 --- a/generated/google/apis/cloudtrace_v1/classes.rb +++ b/generated/google/apis/cloudtrace_v1/classes.rb @@ -159,7 +159,7 @@ module Google # Name of the span. Must be less than 128 bytes. The span name is sanitized # and displayed in the Stackdriver Trace tool in the - # `% dynamic print site_values.console_name %`. + # Google Cloud Platform Console. # The name may be a method name or some other per-call site name. # For the same executable and the same call point, a best practice is # to use a consistent name, which makes it easier to correlate diff --git a/generated/google/apis/cloudtrace_v2.rb b/generated/google/apis/cloudtrace_v2.rb index 948251183..040059b21 100644 --- a/generated/google/apis/cloudtrace_v2.rb +++ b/generated/google/apis/cloudtrace_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/trace module CloudtraceV2 VERSION = 'V2' - REVISION = '20180604' + REVISION = '20180813' # 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/spectrum_v1explorer.rb b/generated/google/apis/composer_v1.rb similarity index 55% rename from generated/google/apis/spectrum_v1explorer.rb rename to generated/google/apis/composer_v1.rb index fc5bdf5f3..65da0cdd5 100644 --- a/generated/google/apis/spectrum_v1explorer.rb +++ b/generated/google/apis/composer_v1.rb @@ -12,20 +12,23 @@ # See the License for the specific language governing permissions and # limitations under the License. -require 'google/apis/spectrum_v1explorer/service.rb' -require 'google/apis/spectrum_v1explorer/classes.rb' -require 'google/apis/spectrum_v1explorer/representations.rb' +require 'google/apis/composer_v1/service.rb' +require 'google/apis/composer_v1/classes.rb' +require 'google/apis/composer_v1/representations.rb' module Google module Apis - # Google Spectrum Database API + # Cloud Composer API # - # API for spectrum-management functions. + # Manages Apache Airflow environments on Google Cloud Platform. # - # @see http://developers.google.com/spectrum - module SpectrumV1explorer - VERSION = 'V1explorer' - REVISION = '' + # @see https://cloud.google.com/composer/ + module ComposerV1 + VERSION = 'V1' + REVISION = '20180815' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' end end end diff --git a/generated/google/apis/composer_v1/classes.rb b/generated/google/apis/composer_v1/classes.rb new file mode 100644 index 000000000..5d90057e2 --- /dev/null +++ b/generated/google/apis/composer_v1/classes.rb @@ -0,0 +1,640 @@ +# 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 ComposerV1 + + # 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.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # An environment for running orchestration tasks. + class Environment + include Google::Apis::Core::Hashable + + # Configuration information for an environment. + # Corresponds to the JSON property `config` + # @return [Google::Apis::ComposerV1::EnvironmentConfig] + attr_accessor :config + + # Output only. + # The time at which this environment was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. User-defined labels for this environment. + # The labels map can contain no more than 64 entries. Entries of the labels + # map are UTF8 strings that comply with the following restrictions: + # * Keys must conform to regexp: \p`Ll`\p`Lo``0,62` + # * Values must conform to regexp: [\p`Ll`\p`Lo`\p`N`_-]`0,63` + # * Both keys and values are additionally constrained to be <= 128 bytes in + # size. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The resource name of the environment, in the form: + # "projects/`projectId`/locations/`locationId`/environments/`environmentId`" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The current state of the environment. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. + # The time at which this environment was last modified. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Output only. + # The UUID (Universally Unique IDentifier) associated with this environment. + # This value is generated when the environment is created. + # Corresponds to the JSON property `uuid` + # @return [String] + attr_accessor :uuid + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config = args[:config] if args.key?(:config) + @create_time = args[:create_time] if args.key?(:create_time) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + @uuid = args[:uuid] if args.key?(:uuid) + end + end + + # Configuration information for an environment. + class EnvironmentConfig + include Google::Apis::Core::Hashable + + # The URI of the Apache Airflow Web UI hosted within this environment (see + # [Airflow web interface](/composer/docs/how-to/accessing/airflow-web-interface)) + # . + # Corresponds to the JSON property `airflowUri` + # @return [String] + attr_accessor :airflow_uri + + # Output only. + # The Cloud Storage prefix of the DAGs for this environment. Although Cloud + # Storage objects reside in a flat namespace, a hierarchical file tree + # can be simulated using "/"-delimited object name prefixes. DAG objects for + # this environment reside in a simulated directory with the given prefix. + # Corresponds to the JSON property `dagGcsPrefix` + # @return [String] + attr_accessor :dag_gcs_prefix + + # Output only. + # The Kubernetes Engine cluster used to run this environment. + # Corresponds to the JSON property `gkeCluster` + # @return [String] + attr_accessor :gke_cluster + + # The configuration information for the Kubernetes Engine nodes running + # the Apache Airflow software. + # Corresponds to the JSON property `nodeConfig` + # @return [Google::Apis::ComposerV1::NodeConfig] + attr_accessor :node_config + + # The number of nodes in the Kubernetes Engine cluster that will be + # used to run this environment. + # Corresponds to the JSON property `nodeCount` + # @return [Fixnum] + attr_accessor :node_count + + # Specifies the selection and configuration of software inside the environment. + # Corresponds to the JSON property `softwareConfig` + # @return [Google::Apis::ComposerV1::SoftwareConfig] + attr_accessor :software_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @airflow_uri = args[:airflow_uri] if args.key?(:airflow_uri) + @dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix) + @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster) + @node_config = args[:node_config] if args.key?(:node_config) + @node_count = args[:node_count] if args.key?(:node_count) + @software_config = args[:software_config] if args.key?(:software_config) + end + end + + # The environments in a project and location. + class ListEnvironmentsResponse + include Google::Apis::Core::Hashable + + # The list of environments returned by a ListEnvironmentsRequest. + # Corresponds to the JSON property `environments` + # @return [Array] + attr_accessor :environments + + # The page token used to query for the next page if one exists. + # 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) + @environments = args[:environments] if args.key?(:environments) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for Operations.ListOperations. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + 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) + @operations = args[:operations] if args.key?(:operations) + end + end + + # The configuration information for the Kubernetes Engine nodes running + # the Apache Airflow software. + class NodeConfig + include Google::Apis::Core::Hashable + + # Optional. The disk size in GB used for node VMs. Minimum size is 20GB. + # If unspecified, defaults to 100GB. Cannot be updated. + # Corresponds to the JSON property `diskSizeGb` + # @return [Fixnum] + attr_accessor :disk_size_gb + + # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which + # to deploy the VMs used to run the Apache Airflow software, specified as a + # [relative resource name](/apis/design/resource_names#relative_resource_name). + # For example: "projects/`projectId`/zones/`zoneId`". + # This `location` must belong to the enclosing environment's project and + # location. If both this field and `nodeConfig.machineType` are specified, + # `nodeConfig.machineType` must belong to this `location`; if both are + # unspecified, the service will pick a zone in the Compute Engine region + # corresponding to the Cloud Composer location, and propagate that choice to + # both fields. If only one field (`location` or `nodeConfig.machineType`) is + # specified, the location information from the specified field will be + # propagated to the unspecified field. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # Optional. The Compute Engine + # [machine type](/compute/docs/machine-types) used for cluster instances, + # specified as a + # [relative resource name](/apis/design/resource_names#relative_resource_name). + # For example: + # "projects/`projectId`/zones/`zoneId`/machineTypes/`machineTypeId`". + # The `machineType` must belong to the enclosing environment's project and + # location. If both this field and `nodeConfig.location` are specified, + # this `machineType` must belong to the `nodeConfig.location`; if both are + # unspecified, the service will pick a zone in the Compute Engine region + # corresponding to the Cloud Composer location, and propagate that choice to + # both fields. If exactly one of this field and `nodeConfig.location` is + # specified, the location information from the specified field will be + # propagated to the unspecified field. + # If this field is unspecified, the `machineTypeId` defaults + # to "n1-standard-1". + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # Optional. The Compute Engine network to be used for machine + # communications, specified as a + # [relative resource name](/apis/design/resource_names#relative_resource_name). + # For example: "projects/`projectId`/global/networks/`networkId`". + # [Shared VPC](/vpc/docs/shared-vpc) is not currently supported. The + # network must belong to the environment's project. If unspecified, the + # "default" network ID in the environment's project is used. If a + # [Custom Subnet Network]((/vpc/docs/vpc#vpc_networks_and_subnets) + # is provided, `nodeConfig.subnetwork` must also be provided. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # Optional. The set of Google API scopes to be made available on all + # node VMs. If `oauth_scopes` is empty, defaults to + # ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be updated. + # Corresponds to the JSON property `oauthScopes` + # @return [Array] + attr_accessor :oauth_scopes + + # Optional. The Google Cloud Platform Service Account to be used by the node + # VMs. If a service account is not specified, the "default" Compute Engine + # service account is used. Cannot be updated. + # Corresponds to the JSON property `serviceAccount` + # @return [String] + attr_accessor :service_account + + # Optional. The Compute Engine subnetwork to be used for machine + # communications, specified as a + # [relative resource name](/apis/design/resource_names#relative_resource_name). + # For example: + # "projects/`projectId`/regions/`regionId`/subnetworks/`subnetworkId`" + # If a subnetwork is provided, `nodeConfig.network` must also be provided, + # and the subnetwork must belong to the enclosing environment's project and + # location. + # Corresponds to the JSON property `subnetwork` + # @return [String] + attr_accessor :subnetwork + + # Optional. The list of instance tags applied to all node VMs. Tags are used + # to identify valid sources or targets for network firewalls. Each tag within + # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). + # Cannot be updated. + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @location = args[:location] if args.key?(:location) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @network = args[:network] if args.key?(:network) + @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes) + @service_account = args[:service_account] if args.key?(:service_account) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) + @tags = args[:tags] if args.key?(:tags) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::ComposerV1::Status] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # Metadata describing an operation. + class OperationMetadata + include Google::Apis::Core::Hashable + + # Output only. + # The time the operation was submitted to the server. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. + # The time when the operation terminated, regardless of its success. + # This field is unset if the operation is still ongoing. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Output only. + # The type of operation being performed. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # Output only. + # The resource being operated on, as a [relative resource name]( + # /apis/design/resource_names#relative_resource_name). + # Corresponds to the JSON property `resource` + # @return [String] + attr_accessor :resource + + # Output only. + # The UUID of the resource being operated on. + # Corresponds to the JSON property `resourceUuid` + # @return [String] + attr_accessor :resource_uuid + + # Output only. + # The current operation state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @end_time = args[:end_time] if args.key?(:end_time) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @resource = args[:resource] if args.key?(:resource) + @resource_uuid = args[:resource_uuid] if args.key?(:resource_uuid) + @state = args[:state] if args.key?(:state) + end + end + + # Specifies the selection and configuration of software inside the environment. + class SoftwareConfig + include Google::Apis::Core::Hashable + + # Optional. Apache Airflow configuration properties to override. + # Property keys contain the section and property names, separated by a hyphen, + # for example "core-dags_are_paused_at_creation". Section names must not + # contain hyphens ("-"), opening square brackets ("["), or closing square + # brackets ("]"). The property name must not be empty and must not contain + # an equals sign ("=") or semicolon (";"). Section and property names must + # not contain a period ("."). Apache Airflow configuration property names + # must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). + # Property values can contain any character, and can be written in any + # lower/upper case format. + # Certain Apache Airflow configuration property values are + # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations# + # airflow_configuration_blacklists), + # and cannot be overridden. + # Corresponds to the JSON property `airflowConfigOverrides` + # @return [Hash] + attr_accessor :airflow_config_overrides + + # Optional. Additional environment variables to provide to the Apache Airflow + # scheduler, worker, and webserver processes. + # Environment variable names must match the regular expression + # `a-zA-Z_*`. They cannot specify Apache Airflow + # software configuration overrides (they cannot match the regular expression + # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the + # following reserved names: + # * `AIRFLOW_HOME` + # * `C_FORCE_ROOT` + # * `CONTAINER_NAME` + # * `DAGS_FOLDER` + # * `GCP_PROJECT` + # * `GCS_BUCKET` + # * `GKE_CLUSTER_NAME` + # * `SQL_DATABASE` + # * `SQL_INSTANCE` + # * `SQL_PASSWORD` + # * `SQL_PROJECT` + # * `SQL_REGION` + # * `SQL_USER` + # Corresponds to the JSON property `envVariables` + # @return [Hash] + attr_accessor :env_variables + + # Output only. + # The version of the software running in the environment. + # This encapsulates both the version of Cloud Composer functionality and the + # version of Apache Airflow. It must match the regular expression + # `composer-[0-9]+\.[0-9]+(\.[0-9]+)?-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`. + # The Cloud Composer portion of the version is a + # [semantic version](https://semver.org). The portion of the image version + # following _airflow-_ is an official Apache Airflow repository + # [release name](https://github.com/apache/incubator-airflow/releases). + # See also [Release Notes](/composer/docs/release-notes). + # Corresponds to the JSON property `imageVersion` + # @return [String] + attr_accessor :image_version + + # Optional. Custom Python Package Index (PyPI) packages to be installed in + # the environment. + # Keys refer to the lowercase package name such as "numpy" + # and values are the lowercase extras and version specifier such as + # "==1.12.0", "[devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a + # package without pinning it to a version specifier, use the empty string as + # the value. + # Corresponds to the JSON property `pypiPackages` + # @return [Hash] + attr_accessor :pypi_packages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @airflow_config_overrides = args[:airflow_config_overrides] if args.key?(:airflow_config_overrides) + @env_variables = args[:env_variables] if args.key?(:env_variables) + @image_version = args[:image_version] if args.key?(:image_version) + @pypi_packages = args[:pypi_packages] if args.key?(:pypi_packages) + 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + end + end +end diff --git a/generated/google/apis/composer_v1/representations.rb b/generated/google/apis/composer_v1/representations.rb new file mode 100644 index 000000000..6197ea410 --- /dev/null +++ b/generated/google/apis/composer_v1/representations.rb @@ -0,0 +1,195 @@ +# 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 ComposerV1 + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Environment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EnvironmentConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListEnvironmentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SoftwareConfig + 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 Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Environment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :config, as: 'config', class: Google::Apis::ComposerV1::EnvironmentConfig, decorator: Google::Apis::ComposerV1::EnvironmentConfig::Representation + + property :create_time, as: 'createTime' + hash :labels, as: 'labels' + property :name, as: 'name' + property :state, as: 'state' + property :update_time, as: 'updateTime' + property :uuid, as: 'uuid' + end + end + + class EnvironmentConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :airflow_uri, as: 'airflowUri' + property :dag_gcs_prefix, as: 'dagGcsPrefix' + property :gke_cluster, as: 'gkeCluster' + property :node_config, as: 'nodeConfig', class: Google::Apis::ComposerV1::NodeConfig, decorator: Google::Apis::ComposerV1::NodeConfig::Representation + + property :node_count, as: 'nodeCount' + property :software_config, as: 'softwareConfig', class: Google::Apis::ComposerV1::SoftwareConfig, decorator: Google::Apis::ComposerV1::SoftwareConfig::Representation + + end + end + + class ListEnvironmentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :environments, as: 'environments', class: Google::Apis::ComposerV1::Environment, decorator: Google::Apis::ComposerV1::Environment::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::ComposerV1::Operation, decorator: Google::Apis::ComposerV1::Operation::Representation + + end + end + + class NodeConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disk_size_gb, as: 'diskSizeGb' + property :location, as: 'location' + property :machine_type, as: 'machineType' + property :network, as: 'network' + collection :oauth_scopes, as: 'oauthScopes' + property :service_account, as: 'serviceAccount' + property :subnetwork, as: 'subnetwork' + collection :tags, as: 'tags' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::ComposerV1::Status, decorator: Google::Apis::ComposerV1::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :end_time, as: 'endTime' + property :operation_type, as: 'operationType' + property :resource, as: 'resource' + property :resource_uuid, as: 'resourceUuid' + property :state, as: 'state' + end + end + + class SoftwareConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :airflow_config_overrides, as: 'airflowConfigOverrides' + hash :env_variables, as: 'envVariables' + property :image_version, as: 'imageVersion' + hash :pypi_packages, as: 'pypiPackages' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + end + end +end diff --git a/generated/google/apis/composer_v1/service.rb b/generated/google/apis/composer_v1/service.rb new file mode 100644 index 000000000..ae8be2ad0 --- /dev/null +++ b/generated/google/apis/composer_v1/service.rb @@ -0,0 +1,462 @@ +# 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 ComposerV1 + # Cloud Composer API + # + # Manages Apache Airflow environments on Google Cloud Platform. + # + # @example + # require 'google/apis/composer_v1' + # + # Composer = Google::Apis::ComposerV1 # Alias the module + # service = Composer::CloudComposerService.new + # + # @see https://cloud.google.com/composer/ + class CloudComposerService < 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://composer.googleapis.com/', '') + @batch_path = 'batch' + end + + # Create a new environment. + # @param [String] parent + # The parent must be of the form "projects/`projectId`/locations/`locationId`". + # @param [Google::Apis::ComposerV1::Environment] environment_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::ComposerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1::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 create_project_location_environment(parent, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/environments', options) + command.request_representation = Google::Apis::ComposerV1::Environment::Representation + command.request_object = environment_object + command.response_representation = Google::Apis::ComposerV1::Operation::Representation + command.response_class = Google::Apis::ComposerV1::Operation + 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 + + # Delete an environment. + # @param [String] name + # The environment to delete, in the form: + # "projects/`projectId`/locations/`locationId`/environments/`environmentId`" + # @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::ComposerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1::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 delete_project_location_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::ComposerV1::Operation::Representation + command.response_class = Google::Apis::ComposerV1::Operation + 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 + + # Get an existing environment. + # @param [String] name + # The resource name of the environment to get, in the form: + # "projects/`projectId`/locations/`locationId`/environments/`environmentId`" + # @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::ComposerV1::Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1::Environment] + # + # @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_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ComposerV1::Environment::Representation + command.response_class = Google::Apis::ComposerV1::Environment + 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 + + # List environments. + # @param [String] parent + # List environments in the given project and location, in the form: + # "projects/`projectId`/locations/`locationId`" + # @param [Fixnum] page_size + # The maximum number of environments to return. + # @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::ComposerV1::ListEnvironmentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1::ListEnvironmentsResponse] + # + # @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_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/environments', options) + command.response_representation = Google::Apis::ComposerV1::ListEnvironmentsResponse::Representation + command.response_class = Google::Apis::ComposerV1::ListEnvironmentsResponse + 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 + + # Update an environment. + # @param [String] name + # The relative resource name of the environment to update, in the form: + # "projects/`projectId`/locations/`locationId`/environments/`environmentId`" + # @param [Google::Apis::ComposerV1::Environment] environment_object + # @param [String] update_mask + # Required. A comma-separated list of paths, relative to `Environment`, of + # fields to update. + # For example, to set the version of scikit-learn to install in the + # environment to 0.19.0 and to remove an existing installation of + # numpy, the `updateMask` parameter would include the following two + # `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and + # "config.softwareConfig.pypiPackages.numpy". The included patch + # environment would specify the scikit-learn version as follows: + # ` + # "config":` + # "softwareConfig":` + # "pypiPackages":` + # "scikit-learn":"==0.19.0" + # ` + # ` + # ` + # ` + # Note that in the above example, any existing PyPI packages + # other than scikit-learn and numpy will be unaffected. + # Only one update type may be included in a single request's `updateMask`. + # For example, one cannot update both the PyPI packages and + # labels in the same request. However, it is possible to update multiple + # members of a map field simultaneously in the same request. For example, + # to set the labels "label1" and "label2" while clearing "label3" (assuming + # it already exists), one can + # provide the paths "labels.label1", "labels.label2", and "labels.label3" + # and populate the patch environment as follows: + # ` + # "labels":` + # "label1":"new-label1-value" + # "label2":"new-label2-value" + # ` + # ` + # Note that in the above example, any existing labels that are not + # included in the `updateMask` will be unaffected. + # It is also possible to replace an entire map field by providing the + # map field's path in the `updateMask`. The new value of the field will + # be that which is provided in the patch environment. For example, to + # delete all pre-existing user-specified PyPI packages and + # install botocore at version 1.7.14, the `updateMask` would contain + # the path "config.softwareConfig.pypiPackages", and + # the patch environment would be the following: + # ` + # "config":` + # "softwareConfig":` + # "pypiPackages":` + # "botocore":"==1.7.14" + # ` + # ` + # ` + # ` + # **Note:** Only the following fields can be updated: + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + # + #
MaskPurpose
config.softwareConfig.pypiPackages + # Replace all custom custom PyPI packages. If a replacement + # package map is not included in `environment`, all custom + # PyPI packages are cleared. It is an error to provide both this mask and a + # mask specifying an individual package.
config.softwareConfig.pypiPackages.packagenameUpdate the custom PyPI package packagename, + # preserving other packages. To delete the package, include it in + # `updateMask`, and omit the mapping for it in + # `environment.config.softwareConfig.pypiPackages`. It is an error + # to provide both a mask of this form and the + # "config.softwareConfig.pypiPackages" mask.
labelsReplace all environment labels. If a replacement labels map is not + # included in `environment`, all labels are cleared. It is an error to + # provide both this mask and a mask specifying one or more individual + # labels.
labels.labelNameSet the label named labelName, while preserving other + # labels. To delete the label, include it in `updateMask` and omit its + # mapping in `environment.labels`. It is an error to provide both a + # mask of this form and the "labels" mask.
config.nodeCountHorizontally scale the number of nodes in the environment. An integer + # greater than or equal to 3 must be provided in the `config.nodeCount` field. + #
config.softwareConfig.airflowConfigOverridesReplace all Apache Airflow config overrides. If a replacement config + # overrides map is not included in `environment`, all config overrides + # are cleared. + # It is an error to provide both this mask and a mask specifying one or + # more individual config overrides.
config.softwareConfig.properties.section-name + # Override the Apache Airflow property name in the section + # named section, preserving other properties. To delete the + # property override, include it in `updateMask` and omit its mapping + # in `environment.config.softwareConfig.properties`. + # It is an error to provide both a mask of this form and the + # "config.softwareConfig.properties" mask.
config.softwareConfig.envVariablesReplace all environment variables. If a replacement environment + # variable map is not included in `environment`, all custom environment + # variables are cleared. + # It is an error to provide both this mask and a mask specifying one or + # more individual environment variables.
+ # @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::ComposerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1::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 patch_project_location_environment(name, environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::ComposerV1::Environment::Representation + command.request_object = environment_object + command.response_representation = Google::Apis::ComposerV1::Operation::Representation + command.response_class = Google::Apis::ComposerV1::Operation + 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 + + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @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::ComposerV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::ComposerV1::Empty::Representation + command.response_class = Google::Apis::ComposerV1::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 latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @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::ComposerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1::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_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ComposerV1::Operation::Representation + command.response_class = Google::Apis::ComposerV1::Operation + 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 operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/`name=users/*`/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @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::ComposerV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1::ListOperationsResponse] + # + # @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_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/operations', options) + command.response_representation = Google::Apis::ComposerV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::ComposerV1::ListOperationsResponse + 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 + + 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/composer_v1beta1.rb b/generated/google/apis/composer_v1beta1.rb index 7c2b857f7..3381899e8 100644 --- a/generated/google/apis/composer_v1beta1.rb +++ b/generated/google/apis/composer_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/composer/ module ComposerV1beta1 VERSION = 'V1beta1' - REVISION = '20180611' + REVISION = '20180815' # 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/composer_v1beta1/classes.rb b/generated/google/apis/composer_v1beta1/classes.rb index ab788548b..4d1889043 100644 --- a/generated/google/apis/composer_v1beta1/classes.rb +++ b/generated/google/apis/composer_v1beta1/classes.rb @@ -174,7 +174,7 @@ module Google # @return [Array] attr_accessor :environments - # The page token used to query for the next page if one exists + # The page token used to query for the next page if one exists. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -266,18 +266,19 @@ module Google # communications, specified as a # [relative resource name](/apis/design/resource_names#relative_resource_name). # For example: "projects/`projectId`/global/networks/`networkId`". - # [Shared VPC](/vpc/docs/shared-vpc) is not currently supported. The - # network must belong to the environment's project. If unspecified, the - # "default" network ID in the environment's project is used. If a - # [Custom Subnet Network]((/vpc/docs/vpc#vpc_networks_and_subnets) - # is provided, `nodeConfig.subnetwork` must also be provided. + # If unspecified, the default network in the environment's project is used. + # If a [Custom Subnet Network]((/vpc/docs/vpc#vpc_networks_and_subnets) + # is provided, `nodeConfig.subnetwork` must also be provided. For + # [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see + # `nodeConfig.subnetwork`. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network # Optional. The set of Google API scopes to be made available on all - # node VMs. If `oauth_scopes` is empty, defaults to - # ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be updated. + # node VMs. Defaults to + # ["https://www.googleapis.com/auth/cloud-platform"] and must be included in + # the list of specified scopes. Cannot be updated. # Corresponds to the JSON property `oauthScopes` # @return [Array] attr_accessor :oauth_scopes @@ -295,8 +296,10 @@ module Google # For example: # "projects/`projectId`/regions/`regionId`/subnetworks/`subnetworkId`" # If a subnetwork is provided, `nodeConfig.network` must also be provided, - # and the subnetwork must belong to the enclosing environment's project and - # location. + # and the subnetwork must belong to the same project as the network. + # For Shared VPC, you must configure the subnetwork with secondary ranges + # named composer-pods and + # composer-services to support Alias IPs. # Corresponds to the JSON property `subnetwork` # @return [String] attr_accessor :subnetwork diff --git a/generated/google/apis/composer_v1beta1/service.rb b/generated/google/apis/composer_v1beta1/service.rb index cfb04bb56..db71615c7 100644 --- a/generated/google/apis/composer_v1beta1/service.rb +++ b/generated/google/apis/composer_v1beta1/service.rb @@ -289,14 +289,14 @@ module Google # more individual config overrides. # # - # config.softwareConfig.properties.section-name + # config.softwareConfig.airflowConfigOverrides.section-name # - # Override the Apache Airflow property name in the section - # named section, preserving other properties. To delete the - # property override, include it in `updateMask` and omit its mapping - # in `environment.config.softwareConfig.properties`. + # Override the Apache Airflow config property name in the + # section named section, preserving other properties. To delete + # the property override, include it in `updateMask` and omit its mapping + # in `environment.config.softwareConfig.airflowConfigOverrides`. # It is an error to provide both a mask of this form and the - # "config.softwareConfig.properties" mask. + # "config.softwareConfig.airflowConfigOverrides" mask. # # # config.softwareConfig.envVariables diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 8203c650b..2c9c3534f 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '' + REVISION = '20180730' # 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/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index 37a75590d..364a6b038 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -1050,6 +1050,550 @@ module Google end end + # Allocation resource + class Allocation + include Google::Apis::Core::Hashable + + # Full or partial url for commitment in which this allocation is to be created. + # This field is ignored when allocations are created during committment creation. + # Corresponds to the JSON property `commitment` + # @return [String] + attr_accessor :commitment + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] Type of the resource. Always compute#allocations for allocations. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. The resource name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last character, which cannot be a + # dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server-defined fully-qualified URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # This allocation type allows to pre allocate specific instance configuration. + # Corresponds to the JSON property `specificAllocation` + # @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation] + attr_accessor :specific_allocation + + # Indicates whether the allocation can be consumed by VMs with ?any allocation? + # defined. If the field is set, then only VMs that target the allocation by name + # using --allocation-affinity can consume this allocation. + # Corresponds to the JSON property `specificAllocationRequired` + # @return [Boolean] + attr_accessor :specific_allocation_required + alias_method :specific_allocation_required?, :specific_allocation_required + + # + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @commitment = args[:commitment] if args.key?(:commitment) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @specific_allocation = args[:specific_allocation] if args.key?(:specific_allocation) + @specific_allocation_required = args[:specific_allocation_required] if args.key?(:specific_allocation_required) + @zone = args[:zone] if args.key?(:zone) + end + end + + # Contains a list of allocations. + class AllocationAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of Allocation resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # This allocation type allows to pre allocate specific instance configuration. + class AllocationSpecificSkuAllocation + include Google::Apis::Core::Hashable + + # Specifies number of resources that are allocated. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # [OutputOnly] Indicates how many resource are in use. + # Corresponds to the JSON property `inUseCount` + # @return [Fixnum] + attr_accessor :in_use_count + + # Properties of the SKU instances being reserved. + # Corresponds to the JSON property `instanceProperties` + # @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties] + attr_accessor :instance_properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @count = args[:count] if args.key?(:count) + @in_use_count = args[:in_use_count] if args.key?(:in_use_count) + @instance_properties = args[:instance_properties] if args.key?(:instance_properties) + end + end + + # Properties of the SKU instances being reserved. + class AllocationSpecificSkuAllocationAllocatedInstanceProperties + include Google::Apis::Core::Hashable + + # Specifies accelerator type and count. + # Corresponds to the JSON property `guestAccelerators` + # @return [Array] + attr_accessor :guest_accelerators + + # Specifies amount of local ssd to reserve with each instance. The type of disk + # is local-ssd. + # Corresponds to the JSON property `localSsds` + # @return [Array] + attr_accessor :local_ssds + + # Specifies type of machine (name only) which has fixed number of vCPUs and + # fixed amount of memory. This also includes specifying custom machine type + # following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # Minimum cpu platform the allocation. + # Corresponds to the JSON property `minCpuPlatform` + # @return [String] + attr_accessor :min_cpu_platform + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) + @local_ssds = args[:local_ssds] if args.key?(:local_ssds) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) + end + end + + # + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk + include Google::Apis::Core::Hashable + + # Specifies the size of the disk in base-2 GB. + # Corresponds to the JSON property `diskSizeGb` + # @return [Fixnum] + attr_accessor :disk_size_gb + + # Specifies the disk interface to use for attaching this disk, which is either + # SCSI or NVME. The default is SCSI. For performance characteristics of SCSI + # over NVMe, see Local SSD performance. + # Corresponds to the JSON property `interface` + # @return [String] + attr_accessor :interface + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @interface = args[:interface] if args.key?(:interface) + end + end + + # + class AllocationsList + include Google::Apis::Core::Hashable + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] A list of Allocation resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#allocationsList for listsof + # allocations + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::AllocationsList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class AllocationsScopedList + include Google::Apis::Core::Hashable + + # A list of allocations contained in this scope. + # Corresponds to the JSON property `allocations` + # @return [Array] + attr_accessor :allocations + + # Informational warning which replaces the list of allocations when the list is + # empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::AllocationsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allocations = args[:allocations] if args.key?(:allocations) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of allocations when the list is + # empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class AllocationsUpdateResourceShapeRequest + include Google::Apis::Core::Hashable + + # Number of allocated resources which are to be updated with minimum = 1 and + # maximum = 100. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # The name of destination allocation where the modified machines are added. If + # existing, its machine spec must match the modified machine spec. If non + # existing, new allocation with this name and modified machine spec is created + # automatically. + # Corresponds to the JSON property `destinationAllocation` + # @return [String] + attr_accessor :destination_allocation + + # Properties of the SKU instances being reserved. + # Corresponds to the JSON property `updatedResourceProperties` + # @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties] + attr_accessor :updated_resource_properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @count = args[:count] if args.key?(:count) + @destination_allocation = args[:destination_allocation] if args.key?(:destination_allocation) + @updated_resource_properties = args[:updated_resource_properties] if args.key?(:updated_resource_properties) + end + end + # An instance-attached disk resource. class AttachedDisk include Google::Apis::Core::Hashable @@ -1238,11 +1782,11 @@ module Google # The source image to create this disk. When creating a new instance, one of # initializeParams.sourceImage or disks.source is required except for local SSD. # To create a disk with one of the public operating system images, specify the - # image by its family name. For example, specify family/debian-8 to use the - # latest Debian 8 image: - # projects/debian-cloud/global/images/family/debian-8 + # image by its family name. For example, specify family/debian-9 to use the + # latest Debian 9 image: + # projects/debian-cloud/global/images/family/debian-9 # Alternatively, use a specific version of a public operating system image: - # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD + # projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD # To create a disk with a custom image that you created, specify the image name # in the following format: # global/images/my-custom-image @@ -2336,18 +2880,18 @@ module Google class BackendBucketCdnPolicy include Google::Apis::Core::Hashable - # Number of seconds up to which the response to a signed URL request will be - # cached in the CDN. After this time period, the Signed URL will be revalidated - # before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN - # will internally act as though all responses from this bucket had a ?Cache- - # Control: public, max-age=[TTL]? header, regardless of any existing Cache- - # Control header. The actual headers served in responses will not be altered. + # Maximum number of seconds the response to a signed URL request will be + # considered fresh. After this time period, the response will be revalidated + # before being served. Defaults to 1hr (3600s). When serving responses to signed + # URL requests, Cloud CDN will internally behave as though all responses from + # this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless + # of any existing Cache-Control header. The actual headers served in responses + # will not be altered. # Corresponds to the JSON property `signedUrlCacheMaxAgeSec` # @return [Fixnum] attr_accessor :signed_url_cache_max_age_sec - # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL - # on this backend bucket. + # [Output Only] Names of the keys for signing request URLs. # Corresponds to the JSON property `signedUrlKeyNames` # @return [Array] attr_accessor :signed_url_key_names @@ -2856,18 +3400,18 @@ module Google # @return [Google::Apis::ComputeAlpha::CacheKeyPolicy] attr_accessor :cache_key_policy - # Number of seconds up to which the response to a signed URL request will be - # cached in the CDN. After this time period, the Signed URL will be revalidated - # before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN - # will internally act as though all responses from this backend had a ?Cache- - # Control: public, max-age=[TTL]? header, regardless of any existing Cache- - # Control header. The actual headers served in responses will not be altered. + # Maximum number of seconds the response to a signed URL request will be + # considered fresh. After this time period, the response will be revalidated + # before being served. Defaults to 1hr (3600s). When serving responses to signed + # URL requests, Cloud CDN will internally behave as though all responses from + # this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless + # of any existing Cache-Control header. The actual headers served in responses + # will not be altered. # Corresponds to the JSON property `signedUrlCacheMaxAgeSec` # @return [Fixnum] attr_accessor :signed_url_cache_max_age_sec - # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL - # on this backend service. + # [Output Only] Names of the keys for signing request URLs. # Corresponds to the JSON property `signedUrlKeyNames` # @return [Array] attr_accessor :signed_url_key_names @@ -4133,7 +4677,7 @@ module Google # @return [Array] attr_accessor :license_codes - # Any applicable publicly visible licenses. + # A list of publicly visible licenses. Reserved for Google's use. # Corresponds to the JSON property `licenses` # @return [Array] attr_accessor :licenses @@ -4198,11 +4742,11 @@ module Google # The source image used to create this disk. If the source image is deleted, # this field will not be set. # To create a disk with one of the public operating system images, specify the - # image by its family name. For example, specify family/debian-8 to use the - # latest Debian 8 image: - # projects/debian-cloud/global/images/family/debian-8 + # image by its family name. For example, specify family/debian-9 to use the + # latest Debian 9 image: + # projects/debian-cloud/global/images/family/debian-9 # Alternatively, use a specific version of a public operating system image: - # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD + # projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD # To create a disk with a custom image that you created, specify the image name # in the following format: # global/images/my-custom-image @@ -7262,352 +7806,6 @@ module Google end end - # - class Host - include Google::Apis::Core::Hashable - - # [Output Only] Creation timestamp in RFC3339 text format. - # Corresponds to the JSON property `creationTimestamp` - # @return [String] - attr_accessor :creation_timestamp - - # [Output Only] An optional textual description of the resource. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Full or partial URL of the host type resource to use for this host, in the - # format: zones/zone/hostTypes/host-type. This is provided by the client when - # the host is created. For example, the following is a valid partial url to a - # predefined host type: - # zones/us-central1-b/hostTypes/n1-host-64-416 - # Corresponds to the JSON property `hostType` - # @return [String] - attr_accessor :host_type - - # [Output Only] The unique identifier for the resource. This identifier is - # defined by the server. - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # A list of resource URLs to the virtual machine instances in this host. They - # must live in zones contained in the same region as this host. - # Corresponds to the JSON property `instances` - # @return [Array] - attr_accessor :instances - - # [Output Only] The type of the resource. Always compute#host for host. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # A fingerprint for this request, which is essentially a hash of the metadata's - # contents and used for optimistic locking. The fingerprint is initially - # generated by Compute Engine and changes after every request to modify or - # update metadata. You must always provide an up-to-date fingerprint hash in - # order to update or change metadata. - # To see the latest fingerprint, make get() request to the host. - # Corresponds to the JSON property `labelFingerprint` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :label_fingerprint - - # Labels to apply to this host. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # The name of the resource, provided by the client when initially creating the - # resource. The resource name must be 1-63 characters long, and comply with - # RFC1035. Specifically, the name must be 1-63 characters long and match the - # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first - # character must be a lowercase letter, and all following characters must be a - # dash, lowercase letter, or digit, except the last character, which cannot be a - # dash. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # [Output Only] Server-defined URL for the resource. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # [Output Only] The status of the host. One of the following values: CREATING, - # READY, REPAIR, and DELETING. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # [Output Only] An optional, human-readable explanation of the status. - # Corresponds to the JSON property `statusMessage` - # @return [String] - attr_accessor :status_message - - # [Output Only] The name of the zone where the host resides, such as us-central1- - # a. - # Corresponds to the JSON property `zone` - # @return [String] - attr_accessor :zone - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) - @description = args[:description] if args.key?(:description) - @host_type = args[:host_type] if args.key?(:host_type) - @id = args[:id] if args.key?(:id) - @instances = args[:instances] if args.key?(:instances) - @kind = args[:kind] if args.key?(:kind) - @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - @self_link = args[:self_link] if args.key?(:self_link) - @status = args[:status] if args.key?(:status) - @status_message = args[:status_message] if args.key?(:status_message) - @zone = args[:zone] if args.key?(:zone) - end - end - - # - class HostAggregatedList - include Google::Apis::Core::Hashable - - # [Output Only] Unique identifier for the resource; defined by the server. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # A list of HostsScopedList resources. - # Corresponds to the JSON property `items` - # @return [Hash] - attr_accessor :items - - # [Output Only] Type of resource. Always compute#hostAggregatedList for - # aggregated lists of hosts. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # [Output Only] This token allows you to get the next page of results for list - # requests. If the number of results is larger than maxResults, use the - # nextPageToken as a value for the query parameter pageToken in the next list - # request. Subsequent list requests will have their own nextPageToken to - # continue paging through the results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # [Output Only] Server-defined URL for this resource. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # [Output Only] Informational warning message. - # Corresponds to the JSON property `warning` - # @return [Google::Apis::ComputeAlpha::HostAggregatedList::Warning] - attr_accessor :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @self_link = args[:self_link] if args.key?(:self_link) - @warning = args[:warning] if args.key?(:warning) - end - - # [Output Only] Informational warning message. - class Warning - include Google::Apis::Core::Hashable - - # [Output Only] A warning code, if applicable. For example, Compute Engine - # returns NO_RESULTS_ON_PAGE if there are no results in the response. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - # [Output Only] Metadata about this warning in key: value format. For example: - # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` - # Corresponds to the JSON property `data` - # @return [Array] - attr_accessor :data - - # [Output Only] A human-readable description of the warning code. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @data = args[:data] if args.key?(:data) - @message = args[:message] if args.key?(:message) - end - - # - class Datum - include Google::Apis::Core::Hashable - - # [Output Only] A key that provides more detail on the warning being returned. - # For example, for warnings where there are no results in a list request for a - # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource and a - # suggested replacement, or a warning about invalid network settings (for - # example, if an instance attempts to perform IP forwarding but is not enabled - # for IP forwarding). - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # [Output Only] A warning data value corresponding to the key. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @value = args[:value] if args.key?(:value) - end - end - end - end - - # Contains a list of hosts. - class HostList - include Google::Apis::Core::Hashable - - # [Output Only] Unique identifier for the resource; defined by the server. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # A list of Host resources. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # [Output Only] Type of resource. Always compute#hostList for lists of hosts. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # [Output Only] This token allows you to get the next page of results for list - # requests. If the number of results is larger than maxResults, use the - # nextPageToken as a value for the query parameter pageToken in the next list - # request. Subsequent list requests will have their own nextPageToken to - # continue paging through the results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # [Output Only] Server-defined URL for this resource. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # [Output Only] Informational warning message. - # Corresponds to the JSON property `warning` - # @return [Google::Apis::ComputeAlpha::HostList::Warning] - attr_accessor :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @self_link = args[:self_link] if args.key?(:self_link) - @warning = args[:warning] if args.key?(:warning) - end - - # [Output Only] Informational warning message. - class Warning - include Google::Apis::Core::Hashable - - # [Output Only] A warning code, if applicable. For example, Compute Engine - # returns NO_RESULTS_ON_PAGE if there are no results in the response. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - # [Output Only] Metadata about this warning in key: value format. For example: - # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` - # Corresponds to the JSON property `data` - # @return [Array] - attr_accessor :data - - # [Output Only] A human-readable description of the warning code. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @data = args[:data] if args.key?(:data) - @message = args[:message] if args.key?(:message) - end - - # - class Datum - include Google::Apis::Core::Hashable - - # [Output Only] A key that provides more detail on the warning being returned. - # For example, for warnings where there are no results in a list request for a - # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource and a - # suggested replacement, or a warning about invalid network settings (for - # example, if an instance attempts to perform IP forwarding but is not enabled - # for IP forwarding). - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # [Output Only] A warning data value corresponding to the key. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @value = args[:value] if args.key?(:value) - end - end - end - end - # UrlMaps A host-matching rule for a URL. If matched, will use the named # PathMatcher to select the BackendService. class HostRule @@ -8059,97 +8257,6 @@ module Google end end - # - class HostsScopedList - include Google::Apis::Core::Hashable - - # [Output Only] A list of hosts contained in this scope. - # Corresponds to the JSON property `hosts` - # @return [Array] - attr_accessor :hosts - - # [Output Only] An informational warning that appears when the host list is - # empty. - # Corresponds to the JSON property `warning` - # @return [Google::Apis::ComputeAlpha::HostsScopedList::Warning] - attr_accessor :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @hosts = args[:hosts] if args.key?(:hosts) - @warning = args[:warning] if args.key?(:warning) - end - - # [Output Only] An informational warning that appears when the host list is - # empty. - class Warning - include Google::Apis::Core::Hashable - - # [Output Only] A warning code, if applicable. For example, Compute Engine - # returns NO_RESULTS_ON_PAGE if there are no results in the response. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - # [Output Only] Metadata about this warning in key: value format. For example: - # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` - # Corresponds to the JSON property `data` - # @return [Array] - attr_accessor :data - - # [Output Only] A human-readable description of the warning code. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @data = args[:data] if args.key?(:data) - @message = args[:message] if args.key?(:message) - end - - # - class Datum - include Google::Apis::Core::Hashable - - # [Output Only] A key that provides more detail on the warning being returned. - # For example, for warnings where there are no results in a list request for a - # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource and a - # suggested replacement, or a warning about invalid network settings (for - # example, if an instance attempts to perform IP forwarding but is not enabled - # for IP forwarding). - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # [Output Only] A warning data value corresponding to the key. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @value = args[:value] if args.key?(:value) - end - end - end - end - # An HttpHealthCheck resource. This resource defines a template for how # individual instances should be checked for health, via HTTP. class HttpHealthCheck @@ -8979,6 +9086,12 @@ module Google class Instance include Google::Apis::Core::Hashable + # AllocationAffinity is the configuration of desired allocation which this + # instance could take capacity from. + # Corresponds to the JSON property `allocationAffinity` + # @return [Google::Apis::ComputeAlpha::InstanceAllocationAffinity] + attr_accessor :allocation_affinity + # Allows this instance to send and receive packets with non-matching destination # or source IPs. This is required if you plan to use this instance to forward # routes. For more information, see Enabling IP Forwarding. @@ -9020,16 +9133,6 @@ module Google # @return [Array] attr_accessor :guest_accelerators - # Full or partial URL of the host resource that the instance should be placed on, - # in the format: zones/zone/hosts/host. - # Optional, sole-tenant Host (physical machine) that the instance will be placed - # on when it's created. The instance is guaranteed to be placed on the same - # machine as other instances with the same sole-tenant host. - # The request will be rejected if the sole-tenant host has run out of resources. - # Corresponds to the JSON property `host` - # @return [String] - attr_accessor :host - # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -9144,7 +9247,8 @@ module Google # @return [Google::Apis::ComputeAlpha::ShieldedVmConfig] attr_accessor :shielded_vm_config - # The policy describes how boot integrity measurements are evaluated. + # The policy describes the baseline against which VM instance boot integrity is + # measured. # Corresponds to the JSON property `shieldedVmIntegrityPolicy` # @return [Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy] attr_accessor :shielded_vm_integrity_policy @@ -9191,6 +9295,7 @@ module Google # Update properties of this object def update!(**args) + @allocation_affinity = args[:allocation_affinity] if args.key?(:allocation_affinity) @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @@ -9198,7 +9303,6 @@ module Google @description = args[:description] if args.key?(:description) @disks = args[:disks] if args.key?(:disks) @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) - @host = args[:host] if args.key?(:host) @id = args[:id] if args.key?(:id) @instance_encryption_key = args[:instance_encryption_key] if args.key?(:instance_encryption_key) @kind = args[:kind] if args.key?(:kind) @@ -9343,6 +9447,38 @@ module Google end end + # AllocationAffinity is the configuration of desired allocation which this + # instance could take capacity from. + class InstanceAllocationAffinity + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `consumeAllocationType` + # @return [String] + attr_accessor :consume_allocation_type + + # Corresponds to the label key of Allocation resource. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Corresponds to the label values of allocation resource. + # 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) + @consume_allocation_type = args[:consume_allocation_type] if args.key?(:consume_allocation_type) + @key = args[:key] if args.key?(:key) + @values = args[:values] if args.key?(:values) + end + end + # InstanceGroups (== resource_for beta.instanceGroups ==) (== resource_for v1. # instanceGroups ==) (== resource_for beta.regionInstanceGroups ==) (== # resource_for v1.regionInstanceGroups ==) @@ -9815,6 +9951,11 @@ module Google # @return [Google::Apis::ComputeAlpha::StatefulPolicy] attr_accessor :stateful_policy + # [Output Only] The status of this managed instance group. + # Corresponds to the JSON property `status` + # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerStatus] + attr_accessor :status + # The URLs for all TargetPool resources to which instances in the instanceGroup # field are added. The target pools automatically apply to all of the instances # in the managed instance group. @@ -9877,6 +10018,7 @@ module Google @self_link = args[:self_link] if args.key?(:self_link) @service_account = args[:service_account] if args.key?(:service_account) @stateful_policy = args[:stateful_policy] if args.key?(:stateful_policy) + @status = args[:status] if args.key?(:status) @target_pools = args[:target_pools] if args.key?(:target_pools) @target_size = args[:target_size] if args.key?(:target_size) @update_policy = args[:update_policy] if args.key?(:update_policy) @@ -10286,6 +10428,31 @@ module Google end end + # + class InstanceGroupManagerStatus + include Google::Apis::Core::Hashable + + # [Output Only] A bit indicating whether the managed instance group is in a + # stable state. A stable state means that: none of the instances in the managed + # instance group is currently undergoing any type of change (for example, + # creation, restart, or deletion); no future changes are scheduled for instances + # in the managed instance group; and the managed instance group itself is not + # being modified. + # Corresponds to the JSON property `isStable` + # @return [Boolean] + attr_accessor :is_stable + alias_method :is_stable?, :is_stable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_stable = args[:is_stable] if args.key?(:is_stable) + end + end + # class InstanceGroupManagerUpdatePolicy include Google::Apis::Core::Hashable @@ -10313,10 +10480,10 @@ module Google # Minimal action to be taken on an instance. You can specify either RESTART to # restart existing instances or REPLACE to delete and create new instances from - # the target template. If you specify a code>RESTART, the Updater will attempt - # to perform that action only. However, if the Updater determines that the - # minimal action you specify is not enough to perform the update, it might - # perform a more disruptive action. + # the target template. If you specify a RESTART, the Updater will attempt to + # perform that action only. However, if the Updater determines that the minimal + # action you specify is not enough to perform the update, it might perform a + # more disruptive action. # Corresponds to the JSON property `minimalAction` # @return [String] attr_accessor :minimal_action @@ -12925,6 +13092,172 @@ module Google end end + # Diagnostics information about interconnect, contains detailed and current + # technical information about Google?s side of the connection. + class InterconnectDiagnostics + include Google::Apis::Core::Hashable + + # A list of InterconnectDiagnostics.ARPEntry objects, describing individual + # neighbors currently seen by the Google router in the ARP cache for the + # Interconnect. This will be empty when the Interconnect is not bundled. + # Corresponds to the JSON property `arpCaches` + # @return [Array] + attr_accessor :arp_caches + + # A list of InterconnectDiagnostics.LinkStatus objects, describing the status + # for each link on the Interconnect. + # Corresponds to the JSON property `links` + # @return [Array] + attr_accessor :links + + # The MAC address of the Interconnect's bundle interface. + # Corresponds to the JSON property `macAddress` + # @return [String] + attr_accessor :mac_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @arp_caches = args[:arp_caches] if args.key?(:arp_caches) + @links = args[:links] if args.key?(:links) + @mac_address = args[:mac_address] if args.key?(:mac_address) + end + end + + # Describing the ARP neighbor entries seen on this link + class InterconnectDiagnosticsArpEntry + include Google::Apis::Core::Hashable + + # The IP address of this ARP neighbor. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # The MAC address of this ARP neighbor. + # Corresponds to the JSON property `macAddress` + # @return [String] + attr_accessor :mac_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @mac_address = args[:mac_address] if args.key?(:mac_address) + end + end + + # + class InterconnectDiagnosticsLinkLacpStatus + include Google::Apis::Core::Hashable + + # System ID of the port on Google?s side of the LACP exchange. + # Corresponds to the JSON property `googleSystemId` + # @return [String] + attr_accessor :google_system_id + + # System ID of the port on the neighbor?s side of the LACP exchange. + # Corresponds to the JSON property `neighborSystemId` + # @return [String] + attr_accessor :neighbor_system_id + + # + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @google_system_id = args[:google_system_id] if args.key?(:google_system_id) + @neighbor_system_id = args[:neighbor_system_id] if args.key?(:neighbor_system_id) + @state = args[:state] if args.key?(:state) + end + end + + # + class InterconnectDiagnosticsLinkOpticalPower + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Value of the current optical power, read in dBm. + # Corresponds to the JSON property `value` + # @return [Float] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @state = args[:state] if args.key?(:state) + @value = args[:value] if args.key?(:value) + end + end + + # + class InterconnectDiagnosticsLinkStatus + include Google::Apis::Core::Hashable + + # A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP + # neighbor entries seen on this link. This will be empty if the link is bundled + # Corresponds to the JSON property `arpCaches` + # @return [Array] + attr_accessor :arp_caches + + # The unique ID for this link assigned during turn up by Google. + # Corresponds to the JSON property `circuitId` + # @return [String] + attr_accessor :circuit_id + + # The Demarc address assigned by Google and provided in the LoA. + # Corresponds to the JSON property `googleDemarc` + # @return [String] + attr_accessor :google_demarc + + # + # Corresponds to the JSON property `lacpStatus` + # @return [Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkLacpStatus] + attr_accessor :lacp_status + + # + # Corresponds to the JSON property `receivingOpticalPower` + # @return [Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkOpticalPower] + attr_accessor :receiving_optical_power + + # + # Corresponds to the JSON property `transmittingOpticalPower` + # @return [Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkOpticalPower] + attr_accessor :transmitting_optical_power + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @arp_caches = args[:arp_caches] if args.key?(:arp_caches) + @circuit_id = args[:circuit_id] if args.key?(:circuit_id) + @google_demarc = args[:google_demarc] if args.key?(:google_demarc) + @lacp_status = args[:lacp_status] if args.key?(:lacp_status) + @receiving_optical_power = args[:receiving_optical_power] if args.key?(:receiving_optical_power) + @transmitting_optical_power = args[:transmitting_optical_power] if args.key?(:transmitting_optical_power) + end + end + # Response to the list request, and contains a list of interconnects. class InterconnectList include Google::Apis::Core::Hashable @@ -13368,6 +13701,69 @@ module Google end end + # Response for the InterconnectsGetDiagnosticsRequest. + class InterconnectsGetDiagnosticsResponse + include Google::Apis::Core::Hashable + + # Diagnostics information about interconnect, contains detailed and current + # technical information about Google?s side of the connection. + # Corresponds to the JSON property `result` + # @return [Google::Apis::ComputeAlpha::InterconnectDiagnostics] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @result = args[:result] if args.key?(:result) + end + end + + # + class InternalIpAddress + include Google::Apis::Core::Hashable + + # IP CIDR address or range. + # Corresponds to the JSON property `cidr` + # @return [String] + attr_accessor :cidr + + # The owner of the internal IP address. + # Corresponds to the JSON property `owner` + # @return [String] + attr_accessor :owner + + # The purpose of the internal IP address if applicable. + # Corresponds to the JSON property `purpose` + # @return [String] + attr_accessor :purpose + + # The region of the internal IP address if applicable. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # The type of the internal IP address. + # 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) + @cidr = args[:cidr] if args.key?(:cidr) + @owner = args[:owner] if args.key?(:owner) + @purpose = args[:purpose] if args.key?(:purpose) + @region = args[:region] if args.key?(:region) + @type = args[:type] if args.key?(:type) + end + end + # class InternalIpOwner include Google::Apis::Core::Hashable @@ -13400,6 +13796,124 @@ module Google end end + # + class IpAddressesList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of InternalIpOwner resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#ipAddressesList for IP + # addresses lists. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::IpAddressesList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # Contains a list of IP owners. class IpOwnerList include Google::Apis::Core::Hashable @@ -15989,7 +16503,8 @@ module Google # @return [String] attr_accessor :node_template - # [Output Only] A list of nodes in this node group. + # [Deprecated] Use nodeGroups.listNodes instead. [Output Only] A list of nodes + # in this node group. # Corresponds to the JSON property `nodes` # @return [Array] attr_accessor :nodes @@ -15999,6 +16514,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] The total number of nodes in the node group. + # Corresponds to the JSON property `size` + # @return [Fixnum] + attr_accessor :size + # # Corresponds to the JSON property `status` # @return [String] @@ -16024,6 +16544,7 @@ module Google @node_template = args[:node_template] if args.key?(:node_template) @nodes = args[:nodes] if args.key?(:nodes) @self_link = args[:self_link] if args.key?(:self_link) + @size = args[:size] if args.key?(:size) @status = args[:status] if args.key?(:status) @zone = args[:zone] if args.key?(:zone) end @@ -16269,11 +16790,6 @@ module Google class NodeGroupNode include Google::Apis::Core::Hashable - # - # Corresponds to the JSON property `index` - # @return [Fixnum] - attr_accessor :index - # Instances scheduled on this node. # Corresponds to the JSON property `instances` # @return [Array] @@ -16300,7 +16816,6 @@ module Google # Update properties of this object def update!(**args) - @index = args[:index] if args.key?(:index) @instances = args[:instances] if args.key?(:instances) @name = args[:name] if args.key?(:name) @node_type = args[:node_type] if args.key?(:node_type) @@ -16331,11 +16846,6 @@ module Google class NodeGroupsDeleteNodesRequest include Google::Apis::Core::Hashable - # Indexes of the nodes to be deleted from the node group. - # Corresponds to the JSON property `nodeIndexes` - # @return [Array] - attr_accessor :node_indexes - # # Corresponds to the JSON property `nodes` # @return [Array] @@ -16347,11 +16857,128 @@ module Google # Update properties of this object def update!(**args) - @node_indexes = args[:node_indexes] if args.key?(:node_indexes) @nodes = args[:nodes] if args.key?(:nodes) end end + # + class NodeGroupsListNodes + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of Node resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] The resource type, which is always compute.nodeGroupsListNodes + # for the list of nodes in the specified node group. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::NodeGroupsListNodes::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # class NodeGroupsScopedList include Google::Apis::Core::Hashable @@ -18789,6 +19416,44 @@ module Google end end + # + class RegionDisksAddResourcePoliciesRequest + include Google::Apis::Core::Hashable + + # Resource policies to be added to this disk. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + end + end + + # + class RegionDisksRemoveResourcePoliciesRequest + include Google::Apis::Core::Hashable + + # Resource policies to be removed from this disk. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + end + end + # class RegionDisksResizeRequest include Google::Apis::Core::Hashable @@ -20352,6 +21017,11 @@ module Google # @return [Hash] attr_accessor :labels + # GCS bucket storage location of the auto snapshot (regional or multi-regional). + # Corresponds to the JSON property `storageLocations` + # @return [Array] + attr_accessor :storage_locations + def initialize(**args) update!(**args) end @@ -20360,6 +21030,7 @@ module Google def update!(**args) @guest_flush = args[:guest_flush] if args.key?(:guest_flush) @labels = args[:labels] if args.key?(:labels) + @storage_locations = args[:storage_locations] if args.key?(:storage_locations) end end @@ -20433,11 +21104,6 @@ module Google class ResourcePolicyVmMaintenancePolicy include Google::Apis::Core::Hashable - # A hint about the environment this VM belongs to (production vs develoment) - # Corresponds to the JSON property `maintenanceEnvironment` - # @return [String] - attr_accessor :maintenance_environment - # A maintenance window for VMs. When set, we restrict our maintenance operations # to this window. # Corresponds to the JSON property `maintenanceWindow` @@ -20450,7 +21116,6 @@ module Google # Update properties of this object def update!(**args) - @maintenance_environment = args[:maintenance_environment] if args.key?(:maintenance_environment) @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) end end @@ -21538,9 +22203,9 @@ module Google # value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option # with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] # Default: [ALL_IP_RANGES] - # Corresponds to the JSON property `sourceIpRangesToNats` + # Corresponds to the JSON property `sourceIpRangesToNat` # @return [Array] - attr_accessor :source_ip_ranges_to_nats + attr_accessor :source_ip_ranges_to_nat def initialize(**args) update!(**args) @@ -21550,7 +22215,7 @@ module Google def update!(**args) @name = args[:name] if args.key?(:name) @secondary_ip_range_names = args[:secondary_ip_range_names] if args.key?(:secondary_ip_range_names) - @source_ip_ranges_to_nats = args[:source_ip_ranges_to_nats] if args.key?(:source_ip_ranges_to_nats) + @source_ip_ranges_to_nat = args[:source_ip_ranges_to_nat] if args.key?(:source_ip_ranges_to_nat) end end @@ -22111,7 +22776,7 @@ module Google end # A security policy is comprised of one or more rules. It can also be associated - # with one or more 'targets'. Next available tag: 11 + # with one or more 'targets'. (== resource_for beta.securityPolicies ==) class SecurityPolicy include Google::Apis::Core::Hashable @@ -22539,19 +23204,19 @@ module Google class ShieldedVmConfig include Google::Apis::Core::Hashable - # Defines whether the instance should have integrity monitoring enabled. + # Defines whether the instance has integrity monitoring enabled. # Corresponds to the JSON property `enableIntegrityMonitoring` # @return [Boolean] attr_accessor :enable_integrity_monitoring alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring - # Defines whether the instance should have secure boot enabled. + # Defines whether the instance has Secure Boot enabled. # Corresponds to the JSON property `enableSecureBoot` # @return [Boolean] attr_accessor :enable_secure_boot alias_method :enable_secure_boot?, :enable_secure_boot - # Defines whether the instance should have the TPM enabled. + # Defines whether the instance has the vTPM enabled. # Corresponds to the JSON property `enableVtpm` # @return [Boolean] attr_accessor :enable_vtpm @@ -22569,12 +23234,13 @@ module Google end end - # The policy describes how boot integrity measurements are evaluated. + # The policy describes the baseline against which VM instance boot integrity is + # measured. class ShieldedVmIntegrityPolicy include Google::Apis::Core::Hashable - # Triggers an auto relearn event: the integrity monitoring module copies - # existing guest measurements to the baseline. + # Updates the integrity policy baseline using the measurements from the VM + # instance's most recent boot. # Corresponds to the JSON property `updateAutoLearnPolicy` # @return [Boolean] attr_accessor :update_auto_learn_policy @@ -23994,6 +24660,16 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] The state of the subnetwork, which can be one of READY or + # DRAINING. A subnetwork that is READY is ready to be used. The state of + # DRAINING is only applicable to subnetworks that have the purpose set to + # INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load + # balancer are being drained. A subnetwork that is draining cannot be used or + # modified until it reaches a status of READY. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + def initialize(**args) update!(**args) end @@ -24022,6 +24698,7 @@ module Google @role = args[:role] if args.key?(:role) @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges) @self_link = args[:self_link] if args.key?(:self_link) + @state = args[:state] if args.key?(:state) end end @@ -27756,6 +28433,214 @@ module Google end end + # + class UrlMapsAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of UrlMapsScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::UrlMapsAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class UrlMapsScopedList + include Google::Apis::Core::Hashable + + # A list of UrlMaps contained in this scope. + # Corresponds to the JSON property `UrlMaps` + # @return [Array] + attr_accessor :url_maps + + # Informational warning which replaces the list of backend services when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::UrlMapsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url_maps = args[:url_maps] if args.key?(:url_maps) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of backend services when the + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # class UrlMapsValidateRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 3c78865eb..ced515b61 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -160,6 +160,90 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Allocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AllocationAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class AllocationSpecificSkuAllocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AllocationSpecificSkuAllocationAllocatedInstanceProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AllocationsList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class AllocationsScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class AllocationsUpdateResourceShapeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AttachedDisk class Representation < Google::Apis::Core::JsonRepresentation; end @@ -940,48 +1024,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Host - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class HostAggregatedList - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Warning - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Datum - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class HostList - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Warning - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Datum - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - class HostRule class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1048,24 +1090,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class HostsScopedList - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Warning - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Datum - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - class HttpHealthCheck class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1168,6 +1192,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceAllocationAffinity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroup class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1270,6 +1300,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagerStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupManagerUpdatePolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1684,6 +1720,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InterconnectDiagnostics + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InterconnectDiagnosticsArpEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InterconnectDiagnosticsLinkLacpStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InterconnectDiagnosticsLinkOpticalPower + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InterconnectDiagnosticsLinkStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InterconnectList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1738,12 +1804,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InterconnectsGetDiagnosticsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InternalIpAddress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InternalIpOwner class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class IpAddressesList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class IpOwnerList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2182,6 +2278,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NodeGroupsListNodes + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class NodeGroupsScopedList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2542,6 +2656,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionDisksAddResourcePoliciesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegionDisksRemoveResourcePoliciesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RegionDisksResizeRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3892,6 +4018,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UrlMapsAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class UrlMapsScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class UrlMapsValidateRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4424,6 +4586,155 @@ module Google end end + class Allocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :commitment, as: 'commitment' + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :self_link, as: 'selfLink' + property :specific_allocation, as: 'specificAllocation', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation::Representation + + property :specific_allocation_required, as: 'specificAllocationRequired' + property :zone, as: 'zone' + end + end + + class AllocationAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeAlpha::AllocationsScopedList, decorator: Google::Apis::ComputeAlpha::AllocationsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class AllocationSpecificSkuAllocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :count, :numeric_string => true, as: 'count' + property :in_use_count, :numeric_string => true, as: 'inUseCount' + property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties::Representation + + end + end + + class AllocationSpecificSkuAllocationAllocatedInstanceProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation + + collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk::Representation + + property :machine_type, as: 'machineType' + property :min_cpu_platform, as: 'minCpuPlatform' + end + end + + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' + property :interface, as: 'interface' + end + end + + class AllocationsList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::AllocationsList::Warning, decorator: Google::Apis::ComputeAlpha::AllocationsList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::AllocationsList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::AllocationsList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class AllocationsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :allocations, as: 'allocations', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning, decorator: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class AllocationsUpdateResourceShapeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :count, as: 'count' + property :destination_allocation, as: 'destinationAllocation' + property :updated_resource_properties, as: 'updatedResourceProperties', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties::Representation + + end + end + class AttachedDisk # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5888,89 +6199,6 @@ module Google end end - class Host - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :creation_timestamp, as: 'creationTimestamp' - property :description, as: 'description' - property :host_type, as: 'hostType' - property :id, :numeric_string => true, as: 'id' - collection :instances, as: 'instances' - property :kind, as: 'kind' - property :label_fingerprint, :base64 => true, as: 'labelFingerprint' - hash :labels, as: 'labels' - property :name, as: 'name' - property :self_link, as: 'selfLink' - property :status, as: 'status' - property :status_message, as: 'statusMessage' - property :zone, as: 'zone' - end - end - - class HostAggregatedList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - hash :items, as: 'items', class: Google::Apis::ComputeAlpha::HostsScopedList, decorator: Google::Apis::ComputeAlpha::HostsScopedList::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - property :self_link, as: 'selfLink' - property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HostAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::HostAggregatedList::Warning::Representation - - end - - class Warning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HostAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HostAggregatedList::Warning::Datum::Representation - - property :message, as: 'message' - end - - class Datum - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :value, as: 'value' - end - end - end - end - - class HostList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - collection :items, as: 'items', class: Google::Apis::ComputeAlpha::Host, decorator: Google::Apis::ComputeAlpha::Host::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - property :self_link, as: 'selfLink' - property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HostList::Warning, decorator: Google::Apis::ComputeAlpha::HostList::Warning::Representation - - end - - class Warning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HostList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HostList::Warning::Datum::Representation - - property :message, as: 'message' - end - - class Datum - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :value, as: 'value' - end - end - end - end - class HostRule # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6091,34 +6319,6 @@ module Google end end - class HostsScopedList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :hosts, as: 'hosts', class: Google::Apis::ComputeAlpha::Host, decorator: Google::Apis::ComputeAlpha::Host::Representation - - property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HostsScopedList::Warning, decorator: Google::Apis::ComputeAlpha::HostsScopedList::Warning::Representation - - end - - class Warning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HostsScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HostsScopedList::Warning::Datum::Representation - - property :message, as: 'message' - end - - class Datum - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :value, as: 'value' - end - end - end - end - class HttpHealthCheck # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6306,6 +6506,8 @@ module Google class Instance # @private class Representation < Google::Apis::Core::JsonRepresentation + property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeAlpha::InstanceAllocationAffinity, decorator: Google::Apis::ComputeAlpha::InstanceAllocationAffinity::Representation + property :can_ip_forward, as: 'canIpForward' property :cpu_platform, as: 'cpuPlatform' property :creation_timestamp, as: 'creationTimestamp' @@ -6315,7 +6517,6 @@ module Google collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation - property :host, as: 'host' property :id, :numeric_string => true, as: 'id' property :instance_encryption_key, as: 'instanceEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation @@ -6382,6 +6583,15 @@ module Google end end + class InstanceAllocationAffinity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consume_allocation_type, as: 'consumeAllocationType' + property :key, as: 'key' + collection :values, as: 'values' + end + end + class InstanceGroup # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6494,6 +6704,8 @@ module Google property :service_account, as: 'serviceAccount' property :stateful_policy, as: 'statefulPolicy', class: Google::Apis::ComputeAlpha::StatefulPolicy, decorator: Google::Apis::ComputeAlpha::StatefulPolicy::Representation + property :status, as: 'status', class: Google::Apis::ComputeAlpha::InstanceGroupManagerStatus, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerStatus::Representation + collection :target_pools, as: 'targetPools' property :target_size, as: 'targetSize' property :update_policy, as: 'updatePolicy', class: Google::Apis::ComputeAlpha::InstanceGroupManagerUpdatePolicy, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerUpdatePolicy::Representation @@ -6603,6 +6815,13 @@ module Google end end + class InstanceGroupManagerStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_stable, as: 'isStable' + end + end + class InstanceGroupManagerUpdatePolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7311,6 +7530,58 @@ module Google end end + class InterconnectDiagnostics + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :arp_caches, as: 'arpCaches', class: Google::Apis::ComputeAlpha::InterconnectDiagnosticsArpEntry, decorator: Google::Apis::ComputeAlpha::InterconnectDiagnosticsArpEntry::Representation + + collection :links, as: 'links', class: Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkStatus, decorator: Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkStatus::Representation + + property :mac_address, as: 'macAddress' + end + end + + class InterconnectDiagnosticsArpEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip_address, as: 'ipAddress' + property :mac_address, as: 'macAddress' + end + end + + class InterconnectDiagnosticsLinkLacpStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :google_system_id, as: 'googleSystemId' + property :neighbor_system_id, as: 'neighborSystemId' + property :state, as: 'state' + end + end + + class InterconnectDiagnosticsLinkOpticalPower + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state, as: 'state' + property :value, as: 'value' + end + end + + class InterconnectDiagnosticsLinkStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :arp_caches, as: 'arpCaches', class: Google::Apis::ComputeAlpha::InterconnectDiagnosticsArpEntry, decorator: Google::Apis::ComputeAlpha::InterconnectDiagnosticsArpEntry::Representation + + property :circuit_id, as: 'circuitId' + property :google_demarc, as: 'googleDemarc' + property :lacp_status, as: 'lacpStatus', class: Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkLacpStatus, decorator: Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkLacpStatus::Representation + + property :receiving_optical_power, as: 'receivingOpticalPower', class: Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkOpticalPower, decorator: Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkOpticalPower::Representation + + property :transmitting_optical_power, as: 'transmittingOpticalPower', class: Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkOpticalPower, decorator: Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkOpticalPower::Representation + + end + end + class InterconnectList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7419,6 +7690,25 @@ module Google end end + class InterconnectsGetDiagnosticsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :result, as: 'result', class: Google::Apis::ComputeAlpha::InterconnectDiagnostics, decorator: Google::Apis::ComputeAlpha::InterconnectDiagnostics::Representation + + end + end + + class InternalIpAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cidr, as: 'cidr' + property :owner, as: 'owner' + property :purpose, as: 'purpose' + property :region, as: 'region' + property :type, as: 'type' + end + end + class InternalIpOwner # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7428,6 +7718,38 @@ module Google end end + class IpAddressesList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeAlpha::InternalIpAddress, decorator: Google::Apis::ComputeAlpha::InternalIpAddress::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::IpAddressesList::Warning, decorator: Google::Apis::ComputeAlpha::IpAddressesList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::IpAddressesList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::IpAddressesList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class IpOwnerList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8105,6 +8427,7 @@ module Google collection :nodes, as: 'nodes', class: Google::Apis::ComputeAlpha::NodeGroupNode, decorator: Google::Apis::ComputeAlpha::NodeGroupNode::Representation property :self_link, as: 'selfLink' + property :size, as: 'size' property :status, as: 'status' property :zone, as: 'zone' end @@ -8177,7 +8500,6 @@ module Google class NodeGroupNode # @private class Representation < Google::Apis::Core::JsonRepresentation - property :index, as: 'index' collection :instances, as: 'instances' property :name, as: 'name' property :node_type, as: 'nodeType' @@ -8195,11 +8517,42 @@ module Google class NodeGroupsDeleteNodesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :node_indexes, as: 'nodeIndexes' collection :nodes, as: 'nodes' end end + class NodeGroupsListNodes + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeAlpha::NodeGroupNode, decorator: Google::Apis::ComputeAlpha::NodeGroupNode::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::NodeGroupsListNodes::Warning, decorator: Google::Apis::ComputeAlpha::NodeGroupsListNodes::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::NodeGroupsListNodes::Warning::Datum, decorator: Google::Apis::ComputeAlpha::NodeGroupsListNodes::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class NodeGroupsScopedList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8846,6 +9199,20 @@ module Google end end + class RegionDisksAddResourcePoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies' + end + end + + class RegionDisksRemoveResourcePoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies' + end + end + class RegionDisksResizeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9300,6 +9667,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :guest_flush, as: 'guestFlush' hash :labels, as: 'labels' + collection :storage_locations, as: 'storageLocations' end end @@ -9324,7 +9692,6 @@ module Google class ResourcePolicyVmMaintenancePolicy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :maintenance_environment, as: 'maintenanceEnvironment' property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow, decorator: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow::Representation end @@ -9588,7 +9955,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' collection :secondary_ip_range_names, as: 'secondaryIpRangeNames' - collection :source_ip_ranges_to_nats, as: 'sourceIpRangesToNats' + collection :source_ip_ranges_to_nat, as: 'sourceIpRangesToNat' end end @@ -10207,6 +10574,7 @@ module Google collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ComputeAlpha::SubnetworkSecondaryRange, decorator: Google::Apis::ComputeAlpha::SubnetworkSecondaryRange::Representation property :self_link, as: 'selfLink' + property :state, as: 'state' end end @@ -11193,6 +11561,66 @@ module Google end end + class UrlMapsAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeAlpha::UrlMapsScopedList, decorator: Google::Apis::ComputeAlpha::UrlMapsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::UrlMapsAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::UrlMapsAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::UrlMapsAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::UrlMapsAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class UrlMapsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :url_maps, as: 'UrlMaps', class: Google::Apis::ComputeAlpha::UrlMap, decorator: Google::Apis::ComputeAlpha::UrlMap::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::UrlMapsScopedList::Warning, decorator: Google::Apis::ComputeAlpha::UrlMapsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::UrlMapsScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::UrlMapsScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class UrlMapsValidateRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 5c81c828c..74cc46a4a 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -619,6 +619,421 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of allocations. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::AllocationAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::AllocationAggregatedList] + # + # @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 aggregated_allocation_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/allocations', options) + command.response_representation = Google::Apis::ComputeAlpha::AllocationAggregatedList::Representation + command.response_class = Google::Apis::ComputeAlpha::AllocationAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves all information of the specified allocation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] allocation + # Name of the allocation to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Allocation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Allocation] + # + # @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_allocation(project, zone, allocation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/allocations/{allocation}', options) + command.response_representation = Google::Apis::ComputeAlpha::Allocation::Representation + command.response_class = Google::Apis::ComputeAlpha::Allocation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['allocation'] = allocation unless allocation.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @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_allocation_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/allocations/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new allocation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [Google::Apis::ComputeAlpha::Allocation] allocation_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 insert_allocation(project, zone, allocation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/allocations', options) + command.request_representation = Google::Apis::ComputeAlpha::Allocation::Representation + command.request_object = allocation_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # A list all the allocations that have been configured for the specified project + # in specified zone. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::AllocationsList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::AllocationsList] + # + # @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_allocations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/allocations', options) + command.response_representation = Google::Apis::ComputeAlpha::AllocationsList::Representation + command.response_class = Google::Apis::ComputeAlpha::AllocationsList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @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 set_allocation_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation + command.request_object = zone_set_policy_request_object + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse] + # + # @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 test_allocation_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the shape of an allocation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] allocation + # Name of the allocation to update. + # @param [Google::Apis::ComputeAlpha::AllocationsUpdateResourceShapeRequest] allocations_update_resource_shape_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 update_allocation_resource_shape(project, zone, allocation, allocations_update_resource_shape_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{allocation}/updateResourceShape', options) + command.request_representation = Google::Apis::ComputeAlpha::AllocationsUpdateResourceShapeRequest::Representation + command.request_object = allocations_update_resource_shape_request_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['allocation'] = allocation unless allocation.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of autoscalers. # @param [String] project # Project ID for this request. @@ -1060,7 +1475,7 @@ module Google execute_or_queue_command(command, &block) end - # Adds the given Signed URL Key to the backend bucket. + # Adds a key for validating requests with signed URLs for this backend bucket. # @param [String] project # Project ID for this request. # @param [String] backend_bucket @@ -1160,7 +1575,7 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the given Signed URL Key from the backend bucket. + # Deletes a key for validating requests with signed URLs for this backend bucket. # @param [String] project # Project ID for this request. # @param [String] backend_bucket @@ -1591,7 +2006,7 @@ module Google execute_or_queue_command(command, &block) end - # Adds the given Signed URL Key to the specified backend service. + # Adds a key for validating requests with signed URLs for this backend service. # @param [String] project # Project ID for this request. # @param [String] backend_service @@ -1763,7 +2178,8 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the given Signed URL Key from the specified backend service. + # Deletes a key for validating requests with signed URLs for this backend + # service. # @param [String] project # Project ID for this request. # @param [String] backend_service @@ -5474,419 +5890,6 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an aggregated list of hosts. - # @param [String] project - # Project ID for this request. - # @param [String] filter - # A filter expression that filters resources listed in the response. The - # expression must specify the field name, a comparison operator, and the value - # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. - # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled - # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). - # @param [Fixnum] max_results - # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - # @param [String] order_by - # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. - # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::HostAggregatedList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::HostAggregatedList] - # - # @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 aggregated_host_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/hosts', options) - command.response_representation = Google::Apis::ComputeAlpha::HostAggregatedList::Representation - command.response_class = Google::Apis::ComputeAlpha::HostAggregatedList - command.params['project'] = project unless project.nil? - command.query['filter'] = filter unless filter.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['orderBy'] = order_by unless order_by.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? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Deletes the specified Host resource. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] host - # Name of the Host resource to delete. - # @param [String] request_id - # An optional request ID to identify requests. Specify a unique request ID so - # that if you must retry your request, the server will know to ignore the - # request if it has already been completed. - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request ID, the - # server can check if original operation with the same request ID was received, - # and if so, will ignore the second request. This prevents clients from - # accidentally creating duplicate commitments. - # The request ID must be a valid UUID with the exception that zero UUID is not - # supported (00000000-0000-0000-0000-000000000000). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::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 delete_host(project, zone, host, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/hosts/{host}', options) - command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation - command.response_class = Google::Apis::ComputeAlpha::Operation - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['host'] = host unless host.nil? - command.query['requestId'] = request_id unless request_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns the specified host. Gets a list of available hosts by making a list() - # request. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] host - # Name of the host to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Host] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::Host] - # - # @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_host(project, zone, host, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/hosts/{host}', options) - command.response_representation = Google::Apis::ComputeAlpha::Host::Representation - command.response_class = Google::Apis::ComputeAlpha::Host - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['host'] = host unless host.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Gets the access control policy for a resource. May be empty if no such policy - # or resource exists. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::Policy] - # - # @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_host_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/hosts/{resource}/getIamPolicy', options) - command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation - command.response_class = Google::Apis::ComputeAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Creates a host resource in the specified project using the data included in - # the request. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [Google::Apis::ComputeAlpha::Host] host_object - # @param [String] request_id - # An optional request ID to identify requests. Specify a unique request ID so - # that if you must retry your request, the server will know to ignore the - # request if it has already been completed. - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request ID, the - # server can check if original operation with the same request ID was received, - # and if so, will ignore the second request. This prevents clients from - # accidentally creating duplicate commitments. - # The request ID must be a valid UUID with the exception that zero UUID is not - # supported (00000000-0000-0000-0000-000000000000). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::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 insert_host(project, zone, host_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/hosts', options) - command.request_representation = Google::Apis::ComputeAlpha::Host::Representation - command.request_object = host_object - command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation - command.response_class = Google::Apis::ComputeAlpha::Operation - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.query['requestId'] = request_id unless request_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves a list of hosts available to the specified project. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] filter - # A filter expression that filters resources listed in the response. The - # expression must specify the field name, a comparison operator, and the value - # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. - # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled - # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). - # @param [Fixnum] max_results - # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - # @param [String] order_by - # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. - # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::HostList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::HostList] - # - # @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_hosts(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/hosts', options) - command.response_representation = Google::Apis::ComputeAlpha::HostList::Representation - command.response_class = Google::Apis::ComputeAlpha::HostList - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.query['filter'] = filter unless filter.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['orderBy'] = order_by unless order_by.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? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::Policy] - # - # @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 set_host_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/hosts/{resource}/setIamPolicy', options) - command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation - command.request_object = zone_set_policy_request_object - command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation - command.response_class = Google::Apis::ComputeAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse] - # - # @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 test_host_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/hosts/{resource}/testIamPermissions', options) - command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation - command.request_object = test_permissions_request_object - command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation - command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Deletes the specified HttpHealthCheck resource. # @param [String] project # Project ID for this request. @@ -7569,9 +7572,39 @@ module Google # @param [String] instance_group_manager # The name of the managed instance group. # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8932,6 +8965,43 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @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_instance_template_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/instanceTemplates/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates an instance template in the specified project using the data that is # included in the request. If you are creating a new template to update an # existing instance group, your new instance template must use the same network @@ -9055,6 +9125,46 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @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 set_instance_template_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation + command.request_object = global_set_policy_request_object + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. @@ -9698,6 +9808,14 @@ module Google # instanceTemplates/instanceTemplate # - projects/project/global/global/instanceTemplates/instanceTemplate # - global/instancesTemplates/instanceTemplate + # @param [String] source_machine_image + # Specifies instance machine to create the instance. + # This field is optional. It can be a full or partial URL. For example, the + # following are all valid URLs to an instance template: + # - https://www.googleapis.com/compute/v1/projects/project/global/global/ + # machineImages/machineImage + # - projects/project/global/global/machineImages/machineImage + # - global/machineImages/machineImage # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9717,7 +9835,7 @@ 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 insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{project}/zones/{zone}/instances', options) command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation command.request_object = instance_object @@ -9727,6 +9845,7 @@ module Google command.params['zone'] = zone unless zone.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['sourceInstanceTemplate'] = source_instance_template unless source_instance_template.nil? + command.query['sourceMachineImage'] = source_machine_image unless source_machine_image.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -10584,8 +10703,9 @@ module Google execute_or_queue_command(command, &block) end - # Sets the Shielded VM integrity policy for an instance. This method supports - # PATCH semantics and uses the JSON merge patch format and processing rules. + # Sets the Shielded VM integrity policy for a VM instance. You can only use this + # method on a running VM instance. This method supports PATCH semantics and uses + # the JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] zone @@ -11116,8 +11236,9 @@ module Google execute_or_queue_command(command, &block) end - # Updates the Shielded VM config for an instance. This method supports PATCH - # semantics and uses the JSON merge patch format and processing rules. + # Updates the Shielded VM config for a VM instance. You can only use this method + # on a stopped VM instance. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] zone @@ -11928,6 +12049,42 @@ module Google execute_or_queue_command(command, &block) end + # Returns the interconnectDiagnostics for the specified interconnect. + # @param [String] project + # Project ID for this request. + # @param [String] interconnect + # Name of the interconnect resource to query. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::InterconnectsGetDiagnosticsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::InterconnectsGetDiagnosticsResponse] + # + # @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_interconnect_diagnostics(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/interconnects/{interconnect}/getDiagnostics', options) + command.response_representation = Google::Apis::ComputeAlpha::InterconnectsGetDiagnosticsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::InterconnectsGetDiagnosticsResponse + command.params['project'] = project unless project.nil? + command.params['interconnect'] = interconnect unless interconnect.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Gets the access control policy for a resource. May be empty if no such policy # or resource exists. # @param [String] project @@ -13707,6 +13864,84 @@ module Google execute_or_queue_command(command, &block) end + # Lists the internal IP addresses in the specified network. + # @param [String] project + # Project ID for this request. + # @param [String] network + # Name of the network for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] types + # (Optional) types filter separate by comma, valid values are: SUBNETWORK, + # RESERVED, PEER_USED, PEER_RESERVED, REMOTE_USED, REMOTE_RESERVED. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::IpAddressesList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::IpAddressesList] + # + # @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_network_ip_addresses(project, network, filter: nil, max_results: nil, order_by: nil, page_token: nil, types: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/networks/{network}/listIpAddresses', options) + command.response_representation = Google::Apis::ComputeAlpha::IpAddressesList::Representation + command.response_class = Google::Apis::ComputeAlpha::IpAddressesList + command.params['project'] = project unless project.nil? + command.params['network'] = network unless network.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['types'] = types unless types.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Lists the internal IP owners in the specified network. # @param [String] project # Project ID for this request. @@ -14040,7 +14275,8 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an aggregated list of node groups. + # Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes + # for more details about each group. # @param [String] project # Project ID for this request. # @param [String] filter @@ -14217,7 +14453,8 @@ module Google end # Returns the specified NodeGroup. Get a list of available NodeGroups by making - # a list() request. + # a list() request. Note: the "nodes" field should not be used. Use nodeGroups. + # listNodes instead. # @param [String] project # Project ID for this request. # @param [String] zone @@ -14351,7 +14588,8 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves a list of node groups available to the specified project. + # Retrieves a list of node groups available to the specified project. Note: use + # nodeGroups.listNodes for more details about each group. # @param [String] project # Project ID for this request. # @param [String] zone @@ -14425,6 +14663,83 @@ module Google execute_or_queue_command(command, &block) end + # Lists nodes in the node group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource whose nodes you want to list. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::NodeGroupsListNodes] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::NodeGroupsListNodes] + # + # @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_node_group_nodes(project, zone, node_group, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes', options) + command.response_representation = Google::Apis::ComputeAlpha::NodeGroupsListNodes::Representation + command.response_class = Google::Apis::ComputeAlpha::NodeGroupsListNodes + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] project @@ -15422,9 +15737,39 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15464,9 +15809,39 @@ module Google # Project ID for this request. # @param [Google::Apis::ComputeAlpha::ProjectsListXpnHostsRequest] projects_list_xpn_hosts_request_object # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16977,6 +17352,61 @@ module Google execute_or_queue_command(command, &block) end + # Adds existing resource policies to a regional disk. You can only add one + # policy which will be applied to this disk for scheduling snapshot creation. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeAlpha::RegionDisksAddResourcePoliciesRequest] region_disks_add_resource_policies_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 add_region_disk_resource_policies(project, region, disk, region_disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/addResourcePolicies', options) + command.request_representation = Google::Apis::ComputeAlpha::RegionDisksAddResourcePoliciesRequest::Representation + command.request_object = region_disks_add_resource_policies_request_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['disk'] = disk unless disk.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates a snapshot of this regional disk. # @param [String] project # Project ID for this request. @@ -17255,6 +17685,60 @@ module Google execute_or_queue_command(command, &block) end + # Removes resource policies from a regional disk. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeAlpha::RegionDisksRemoveResourcePoliciesRequest] region_disks_remove_resource_policies_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 remove_region_disk_resource_policies(project, region, disk, region_disks_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/removeResourcePolicies', options) + command.request_representation = Google::Apis::ComputeAlpha::RegionDisksRemoveResourcePoliciesRequest::Representation + command.request_object = region_disks_remove_resource_policies_request_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['disk'] = disk unless disk.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Resizes the specified regional persistent disk. # @param [String] project # The project ID for this request. @@ -18221,9 +18705,39 @@ module Google # @param [String] instance_group_manager # The name of the managed instance group. # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18797,6 +19311,17 @@ module Google # @param [String] instance_group_manager # The name of the managed instance group. It should conform to RFC1035. # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagerUpdateInstanceConfigReq] region_instance_group_manager_update_instance_config_req_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18816,7 +19341,7 @@ 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 update_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_update_instance_config_req_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_update_instance_config_req_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagerUpdateInstanceConfigReq::Representation command.request_object = region_instance_group_manager_update_instance_config_req_object @@ -18825,6 +19350,7 @@ module Google command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil? + command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -20387,6 +20913,52 @@ module Google execute_or_queue_command(command, &block) end + # Initiates a cache invalidation operation, invalidating the specified path, + # scoped to the specified UrlMap. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap scoping this request. + # @param [Google::Apis::ComputeAlpha::CacheInvalidationRule] cache_invalidation_rule_object + # @param [String] request_id + # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 invalidate_region_url_map_cache(project, region, url_map, cache_invalidation_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache', options) + command.request_representation = Google::Apis::ComputeAlpha::CacheInvalidationRule::Representation + command.request_object = cache_invalidation_rule_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the list of UrlMap resources available to the specified project in # the specified region. # @param [String] project @@ -24046,6 +24618,14 @@ module Google # @param [String] subnetwork # Name of the Subnetwork resource to patch. # @param [Google::Apis::ComputeAlpha::Subnetwork] subnetwork_object + # @param [Fixnum] drain_timeout_seconds + # The drain timeout specifies the upper bound in seconds on the amount of time + # allowed to drain connections from the current ACTIVE subnetwork to the current + # BACKUP subnetwork. The drain timeout is only applicable when the following + # conditions are true: - the subnetwork being patched has purpose = + # INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - + # the patch request is setting the role to ACTIVE. Note that after this patch + # operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the @@ -24076,7 +24656,7 @@ 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 patch_subnetwork(project, region, subnetwork, subnetwork_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_subnetwork(project, region, subnetwork, subnetwork_object = nil, drain_timeout_seconds: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, '{project}/regions/{region}/subnetworks/{subnetwork}', options) command.request_representation = Google::Apis::ComputeAlpha::Subnetwork::Representation command.request_object = subnetwork_object @@ -24085,6 +24665,7 @@ module Google command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['subnetwork'] = subnetwork unless subnetwork.nil? + command.query['drainTimeoutSeconds'] = drain_timeout_seconds unless drain_timeout_seconds.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -27289,6 +27870,78 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the list of all UrlMap resources, regional and global, available to + # the specified project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapsAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::UrlMapsAggregatedList] + # + # @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 aggregated_url_map_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/urlMaps', options) + command.response_representation = Google::Apis::ComputeAlpha::UrlMapsAggregatedList::Representation + command.response_class = Google::Apis::ComputeAlpha::UrlMapsAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified UrlMap resource. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 2a07f7c08..1e46e2f9b 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '' + REVISION = '20180730' # 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/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index ad3757b0a..320a94797 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -1208,11 +1208,11 @@ module Google # The source image to create this disk. When creating a new instance, one of # initializeParams.sourceImage or disks.source is required except for local SSD. # To create a disk with one of the public operating system images, specify the - # image by its family name. For example, specify family/debian-8 to use the - # latest Debian 8 image: - # projects/debian-cloud/global/images/family/debian-8 + # image by its family name. For example, specify family/debian-9 to use the + # latest Debian 9 image: + # projects/debian-cloud/global/images/family/debian-9 # Alternatively, use a specific version of a public operating system image: - # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD + # projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD # To create a disk with a custom image that you created, specify the image name # in the following format: # global/images/my-custom-image @@ -2190,18 +2190,18 @@ module Google class BackendBucketCdnPolicy include Google::Apis::Core::Hashable - # Number of seconds up to which the response to a signed URL request will be - # cached in the CDN. After this time period, the Signed URL will be revalidated - # before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN - # will internally act as though all responses from this bucket had a ?Cache- - # Control: public, max-age=[TTL]? header, regardless of any existing Cache- - # Control header. The actual headers served in responses will not be altered. + # Maximum number of seconds the response to a signed URL request will be + # considered fresh. After this time period, the response will be revalidated + # before being served. Defaults to 1hr (3600s). When serving responses to signed + # URL requests, Cloud CDN will internally behave as though all responses from + # this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless + # of any existing Cache-Control header. The actual headers served in responses + # will not be altered. # Corresponds to the JSON property `signedUrlCacheMaxAgeSec` # @return [Fixnum] attr_accessor :signed_url_cache_max_age_sec - # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL - # on this backend bucket. + # [Output Only] Names of the keys for signing request URLs. # Corresponds to the JSON property `signedUrlKeyNames` # @return [Array] attr_accessor :signed_url_key_names @@ -2659,18 +2659,18 @@ module Google # @return [Google::Apis::ComputeBeta::CacheKeyPolicy] attr_accessor :cache_key_policy - # Number of seconds up to which the response to a signed URL request will be - # cached in the CDN. After this time period, the Signed URL will be revalidated - # before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN - # will internally act as though all responses from this backend had a ?Cache- - # Control: public, max-age=[TTL]? header, regardless of any existing Cache- - # Control header. The actual headers served in responses will not be altered. + # Maximum number of seconds the response to a signed URL request will be + # considered fresh. After this time period, the response will be revalidated + # before being served. Defaults to 1hr (3600s). When serving responses to signed + # URL requests, Cloud CDN will internally behave as though all responses from + # this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless + # of any existing Cache-Control header. The actual headers served in responses + # will not be altered. # Corresponds to the JSON property `signedUrlCacheMaxAgeSec` # @return [Fixnum] attr_accessor :signed_url_cache_max_age_sec - # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL - # on this backend service. + # [Output Only] Names of the keys for signing request URLs. # Corresponds to the JSON property `signedUrlKeyNames` # @return [Array] attr_accessor :signed_url_key_names @@ -3814,7 +3814,7 @@ module Google # @return [Array] attr_accessor :license_codes - # Any applicable publicly visible licenses. + # A list of publicly visible licenses. Reserved for Google's use. # Corresponds to the JSON property `licenses` # @return [Array] attr_accessor :licenses @@ -3847,6 +3847,11 @@ module Google # @return [Array] attr_accessor :replica_zones + # Resource policies applied to this disk for automatic snapshot creations. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + # [Output Only] Server-defined fully-qualified URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -3865,11 +3870,11 @@ module Google # The source image used to create this disk. If the source image is deleted, # this field will not be set. # To create a disk with one of the public operating system images, specify the - # image by its family name. For example, specify family/debian-8 to use the - # latest Debian 8 image: - # projects/debian-cloud/global/images/family/debian-8 + # image by its family name. For example, specify family/debian-9 to use the + # latest Debian 9 image: + # projects/debian-cloud/global/images/family/debian-9 # Alternatively, use a specific version of a public operating system image: - # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD + # projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD # To create a disk with a custom image that you created, specify the image name # in the following format: # global/images/my-custom-image @@ -3972,6 +3977,7 @@ module Google @options = args[:options] if args.key?(:options) @region = args[:region] if args.key?(:region) @replica_zones = args[:replica_zones] if args.key?(:replica_zones) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) @self_link = args[:self_link] if args.key?(:self_link) @size_gb = args[:size_gb] if args.key?(:size_gb) @source_image = args[:source_image] if args.key?(:source_image) @@ -4720,6 +4726,44 @@ module Google end end + # + class DisksAddResourcePoliciesRequest + include Google::Apis::Core::Hashable + + # Resource policies to be added to this disk. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + end + end + + # + class DisksRemoveResourcePoliciesRequest + include Google::Apis::Core::Hashable + + # Resource policies to be removed from this disk. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + end + end + # class DisksResizeRequest include Google::Apis::Core::Hashable @@ -5957,6 +6001,56 @@ module Google end end + # + class GlobalSetPolicyRequest + include Google::Apis::Core::Hashable + + # Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use ' + # policy' to specify bindings. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # Flatten Policy to create a backward compatible wire-format. Deprecated. Use ' + # policy' to specify the etag. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` + # members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", + # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` + # **YAML Example** + # bindings: - members: - user:mike@example.com - group:admins@example.com - + # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner - members: - user:sean@example.com role: roles/viewer + # For a description of IAM and its features, see the [IAM developer's guide]( + # https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::ComputeBeta::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @policy = args[:policy] if args.key?(:policy) + end + end + # Guest OS features. class GuestOsFeature include Google::Apis::Core::Hashable @@ -7566,7 +7660,8 @@ module Google # @return [Google::Apis::ComputeBeta::ShieldedVmConfig] attr_accessor :shielded_vm_config - # The policy describes how boot integrity measurements are evaluated. + # The policy describes the baseline against which VM instance boot integrity is + # measured. # Corresponds to the JSON property `shieldedVmIntegrityPolicy` # @return [Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy] attr_accessor :shielded_vm_integrity_policy @@ -8708,10 +8803,10 @@ module Google # Minimal action to be taken on an instance. You can specify either RESTART to # restart existing instances or REPLACE to delete and create new instances from - # the target template. If you specify a code>RESTART, the Updater will attempt - # to perform that action only. However, if the Updater determines that the - # minimal action you specify is not enough to perform the update, it might - # perform a more disruptive action. + # the target template. If you specify a RESTART, the Updater will attempt to + # perform that action only. However, if the Updater determines that the minimal + # action you specify is not enough to perform the update, it might perform a + # more disruptive action. # Corresponds to the JSON property `minimalAction` # @return [String] attr_accessor :minimal_action @@ -13809,7 +13904,8 @@ module Google # @return [String] attr_accessor :node_template - # [Output Only] A list of nodes in this node group. + # [Deprecated] Use nodeGroups.listNodes instead. [Output Only] A list of nodes + # in this node group. # Corresponds to the JSON property `nodes` # @return [Array] attr_accessor :nodes @@ -13819,6 +13915,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] The total number of nodes in the node group. + # Corresponds to the JSON property `size` + # @return [Fixnum] + attr_accessor :size + # # Corresponds to the JSON property `status` # @return [String] @@ -13844,6 +13945,7 @@ module Google @node_template = args[:node_template] if args.key?(:node_template) @nodes = args[:nodes] if args.key?(:nodes) @self_link = args[:self_link] if args.key?(:self_link) + @size = args[:size] if args.key?(:size) @status = args[:status] if args.key?(:status) @zone = args[:zone] if args.key?(:zone) end @@ -14160,6 +14262,124 @@ module Google end end + # + class NodeGroupsListNodes + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of Node resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] The resource type, which is always compute.nodeGroupsListNodes + # for the list of nodes in the specified node group. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::NodeGroupsListNodes::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # class NodeGroupsScopedList include Google::Apis::Core::Hashable @@ -16541,6 +16761,44 @@ module Google end end + # + class RegionDisksAddResourcePoliciesRequest + include Google::Apis::Core::Hashable + + # Resource policies to be added to this disk. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + end + end + + # + class RegionDisksRemoveResourcePoliciesRequest + include Google::Apis::Core::Hashable + + # Resource policies to be removed from this disk. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + end + end + # class RegionDisksResizeRequest include Google::Apis::Core::Hashable @@ -17376,6 +17634,650 @@ module Google end end + # + class ResourcePoliciesList + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] A list of ResourcePolicy resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#resourcePoliciesList for listsof + # resourcePolicies + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::ResourcePoliciesList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class ResourcePoliciesScopedList + include Google::Apis::Core::Hashable + + # A list of resourcePolicies contained in this scope. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + # Informational warning which replaces the list of resourcePolicies when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::ResourcePoliciesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of resourcePolicies when the + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class ResourcePolicy + include Google::Apis::Core::Hashable + + # A backup schedule policy specifies when and how frequently snapshots are to be + # created for the target disk. Also specifies how many and how long these + # automatically created snapshot should be retained. + # Corresponds to the JSON property `backupSchedulePolicy` + # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy] + attr_accessor :backup_schedule_policy + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] Type of the resource. Always compute#resource_policies for + # resource policies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. The resource name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last character, which cannot be a + # dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] Server-defined fully-qualified URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backup_schedule_policy = args[:backup_schedule_policy] if args.key?(:backup_schedule_policy) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # Contains a list of resourcePolicies. + class ResourcePolicyAggregatedList + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of ResourcePolicy resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::ResourcePolicyAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # A backup schedule policy specifies when and how frequently snapshots are to be + # created for the target disk. Also specifies how many and how long these + # automatically created snapshot should be retained. + class ResourcePolicyBackupSchedulePolicy + include Google::Apis::Core::Hashable + + # Policy for retention of automatically created snapshots. + # Corresponds to the JSON property `retentionPolicy` + # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy] + attr_accessor :retention_policy + + # A schedule for disks where the schedueled operations are performed. + # Corresponds to the JSON property `schedule` + # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule] + attr_accessor :schedule + + # Specified snapshot properties for automatic snapshots created by this policy. + # Corresponds to the JSON property `snapshotProperties` + # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties] + attr_accessor :snapshot_properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @retention_policy = args[:retention_policy] if args.key?(:retention_policy) + @schedule = args[:schedule] if args.key?(:schedule) + @snapshot_properties = args[:snapshot_properties] if args.key?(:snapshot_properties) + end + end + + # Policy for retention of automatically created snapshots. + class ResourcePolicyBackupSchedulePolicyRetentionPolicy + include Google::Apis::Core::Hashable + + # Maximum age of the snapshot that is allowed to be kept. + # Corresponds to the JSON property `maxRetentionDays` + # @return [Fixnum] + attr_accessor :max_retention_days + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days) + end + end + + # A schedule for disks where the schedueled operations are performed. + class ResourcePolicyBackupSchedulePolicySchedule + include Google::Apis::Core::Hashable + + # Time window specified for daily operations. + # Corresponds to the JSON property `dailySchedule` + # @return [Google::Apis::ComputeBeta::ResourcePolicyDailyCycle] + attr_accessor :daily_schedule + + # Time window specified for hourly operations. + # Corresponds to the JSON property `hourlySchedule` + # @return [Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle] + attr_accessor :hourly_schedule + + # Time window specified for weekly operations. + # Corresponds to the JSON property `weeklySchedule` + # @return [Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle] + attr_accessor :weekly_schedule + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule) + @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule) + @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule) + end + end + + # Specified snapshot properties for automatic snapshots created by this policy. + class ResourcePolicyBackupSchedulePolicySnapshotProperties + include Google::Apis::Core::Hashable + + # Indication to perform a ?guest aware? snapshot. + # Corresponds to the JSON property `guestFlush` + # @return [Boolean] + attr_accessor :guest_flush + alias_method :guest_flush?, :guest_flush + + # Labels to apply to automatic snapshots. These can be later modified by the + # setLabels method. Label values may be empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # GCS bucket storage location of the auto snapshot (regional or multi-regional). + # Corresponds to the JSON property `storageLocations` + # @return [Array] + attr_accessor :storage_locations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @guest_flush = args[:guest_flush] if args.key?(:guest_flush) + @labels = args[:labels] if args.key?(:labels) + @storage_locations = args[:storage_locations] if args.key?(:storage_locations) + end + end + + # Time window specified for daily operations. + class ResourcePolicyDailyCycle + include Google::Apis::Core::Hashable + + # Allows to define schedule that runs every nth day of the month. + # Corresponds to the JSON property `daysInCycle` + # @return [Fixnum] + attr_accessor :days_in_cycle + + # [Output only] Duration of the time window, automatically chosen to be smallest + # possible in the given scenario. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Time within the window to start the operations. It must be in format "HH:MM?, + # where HH : [00-23] and MM : [00-59] GMT. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @days_in_cycle = args[:days_in_cycle] if args.key?(:days_in_cycle) + @duration = args[:duration] if args.key?(:duration) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Time window specified for hourly operations. + class ResourcePolicyHourlyCycle + include Google::Apis::Core::Hashable + + # [Output only] Duration of the time window, automatically chosen to be smallest + # possible in the given scenario. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Allows to define schedule that runs every nth hour. + # Corresponds to the JSON property `hoursInCycle` + # @return [Fixnum] + attr_accessor :hours_in_cycle + + # Time within the window to start the operations. It must be in format "HH:MM?, + # where HH : [00-23] and MM : [00-59] GMT. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @hours_in_cycle = args[:hours_in_cycle] if args.key?(:hours_in_cycle) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Time window specified for weekly operations. + class ResourcePolicyWeeklyCycle + include Google::Apis::Core::Hashable + + # Up to 7 intervals/windows, one for each day of the week. + # Corresponds to the JSON property `dayOfWeeks` + # @return [Array] + attr_accessor :day_of_weeks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day_of_weeks = args[:day_of_weeks] if args.key?(:day_of_weeks) + end + end + + # + class ResourcePolicyWeeklyCycleDayOfWeek + include Google::Apis::Core::Hashable + + # Allows to define schedule that runs specified day of the week. + # Corresponds to the JSON property `day` + # @return [String] + attr_accessor :day + + # [Output only] Duration of the time window, automatically chosen to be smallest + # possible in the given scenario. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Time within the window to start the operations. It must be in format "HH:MM?, + # where HH : [00-23] and MM : [00-59] GMT. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @duration = args[:duration] if args.key?(:duration) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + # Represents a Route resource. A route specifies how certain packets should be # handled by the network. Routes are associated with instances by tags and the # set of routes for a particular instance is called its routing table. @@ -18743,7 +19645,7 @@ module Google end # A security policy is comprised of one or more rules. It can also be associated - # with one or more 'targets'. Next available tag: 11 + # with one or more 'targets'. (== resource_for beta.securityPolicies ==) class SecurityPolicy include Google::Apis::Core::Hashable @@ -18781,6 +19683,24 @@ module Google # @return [String] attr_accessor :kind + # A fingerprint for the labels being applied to this security policy, which is + # essentially a hash of the labels set used for optimistic locking. The + # fingerprint is initially generated by Compute Engine and changes after every + # request to modify or update labels. You must always provide an up-to-date + # fingerprint hash in order to update or change labels. + # To see the latest fingerprint, make get() request to the security policy. + # Corresponds to the JSON property `labelFingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :label_fingerprint + + # Labels to apply to this security policy resource. These can be later modified + # by the setLabels method. Each label key/value must comply with RFC1035. Label + # values may be empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression `[a-z]([-a- @@ -18815,6 +19735,8 @@ module Google @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @rules = args[:rules] if args.key?(:rules) @self_link = args[:self_link] if args.key?(:self_link) @@ -19151,19 +20073,19 @@ module Google class ShieldedVmConfig include Google::Apis::Core::Hashable - # Defines whether the instance should have integrity monitoring enabled. + # Defines whether the instance has integrity monitoring enabled. # Corresponds to the JSON property `enableIntegrityMonitoring` # @return [Boolean] attr_accessor :enable_integrity_monitoring alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring - # Defines whether the instance should have secure boot enabled. + # Defines whether the instance has Secure Boot enabled. # Corresponds to the JSON property `enableSecureBoot` # @return [Boolean] attr_accessor :enable_secure_boot alias_method :enable_secure_boot?, :enable_secure_boot - # Defines whether the instance should have the TPM enabled. + # Defines whether the instance has the vTPM enabled. # Corresponds to the JSON property `enableVtpm` # @return [Boolean] attr_accessor :enable_vtpm @@ -19181,12 +20103,13 @@ module Google end end - # The policy describes how boot integrity measurements are evaluated. + # The policy describes the baseline against which VM instance boot integrity is + # measured. class ShieldedVmIntegrityPolicy include Google::Apis::Core::Hashable - # Triggers an auto relearn event: the integrity monitoring module copies - # existing guest measurements to the baseline. + # Updates the integrity policy baseline using the measurements from the VM + # instance's most recent boot. # Corresponds to the JSON property `updateAutoLearnPolicy` # @return [Boolean] attr_accessor :update_auto_learn_policy @@ -19238,6 +20161,13 @@ module Google class Snapshot include Google::Apis::Core::Hashable + # [Output Only] Set to true if snapshots are autoamtically by applying resource + # policy on the target disk. + # Corresponds to the JSON property `autoCreated` + # @return [Boolean] + attr_accessor :auto_created + alias_method :auto_created?, :auto_created + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -19353,12 +20283,18 @@ module Google # @return [String] attr_accessor :storage_bytes_status + # GCS bucket storage location of the snapshot (regional or multi-regional). + # Corresponds to the JSON property `storageLocations` + # @return [Array] + attr_accessor :storage_locations + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @auto_created = args[:auto_created] if args.key?(:auto_created) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @@ -19377,6 +20313,7 @@ module Google @status = args[:status] if args.key?(:status) @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes) @storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status) + @storage_locations = args[:storage_locations] if args.key?(:storage_locations) end end @@ -20597,6 +21534,26 @@ module Google # @return [String] attr_accessor :port_name + # Specifies how port is selected for health checking, can be one of following + # values: + # USE_FIXED_PORT: The port number in + # port + # is used for health checking. + # USE_NAMED_PORT: The + # portName + # is used for health checking. + # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each + # network endpoint is used for health checking. For other backends, the port or + # named port specified in the Backend Service is used for health checking. + # If not specified, TCP health check follows behavior specified in + # port + # and + # portName + # fields. + # Corresponds to the JSON property `portSpecification` + # @return [String] + attr_accessor :port_specification + # Specifies the type of proxy header to append before sending data to the # backend, either NONE or PROXY_V1. The default is NONE. # Corresponds to the JSON property `proxyHeader` @@ -20626,6 +21583,7 @@ module Google def update!(**args) @port = args[:port] if args.key?(:port) @port_name = args[:port_name] if args.key?(:port_name) + @port_specification = args[:port_specification] if args.key?(:port_specification) @proxy_header = args[:proxy_header] if args.key?(:proxy_header) @request = args[:request] if args.key?(:request) @response = args[:response] if args.key?(:response) @@ -24609,6 +25567,56 @@ module Google @labels = args[:labels] if args.key?(:labels) end end + + # + class ZoneSetPolicyRequest + include Google::Apis::Core::Hashable + + # Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use ' + # policy' to specify bindings. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # Flatten Policy to create a backward compatible wire-format. Deprecated. Use ' + # policy' to specify the etag. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` + # members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", + # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` + # **YAML Example** + # bindings: - members: - user:mike@example.com - group:admins@example.com - + # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner - members: - user:sean@example.com role: roles/viewer + # For a description of IAM and its features, see the [IAM developer's guide]( + # https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::ComputeBeta::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @policy = args[:policy] if args.key?(:policy) + end + end end end end diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index b5813879a..36c4eb1e6 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -622,6 +622,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DisksAddResourcePoliciesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DisksRemoveResourcePoliciesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DisksResizeRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -778,6 +790,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GlobalSetPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GuestOsFeature class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1870,6 +1888,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NodeGroupsListNodes + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class NodeGroupsScopedList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2218,6 +2254,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionDisksAddResourcePoliciesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegionDisksRemoveResourcePoliciesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RegionDisksResizeRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2374,6 +2422,114 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ResourcePoliciesList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePoliciesScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyBackupSchedulePolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyBackupSchedulePolicyRetentionPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyBackupSchedulePolicySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyBackupSchedulePolicySnapshotProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyDailyCycle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyHourlyCycle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyWeeklyCycle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyWeeklyCycleDayOfWeek + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Route class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3418,6 +3574,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ZoneSetPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AcceleratorConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4338,6 +4500,7 @@ module Google property :options, as: 'options' property :region, as: 'region' collection :replica_zones, as: 'replicaZones' + collection :resource_policies, as: 'resourcePolicies' property :self_link, as: 'selfLink' property :size_gb, :numeric_string => true, as: 'sizeGb' property :source_image, as: 'sourceImage' @@ -4548,6 +4711,20 @@ module Google end end + class DisksAddResourcePoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies' + end + end + + class DisksRemoveResourcePoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies' + end + end + class DisksResizeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4827,6 +5004,17 @@ module Google end end + class GlobalSetPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bindings, as: 'bindings', class: Google::Apis::ComputeBeta::Binding, decorator: Google::Apis::ComputeBeta::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :policy, as: 'policy', class: Google::Apis::ComputeBeta::Policy, decorator: Google::Apis::ComputeBeta::Policy::Representation + + end + end + class GuestOsFeature # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6787,6 +6975,7 @@ module Google collection :nodes, as: 'nodes', class: Google::Apis::ComputeBeta::NodeGroupNode, decorator: Google::Apis::ComputeBeta::NodeGroupNode::Representation property :self_link, as: 'selfLink' + property :size, as: 'size' property :status, as: 'status' property :zone, as: 'zone' end @@ -6880,6 +7069,38 @@ module Google end end + class NodeGroupsListNodes + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeBeta::NodeGroupNode, decorator: Google::Apis::ComputeBeta::NodeGroupNode::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NodeGroupsListNodes::Warning, decorator: Google::Apis::ComputeBeta::NodeGroupsListNodes::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::NodeGroupsListNodes::Warning::Datum, decorator: Google::Apis::ComputeBeta::NodeGroupsListNodes::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class NodeGroupsScopedList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7509,6 +7730,20 @@ module Google end end + class RegionDisksAddResourcePoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies' + end + end + + class RegionDisksRemoveResourcePoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies' + end + end + class RegionDisksResizeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7748,6 +7983,190 @@ module Google end end + class ResourcePoliciesList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeBeta::ResourcePolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicy::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ResourcePoliciesList::Warning, decorator: Google::Apis::ComputeBeta::ResourcePoliciesList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::ResourcePoliciesList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ResourcePoliciesList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class ResourcePoliciesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies', class: Google::Apis::ComputeBeta::ResourcePolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicy::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ResourcePoliciesScopedList::Warning, decorator: Google::Apis::ComputeBeta::ResourcePoliciesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::ResourcePoliciesScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ResourcePoliciesScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class ResourcePolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :backup_schedule_policy, as: 'backupSchedulePolicy', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy::Representation + + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :region, as: 'region' + property :self_link, as: 'selfLink' + end + end + + class ResourcePolicyAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeBeta::ResourcePoliciesScopedList, decorator: Google::Apis::ComputeBeta::ResourcePoliciesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ResourcePolicyAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::ResourcePolicyAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::ResourcePolicyAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ResourcePolicyAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class ResourcePolicyBackupSchedulePolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :retention_policy, as: 'retentionPolicy', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy::Representation + + property :schedule, as: 'schedule', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule::Representation + + property :snapshot_properties, as: 'snapshotProperties', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties::Representation + + end + end + + class ResourcePolicyBackupSchedulePolicyRetentionPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_retention_days, as: 'maxRetentionDays' + end + end + + class ResourcePolicyBackupSchedulePolicySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :daily_schedule, as: 'dailySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyDailyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyDailyCycle::Representation + + property :hourly_schedule, as: 'hourlySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle::Representation + + property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle::Representation + + end + end + + class ResourcePolicyBackupSchedulePolicySnapshotProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :guest_flush, as: 'guestFlush' + hash :labels, as: 'labels' + collection :storage_locations, as: 'storageLocations' + end + end + + class ResourcePolicyDailyCycle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :days_in_cycle, as: 'daysInCycle' + property :duration, as: 'duration' + property :start_time, as: 'startTime' + end + end + + class ResourcePolicyHourlyCycle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, as: 'duration' + property :hours_in_cycle, as: 'hoursInCycle' + property :start_time, as: 'startTime' + end + end + + class ResourcePolicyWeeklyCycle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :day_of_weeks, as: 'dayOfWeeks', class: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycleDayOfWeek, decorator: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycleDayOfWeek::Representation + + end + end + + class ResourcePolicyWeeklyCycleDayOfWeek + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :duration, as: 'duration' + property :start_time, as: 'startTime' + end + end + class Route # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8099,6 +8518,8 @@ module Google property :fingerprint, :base64 => true, as: 'fingerprint' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' + property :label_fingerprint, :base64 => true, as: 'labelFingerprint' + hash :labels, as: 'labels' property :name, as: 'name' collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::SecurityPolicyRule, decorator: Google::Apis::ComputeBeta::SecurityPolicyRule::Representation @@ -8222,6 +8643,7 @@ module Google class Snapshot # @private class Representation < Google::Apis::Core::JsonRepresentation + property :auto_created, as: 'autoCreated' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' @@ -8242,6 +8664,7 @@ module Google property :status, as: 'status' property :storage_bytes, :numeric_string => true, as: 'storageBytes' property :storage_bytes_status, as: 'storageBytesStatus' + collection :storage_locations, as: 'storageLocations' end end @@ -8555,6 +8978,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :port, as: 'port' property :port_name, as: 'portName' + property :port_specification, as: 'portSpecification' property :proxy_header, as: 'proxyHeader' property :request, as: 'request' property :response, as: 'response' @@ -9600,6 +10024,17 @@ module Google hash :labels, as: 'labels' end end + + class ZoneSetPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bindings, as: 'bindings', class: Google::Apis::ComputeBeta::Binding, decorator: Google::Apis::ComputeBeta::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :policy, as: 'policy', class: Google::Apis::ComputeBeta::Policy, decorator: Google::Apis::ComputeBeta::Policy::Representation + + end + end end end end diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index fbe969f44..1000a75ff 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -1060,7 +1060,7 @@ module Google execute_or_queue_command(command, &block) end - # Adds the given Signed URL Key to the backend bucket. + # Adds a key for validating requests with signed URLs for this backend bucket. # @param [String] project # Project ID for this request. # @param [String] backend_bucket @@ -1160,7 +1160,7 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the given Signed URL Key from the backend bucket. + # Deletes a key for validating requests with signed URLs for this backend bucket. # @param [String] project # Project ID for this request. # @param [String] backend_bucket @@ -1475,7 +1475,7 @@ module Google execute_or_queue_command(command, &block) end - # Adds the given Signed URL Key to the specified backend service. + # Adds a key for validating requests with signed URLs for this backend service. # @param [String] project # Project ID for this request. # @param [String] backend_service @@ -1647,7 +1647,8 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the given Signed URL Key from the specified backend service. + # Deletes a key for validating requests with signed URLs for this backend + # service. # @param [String] project # Project ID for this request. # @param [String] backend_service @@ -2282,6 +2283,61 @@ module Google execute_or_queue_command(command, &block) end + # Adds existing resource policies to a disk. You can only add one policy which + # will be applied to this disk for scheduling snapshot creation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest] disks_add_resource_policies_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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 add_disk_resource_policies(project, zone, disk, disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/addResourcePolicies', options) + command.request_representation = Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest::Representation + command.request_object = disks_add_resource_policies_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['disk'] = disk unless disk.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of persistent disks. # @param [String] project # Project ID for this request. @@ -2502,6 +2558,46 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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_disk_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/disks/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates a persistent disk in the specified project using the data in the # request. You can create a disk with a sourceImage, a sourceSnapshot, or create # an empty 500 GB data disk by omitting all properties. You can also create a @@ -2633,6 +2729,60 @@ module Google execute_or_queue_command(command, &block) end + # Removes resource policies from a disk. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeBeta::DisksRemoveResourcePoliciesRequest] disks_remove_resource_policies_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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 remove_disk_resource_policies(project, zone, disk, disks_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/removeResourcePolicies', options) + command.request_representation = Google::Apis::ComputeBeta::DisksRemoveResourcePoliciesRequest::Representation + command.request_object = disks_remove_resource_policies_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['disk'] = disk unless disk.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Resizes the specified persistent disk. You can only increase the size of the # disk. # @param [String] project @@ -2688,6 +2838,49 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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 set_disk_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/disks/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation + command.request_object = zone_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets the labels on a disk. To learn more about labels, read the Labeling # Resources documentation. # @param [String] project @@ -5630,6 +5823,43 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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_image_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/images/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates an image in the specified project using the data included in the # request. # @param [String] project @@ -5758,6 +5988,46 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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 set_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/images/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation + command.request_object = global_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets the labels on an image. To learn more about labels, read the Labeling # Resources documentation. # @param [String] project @@ -6275,9 +6545,39 @@ module Google # @param [String] instance_group_manager # The name of the managed instance group. # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7503,6 +7803,43 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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_instance_template_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/instanceTemplates/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates an instance template in the specified project using the data that is # included in the request. If you are creating a new template to update an # existing instance group, your new instance template must use the same network @@ -7626,6 +7963,46 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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 set_instance_template_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation + command.request_object = global_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. @@ -8057,6 +8434,46 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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_instance_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/instances/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns the specified instance's serial port output. # @param [String] project # Project ID for this request. @@ -8482,6 +8899,49 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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 set_instance_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation + command.request_object = zone_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets labels on an instance. To learn more about labels, read the Labeling # Resources documentation. # @param [String] project @@ -8866,8 +9326,9 @@ module Google execute_or_queue_command(command, &block) end - # Sets the Shielded VM integrity policy for an instance. This method supports - # PATCH semantics and uses the JSON merge patch format and processing rules. + # Sets the Shielded VM integrity policy for a VM instance. You can only use this + # method on a running VM instance. This method supports PATCH semantics and uses + # the JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] zone @@ -9334,8 +9795,9 @@ module Google execute_or_queue_command(command, &block) end - # Updates the Shielded VM config for an instance. This method supports PATCH - # semantics and uses the JSON merge patch format and processing rules. + # Updates the Shielded VM config for a VM instance. You can only use this method + # on a stopped VM instance. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] zone @@ -11738,7 +12200,8 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an aggregated list of node groups. + # Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes + # for more details about each group. # @param [String] project # Project ID for this request. # @param [String] filter @@ -11915,7 +12378,8 @@ module Google end # Returns the specified NodeGroup. Get a list of available NodeGroups by making - # a list() request. + # a list() request. Note: the "nodes" field should not be used. Use nodeGroups. + # listNodes instead. # @param [String] project # Project ID for this request. # @param [String] zone @@ -11954,6 +12418,46 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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_node_group_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates a NodeGroup resource in the specified project using the data included # in the request. # @param [String] project @@ -12009,7 +12513,8 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves a list of node groups available to the specified project. + # Retrieves a list of node groups available to the specified project. Note: use + # nodeGroups.listNodes for more details about each group. # @param [String] project # Project ID for this request. # @param [String] zone @@ -12083,6 +12588,126 @@ module Google execute_or_queue_command(command, &block) end + # Lists nodes in the node group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource whose nodes you want to list. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::NodeGroupsListNodes] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NodeGroupsListNodes] + # + # @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_node_group_nodes(project, zone, node_group, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes', options) + command.response_representation = Google::Apis::ComputeBeta::NodeGroupsListNodes::Representation + command.response_class = Google::Apis::ComputeBeta::NodeGroupsListNodes + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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 set_node_group_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation + command.request_object = zone_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Updates the node template of the node group. # @param [String] project # Project ID for this request. @@ -12137,6 +12762,48 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @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 test_node_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of node templates. # @param [String] project # Project ID for this request. @@ -12299,6 +12966,46 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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_node_template_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates a NodeTemplate resource in the specified project using the data # included in the request. # @param [String] project @@ -12425,6 +13132,91 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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 set_node_template_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation + command.request_object = region_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @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 test_node_template_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of node types. # @param [String] project # Project ID for this request. @@ -12870,9 +13662,39 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12912,9 +13734,39 @@ module Google # Project ID for this request. # @param [Google::Apis::ComputeBeta::ProjectsListXpnHostsRequest] projects_list_xpn_hosts_request_object # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14333,6 +15185,61 @@ module Google execute_or_queue_command(command, &block) end + # Adds existing resource policies to a regional disk. You can only add one + # policy which will be applied to this disk for scheduling snapshot creation. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeBeta::RegionDisksAddResourcePoliciesRequest] region_disks_add_resource_policies_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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 add_region_disk_resource_policies(project, region, disk, region_disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/addResourcePolicies', options) + command.request_representation = Google::Apis::ComputeBeta::RegionDisksAddResourcePoliciesRequest::Representation + command.request_object = region_disks_add_resource_policies_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['disk'] = disk unless disk.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates a snapshot of this regional disk. # @param [String] project # Project ID for this request. @@ -14609,6 +15516,60 @@ module Google execute_or_queue_command(command, &block) end + # Removes resource policies from a regional disk. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeBeta::RegionDisksRemoveResourcePoliciesRequest] region_disks_remove_resource_policies_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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 remove_region_disk_resource_policies(project, region, disk, region_disks_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/removeResourcePolicies', options) + command.request_representation = Google::Apis::ComputeBeta::RegionDisksRemoveResourcePoliciesRequest::Representation + command.request_object = region_disks_remove_resource_policies_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['disk'] = disk unless disk.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Resizes the specified regional persistent disk. # @param [String] project # The project ID for this request. @@ -15121,9 +16082,39 @@ module Google # @param [String] instance_group_manager # The name of the managed instance group. # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16160,6 +17151,335 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of resource policies. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::ResourcePolicyAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::ResourcePolicyAggregatedList] + # + # @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 aggregated_resource_policy_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/resourcePolicies', options) + command.response_representation = Google::Apis::ComputeBeta::ResourcePolicyAggregatedList::Representation + command.response_class = Google::Apis::ComputeBeta::ResourcePolicyAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified resource policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] resource_policy + # Name of the resource policy to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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 delete_resource_policy(project, region, resource_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resourcePolicy'] = resource_policy unless resource_policy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves all information of the specified resource policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] resource_policy + # Name of the resource policy to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::ResourcePolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::ResourcePolicy] + # + # @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_resource_policy(project, region, resource_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) + command.response_representation = Google::Apis::ComputeBeta::ResourcePolicy::Representation + command.response_class = Google::Apis::ComputeBeta::ResourcePolicy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resourcePolicy'] = resource_policy unless resource_policy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new resource policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [Google::Apis::ComputeBeta::ResourcePolicy] resource_policy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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 insert_resource_policy(project, region, resource_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies', options) + command.request_representation = Google::Apis::ComputeBeta::ResourcePolicy::Representation + command.request_object = resource_policy_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # A list all the resource policies that have been configured for the specified + # project in specified region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::ResourcePoliciesList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::ResourcePoliciesList] + # + # @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_resource_policies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies', options) + command.response_representation = Google::Apis::ComputeBeta::ResourcePoliciesList::Representation + command.response_class = Google::Apis::ComputeBeta::ResourcePoliciesList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @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 test_resource_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of routers. # @param [String] project # Project ID for this request. @@ -17412,6 +18732,46 @@ module Google execute_or_queue_command(command, &block) end + # Sets the labels on a security policy. To learn more about labels, read the + # Labeling Resources documentation. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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 set_security_policy_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/securityPolicies/{resource}/setLabels', options) + command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation + command.request_object = global_set_labels_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. @@ -17540,6 +18900,43 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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_snapshot_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/snapshots/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the list of Snapshot resources contained within the specified # project. # @param [String] project @@ -17612,6 +19009,46 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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 set_snapshot_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation + command.request_object = global_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets the labels on a snapshot. To learn more about labels, read the Labeling # Resources documentation. # @param [String] project diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 8426c7099..f14805f6c 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180730' # 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/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 3c119ca99..bd51fd85a 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -476,6 +476,17 @@ module Google # @return [String] attr_accessor :nat_ip + # This signifies the networking tier used for configuring this access + # configuration and can only take the following values: PREMIUM, STANDARD. + # If an AccessConfig is specified without a valid external IP address, an + # ephemeral IP will be created with this networkTier. + # If an AccessConfig with a valid external IP address is specified, it must + # match that of the networkTier associated with the Address resource owning that + # IP. + # Corresponds to the JSON property `networkTier` + # @return [String] + attr_accessor :network_tier + # The DNS domain name for the public PTR record. This field can only be set when # the set_public_ptr field is enabled. # Corresponds to the JSON property `publicPtrDomainName` @@ -503,6 +514,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @nat_ip = args[:nat_ip] if args.key?(:nat_ip) + @network_tier = args[:network_tier] if args.key?(:network_tier) @public_ptr_domain_name = args[:public_ptr_domain_name] if args.key?(:public_ptr_domain_name) @set_public_ptr = args[:set_public_ptr] if args.key?(:set_public_ptr) @type = args[:type] if args.key?(:type) @@ -564,6 +576,13 @@ module Google # @return [String] attr_accessor :name + # This signifies the networking tier used for configuring this Address and can + # only take the following values: PREMIUM , STANDARD. + # If this field is not specified, it is assumed to be PREMIUM. + # Corresponds to the JSON property `networkTier` + # @return [String] + attr_accessor :network_tier + # [Output Only] URL of the region where the regional address resides. This field # is not applicable to global addresses. You must specify this field as part of # the HTTP request URL. You cannot set this field in the request body. @@ -611,6 +630,7 @@ module Google @ip_version = args[:ip_version] if args.key?(:ip_version) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @network_tier = args[:network_tier] if args.key?(:network_tier) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @status = args[:status] if args.key?(:status) @@ -1144,11 +1164,11 @@ module Google # The source image to create this disk. When creating a new instance, one of # initializeParams.sourceImage or disks.source is required except for local SSD. # To create a disk with one of the public operating system images, specify the - # image by its family name. For example, specify family/debian-8 to use the - # latest Debian 8 image: - # projects/debian-cloud/global/images/family/debian-8 + # image by its family name. For example, specify family/debian-9 to use the + # latest Debian 9 image: + # projects/debian-cloud/global/images/family/debian-9 # Alternatively, use a specific version of a public operating system image: - # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD + # projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD # To create a disk with a custom image that you created, specify the image name # in the following format: # global/images/my-custom-image @@ -1960,18 +1980,18 @@ module Google class BackendBucketCdnPolicy include Google::Apis::Core::Hashable - # Number of seconds up to which the response to a signed URL request will be - # cached in the CDN. After this time period, the Signed URL will be revalidated - # before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN - # will internally act as though all responses from this bucket had a ?Cache- - # Control: public, max-age=[TTL]? header, regardless of any existing Cache- - # Control header. The actual headers served in responses will not be altered. + # Maximum number of seconds the response to a signed URL request will be + # considered fresh. After this time period, the response will be revalidated + # before being served. Defaults to 1hr (3600s). When serving responses to signed + # URL requests, Cloud CDN will internally behave as though all responses from + # this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless + # of any existing Cache-Control header. The actual headers served in responses + # will not be altered. # Corresponds to the JSON property `signedUrlCacheMaxAgeSec` # @return [Fixnum] attr_accessor :signed_url_cache_max_age_sec - # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL - # on this backend bucket. + # [Output Only] Names of the keys for signing request URLs. # Corresponds to the JSON property `signedUrlKeyNames` # @return [Array] attr_accessor :signed_url_key_names @@ -2416,18 +2436,18 @@ module Google # @return [Google::Apis::ComputeV1::CacheKeyPolicy] attr_accessor :cache_key_policy - # Number of seconds up to which the response to a signed URL request will be - # cached in the CDN. After this time period, the Signed URL will be revalidated - # before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN - # will internally act as though all responses from this backend had a ?Cache- - # Control: public, max-age=[TTL]? header, regardless of any existing Cache- - # Control header. The actual headers served in responses will not be altered. + # Maximum number of seconds the response to a signed URL request will be + # considered fresh. After this time period, the response will be revalidated + # before being served. Defaults to 1hr (3600s). When serving responses to signed + # URL requests, Cloud CDN will internally behave as though all responses from + # this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless + # of any existing Cache-Control header. The actual headers served in responses + # will not be altered. # Corresponds to the JSON property `signedUrlCacheMaxAgeSec` # @return [Fixnum] attr_accessor :signed_url_cache_max_age_sec - # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL - # on this backend service. + # [Output Only] Names of the keys for signing request URLs. # Corresponds to the JSON property `signedUrlKeyNames` # @return [Array] attr_accessor :signed_url_key_names @@ -3436,7 +3456,7 @@ module Google # @return [Array] attr_accessor :license_codes - # Any applicable publicly visible licenses. + # A list of publicly visible licenses. Reserved for Google's use. # Corresponds to the JSON property `licenses` # @return [Array] attr_accessor :licenses @@ -3487,11 +3507,11 @@ module Google # The source image used to create this disk. If the source image is deleted, # this field will not be set. # To create a disk with one of the public operating system images, specify the - # image by its family name. For example, specify family/debian-8 to use the - # latest Debian 8 image: - # projects/debian-cloud/global/images/family/debian-8 + # image by its family name. For example, specify family/debian-9 to use the + # latest Debian 9 image: + # projects/debian-cloud/global/images/family/debian-9 # Alternatively, use a specific version of a public operating system image: - # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD + # projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD # To create a disk with a custom image that you created, specify the image name # in the following format: # global/images/my-custom-image @@ -4951,6 +4971,16 @@ module Google # @return [String] attr_accessor :network + # This signifies the networking tier used for configuring this load balancer and + # can only take the following values: PREMIUM , STANDARD. + # For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For + # GlobalForwardingRule, the valid value is PREMIUM. + # If this field is not specified, it is assumed to be PREMIUM. If IPAddress is + # specified, this value must be equal to the networkTier of the Address. + # Corresponds to the JSON property `networkTier` + # @return [String] + attr_accessor :network_tier + # This field is used along with the target field for TargetHttpProxy, # TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, # TargetInstance. @@ -5029,6 +5059,7 @@ module Google @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) + @network_tier = args[:network_tier] if args.key?(:network_tier) @port_range = args[:port_range] if args.key?(:port_range) @ports = args[:ports] if args.key?(:ports) @region = args[:region] if args.key?(:region) @@ -11866,6 +11897,1501 @@ module Google end end + # A NodeGroup resource. + class NodeGroup + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] The type of the resource. Always compute#nodeGroup for node + # group. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. The resource name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last character, which cannot be a + # dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The URL of the node template to which this node group belongs. + # Corresponds to the JSON property `nodeTemplate` + # @return [String] + attr_accessor :node_template + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] The total number of nodes in the node group. + # Corresponds to the JSON property `size` + # @return [Fixnum] + attr_accessor :size + + # + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output Only] The name of the zone where the node group resides, such as us- + # central1-a. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @node_template = args[:node_template] if args.key?(:node_template) + @self_link = args[:self_link] if args.key?(:self_link) + @size = args[:size] if args.key?(:size) + @status = args[:status] if args.key?(:status) + @zone = args[:zone] if args.key?(:zone) + end + end + + # + class NodeGroupAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeGroupsScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeGroupAggregatedList for + # aggregated lists of node groups. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::NodeGroupAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Contains a list of nodeGroups. + class NodeGroupList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeGroup resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeGroupList for lists of node + # groups. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::NodeGroupList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class NodeGroupNode + include Google::Apis::Core::Hashable + + # Instances scheduled on this node. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + # The name of the node. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The type of this node. + # Corresponds to the JSON property `nodeType` + # @return [String] + attr_accessor :node_type + + # + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] if args.key?(:instances) + @name = args[:name] if args.key?(:name) + @node_type = args[:node_type] if args.key?(:node_type) + @status = args[:status] if args.key?(:status) + end + end + + # + class NodeGroupsAddNodesRequest + include Google::Apis::Core::Hashable + + # Count of additional nodes to be added to the node group. + # Corresponds to the JSON property `additionalNodeCount` + # @return [Fixnum] + attr_accessor :additional_node_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @additional_node_count = args[:additional_node_count] if args.key?(:additional_node_count) + end + end + + # + class NodeGroupsDeleteNodesRequest + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `nodes` + # @return [Array] + attr_accessor :nodes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @nodes = args[:nodes] if args.key?(:nodes) + end + end + + # + class NodeGroupsListNodes + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of Node resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] The resource type, which is always compute.nodeGroupsListNodes + # for the list of nodes in the specified node group. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::NodeGroupsListNodes::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class NodeGroupsScopedList + include Google::Apis::Core::Hashable + + # [Output Only] A list of node groups contained in this scope. + # Corresponds to the JSON property `nodeGroups` + # @return [Array] + attr_accessor :node_groups + + # [Output Only] An informational warning that appears when the nodeGroup list is + # empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::NodeGroupsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_groups = args[:node_groups] if args.key?(:node_groups) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] An informational warning that appears when the nodeGroup list is + # empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class NodeGroupsSetNodeTemplateRequest + include Google::Apis::Core::Hashable + + # Full or partial URL of the node template resource to be updated for this node + # group. + # Corresponds to the JSON property `nodeTemplate` + # @return [String] + attr_accessor :node_template + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_template = args[:node_template] if args.key?(:node_template) + end + end + + # A Node Template resource. + class NodeTemplate + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] The type of the resource. Always compute#nodeTemplate for node + # templates. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. The resource name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last charaicter, which cannot be + # a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Labels to use for node affinity, which will be used in instance scheduling. + # Corresponds to the JSON property `nodeAffinityLabels` + # @return [Hash] + attr_accessor :node_affinity_labels + + # The node type to use for nodes group that are created from this template. + # Corresponds to the JSON property `nodeType` + # @return [String] + attr_accessor :node_type + + # The flexible properties of the desired node type. Node groups that use this + # node template will create nodes of a type that matches these properties. + # This field is mutually exclusive with the node_type property; you can only + # define one or the other, but not both. + # Corresponds to the JSON property `nodeTypeFlexibility` + # @return [Google::Apis::ComputeV1::NodeTemplateNodeTypeFlexibility] + attr_accessor :node_type_flexibility + + # [Output Only] The name of the region where the node template resides, such as + # us-central1. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] The status of the node template. One of the following values: + # CREATING, READY, and DELETING. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output Only] An optional, human-readable explanation of the status. + # Corresponds to the JSON property `statusMessage` + # @return [String] + attr_accessor :status_message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @node_affinity_labels = args[:node_affinity_labels] if args.key?(:node_affinity_labels) + @node_type = args[:node_type] if args.key?(:node_type) + @node_type_flexibility = args[:node_type_flexibility] if args.key?(:node_type_flexibility) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + end + end + + # + class NodeTemplateAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeTemplatesScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeTemplateAggregatedList for + # aggregated lists of node templates. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::NodeTemplateAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Contains a list of node templates. + class NodeTemplateList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeTemplate resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeTemplateList for lists of + # node templates. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::NodeTemplateList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class NodeTemplateNodeTypeFlexibility + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `cpus` + # @return [String] + attr_accessor :cpus + + # + # Corresponds to the JSON property `localSsd` + # @return [String] + attr_accessor :local_ssd + + # + # Corresponds to the JSON property `memory` + # @return [String] + attr_accessor :memory + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpus = args[:cpus] if args.key?(:cpus) + @local_ssd = args[:local_ssd] if args.key?(:local_ssd) + @memory = args[:memory] if args.key?(:memory) + end + end + + # + class NodeTemplatesScopedList + include Google::Apis::Core::Hashable + + # [Output Only] A list of node templates contained in this scope. + # Corresponds to the JSON property `nodeTemplates` + # @return [Array] + attr_accessor :node_templates + + # [Output Only] An informational warning that appears when the node templates + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::NodeTemplatesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_templates = args[:node_templates] if args.key?(:node_templates) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] An informational warning that appears when the node templates + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # A Node Type resource. + class NodeType + include Google::Apis::Core::Hashable + + # [Output Only] The CPU platform used by this node type. + # Corresponds to the JSON property `cpuPlatform` + # @return [String] + attr_accessor :cpu_platform + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # Deprecation status for a public resource. + # Corresponds to the JSON property `deprecated` + # @return [Google::Apis::ComputeV1::DeprecationStatus] + attr_accessor :deprecated + + # [Output Only] An optional textual description of the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The number of virtual CPUs that are available to the node type. + # Corresponds to the JSON property `guestCpus` + # @return [Fixnum] + attr_accessor :guest_cpus + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] The type of the resource. Always compute#nodeType for node types. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] Local SSD available to the node type, defined in GB. + # Corresponds to the JSON property `localSsdGb` + # @return [Fixnum] + attr_accessor :local_ssd_gb + + # [Output Only] The amount of physical memory available to the node type, + # defined in MB. + # Corresponds to the JSON property `memoryMb` + # @return [Fixnum] + attr_accessor :memory_mb + + # [Output Only] Name of the resource. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] The name of the zone where the node type resides, such as us- + # central1-a. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @local_ssd_gb = args[:local_ssd_gb] if args.key?(:local_ssd_gb) + @memory_mb = args[:memory_mb] if args.key?(:memory_mb) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @zone = args[:zone] if args.key?(:zone) + end + end + + # + class NodeTypeAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeTypesScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeTypeAggregatedList for + # aggregated lists of node types. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::NodeTypeAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Contains a list of node types. + class NodeTypeList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeType resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeTypeList for lists of node + # types. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::NodeTypeList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class NodeTypesScopedList + include Google::Apis::Core::Hashable + + # [Output Only] A list of node types contained in this scope. + # Corresponds to the JSON property `nodeTypes` + # @return [Array] + attr_accessor :node_types + + # [Output Only] An informational warning that appears when the node types list + # is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::NodeTypesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_types = args[:node_types] if args.key?(:node_types) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] An informational warning that appears when the node types list + # is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # An Operation resource, used to manage asynchronous API requests. (== # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) # (== resource_for v1.regionOperations ==) (== resource_for beta. @@ -12583,6 +14109,13 @@ module Google # @return [String] attr_accessor :creation_timestamp + # This signifies the default network tier used for configuring resources of the + # project and can only take the following values: PREMIUM, STANDARD. Initially + # the default network tier is PREMIUM. + # Corresponds to the JSON property `defaultNetworkTier` + # @return [String] + attr_accessor :default_network_tier + # [Output Only] Default service account used by VMs running in this project. # Corresponds to the JSON property `defaultServiceAccount` # @return [String] @@ -12646,6 +14179,7 @@ module Google def update!(**args) @common_instance_metadata = args[:common_instance_metadata] if args.key?(:common_instance_metadata) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @default_network_tier = args[:default_network_tier] if args.key?(:default_network_tier) @default_service_account = args[:default_service_account] if args.key?(:default_service_account) @description = args[:description] if args.key?(:description) @enabled_features = args[:enabled_features] if args.key?(:enabled_features) @@ -12755,6 +14289,25 @@ module Google end end + # + class ProjectsSetDefaultNetworkTierRequest + include Google::Apis::Core::Hashable + + # Default network tier to be set. + # Corresponds to the JSON property `networkTier` + # @return [String] + attr_accessor :network_tier + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @network_tier = args[:network_tier] if args.key?(:network_tier) + end + end + # A quotas entry. class Quota include Google::Apis::Core::Hashable @@ -15072,6 +16625,11 @@ module Google attr_accessor :automatic_restart alias_method :automatic_restart?, :automatic_restart + # A set of node affinity and anti-affinity. + # Corresponds to the JSON property `nodeAffinities` + # @return [Array] + attr_accessor :node_affinities + # Defines the maintenance behavior for this instance. For standard instances, # the default behavior is MIGRATE. For preemptible instances, the default and # only possible behavior is TERMINATE. For more information, see Setting @@ -15095,11 +16653,44 @@ module Google # Update properties of this object def update!(**args) @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart) + @node_affinities = args[:node_affinities] if args.key?(:node_affinities) @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance) @preemptible = args[:preemptible] if args.key?(:preemptible) end end + # Node Affinity: the configuration of desired nodes onto which this Instance + # could be scheduled. + class SchedulingNodeAffinity + include Google::Apis::Core::Hashable + + # Corresponds to the label key of Node resource. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Defines the operation of node selection. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + + # Corresponds to the label values of Node resource. + # 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) + @key = args[:key] if args.key?(:key) + @operator = args[:operator] if args.key?(:operator) + @values = args[:values] if args.key?(:values) + end + end + # An instance's serial console output. class SerialPortOutput include Google::Apis::Core::Hashable @@ -19386,6 +20977,189 @@ module Google end end + # Subnetwork which the current user has compute.subnetworks.use permission on. + class UsableSubnetwork + include Google::Apis::Core::Hashable + + # The range of internal addresses that are owned by this subnetwork. + # Corresponds to the JSON property `ipCidrRange` + # @return [String] + attr_accessor :ip_cidr_range + + # Network URL. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # Secondary IP ranges. + # Corresponds to the JSON property `secondaryIpRanges` + # @return [Array] + attr_accessor :secondary_ip_ranges + + # Subnetwork URL. + # Corresponds to the JSON property `subnetwork` + # @return [String] + attr_accessor :subnetwork + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @network = args[:network] if args.key?(:network) + @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) + end + end + + # Secondary IP range of a usable subnetwork. + class UsableSubnetworkSecondaryRange + include Google::Apis::Core::Hashable + + # The range of IP addresses belonging to this subnetwork secondary range. + # Corresponds to the JSON property `ipCidrRange` + # @return [String] + attr_accessor :ip_cidr_range + + # The name associated with this subnetwork secondary range, used when adding an + # alias IP range to a VM instance. The name must be 1-63 characters long, and + # comply with RFC1035. The name must be unique within the subnetwork. + # Corresponds to the JSON property `rangeName` + # @return [String] + attr_accessor :range_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @range_name = args[:range_name] if args.key?(:range_name) + end + end + + # + class UsableSubnetworksAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output] A list of usable subnetwork URLs. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList + # for aggregated lists of usable subnetworks. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::UsableSubnetworksAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # The location in Cloud Storage and naming method of the daily usage report. # Contains bucket_name and report_name prefix. class UsageExportLocation diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index fc73cb196..4e7a09f2d 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -1570,6 +1570,234 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NodeGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupNode + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupsAddNodesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupsDeleteNodesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupsListNodes + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupsScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupsSetNodeTemplateRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTemplate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTemplateAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTemplateList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTemplateNodeTypeFlexibility + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTemplatesScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTypeAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTypeList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTypesScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1696,6 +1924,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ProjectsSetDefaultNetworkTierRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Quota class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2050,6 +2284,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SchedulingNodeAffinity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SerialPortOutput class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2686,6 +2926,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UsableSubnetwork + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UsableSubnetworkSecondaryRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UsableSubnetworksAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class UsageExportLocation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2928,6 +3198,7 @@ module Google property :kind, as: 'kind' property :name, as: 'name' property :nat_ip, as: 'natIP' + property :network_tier, as: 'networkTier' property :public_ptr_domain_name, as: 'publicPtrDomainName' property :set_public_ptr, as: 'setPublicPtr' property :type, as: 'type' @@ -2945,6 +3216,7 @@ module Google property :ip_version, as: 'ipVersion' property :kind, as: 'kind' property :name, as: 'name' + property :network_tier, as: 'networkTier' property :region, as: 'region' property :self_link, as: 'selfLink' property :status, as: 'status' @@ -4002,6 +4274,7 @@ module Google property :load_balancing_scheme, as: 'loadBalancingScheme' property :name, as: 'name' property :network, as: 'network' + property :network_tier, as: 'networkTier' property :port_range, as: 'portRange' collection :ports, as: 'ports' property :region, as: 'region' @@ -5719,6 +5992,408 @@ module Google end end + class NodeGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :node_template, as: 'nodeTemplate' + property :self_link, as: 'selfLink' + property :size, as: 'size' + property :status, as: 'status' + property :zone, as: 'zone' + end + end + + class NodeGroupAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::NodeGroupsScopedList, decorator: Google::Apis::ComputeV1::NodeGroupsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::NodeGroupAggregatedList::Warning, decorator: Google::Apis::ComputeV1::NodeGroupAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::NodeGroupAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::NodeGroupAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class NodeGroupList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::NodeGroup, decorator: Google::Apis::ComputeV1::NodeGroup::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::NodeGroupList::Warning, decorator: Google::Apis::ComputeV1::NodeGroupList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::NodeGroupList::Warning::Datum, decorator: Google::Apis::ComputeV1::NodeGroupList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class NodeGroupNode + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances' + property :name, as: 'name' + property :node_type, as: 'nodeType' + property :status, as: 'status' + end + end + + class NodeGroupsAddNodesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :additional_node_count, as: 'additionalNodeCount' + end + end + + class NodeGroupsDeleteNodesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :nodes, as: 'nodes' + end + end + + class NodeGroupsListNodes + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::NodeGroupNode, decorator: Google::Apis::ComputeV1::NodeGroupNode::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::NodeGroupsListNodes::Warning, decorator: Google::Apis::ComputeV1::NodeGroupsListNodes::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::NodeGroupsListNodes::Warning::Datum, decorator: Google::Apis::ComputeV1::NodeGroupsListNodes::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class NodeGroupsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :node_groups, as: 'nodeGroups', class: Google::Apis::ComputeV1::NodeGroup, decorator: Google::Apis::ComputeV1::NodeGroup::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::NodeGroupsScopedList::Warning, decorator: Google::Apis::ComputeV1::NodeGroupsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::NodeGroupsScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::NodeGroupsScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class NodeGroupsSetNodeTemplateRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_template, as: 'nodeTemplate' + end + end + + class NodeTemplate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + hash :node_affinity_labels, as: 'nodeAffinityLabels' + property :node_type, as: 'nodeType' + property :node_type_flexibility, as: 'nodeTypeFlexibility', class: Google::Apis::ComputeV1::NodeTemplateNodeTypeFlexibility, decorator: Google::Apis::ComputeV1::NodeTemplateNodeTypeFlexibility::Representation + + property :region, as: 'region' + property :self_link, as: 'selfLink' + property :status, as: 'status' + property :status_message, as: 'statusMessage' + end + end + + class NodeTemplateAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::NodeTemplatesScopedList, decorator: Google::Apis::ComputeV1::NodeTemplatesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::NodeTemplateAggregatedList::Warning, decorator: Google::Apis::ComputeV1::NodeTemplateAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::NodeTemplateAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::NodeTemplateAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class NodeTemplateList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::NodeTemplate, decorator: Google::Apis::ComputeV1::NodeTemplate::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::NodeTemplateList::Warning, decorator: Google::Apis::ComputeV1::NodeTemplateList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::NodeTemplateList::Warning::Datum, decorator: Google::Apis::ComputeV1::NodeTemplateList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class NodeTemplateNodeTypeFlexibility + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cpus, as: 'cpus' + property :local_ssd, as: 'localSsd' + property :memory, as: 'memory' + end + end + + class NodeTemplatesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :node_templates, as: 'nodeTemplates', class: Google::Apis::ComputeV1::NodeTemplate, decorator: Google::Apis::ComputeV1::NodeTemplate::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::NodeTemplatesScopedList::Warning, decorator: Google::Apis::ComputeV1::NodeTemplatesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::NodeTemplatesScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::NodeTemplatesScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class NodeType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cpu_platform, as: 'cpuPlatform' + property :creation_timestamp, as: 'creationTimestamp' + property :deprecated, as: 'deprecated', class: Google::Apis::ComputeV1::DeprecationStatus, decorator: Google::Apis::ComputeV1::DeprecationStatus::Representation + + property :description, as: 'description' + property :guest_cpus, as: 'guestCpus' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :local_ssd_gb, as: 'localSsdGb' + property :memory_mb, as: 'memoryMb' + property :name, as: 'name' + property :self_link, as: 'selfLink' + property :zone, as: 'zone' + end + end + + class NodeTypeAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::NodeTypesScopedList, decorator: Google::Apis::ComputeV1::NodeTypesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::NodeTypeAggregatedList::Warning, decorator: Google::Apis::ComputeV1::NodeTypeAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::NodeTypeAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::NodeTypeAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class NodeTypeList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::NodeType, decorator: Google::Apis::ComputeV1::NodeType::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::NodeTypeList::Warning, decorator: Google::Apis::ComputeV1::NodeTypeList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::NodeTypeList::Warning::Datum, decorator: Google::Apis::ComputeV1::NodeTypeList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class NodeTypesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :node_types, as: 'nodeTypes', class: Google::Apis::ComputeV1::NodeType, decorator: Google::Apis::ComputeV1::NodeType::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::NodeTypesScopedList::Warning, decorator: Google::Apis::ComputeV1::NodeTypesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::NodeTypesScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::NodeTypesScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5902,6 +6577,7 @@ module Google property :common_instance_metadata, as: 'commonInstanceMetadata', class: Google::Apis::ComputeV1::Metadata, decorator: Google::Apis::ComputeV1::Metadata::Representation property :creation_timestamp, as: 'creationTimestamp' + property :default_network_tier, as: 'defaultNetworkTier' property :default_service_account, as: 'defaultServiceAccount' property :description, as: 'description' collection :enabled_features, as: 'enabledFeatures' @@ -5950,6 +6626,13 @@ module Google end end + class ProjectsSetDefaultNetworkTierRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :network_tier, as: 'networkTier' + end + end + class Quota # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6565,11 +7248,22 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :automatic_restart, as: 'automaticRestart' + collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeV1::SchedulingNodeAffinity, decorator: Google::Apis::ComputeV1::SchedulingNodeAffinity::Representation + property :on_host_maintenance, as: 'onHostMaintenance' property :preemptible, as: 'preemptible' end end + class SchedulingNodeAffinity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :operator, as: 'operator' + collection :values, as: 'values' + end + end + class SerialPortOutput # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7676,6 +8370,57 @@ module Google end end + class UsableSubnetwork + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip_cidr_range, as: 'ipCidrRange' + property :network, as: 'network' + collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ComputeV1::UsableSubnetworkSecondaryRange, decorator: Google::Apis::ComputeV1::UsableSubnetworkSecondaryRange::Representation + + property :subnetwork, as: 'subnetwork' + end + end + + class UsableSubnetworkSecondaryRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip_cidr_range, as: 'ipCidrRange' + property :range_name, as: 'rangeName' + end + end + + class UsableSubnetworksAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::UsableSubnetwork, decorator: Google::Apis::ComputeV1::UsableSubnetwork::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::UsableSubnetworksAggregatedList::Warning, decorator: Google::Apis::ComputeV1::UsableSubnetworksAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::UsableSubnetworksAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::UsableSubnetworksAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class UsageExportLocation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index a87edbc19..9a6a05e0f 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -921,7 +921,7 @@ module Google execute_or_queue_command(command, &block) end - # Adds the given Signed URL Key to the backend bucket. + # Adds a key for validating requests with signed URLs for this backend bucket. # @param [String] project # Project ID for this request. # @param [String] backend_bucket @@ -1021,7 +1021,7 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the given Signed URL Key from the backend bucket. + # Deletes a key for validating requests with signed URLs for this backend bucket. # @param [String] project # Project ID for this request. # @param [String] backend_bucket @@ -1336,7 +1336,7 @@ module Google execute_or_queue_command(command, &block) end - # Adds the given Signed URL Key to the specified backend service. + # Adds a key for validating requests with signed URLs for this backend service. # @param [String] project # Project ID for this request. # @param [String] backend_service @@ -1508,7 +1508,8 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the given Signed URL Key from the specified backend service. + # Deletes a key for validating requests with signed URLs for this backend + # service. # @param [String] project # Project ID for this request. # @param [String] backend_service @@ -5553,9 +5554,39 @@ module Google # @param [String] instance_group_manager # The name of the managed instance group. # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7839,6 +7870,45 @@ module Google execute_or_queue_command(command, &block) end + # Simulates a maintenance event on the instance. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name of the instance scoping this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 simulate_instance_maintenance_event(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Starts an instance that was stopped using the instances().stop method. For # more information, see Restart an instance. # @param [String] project @@ -9742,6 +9812,1012 @@ module Google execute_or_queue_command(command, &block) end + # Adds specified number of nodes to the node group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource to delete. + # @param [Google::Apis::ComputeV1::NodeGroupsAddNodesRequest] node_groups_add_nodes_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 add_node_group_nodes(project, zone, node_group, node_groups_add_nodes_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes', options) + command.request_representation = Google::Apis::ComputeV1::NodeGroupsAddNodesRequest::Representation + command.request_object = node_groups_add_nodes_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes + # for more details about each group. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::NodeGroupAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NodeGroupAggregatedList] + # + # @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 aggregated_node_group_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/nodeGroups', options) + command.response_representation = Google::Apis::ComputeV1::NodeGroupAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::NodeGroupAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified NodeGroup resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 delete_node_group(project, zone, node_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes specified nodes from the node group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource to delete. + # @param [Google::Apis::ComputeV1::NodeGroupsDeleteNodesRequest] node_groups_delete_nodes_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 delete_node_group_nodes(project, zone, node_group, node_groups_delete_nodes_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes', options) + command.request_representation = Google::Apis::ComputeV1::NodeGroupsDeleteNodesRequest::Representation + command.request_object = node_groups_delete_nodes_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified NodeGroup. Get a list of available NodeGroups by making + # a list() request. Note: the "nodes" field should not be used. Use nodeGroups. + # listNodes instead. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the node group to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::NodeGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NodeGroup] + # + # @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_node_group(project, zone, node_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) + command.response_representation = Google::Apis::ComputeV1::NodeGroup::Representation + command.response_class = Google::Apis::ComputeV1::NodeGroup + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a NodeGroup resource in the specified project using the data included + # in the request. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [Fixnum] initial_node_count + # Initial count of nodes in the node group. + # @param [Google::Apis::ComputeV1::NodeGroup] node_group_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 insert_node_group(project, zone, initial_node_count, node_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups', options) + command.request_representation = Google::Apis::ComputeV1::NodeGroup::Representation + command.request_object = node_group_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['initialNodeCount'] = initial_node_count unless initial_node_count.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of node groups available to the specified project. Note: use + # nodeGroups.listNodes for more details about each group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::NodeGroupList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NodeGroupList] + # + # @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_node_groups(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups', options) + command.response_representation = Google::Apis::ComputeV1::NodeGroupList::Representation + command.response_class = Google::Apis::ComputeV1::NodeGroupList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists nodes in the node group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource whose nodes you want to list. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::NodeGroupsListNodes] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NodeGroupsListNodes] + # + # @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_node_group_nodes(project, zone, node_group, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes', options) + command.response_representation = Google::Apis::ComputeV1::NodeGroupsListNodes::Representation + command.response_class = Google::Apis::ComputeV1::NodeGroupsListNodes + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the node template of the node group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource to delete. + # @param [Google::Apis::ComputeV1::NodeGroupsSetNodeTemplateRequest] node_groups_set_node_template_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 set_node_group_node_template(project, zone, node_group, node_groups_set_node_template_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate', options) + command.request_representation = Google::Apis::ComputeV1::NodeGroupsSetNodeTemplateRequest::Representation + command.request_object = node_groups_set_node_template_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an aggregated list of node templates. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::NodeTemplateAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NodeTemplateAggregatedList] + # + # @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 aggregated_node_template_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/nodeTemplates', options) + command.response_representation = Google::Apis::ComputeV1::NodeTemplateAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::NodeTemplateAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified NodeTemplate resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] node_template + # Name of the NodeTemplate resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 delete_node_template(project, region, node_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['nodeTemplate'] = node_template unless node_template.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified node template. Gets a list of available node templates + # by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] node_template + # Name of the node template to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::NodeTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NodeTemplate] + # + # @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_node_template(project, region, node_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) + command.response_representation = Google::Apis::ComputeV1::NodeTemplate::Representation + command.response_class = Google::Apis::ComputeV1::NodeTemplate + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['nodeTemplate'] = node_template unless node_template.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a NodeTemplate resource in the specified project using the data + # included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [Google::Apis::ComputeV1::NodeTemplate] node_template_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 insert_node_template(project, region, node_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates', options) + command.request_representation = Google::Apis::ComputeV1::NodeTemplate::Representation + command.request_object = node_template_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of node templates available to the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::NodeTemplateList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NodeTemplateList] + # + # @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_node_templates(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates', options) + command.response_representation = Google::Apis::ComputeV1::NodeTemplateList::Representation + command.response_class = Google::Apis::ComputeV1::NodeTemplateList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an aggregated list of node types. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::NodeTypeAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NodeTypeAggregatedList] + # + # @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 aggregated_node_type_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/nodeTypes', options) + command.response_representation = Google::Apis::ComputeV1::NodeTypeAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::NodeTypeAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified node type. Gets a list of available node types by making + # a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_type + # Name of the node type to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::NodeType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NodeType] + # + # @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_node_type(project, zone, node_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/nodeTypes/{nodeType}', options) + command.response_representation = Google::Apis::ComputeV1::NodeType::Representation + command.response_class = Google::Apis::ComputeV1::NodeType + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeType'] = node_type unless node_type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of node types available to the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::NodeTypeList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NodeTypeList] + # + # @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_node_types(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/nodeTypes', options) + command.response_representation = Google::Apis::ComputeV1::NodeTypeList::Representation + command.response_class = Google::Apis::ComputeV1::NodeTypeList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Disable this project as a shared VPC host project. # @param [String] project # Project ID for this request. @@ -10002,9 +11078,39 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10044,9 +11150,39 @@ module Google # Project ID for this request. # @param [Google::Apis::ComputeV1::ProjectsListXpnHostsRequest] projects_list_xpn_hosts_request_object # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10228,6 +11364,56 @@ module Google execute_or_queue_command(command, &block) end + # Sets the default network tier of the project. The default network tier is used + # when an address/forwardingRule/instance is created without specifying the + # network tier field. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeV1::ProjectsSetDefaultNetworkTierRequest] projects_set_default_network_tier_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 set_project_default_network_tier(project, projects_set_default_network_tier_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/setDefaultNetworkTier', options) + command.request_representation = Google::Apis::ComputeV1::ProjectsSetDefaultNetworkTierRequest::Representation + command.request_object = projects_set_default_network_tier_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Enables the usage export feature and sets the usage export bucket where # reports are stored. If you provide an empty request body using this method, # the usage export feature will be disabled. @@ -12119,9 +13305,39 @@ module Google # @param [String] instance_group_manager # The name of the managed instance group. # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14667,6 +15883,77 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of usable subnetworks. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::UsableSubnetworksAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::UsableSubnetworksAggregatedList] + # + # @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_subnetwork_usable(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/subnetworks/listUsable', options) + command.response_representation = Google::Apis::ComputeV1::UsableSubnetworksAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::UsableSubnetworksAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Patches the specified subnetwork with the data included in the request. Only # the following fields within the subnetwork resource can be specified in the # request: secondary_ip_range, allow_subnet_cidr_routes_overlap and role. It is diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index 6b70e14e7..eb1154a57 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20180616' + REVISION = '20180807' # 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/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index d3abb43f1..392cf01d4 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -398,6 +398,11 @@ module Google # @return [String] attr_accessor :network + # NetworkConfig reports the relative names of network & subnetwork. + # Corresponds to the JSON property `networkConfig` + # @return [Google::Apis::ContainerV1::NetworkConfig] + attr_accessor :network_config + # Configuration options for the NetworkPolicy feature. # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ # Corresponds to the JSON property `networkPolicy` @@ -500,6 +505,7 @@ module Google @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) + @network_config = args[:network_config] if args.key?(:network_config) @network_policy = args[:network_policy] if args.key?(:network_policy) @node_config = args[:node_config] if args.key?(:node_config) @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size) @@ -1220,6 +1226,36 @@ module Google end end + # NetworkConfig reports the relative names of network & subnetwork. + class NetworkConfig + include Google::Apis::Core::Hashable + + # Output only. The relative name of the Google Compute Engine + # network(/compute/docs/networks-and-firewalls#networks) to which + # the cluster is connected. + # Example: projects/my-project/global/networks/my-network + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # Output only. The relative name of the Google Compute Engine + # [subnetwork](/compute/docs/vpc) to which the cluster is connected. + # Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + # Corresponds to the JSON property `subnetwork` + # @return [String] + attr_accessor :subnetwork + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @network = args[:network] if args.key?(:network) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) + end + end + # Configuration options for the NetworkPolicy feature. # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ class NetworkPolicy @@ -1287,6 +1323,12 @@ module Google # @return [Fixnum] attr_accessor :disk_size_gb + # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') + # If unspecified, the default disk type is 'pd-standard' + # Corresponds to the JSON property `diskType` + # @return [String] + attr_accessor :disk_type + # The image type to use for this node. Note that for a given image type, # the latest version of it will be used. # Corresponds to the JSON property `imageType` @@ -1403,6 +1445,7 @@ module Google def update!(**args) @accelerators = args[:accelerators] if args.key?(:accelerators) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @disk_type = args[:disk_type] if args.key?(:disk_type) @image_type = args[:image_type] if args.key?(:image_type) @labels = args[:labels] if args.key?(:labels) @local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count) diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index 8d3595586..7045c0e43 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -172,6 +172,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NetworkConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NetworkPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -411,6 +417,8 @@ module Google property :monitoring_service, as: 'monitoringService' property :name, as: 'name' property :network, as: 'network' + property :network_config, as: 'networkConfig', class: Google::Apis::ContainerV1::NetworkConfig, decorator: Google::Apis::ContainerV1::NetworkConfig::Representation + property :network_policy, as: 'networkPolicy', class: Google::Apis::ContainerV1::NetworkPolicy, decorator: Google::Apis::ContainerV1::NetworkPolicy::Representation property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation @@ -602,6 +610,14 @@ module Google end end + class NetworkConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :network, as: 'network' + property :subnetwork, as: 'subnetwork' + end + end + class NetworkPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -623,6 +639,7 @@ module Google collection :accelerators, as: 'accelerators', class: Google::Apis::ContainerV1::AcceleratorConfig, decorator: Google::Apis::ContainerV1::AcceleratorConfig::Representation property :disk_size_gb, as: 'diskSizeGb' + property :disk_type, as: 'diskType' property :image_type, as: 'imageType' hash :labels, as: 'labels' property :local_ssd_count, as: 'localSsdCount' diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index e55cd655c..2008dbd44 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20180616' + REVISION = '20180807' # 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/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index e4b59c940..23db34d5f 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -239,6 +239,14 @@ module Google # @return [Google::Apis::ContainerV1beta1::AddonsConfig] attr_accessor :addons_config + # ClusterAutoscaling contains global, per-cluster information + # required by Cluster Autoscaler to automatically adjust + # the size of the cluster and create/delete + # node pools based on the current needs. + # Corresponds to the JSON property `autoscaling` + # @return [Google::Apis::ContainerV1beta1::ClusterAutoscaling] + attr_accessor :autoscaling + # Configuration for Binary Authorization. # Corresponds to the JSON property `binaryAuthorization` # @return [Google::Apis::ContainerV1beta1::BinaryAuthorization] @@ -275,6 +283,11 @@ module Google # @return [String] attr_accessor :current_node_version + # Constraints applied to pods. + # Corresponds to the JSON property `defaultMaxPodsConstraint` + # @return [Google::Apis::ContainerV1beta1::MaxPodsConstraint] + attr_accessor :default_max_pods_constraint + # An optional description of this cluster. # Corresponds to the JSON property `description` # @return [String] @@ -407,6 +420,8 @@ module Google # The IP prefix in CIDR notation to use for the hosted master network. # This prefix will be used for assigning private IP addresses to the # master or set of masters, as well as the ILB VIP. + # This field is deprecated, use + # private_cluster_config.master_ipv4_cidr_block instead. # Corresponds to the JSON property `masterIpv4CidrBlock` # @return [String] attr_accessor :master_ipv4_cidr_block @@ -476,11 +491,17 @@ module Google # If this is a private cluster setup. Private clusters are clusters that, by # default have no external IP addresses on the nodes and where nodes and the # master communicate over private IP addresses. + # This field is deprecated, use private_cluster_config.enabled instead. # Corresponds to the JSON property `privateCluster` # @return [Boolean] attr_accessor :private_cluster alias_method :private_cluster?, :private_cluster + # Configuration options for private clusters. + # Corresponds to the JSON property `privateClusterConfig` + # @return [Google::Apis::ContainerV1beta1::PrivateClusterConfig] + attr_accessor :private_cluster_config + # The resource labels for the cluster to use to annotate any related # Google Compute Engine resources. # Corresponds to the JSON property `resourceLabels` @@ -542,12 +563,14 @@ module Google # Update properties of this object def update!(**args) @addons_config = args[:addons_config] if args.key?(:addons_config) + @autoscaling = args[:autoscaling] if args.key?(:autoscaling) @binary_authorization = args[:binary_authorization] if args.key?(:binary_authorization) @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) @create_time = args[:create_time] if args.key?(:create_time) @current_master_version = args[:current_master_version] if args.key?(:current_master_version) @current_node_count = args[:current_node_count] if args.key?(:current_node_count) @current_node_version = args[:current_node_version] if args.key?(:current_node_version) + @default_max_pods_constraint = args[:default_max_pods_constraint] if args.key?(:default_max_pods_constraint) @description = args[:description] if args.key?(:description) @enable_kubernetes_alpha = args[:enable_kubernetes_alpha] if args.key?(:enable_kubernetes_alpha) @enable_tpu = args[:enable_tpu] if args.key?(:enable_tpu) @@ -576,6 +599,7 @@ module Google @node_pools = args[:node_pools] if args.key?(:node_pools) @pod_security_policy_config = args[:pod_security_policy_config] if args.key?(:pod_security_policy_config) @private_cluster = args[:private_cluster] if args.key?(:private_cluster) + @private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config) @resource_labels = args[:resource_labels] if args.key?(:resource_labels) @self_link = args[:self_link] if args.key?(:self_link) @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr) @@ -587,6 +611,36 @@ module Google end end + # ClusterAutoscaling contains global, per-cluster information + # required by Cluster Autoscaler to automatically adjust + # the size of the cluster and create/delete + # node pools based on the current needs. + class ClusterAutoscaling + include Google::Apis::Core::Hashable + + # Enables automatic node pool creation and deletion. + # Corresponds to the JSON property `enableNodeAutoprovisioning` + # @return [Boolean] + attr_accessor :enable_node_autoprovisioning + alias_method :enable_node_autoprovisioning?, :enable_node_autoprovisioning + + # Contains global constraints regarding minimum and maximum + # amount of resources in the cluster. + # Corresponds to the JSON property `resourceLimits` + # @return [Array] + attr_accessor :resource_limits + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable_node_autoprovisioning = args[:enable_node_autoprovisioning] if args.key?(:enable_node_autoprovisioning) + @resource_limits = args[:resource_limits] if args.key?(:resource_limits) + end + end + # ClusterUpdate describes an update to the cluster. Exactly one update can # be applied to a cluster with each request, so at most one field can be # provided. @@ -604,6 +658,14 @@ module Google # @return [Google::Apis::ContainerV1beta1::BinaryAuthorization] attr_accessor :desired_binary_authorization + # ClusterAutoscaling contains global, per-cluster information + # required by Cluster Autoscaler to automatically adjust + # the size of the cluster and create/delete + # node pools based on the current needs. + # Corresponds to the JSON property `desiredClusterAutoscaling` + # @return [Google::Apis::ContainerV1beta1::ClusterAutoscaling] + attr_accessor :desired_cluster_autoscaling + # The desired image type for the node pool. # NOTE: Set the "desired_node_pool" field as well. # Corresponds to the JSON property `desiredImageType` @@ -620,6 +682,16 @@ module Google # @return [Array] attr_accessor :desired_locations + # The logging service the cluster should use to write metrics. + # Currently available options: + # * "logging.googleapis.com/kubernetes" - the Google Cloud Logging + # service with Kubernetes-native resource model in Stackdriver + # * "logging.googleapis.com" - the Google Cloud Logging service + # * "none" - no logs will be exported from the cluster + # Corresponds to the JSON property `desiredLoggingService` + # @return [String] + attr_accessor :desired_logging_service + # Configuration options for the master authorized networks feature. Enabled # master authorized networks will disallow all external traffic to access # Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -643,6 +715,8 @@ module Google # The monitoring service the cluster should use to write metrics. # Currently available options: + # * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring + # service with Kubernetes-native resource model in Stackdriver # * "monitoring.googleapis.com" - the Google Cloud Monitoring service # * "none" - no metrics will be exported from the cluster # Corresponds to the JSON property `desiredMonitoringService` @@ -689,8 +763,10 @@ module Google def update!(**args) @desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config) @desired_binary_authorization = args[:desired_binary_authorization] if args.key?(:desired_binary_authorization) + @desired_cluster_autoscaling = args[:desired_cluster_autoscaling] if args.key?(:desired_cluster_autoscaling) @desired_image_type = args[:desired_image_type] if args.key?(:desired_image_type) @desired_locations = args[:desired_locations] if args.key?(:desired_locations) + @desired_logging_service = args[:desired_logging_service] if args.key?(:desired_logging_service) @desired_master_authorized_networks_config = args[:desired_master_authorized_networks_config] if args.key?(:desired_master_authorized_networks_config) @desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version) @desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service) @@ -890,233 +966,6 @@ module Google end end - # Associates `members` with a `role`. - class GoogleIamV1Binding - include Google::Apis::Core::Hashable - - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@gmail.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the - # users of that domain. For example, `google.com` or `example.com`. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required - # 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) - @members = args[:members] if args.key?(:members) - @role = args[:role] if args.key?(:role) - end - end - - # Request message for `GetIamPolicy` method. - class GoogleIamV1GetIamPolicyRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **JSON Example** - # ` - # "bindings": [ - # ` - # "role": "roles/owner", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] - # ` - # ] - # ` - # **YAML Example** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner - # - members: - # - user:sean@example.com - # role: roles/viewer - # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). - class GoogleIamV1Policy - include Google::Apis::Core::Hashable - - # Associates a list of `members` to a `role`. - # `bindings` with no members will result in an error. - # Corresponds to the JSON property `bindings` - # @return [Array] - attr_accessor :bindings - - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. - # Corresponds to the JSON property `etag` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :etag - - # Deprecated. - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bindings = args[:bindings] if args.key?(:bindings) - @etag = args[:etag] if args.key?(:etag) - @version = args[:version] if args.key?(:version) - end - end - - # Request message for `SetIamPolicy` method. - class GoogleIamV1SetIamPolicyRequest - include Google::Apis::Core::Hashable - - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **JSON Example** - # ` - # "bindings": [ - # ` - # "role": "roles/owner", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] - # ` - # ] - # ` - # **YAML Example** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner - # - members: - # - user:sean@example.com - # role: roles/viewer - # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). - # Corresponds to the JSON property `policy` - # @return [Google::Apis::ContainerV1beta1::GoogleIamV1Policy] - attr_accessor :policy - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @policy = args[:policy] if args.key?(:policy) - end - end - - # Request message for `TestIamPermissions` method. - class GoogleIamV1TestIamPermissionsRequest - include Google::Apis::Core::Hashable - - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # Response message for `TestIamPermissions` method. - class GoogleIamV1TestIamPermissionsResponse - include Google::Apis::Core::Hashable - - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - # Configuration options for the horizontal pod autoscaling feature, which # increases or decreases the number of replica pods a replication controller # has based on the resource usage of the existing pods. @@ -1658,6 +1507,25 @@ module Google end end + # Constraints applied to pods. + class MaxPodsConstraint + include Google::Apis::Core::Hashable + + # Constraint enforced on the max num of pods per node. + # Corresponds to the JSON property `maxPodsPerNode` + # @return [Fixnum] + attr_accessor :max_pods_per_node + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_pods_per_node = args[:max_pods_per_node] if args.key?(:max_pods_per_node) + end + end + # Progress metric is (string, int|float|string) pair. class Metric include Google::Apis::Core::Hashable @@ -1700,15 +1568,16 @@ module Google class NetworkConfig include Google::Apis::Core::Hashable - # Output only. The name of the Google Compute Engine - # network(/compute/docs/networks-and-firewalls#networks). + # Output only. The relative name of the Google Compute Engine + # network(/compute/docs/networks-and-firewalls#networks) to which + # the cluster is connected. # Example: projects/my-project/global/networks/my-network # Corresponds to the JSON property `network` # @return [String] attr_accessor :network - # Output only. The name of the Google Compute Engine - # [subnetwork](/compute/docs/vpc). + # Output only. The relative name of the Google Compute Engine + # [subnetwork](/compute/docs/vpc) to which the cluster is connected. # Example: projects/my-project/regions/us-central1/subnetworks/my-subnet # Corresponds to the JSON property `subnetwork` # @return [String] @@ -2019,6 +1888,11 @@ module Google # @return [Google::Apis::ContainerV1beta1::NodeManagement] attr_accessor :management + # Constraints applied to pods. + # Corresponds to the JSON property `maxPodsConstraint` + # @return [Google::Apis::ContainerV1beta1::MaxPodsConstraint] + attr_accessor :max_pods_constraint + # The name of the node pool. # Corresponds to the JSON property `name` # @return [String] @@ -2056,6 +1930,7 @@ module Google @initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count) @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls) @management = args[:management] if args.key?(:management) + @max_pods_constraint = args[:max_pods_constraint] if args.key?(:max_pods_constraint) @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) @status = args[:status] if args.key?(:status) @@ -2069,6 +1944,12 @@ module Google class NodePoolAutoscaling include Google::Apis::Core::Hashable + # Can this node pool be deleted automatically. + # Corresponds to the JSON property `autoprovisioned` + # @return [Boolean] + attr_accessor :autoprovisioned + alias_method :autoprovisioned?, :autoprovisioned + # Is autoscaling enabled for this node pool. # Corresponds to the JSON property `enabled` # @return [Boolean] @@ -2093,6 +1974,7 @@ module Google # Update properties of this object def update!(**args) + @autoprovisioned = args[:autoprovisioned] if args.key?(:autoprovisioned) @enabled = args[:enabled] if args.key?(:enabled) @max_node_count = args[:max_node_count] if args.key?(:max_node_count) @min_node_count = args[:min_node_count] if args.key?(:min_node_count) @@ -2292,6 +2174,86 @@ module Google end end + # Configuration options for private clusters. + class PrivateClusterConfig + include Google::Apis::Core::Hashable + + # Whether the master's internal IP address is used as the cluster endpoint. + # Corresponds to the JSON property `enablePrivateEndpoint` + # @return [Boolean] + attr_accessor :enable_private_endpoint + alias_method :enable_private_endpoint?, :enable_private_endpoint + + # Whether nodes have only private IP addresses, and communicate with the + # master via private networking. + # Corresponds to the JSON property `enablePrivateNodes` + # @return [Boolean] + attr_accessor :enable_private_nodes + alias_method :enable_private_nodes?, :enable_private_nodes + + # The IP prefix in CIDR notation to use for the hosted master network. This + # prefix will be used for assigning private IP addresses to the master or + # set of masters, as well as the ILB VIP. + # Corresponds to the JSON property `masterIpv4CidrBlock` + # @return [String] + attr_accessor :master_ipv4_cidr_block + + # Output only. The internal IP address of this cluster's master endpoint. + # Corresponds to the JSON property `privateEndpoint` + # @return [String] + attr_accessor :private_endpoint + + # Output only. The external IP address of this cluster's master endpoint. + # Corresponds to the JSON property `publicEndpoint` + # @return [String] + attr_accessor :public_endpoint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable_private_endpoint = args[:enable_private_endpoint] if args.key?(:enable_private_endpoint) + @enable_private_nodes = args[:enable_private_nodes] if args.key?(:enable_private_nodes) + @master_ipv4_cidr_block = args[:master_ipv4_cidr_block] if args.key?(:master_ipv4_cidr_block) + @private_endpoint = args[:private_endpoint] if args.key?(:private_endpoint) + @public_endpoint = args[:public_endpoint] if args.key?(:public_endpoint) + end + end + + # Contains information about amount of some resource in the cluster. + # For memory, value should be in GB. + class ResourceLimit + include Google::Apis::Core::Hashable + + # Maximum amount of the resource in the cluster. + # Corresponds to the JSON property `maximum` + # @return [Fixnum] + attr_accessor :maximum + + # Minimum amount of the resource in the cluster. + # Corresponds to the JSON property `minimum` + # @return [Fixnum] + attr_accessor :minimum + + # Resource name "cpu", "memory" or gpu-specific string. + # Corresponds to the JSON property `resourceType` + # @return [String] + attr_accessor :resource_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @maximum = args[:maximum] if args.key?(:maximum) + @minimum = args[:minimum] if args.key?(:minimum) + @resource_type = args[:resource_type] if args.key?(:resource_type) + end + end + # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed # NodePool upgrade. This will be an no-op if the last upgrade successfully # completed. diff --git a/generated/google/apis/container_v1beta1/representations.rb b/generated/google/apis/container_v1beta1/representations.rb index 66a63298c..a069165e4 100644 --- a/generated/google/apis/container_v1beta1/representations.rb +++ b/generated/google/apis/container_v1beta1/representations.rb @@ -70,6 +70,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ClusterAutoscaling + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ClusterUpdate class Representation < Google::Apis::Core::JsonRepresentation; end @@ -106,42 +112,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleIamV1Binding - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleIamV1GetIamPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleIamV1Policy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleIamV1SetIamPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleIamV1TestIamPermissionsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleIamV1TestIamPermissionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class HorizontalPodAutoscaling class Representation < Google::Apis::Core::JsonRepresentation; end @@ -232,6 +202,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MaxPodsConstraint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Metric class Representation < Google::Apis::Core::JsonRepresentation; end @@ -304,6 +280,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PrivateClusterConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourceLimit + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RollbackNodePoolUpgradeRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -491,6 +479,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1beta1::AddonsConfig, decorator: Google::Apis::ContainerV1beta1::AddonsConfig::Representation + property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1beta1::ClusterAutoscaling, decorator: Google::Apis::ContainerV1beta1::ClusterAutoscaling::Representation + property :binary_authorization, as: 'binaryAuthorization', class: Google::Apis::ContainerV1beta1::BinaryAuthorization, decorator: Google::Apis::ContainerV1beta1::BinaryAuthorization::Representation property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr' @@ -498,6 +488,8 @@ module Google property :current_master_version, as: 'currentMasterVersion' property :current_node_count, as: 'currentNodeCount' property :current_node_version, as: 'currentNodeVersion' + property :default_max_pods_constraint, as: 'defaultMaxPodsConstraint', class: Google::Apis::ContainerV1beta1::MaxPodsConstraint, decorator: Google::Apis::ContainerV1beta1::MaxPodsConstraint::Representation + property :description, as: 'description' property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha' property :enable_tpu, as: 'enableTpu' @@ -536,6 +528,8 @@ module Google property :pod_security_policy_config, as: 'podSecurityPolicyConfig', class: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig, decorator: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig::Representation property :private_cluster, as: 'privateCluster' + property :private_cluster_config, as: 'privateClusterConfig', class: Google::Apis::ContainerV1beta1::PrivateClusterConfig, decorator: Google::Apis::ContainerV1beta1::PrivateClusterConfig::Representation + hash :resource_labels, as: 'resourceLabels' property :self_link, as: 'selfLink' property :services_ipv4_cidr, as: 'servicesIpv4Cidr' @@ -547,6 +541,15 @@ module Google end end + class ClusterAutoscaling + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable_node_autoprovisioning, as: 'enableNodeAutoprovisioning' + collection :resource_limits, as: 'resourceLimits', class: Google::Apis::ContainerV1beta1::ResourceLimit, decorator: Google::Apis::ContainerV1beta1::ResourceLimit::Representation + + end + end + class ClusterUpdate # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -554,8 +557,11 @@ module Google property :desired_binary_authorization, as: 'desiredBinaryAuthorization', class: Google::Apis::ContainerV1beta1::BinaryAuthorization, decorator: Google::Apis::ContainerV1beta1::BinaryAuthorization::Representation + property :desired_cluster_autoscaling, as: 'desiredClusterAutoscaling', class: Google::Apis::ContainerV1beta1::ClusterAutoscaling, decorator: Google::Apis::ContainerV1beta1::ClusterAutoscaling::Representation + property :desired_image_type, as: 'desiredImageType' collection :desired_locations, as: 'desiredLocations' + property :desired_logging_service, as: 'desiredLoggingService' property :desired_master_authorized_networks_config, as: 'desiredMasterAuthorizedNetworksConfig', class: Google::Apis::ContainerV1beta1::MasterAuthorizedNetworksConfig, decorator: Google::Apis::ContainerV1beta1::MasterAuthorizedNetworksConfig::Representation property :desired_master_version, as: 'desiredMasterVersion' @@ -616,52 +622,6 @@ module Google end end - class GoogleIamV1Binding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :members, as: 'members' - property :role, as: 'role' - end - end - - class GoogleIamV1GetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class GoogleIamV1Policy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :bindings, as: 'bindings', class: Google::Apis::ContainerV1beta1::GoogleIamV1Binding, decorator: Google::Apis::ContainerV1beta1::GoogleIamV1Binding::Representation - - property :etag, :base64 => true, as: 'etag' - property :version, as: 'version' - end - end - - class GoogleIamV1SetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::ContainerV1beta1::GoogleIamV1Policy, decorator: Google::Apis::ContainerV1beta1::GoogleIamV1Policy::Representation - - end - end - - class GoogleIamV1TestIamPermissionsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end - - class GoogleIamV1TestIamPermissionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end - class HorizontalPodAutoscaling # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -800,6 +760,13 @@ module Google end end + class MaxPodsConstraint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_pods_per_node, :numeric_string => true, as: 'maxPodsPerNode' + end + end + class Metric # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -878,6 +845,8 @@ module Google collection :instance_group_urls, as: 'instanceGroupUrls' property :management, as: 'management', class: Google::Apis::ContainerV1beta1::NodeManagement, decorator: Google::Apis::ContainerV1beta1::NodeManagement::Representation + property :max_pods_constraint, as: 'maxPodsConstraint', class: Google::Apis::ContainerV1beta1::MaxPodsConstraint, decorator: Google::Apis::ContainerV1beta1::MaxPodsConstraint::Representation + property :name, as: 'name' property :self_link, as: 'selfLink' property :status, as: 'status' @@ -889,6 +858,7 @@ module Google class NodePoolAutoscaling # @private class Representation < Google::Apis::Core::JsonRepresentation + property :autoprovisioned, as: 'autoprovisioned' property :enabled, as: 'enabled' property :max_node_count, as: 'maxNodeCount' property :min_node_count, as: 'minNodeCount' @@ -942,6 +912,26 @@ module Google end end + class PrivateClusterConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable_private_endpoint, as: 'enablePrivateEndpoint' + property :enable_private_nodes, as: 'enablePrivateNodes' + property :master_ipv4_cidr_block, as: 'masterIpv4CidrBlock' + property :private_endpoint, as: 'privateEndpoint' + property :public_endpoint, as: 'publicEndpoint' + end + end + + class ResourceLimit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :maximum, :numeric_string => true, as: 'maximum' + property :minimum, :numeric_string => true, as: 'minimum' + property :resource_type, as: 'resourceType' + end + end + class RollbackNodePoolUpgradeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/container_v1beta1/service.rb b/generated/google/apis/container_v1beta1/service.rb index 876440ce9..b4c6e9191 100644 --- a/generated/google/apis/container_v1beta1/service.rb +++ b/generated/google/apis/container_v1beta1/service.rb @@ -48,118 +48,6 @@ module Google @batch_path = 'batch' end - # Gets the access control policy for a resource. Returns NOT_FOUND error if - # the resource does not exist. Returns an empty policy if the resource exists - # but does not have a policy set. - # Authorization requires the Google IAM permission - # `container.clusters.getIamPolicy` on the specified resource. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::ContainerV1beta1::GoogleIamV1GetIamPolicyRequest] google_iam_v1_get_iam_policy_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::ContainerV1beta1::GoogleIamV1Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContainerV1beta1::GoogleIamV1Policy] - # - # @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_iam_policy(resource, google_iam_v1_get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.request_representation = Google::Apis::ContainerV1beta1::GoogleIamV1GetIamPolicyRequest::Representation - command.request_object = google_iam_v1_get_iam_policy_request_object - command.response_representation = Google::Apis::ContainerV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::ContainerV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.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 for a resource. Replaces any existing - # policy. - # Authorization requires the Google IAM permission - # 'container.clusters.setIamPolicy' on the specified resource. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::ContainerV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::ContainerV1beta1::GoogleIamV1Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContainerV1beta1::GoogleIamV1Policy] - # - # @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 set_project_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::ContainerV1beta1::GoogleIamV1SetIamPolicyRequest::Representation - command.request_object = google_iam_v1_set_iam_policy_request_object - command.response_representation = Google::Apis::ContainerV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::ContainerV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a NOT_FOUND error. - # There is no permission required to make this API call. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::ContainerV1beta1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_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::ContainerV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContainerV1beta1::GoogleIamV1TestIamPermissionsResponse] - # - # @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 test_project_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::ContainerV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation - command.request_object = google_iam_v1_test_iam_permissions_request_object - command.response_representation = Google::Apis::ContainerV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::ContainerV1beta1::GoogleIamV1TestIamPermissionsResponse - command.params['resource'] = resource unless resource.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 subnetworks that are usable for creating clusters in a project. # @param [String] parent # The parent project where subnetworks are usable. diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 7b6b1941d..6fa5c52d0 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '' + REVISION = '20180809' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 117c13f58..afda03a8c 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -42,7 +42,7 @@ module Google attr_accessor :adwords_links # The GMB account which is linked or in the process of being linked with the - # Merchant Center accounnt. + # Merchant Center account. # Corresponds to the JSON property `googleMyBusinessLink` # @return [Google::Apis::ContentV2::AccountGoogleMyBusinessLink] attr_accessor :google_my_business_link @@ -225,6 +225,12 @@ module Google # @return [String] attr_accessor :kind + # List of product-related data by channel, destination, and country. Data in + # this field may be delayed by up to 30 minutes. + # Corresponds to the JSON property `products` + # @return [Array] + attr_accessor :products + # Whether the account's website is claimed or not. # Corresponds to the JSON property `websiteClaimed` # @return [Boolean] @@ -241,6 +247,7 @@ module Google @account_level_issues = args[:account_level_issues] if args.key?(:account_level_issues) @data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues) @kind = args[:kind] if args.key?(:kind) + @products = args[:products] if args.key?(:products) @website_claimed = args[:website_claimed] if args.key?(:website_claimed) end end @@ -417,6 +424,147 @@ module Google end end + # + class AccountStatusItemLevelIssue + include Google::Apis::Core::Hashable + + # The attribute's name, if the issue is caused by a single attribute. + # Corresponds to the JSON property `attributeName` + # @return [String] + attr_accessor :attribute_name + + # The error code of the issue. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # A short issue description in English. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A detailed issue description in English. + # Corresponds to the JSON property `detail` + # @return [String] + attr_accessor :detail + + # The URL of a web page to help with resolving this issue. + # Corresponds to the JSON property `documentation` + # @return [String] + attr_accessor :documentation + + # Number of items with this issue. + # Corresponds to the JSON property `numItems` + # @return [Fixnum] + attr_accessor :num_items + + # Whether the issue can be resolved by the merchant. + # Corresponds to the JSON property `resolution` + # @return [String] + attr_accessor :resolution + + # How this issue affects serving of the offer. + # Corresponds to the JSON property `servability` + # @return [String] + attr_accessor :servability + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribute_name = args[:attribute_name] if args.key?(:attribute_name) + @code = args[:code] if args.key?(:code) + @description = args[:description] if args.key?(:description) + @detail = args[:detail] if args.key?(:detail) + @documentation = args[:documentation] if args.key?(:documentation) + @num_items = args[:num_items] if args.key?(:num_items) + @resolution = args[:resolution] if args.key?(:resolution) + @servability = args[:servability] if args.key?(:servability) + end + end + + # + class AccountStatusProducts + include Google::Apis::Core::Hashable + + # The channel the data applies to. + # Corresponds to the JSON property `channel` + # @return [String] + attr_accessor :channel + + # The country the data applies to. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The destination the data applies to. + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # List of item-level issues. + # Corresponds to the JSON property `itemLevelIssues` + # @return [Array] + attr_accessor :item_level_issues + + # Aggregated product statistics. + # Corresponds to the JSON property `statistics` + # @return [Google::Apis::ContentV2::AccountStatusStatistics] + attr_accessor :statistics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel = args[:channel] if args.key?(:channel) + @country = args[:country] if args.key?(:country) + @destination = args[:destination] if args.key?(:destination) + @item_level_issues = args[:item_level_issues] if args.key?(:item_level_issues) + @statistics = args[:statistics] if args.key?(:statistics) + end + end + + # + class AccountStatusStatistics + include Google::Apis::Core::Hashable + + # Number of active offers. + # Corresponds to the JSON property `active` + # @return [Fixnum] + attr_accessor :active + + # Number of disapproved offers. + # Corresponds to the JSON property `disapproved` + # @return [Fixnum] + attr_accessor :disapproved + + # Number of expiring offers. + # Corresponds to the JSON property `expiring` + # @return [Fixnum] + attr_accessor :expiring + + # Number of pending offers. + # Corresponds to the JSON property `pending` + # @return [Fixnum] + attr_accessor :pending + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active = args[:active] if args.key?(:active) + @disapproved = args[:disapproved] if args.key?(:disapproved) + @expiring = args[:expiring] if args.key?(:expiring) + @pending = args[:pending] if args.key?(:pending) + end + end + # The tax settings of a merchant account. class AccountTax include Google::Apis::Core::Hashable @@ -694,7 +842,8 @@ module Google class AccountsCustomBatchRequestEntryLinkRequest include Google::Apis::Core::Hashable - # Action to perform for this link. + # Action to perform for this link. The "request" action is only available to + # select merchants. # Corresponds to the JSON property `action` # @return [String] attr_accessor :action @@ -795,7 +944,8 @@ module Google class AccountsLinkRequest include Google::Apis::Core::Hashable - # Action to perform for this link. + # Action to perform for this link. The "request" action is only available to + # select merchants. # Corresponds to the JSON property `action` # @return [String] attr_accessor :action @@ -2479,7 +2629,7 @@ module Google # @return [String] attr_accessor :sale_price_effective_date - # The quantity of the product that is reserved for sell-on-google ads. Supported + # The quantity of the product that is available for selling on Google. Supported # only for online products. # Corresponds to the JSON property `sellOnGoogleQuantity` # @return [Fixnum] @@ -2705,7 +2855,7 @@ module Google # @return [String] attr_accessor :sale_price_effective_date - # The quantity of the product that is reserved for sell-on-google ads. Supported + # The quantity of the product that is available for selling on Google. Supported # only for online products. # Corresponds to the JSON property `sellOnGoogleQuantity` # @return [Fixnum] @@ -2758,23 +2908,25 @@ module Google # @return [Array] attr_accessor :additional_charge_summaries - # [required] Customer balance on this invoice. A positive amount means the - # customer is paying, a negative one means the customer is receiving money. Note: + # [required] Customer balance on this invoice. A negative amount means the + # customer is paying, a positive one means the customer is receiving money. Note: # the sum of merchant_balance, customer_balance and google_balance must always # be zero. + # Furthermore the absolute value of this amount is expected to be equal to the + # sum of product amount and additional charges, minus promotions. # Corresponds to the JSON property `customerBalance` # @return [Google::Apis::ContentV2::Amount] attr_accessor :customer_balance - # [required] Google balance on this invoice. A positive amount means Google is - # paying, a negative one means Google is receiving money. Note: the sum of + # [required] Google balance on this invoice. A negative amount means Google is + # paying, a positive one means Google is receiving money. Note: the sum of # merchant_balance, customer_balance and google_balance must always be zero. # Corresponds to the JSON property `googleBalance` # @return [Google::Apis::ContentV2::Amount] attr_accessor :google_balance - # [required] Merchant balance on this invoice. A positive amount means the - # merchant is paying, a negative one means the merchant is receiving money. Note: + # [required] Merchant balance on this invoice. A negative amount means the + # merchant is paying, a positive one means the merchant is receiving money. Note: # the sum of merchant_balance, customer_balance and google_balance must always # be zero. # Corresponds to the JSON property `merchantBalance` @@ -3611,7 +3763,8 @@ module Google # @return [String] attr_accessor :recipient_name - # Top-level administrative subdivision of the country (e.g. "CA"). + # Top-level administrative subdivision of the country. For example, a state like + # California ("CA") or a province like Quebec ("QC"). # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -4960,9 +5113,7 @@ module Google class OrdersCancelLineItemRequest include Google::Apis::Core::Hashable - # Amount to refund for the cancelation. Optional. If not set, Google will - # calculate the default based on the price and tax of the items involved. The - # amount must not be larger than the net amount left on the order. + # Deprecated. Please use amountPretax and amountTax instead. # Corresponds to the JSON property `amount` # @return [Google::Apis::ContentV2::Price] attr_accessor :amount @@ -5115,6 +5266,16 @@ module Google class OrdersCreateTestOrderRequest include Google::Apis::Core::Hashable + # The CLDR territory code of the country of the test order to create. Affects + # the currency and addresses of orders created via template_name, or the + # addresses of orders created via test_order. + # Acceptable values are: + # - "US" + # - "FR" Defaults to US. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + # The test order template to use. Specify as an alternative to testOrder as a # shortcut for retrieving a template and then creating an order using that # template. @@ -5133,6 +5294,7 @@ module Google # Update properties of this object def update!(**args) + @country = args[:country] if args.key?(:country) @template_name = args[:template_name] if args.key?(:template_name) @test_order = args[:test_order] if args.key?(:test_order) end @@ -5329,9 +5491,7 @@ module Google class OrdersCustomBatchRequestEntryCancelLineItem include Google::Apis::Core::Hashable - # Amount to refund for the cancelation. Optional. If not set, Google will - # calculate the default based on the price and tax of the items involved. The - # amount must not be larger than the net amount left on the order. + # Deprecated. Please use amountPretax and amountTax instead. # Corresponds to the JSON property `amount` # @return [Google::Apis::ContentV2::Price] attr_accessor :amount @@ -5451,7 +5611,7 @@ module Google class OrdersCustomBatchRequestEntryRefund include Google::Apis::Core::Hashable - # The amount that is refunded. + # Deprecated. Please use amountPretax and amountTax instead. # Corresponds to the JSON property `amount` # @return [Google::Apis::ContentV2::Price] attr_accessor :amount @@ -5583,7 +5743,8 @@ module Google class OrdersCustomBatchRequestEntryReturnRefundLineItem include Google::Apis::Core::Hashable - # The amount that is refunded. Optional, but if filled then both amountPretax + # The amount that is refunded. If omitted, refundless return is assumed (same as + # calling returnLineItem method). Optional, but if filled then both amountPretax # and amountTax must be set. # Corresponds to the JSON property `amountPretax` # @return [Google::Apis::ContentV2::Price] @@ -5880,8 +6041,9 @@ module Google # @return [Google::Apis::ContentV2::Errors] attr_accessor :errors - # The status of the execution. Only defined if the method is not get or - # getByMerchantOrderId and if the request was successful. + # The status of the execution. Only defined if + # - the request was successful; and + # - the method is not get, getByMerchantOrderId, or one of the test methods. # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6088,7 +6250,7 @@ module Google class OrdersRefundRequest include Google::Apis::Core::Hashable - # The amount that is refunded. + # Deprecated. Please use amountPretax and amountTax instead. # Corresponds to the JSON property `amount` # @return [Google::Apis::ContentV2::Price] attr_accessor :amount @@ -6316,7 +6478,8 @@ module Google class OrdersReturnRefundLineItemRequest include Google::Apis::Core::Hashable - # The amount that is refunded. Optional, but if filled then both amountPretax + # The amount that is refunded. If omitted, refundless return is assumed (same as + # calling returnLineItem method). Optional, but if filled then both amountPretax # and amountTax must be set. # Corresponds to the JSON property `amountPretax` # @return [Google::Apis::ContentV2::Price] @@ -7220,7 +7383,7 @@ module Google # @return [Google::Apis::ContentV2::Price] attr_accessor :price - # The relative change of the available quantity. Negative for items sold. + # The relative change of the available quantity. Negative for items returned. # Corresponds to the JSON property `quantity` # @return [Fixnum] attr_accessor :quantity @@ -7289,7 +7452,7 @@ module Google # @return [Google::Apis::ContentV2::Price] attr_accessor :price - # The relative change of the available quantity. Negative for items sold. + # The relative change of the available quantity. Negative for items returned. # Corresponds to the JSON property `quantity` # @return [Fixnum] attr_accessor :quantity @@ -7363,7 +7526,7 @@ module Google # @return [Google::Apis::ContentV2::Price] attr_accessor :price - # The relative change of the available quantity. Negative for items sold. + # The relative change of the available quantity. Negative for items returned. # Corresponds to the JSON property `quantity` # @return [Fixnum] attr_accessor :quantity @@ -7572,7 +7735,7 @@ module Google # @return [String] attr_accessor :age_group - # Specifies the intended aspects for the product. + # Deprecated. Do not use. # Corresponds to the JSON property `aspects` # @return [Array] attr_accessor :aspects @@ -7859,7 +8022,8 @@ module Google # @return [String] attr_accessor :sale_price_effective_date - # The quantity of the product that is reserved for sell-on-google ads. + # The quantity of the product that is available for selling on Google. Supported + # only for online products. # Corresponds to the JSON property `sellOnGoogleQuantity` # @return [Fixnum] attr_accessor :sell_on_google_quantity @@ -7910,6 +8074,11 @@ module Google # @return [Array] attr_accessor :sizes + # The source of the offer, i.e., how the offer was created. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + # The CLDR territory code for the item. # Corresponds to the JSON property `targetCountry` # @return [String] @@ -8021,6 +8190,7 @@ module Google @size_system = args[:size_system] if args.key?(:size_system) @size_type = args[:size_type] if args.key?(:size_type) @sizes = args[:sizes] if args.key?(:sizes) + @source = args[:source] if args.key?(:source) @target_country = args[:target_country] if args.key?(:target_country) @taxes = args[:taxes] if args.key?(:taxes) @title = args[:title] if args.key?(:title) diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index ae1070023..c7e0e0c20 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -70,6 +70,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AccountStatusItemLevelIssue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountStatusProducts + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountStatusStatistics + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AccountTax class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1528,6 +1546,8 @@ module Google collection :data_quality_issues, as: 'dataQualityIssues', class: Google::Apis::ContentV2::AccountStatusDataQualityIssue, decorator: Google::Apis::ContentV2::AccountStatusDataQualityIssue::Representation property :kind, as: 'kind' + collection :products, as: 'products', class: Google::Apis::ContentV2::AccountStatusProducts, decorator: Google::Apis::ContentV2::AccountStatusProducts::Representation + property :website_claimed, as: 'websiteClaimed' end end @@ -1573,6 +1593,43 @@ module Google end end + class AccountStatusItemLevelIssue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attribute_name, as: 'attributeName' + property :code, as: 'code' + property :description, as: 'description' + property :detail, as: 'detail' + property :documentation, as: 'documentation' + property :num_items, :numeric_string => true, as: 'numItems' + property :resolution, as: 'resolution' + property :servability, as: 'servability' + end + end + + class AccountStatusProducts + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel, as: 'channel' + property :country, as: 'country' + property :destination, as: 'destination' + collection :item_level_issues, as: 'itemLevelIssues', class: Google::Apis::ContentV2::AccountStatusItemLevelIssue, decorator: Google::Apis::ContentV2::AccountStatusItemLevelIssue::Representation + + property :statistics, as: 'statistics', class: Google::Apis::ContentV2::AccountStatusStatistics, decorator: Google::Apis::ContentV2::AccountStatusStatistics::Representation + + end + end + + class AccountStatusStatistics + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active, :numeric_string => true, as: 'active' + property :disapproved, :numeric_string => true, as: 'disapproved' + property :expiring, :numeric_string => true, as: 'expiring' + property :pending, :numeric_string => true, as: 'pending' + end + end + class AccountTax # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2918,6 +2975,7 @@ module Google class OrdersCreateTestOrderRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' property :template_name, as: 'templateName' property :test_order, as: 'testOrder', class: Google::Apis::ContentV2::TestOrder, decorator: Google::Apis::ContentV2::TestOrder::Representation @@ -3673,6 +3731,7 @@ module Google property :size_system, as: 'sizeSystem' property :size_type, as: 'sizeType' collection :sizes, as: 'sizes' + property :source, as: 'source' property :target_country, as: 'targetCountry' collection :taxes, as: 'taxes', class: Google::Apis::ContentV2::ProductTax, decorator: Google::Apis::ContentV2::ProductTax::Representation diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index b81cf5ed3..a6fa22efc 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -1790,7 +1790,9 @@ module Google end # Creates a refund invoice for one or more shipment groups, and triggers a - # refund for non-facilitated payment orders. + # refund for non-facilitated payment orders. This can only be used for line + # items that have previously been charged using createChargeInvoice. All amounts + # (except for the summary) are incremental with respect to the previous invoice. # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. @@ -2299,6 +2301,8 @@ module Google # client account. # @param [String] template_name # The name of the template to retrieve. + # @param [String] country + # The country of the template to retrieve. Defaults to US. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2318,12 +2322,13 @@ 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 get_test_order_template(merchant_id, template_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_test_order_template(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options) command.response_representation = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['templateName'] = template_name unless template_name.nil? + command.query['country'] = country unless country.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -2442,7 +2447,7 @@ module Google execute_or_queue_command(command, &block) end - # Refund a portion of the order, up to the full amount paid. + # Deprecated, please use returnRefundLineItem instead. # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. diff --git a/generated/google/apis/content_v2sandbox.rb b/generated/google/apis/content_v2sandbox.rb index f608071f6..aa3cdbe93 100644 --- a/generated/google/apis/content_v2sandbox.rb +++ b/generated/google/apis/content_v2sandbox.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2sandbox VERSION = 'V2sandbox' - REVISION = '' + REVISION = '20180809' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2sandbox/classes.rb b/generated/google/apis/content_v2sandbox/classes.rb index b86a0ed7a..1e6a90296 100644 --- a/generated/google/apis/content_v2sandbox/classes.rb +++ b/generated/google/apis/content_v2sandbox/classes.rb @@ -118,23 +118,25 @@ module Google # @return [Array] attr_accessor :additional_charge_summaries - # [required] Customer balance on this invoice. A positive amount means the - # customer is paying, a negative one means the customer is receiving money. Note: + # [required] Customer balance on this invoice. A negative amount means the + # customer is paying, a positive one means the customer is receiving money. Note: # the sum of merchant_balance, customer_balance and google_balance must always # be zero. + # Furthermore the absolute value of this amount is expected to be equal to the + # sum of product amount and additional charges, minus promotions. # Corresponds to the JSON property `customerBalance` # @return [Google::Apis::ContentV2sandbox::Amount] attr_accessor :customer_balance - # [required] Google balance on this invoice. A positive amount means Google is - # paying, a negative one means Google is receiving money. Note: the sum of + # [required] Google balance on this invoice. A negative amount means Google is + # paying, a positive one means Google is receiving money. Note: the sum of # merchant_balance, customer_balance and google_balance must always be zero. # Corresponds to the JSON property `googleBalance` # @return [Google::Apis::ContentV2sandbox::Amount] attr_accessor :google_balance - # [required] Merchant balance on this invoice. A positive amount means the - # merchant is paying, a negative one means the merchant is receiving money. Note: + # [required] Merchant balance on this invoice. A negative amount means the + # merchant is paying, a positive one means the merchant is receiving money. Note: # the sum of merchant_balance, customer_balance and google_balance must always # be zero. # Corresponds to the JSON property `merchantBalance` @@ -370,7 +372,8 @@ module Google # @return [String] attr_accessor :recipient_name - # Top-level administrative subdivision of the country (e.g. "CA"). + # Top-level administrative subdivision of the country. For example, a state like + # California ("CA") or a province like Quebec ("QC"). # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -1719,9 +1722,7 @@ module Google class OrdersCancelLineItemRequest include Google::Apis::Core::Hashable - # Amount to refund for the cancelation. Optional. If not set, Google will - # calculate the default based on the price and tax of the items involved. The - # amount must not be larger than the net amount left on the order. + # Deprecated. Please use amountPretax and amountTax instead. # Corresponds to the JSON property `amount` # @return [Google::Apis::ContentV2sandbox::Price] attr_accessor :amount @@ -1874,6 +1875,16 @@ module Google class OrdersCreateTestOrderRequest include Google::Apis::Core::Hashable + # The CLDR territory code of the country of the test order to create. Affects + # the currency and addresses of orders created via template_name, or the + # addresses of orders created via test_order. + # Acceptable values are: + # - "US" + # - "FR" Defaults to US. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + # The test order template to use. Specify as an alternative to testOrder as a # shortcut for retrieving a template and then creating an order using that # template. @@ -1892,6 +1903,7 @@ module Google # Update properties of this object def update!(**args) + @country = args[:country] if args.key?(:country) @template_name = args[:template_name] if args.key?(:template_name) @test_order = args[:test_order] if args.key?(:test_order) end @@ -2088,9 +2100,7 @@ module Google class OrdersCustomBatchRequestEntryCancelLineItem include Google::Apis::Core::Hashable - # Amount to refund for the cancelation. Optional. If not set, Google will - # calculate the default based on the price and tax of the items involved. The - # amount must not be larger than the net amount left on the order. + # Deprecated. Please use amountPretax and amountTax instead. # Corresponds to the JSON property `amount` # @return [Google::Apis::ContentV2sandbox::Price] attr_accessor :amount @@ -2210,7 +2220,7 @@ module Google class OrdersCustomBatchRequestEntryRefund include Google::Apis::Core::Hashable - # The amount that is refunded. + # Deprecated. Please use amountPretax and amountTax instead. # Corresponds to the JSON property `amount` # @return [Google::Apis::ContentV2sandbox::Price] attr_accessor :amount @@ -2342,7 +2352,8 @@ module Google class OrdersCustomBatchRequestEntryReturnRefundLineItem include Google::Apis::Core::Hashable - # The amount that is refunded. Optional, but if filled then both amountPretax + # The amount that is refunded. If omitted, refundless return is assumed (same as + # calling returnLineItem method). Optional, but if filled then both amountPretax # and amountTax must be set. # Corresponds to the JSON property `amountPretax` # @return [Google::Apis::ContentV2sandbox::Price] @@ -2639,8 +2650,9 @@ module Google # @return [Google::Apis::ContentV2sandbox::Errors] attr_accessor :errors - # The status of the execution. Only defined if the method is not get or - # getByMerchantOrderId and if the request was successful. + # The status of the execution. Only defined if + # - the request was successful; and + # - the method is not get, getByMerchantOrderId, or one of the test methods. # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -2847,7 +2859,7 @@ module Google class OrdersRefundRequest include Google::Apis::Core::Hashable - # The amount that is refunded. + # Deprecated. Please use amountPretax and amountTax instead. # Corresponds to the JSON property `amount` # @return [Google::Apis::ContentV2sandbox::Price] attr_accessor :amount @@ -3075,7 +3087,8 @@ module Google class OrdersReturnRefundLineItemRequest include Google::Apis::Core::Hashable - # The amount that is refunded. Optional, but if filled then both amountPretax + # The amount that is refunded. If omitted, refundless return is assumed (same as + # calling returnLineItem method). Optional, but if filled then both amountPretax # and amountTax must be set. # Corresponds to the JSON property `amountPretax` # @return [Google::Apis::ContentV2sandbox::Price] diff --git a/generated/google/apis/content_v2sandbox/representations.rb b/generated/google/apis/content_v2sandbox/representations.rb index 521449a3a..7d04db37a 100644 --- a/generated/google/apis/content_v2sandbox/representations.rb +++ b/generated/google/apis/content_v2sandbox/representations.rb @@ -1143,6 +1143,7 @@ module Google class OrdersCreateTestOrderRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' property :template_name, as: 'templateName' property :test_order, as: 'testOrder', class: Google::Apis::ContentV2sandbox::TestOrder, decorator: Google::Apis::ContentV2sandbox::TestOrder::Representation diff --git a/generated/google/apis/content_v2sandbox/service.rb b/generated/google/apis/content_v2sandbox/service.rb index 395310761..0309b34d0 100644 --- a/generated/google/apis/content_v2sandbox/service.rb +++ b/generated/google/apis/content_v2sandbox/service.rb @@ -94,7 +94,9 @@ module Google end # Creates a refund invoice for one or more shipment groups, and triggers a - # refund for non-facilitated payment orders. + # refund for non-facilitated payment orders. This can only be used for line + # items that have previously been charged using createChargeInvoice. All amounts + # (except for the summary) are incremental with respect to the previous invoice. # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. @@ -603,6 +605,8 @@ module Google # client account. # @param [String] template_name # The name of the template to retrieve. + # @param [String] country + # The country of the template to retrieve. Defaults to US. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -622,12 +626,13 @@ 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 gettestordertemplate_order(merchant_id, template_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options) command.response_representation = Google::Apis::ContentV2sandbox::OrdersGetTestOrderTemplateResponse::Representation command.response_class = Google::Apis::ContentV2sandbox::OrdersGetTestOrderTemplateResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['templateName'] = template_name unless template_name.nil? + command.query['country'] = country unless country.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -746,7 +751,7 @@ module Google execute_or_queue_command(command, &block) end - # Refund a portion of the order, up to the full amount paid. + # Deprecated, please use returnRefundLineItem instead. # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. diff --git a/generated/google/apis/customsearch_v1.rb b/generated/google/apis/customsearch_v1.rb index d2c0ddcf8..d446faa47 100644 --- a/generated/google/apis/customsearch_v1.rb +++ b/generated/google/apis/customsearch_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/custom-search/v1/using_rest module CustomsearchV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180815' end end end diff --git a/generated/google/apis/customsearch_v1/service.rb b/generated/google/apis/customsearch_v1/service.rb index 612241e23..cf42fe474 100644 --- a/generated/google/apis/customsearch_v1/service.rb +++ b/generated/google/apis/customsearch_v1/service.rb @@ -87,8 +87,8 @@ module Google # @param [String] img_color_type # Returns black and white, grayscale, or color images: mono, gray, and color. # @param [String] img_dominant_color - # Returns images of a specific dominant color: yellow, green, teal, blue, purple, - # pink, white, gray, black and brown. + # Returns images of a specific dominant color: red, orange, yellow, green, teal, + # blue, purple, pink, white, gray, black and brown. # @param [String] img_size # Returns images of a specified size, where size can be one of: icon, small, # medium, large, xlarge, xxlarge, and huge. @@ -188,9 +188,9 @@ module Google execute_or_queue_command(command, &block) end - # (Closed Beta API) Returns metadata about the search performed, metadata about - # the custom search engine used for the search, and the search results only for - # site-restrict cses. + # Returns metadata about the search performed, metadata about the custom search + # engine used for the search, and the search results. Uses a small set of url + # patterns. # @param [String] q # Query # @param [String] c2coff @@ -225,8 +225,8 @@ module Google # @param [String] img_color_type # Returns black and white, grayscale, or color images: mono, gray, and color. # @param [String] img_dominant_color - # Returns images of a specific dominant color: yellow, green, teal, blue, purple, - # pink, white, gray, black and brown. + # Returns images of a specific dominant color: red, orange, yellow, green, teal, + # blue, purple, pink, white, gray, black and brown. # @param [String] img_size # Returns images of a specified size, where size can be one of: icon, small, # medium, large, xlarge, xxlarge, and huge. diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 269dada2e..f94f3aaa3 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20180702' + REVISION = '20180803' # 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index 72bd5a39c..b87f71bac 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -59,6 +59,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::DataprocV1beta2::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # members can have the following values: # allUsers: A special identifier that represents anyone who is on the internet; @@ -89,6 +97,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -594,6 +603,51 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in Common Expression Language syntax. + # The application context of the containing message determines which well-known + # feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing its + # purpose. This can be used e.g. in UIs which allow to enter the expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # Common config settings for resources of Compute Engine cluster instances, # applicable to all instances in the cluster. class GceClusterConfig @@ -935,12 +989,7 @@ module Google class InstantiateWorkflowTemplateRequest include Google::Apis::Core::Hashable - # Optional. A tag that prevents multiple concurrent workflow instances with the - # same tag from running. This mitigates risk of concurrent instances started due - # to retries.It is recommended to always set this value to a UUID (https://en. - # wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only - # letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The - # maximum length is 40 characters. + # Deprecated. Please use request_id field instead. # Corresponds to the JSON property `instanceId` # @return [String] attr_accessor :instance_id @@ -951,6 +1000,16 @@ module Google # @return [Hash] attr_accessor :parameters + # Optional. A tag that prevents multiple concurrent workflow instances with the + # same tag from running. This mitigates risk of concurrent instances started due + # to retries.It is recommended to always set this value to a UUID (https://en. + # wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only + # letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The + # maximum length is 40 characters. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + # Optional. The version of workflow template to instantiate. If specified, the # workflow will be instantiated only if the current version of the workflow # template has the supplied version.This option cannot be used to instantiate a @@ -967,6 +1026,7 @@ module Google def update!(**args) @instance_id = args[:instance_id] if args.key?(:instance_id) @parameters = args[:parameters] if args.key?(:parameters) + @request_id = args[:request_id] if args.key?(:request_id) @version = args[:version] if args.key?(:version) end end @@ -1912,8 +1972,8 @@ module Google include Google::Apis::Core::Hashable # Required. RE2 regular expressions used to validate the parameter's value. The - # provided value must match the regexes in its entirety, e.g. substring matches - # are not enough. + # value must match the regex in its entirety (substring matches are not + # sufficient). # Corresponds to the JSON property `regexes` # @return [Array] attr_accessor :regexes @@ -2244,50 +2304,59 @@ module Google end # A configurable parameter that replaces one or more fields in the template. + # Parameterizable fields: - Labels - File uris - Job properties - Job arguments - + # Script variables - Main class (in HadoopJob and SparkJob) - Zone (in + # ClusterSelector) class TemplateParameter include Google::Apis::Core::Hashable - # Optional. User-friendly description of the parameter. Must not exceed 1024 - # characters. + # Optional. Brief description of the parameter. Must not exceed 1024 characters. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Required. Paths to all fields that this parameter replaces. Each field may - # appear in at most one Parameter's fields list.Field path syntax:A field path - # is similar to a FieldMask. For example, a field path that references the zone - # field of the template's cluster selector would look like:placement. - # clusterSelector.zoneThe only differences between field paths and standard - # field masks are that: - # Values in maps can be referenced by key.Example: placement.clusterSelector. - # clusterLabels'key' - # Jobs in the jobs list can be referenced by step id.Example: jobs'step-id'. - # hadoopJob.mainJarFileUri - # Items in repeated fields can be referenced by zero-based index.Example: jobs' - # step-id'.sparkJob.args0NOTE: Maps and repeated fields may not be parameterized - # in their entirety. Only individual map values and items in repeated fields may - # be referenced. For example, the following field paths are invalid: - placement. - # clusterSelector.clusterLabels - jobs'step-id'.sparkJob.argsParameterizable - # fields:Only certain types of fields may be parameterized, specifically: - - # Labels - File uris - Job properties - Job arguments - Script variables - Main - # class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)Examples of - # parameterizable fields:Labels:labels'key' placement.managedCluster.labels'key' - # placement.clusterSelector.clusterLabels'key' jobs'step-id'.labels'key'File - # uris:jobs'step-id'.hadoopJob.mainJarFileUri jobs'step-id'.hiveJob.queryFileUri - # jobs'step-id'.pySparkJob.mainPythonFileUri jobs'step-id'.hadoopJob. - # jarFileUris0 jobs'step-id'.hadoopJob.archiveUris0 jobs'step-id'.hadoopJob. - # fileUris0 jobs'step-id'.pySparkJob.pythonFileUris0Other:jobs'step-id'. - # hadoopJob.properties'key' jobs'step-id'.hadoopJob.args0 jobs'step-id'.hiveJob. - # scriptVariables'key' jobs'step-id'.hadoopJob.mainJarFileUri placement. - # clusterSelector.zone + # Required. Paths to all fields that the parameter replaces. A field is allowed + # to appear in at most one parameter's list of field paths.A field path is + # similar in syntax to a google.protobuf.FieldMask. For example, a field path + # that references the zone field of a workflow template's cluster selector would + # be specified as placement.clusterSelector.zone.Also, field paths + # can reference fields using the following syntax: + # Values in maps can be referenced by key. Examples
+ # labels'key' + # placement.clusterSelector.clusterLabels'key' + # placement.managedCluster.labels'key' + # placement.clusterSelector.clusterLabels'key' + # jobsstep-id.labels'key' + # Jobs in the jobs list can be referenced by step-id. Examples:
+ # jobsstep-id.hadoopJob.mainJarFileUri + # jobsstep-id.hiveJob.queryFileUri + # jobsstep-id.pySparkJob.mainPythonFileUri + # jobsstep-id.hadoopJob.jarFileUris0 + # jobsstep-id.hadoopJob.archiveUris0 + # jobsstep-id.hadoopJob.fileUris0 + # jobsstep-id.pySparkJob.pythonFileUris0 + # Items in repeated fields can be referenced by a zero-based index. Example:
+ # jobsstep-id.sparkJob.args0 + # Other examples: + # jobsstep-id.hadoopJob.properties'key' + # jobsstep-id.hadoopJob.args0 + # jobsstep-id.hiveJob.scriptVariables'key' + # jobsstep-id.hadoopJob.mainJarFileUri + # placement.clusterSelector.zoneIt may not be possible to parameterize maps and + # repeated fields in their entirety since only individual map values and + # individual items in repeated fields can be referenced. For example, the + # following field paths are invalid: + # placement.clusterSelector.clusterLabels + # jobsstep-id.sparkJob.args # Corresponds to the JSON property `fields` # @return [Array] attr_accessor :fields - # Required. User-friendly parameter name. This name is used as a key when - # providing a value for this parameter when the template is instantiated. Must - # contain only capital letters (A-Z), numbers (0-9), and underscores (_), and - # must not start with a number. The maximum length is 40 characters. + # Required. Parameter name. The parameter name is used as the key, and paired + # with the parameter value, which are passed to the template when the template + # is instantiated. The name must contain only capital letters (A-Z), numbers (0- + # 9), and underscores (_), and must not start with a number. The maximum length + # is 40 characters. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2354,7 +2423,7 @@ module Google class ValueValidation include Google::Apis::Core::Hashable - # Required. List of allowed values for this parameter. + # Required. List of allowed values for the parameter. # Corresponds to the JSON property `values` # @return [Array] attr_accessor :values @@ -2531,7 +2600,7 @@ module Google attr_accessor :name # Optional. Template parameters whose values are substituted into the template. - # Values for these parameters must be provided when the template is instantiated. + # Values for parameters must be provided when the template is instantiated. # Corresponds to the JSON property `parameters` # @return [Array] attr_accessor :parameters diff --git a/generated/google/apis/dataproc_v1beta2/representations.rb b/generated/google/apis/dataproc_v1beta2/representations.rb index 2072af72b..8633dc8e7 100644 --- a/generated/google/apis/dataproc_v1beta2/representations.rb +++ b/generated/google/apis/dataproc_v1beta2/representations.rb @@ -118,6 +118,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GceClusterConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -393,6 +399,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::DataprocV1beta2::Expr, decorator: Google::Apis::DataprocV1beta2::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -541,6 +549,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class GceClusterConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -612,6 +630,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :instance_id, as: 'instanceId' hash :parameters, as: 'parameters' + property :request_id, as: 'requestId' property :version, as: 'version' end end diff --git a/generated/google/apis/datastore_v1.rb b/generated/google/apis/datastore_v1.rb index d2122dce6..4b817ca7c 100644 --- a/generated/google/apis/datastore_v1.rb +++ b/generated/google/apis/datastore_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1 VERSION = 'V1' - REVISION = '20180605' + REVISION = '20180725' # 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/datastore_v1/classes.rb b/generated/google/apis/datastore_v1/classes.rb index 8cababc88..00565a290 100644 --- a/generated/google/apis/datastore_v1/classes.rb +++ b/generated/google/apis/datastore_v1/classes.rb @@ -688,6 +688,146 @@ module Google end end + # A minimal index definition. + # Next tag: 8 + class GoogleDatastoreAdminV1Index + include Google::Apis::Core::Hashable + + # The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. + # Required. + # Corresponds to the JSON property `ancestor` + # @return [String] + attr_accessor :ancestor + + # The resource ID of the index. + # Output only. + # Corresponds to the JSON property `indexId` + # @return [String] + attr_accessor :index_id + + # The entity kind to which this index applies. + # Required. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Project ID. + # Output only. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # An ordered sequence of property names and their index attributes. + # Required. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + # The state of the index. + # Output only. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ancestor = args[:ancestor] if args.key?(:ancestor) + @index_id = args[:index_id] if args.key?(:index_id) + @kind = args[:kind] if args.key?(:kind) + @project_id = args[:project_id] if args.key?(:project_id) + @properties = args[:properties] if args.key?(:properties) + @state = args[:state] if args.key?(:state) + end + end + + # Metadata for Index operations. + class GoogleDatastoreAdminV1IndexOperationMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata] + attr_accessor :common + + # The index resource ID that this operation is acting on. + # Corresponds to the JSON property `indexId` + # @return [String] + attr_accessor :index_id + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @index_id = args[:index_id] if args.key?(:index_id) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + + # Next tag: 3 + class GoogleDatastoreAdminV1IndexedProperty + include Google::Apis::Core::Hashable + + # The indexed property's direction. Must not be DIRECTION_UNSPECIFIED. + # Required. + # Corresponds to the JSON property `direction` + # @return [String] + attr_accessor :direction + + # The property name to index. + # Required. + # 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) + @direction = args[:direction] if args.key?(:direction) + @name = args[:name] if args.key?(:name) + end + end + + # The response for + # google.datastore.admin.v1.DatastoreAdmin.ListIndexes. + class GoogleDatastoreAdminV1ListIndexesResponse + include Google::Apis::Core::Hashable + + # The indexes. + # Corresponds to the JSON property `indexes` + # @return [Array] + attr_accessor :indexes + + # The standard List next-page token. + # 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) + @indexes = args[:indexes] if args.key?(:indexes) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # Measures the progress of a particular metric. class GoogleDatastoreAdminV1Progress include Google::Apis::Core::Hashable diff --git a/generated/google/apis/datastore_v1/representations.rb b/generated/google/apis/datastore_v1/representations.rb index d447ec497..df4013cf7 100644 --- a/generated/google/apis/datastore_v1/representations.rb +++ b/generated/google/apis/datastore_v1/representations.rb @@ -136,6 +136,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDatastoreAdminV1Index + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1IndexOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1IndexedProperty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ListIndexesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDatastoreAdminV1Progress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -543,6 +567,47 @@ module Google end end + class GoogleDatastoreAdminV1Index + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ancestor, as: 'ancestor' + property :index_id, as: 'indexId' + property :kind, as: 'kind' + property :project_id, as: 'projectId' + collection :properties, as: 'properties', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty::Representation + + property :state, as: 'state' + end + end + + class GoogleDatastoreAdminV1IndexOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata::Representation + + property :index_id, as: 'indexId' + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress::Representation + + end + end + + class GoogleDatastoreAdminV1IndexedProperty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :direction, as: 'direction' + property :name, as: 'name' + end + end + + class GoogleDatastoreAdminV1ListIndexesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :indexes, as: 'indexes', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class GoogleDatastoreAdminV1Progress # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/datastore_v1/service.rb b/generated/google/apis/datastore_v1/service.rb index c2475e9be..9720d6dca 100644 --- a/generated/google/apis/datastore_v1/service.rb +++ b/generated/google/apis/datastore_v1/service.rb @@ -359,6 +359,80 @@ module Google execute_or_queue_command(command, &block) end + # Gets an index. + # @param [String] project_id + # Project ID against which to make the request. + # @param [String] index_id + # The resource ID of the index 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::DatastoreV1::GoogleDatastoreAdminV1Index] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index] + # + # @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_index(project_id, index_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/indexes/{indexId}', options) + command.response_representation = Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index::Representation + command.response_class = Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index + command.params['projectId'] = project_id unless project_id.nil? + command.params['indexId'] = index_id unless index_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 + + # Lists the indexes that match the specified filters. Datastore uses an + # eventually consistent query to fetch the list of indexes and may + # occasionally return stale results. + # @param [String] project_id + # Project ID against which to make the request. + # @param [String] filter + # @param [Fixnum] page_size + # The maximum number of items to return. If zero, then all results will be + # returned. + # @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::DatastoreV1::GoogleDatastoreAdminV1ListIndexesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ListIndexesResponse] + # + # @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_indexes(project_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/indexes', options) + command.response_representation = Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ListIndexesResponse::Representation + command.response_class = Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ListIndexesResponse + command.params['projectId'] = project_id unless project_id.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 + # Starts asynchronous cancellation on a long-running operation. The server # makes a best effort to cancel the operation, but success is not # guaranteed. If the server doesn't support this method, it returns diff --git a/generated/google/apis/datastore_v1beta1.rb b/generated/google/apis/datastore_v1beta1.rb index 73e086090..4248e1d23 100644 --- a/generated/google/apis/datastore_v1beta1.rb +++ b/generated/google/apis/datastore_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1beta1 VERSION = 'V1beta1' - REVISION = '20180605' + REVISION = '20180725' # 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/datastore_v1beta1/classes.rb b/generated/google/apis/datastore_v1beta1/classes.rb index 241ae0adc..e57388ed8 100644 --- a/generated/google/apis/datastore_v1beta1/classes.rb +++ b/generated/google/apis/datastore_v1beta1/classes.rb @@ -250,6 +250,37 @@ module Google end end + # Metadata for Index operations. + class GoogleDatastoreAdminV1IndexOperationMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata] + attr_accessor :common + + # The index resource ID that this operation is acting on. + # Corresponds to the JSON property `indexId` + # @return [String] + attr_accessor :index_id + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @index_id = args[:index_id] if args.key?(:index_id) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + # Measures the progress of a particular metric. class GoogleDatastoreAdminV1Progress include Google::Apis::Core::Hashable diff --git a/generated/google/apis/datastore_v1beta1/representations.rb b/generated/google/apis/datastore_v1beta1/representations.rb index 6c931f1df..8fce1554e 100644 --- a/generated/google/apis/datastore_v1beta1/representations.rb +++ b/generated/google/apis/datastore_v1beta1/representations.rb @@ -52,6 +52,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDatastoreAdminV1IndexOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDatastoreAdminV1Progress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -174,6 +180,17 @@ module Google end end + class GoogleDatastoreAdminV1IndexOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata::Representation + + property :index_id, as: 'indexId' + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress::Representation + + end + end + class GoogleDatastoreAdminV1Progress # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/datastore_v1beta3.rb b/generated/google/apis/datastore_v1beta3.rb index e1367eea1..dc9dcf527 100644 --- a/generated/google/apis/datastore_v1beta3.rb +++ b/generated/google/apis/datastore_v1beta3.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1beta3 VERSION = 'V1beta3' - REVISION = '20180605' + REVISION = '20180725' # 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/datastore_v1beta3/classes.rb b/generated/google/apis/datastore_v1beta3/classes.rb index b889c1402..82273dc94 100644 --- a/generated/google/apis/datastore_v1beta3/classes.rb +++ b/generated/google/apis/datastore_v1beta3/classes.rb @@ -552,6 +552,37 @@ module Google end end + # Metadata for Index operations. + class GoogleDatastoreAdminV1IndexOperationMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata] + attr_accessor :common + + # The index resource ID that this operation is acting on. + # Corresponds to the JSON property `indexId` + # @return [String] + attr_accessor :index_id + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @index_id = args[:index_id] if args.key?(:index_id) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + # Measures the progress of a particular metric. class GoogleDatastoreAdminV1Progress include Google::Apis::Core::Hashable diff --git a/generated/google/apis/datastore_v1beta3/representations.rb b/generated/google/apis/datastore_v1beta3/representations.rb index 2e3c0c599..f73bab693 100644 --- a/generated/google/apis/datastore_v1beta3/representations.rb +++ b/generated/google/apis/datastore_v1beta3/representations.rb @@ -118,6 +118,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDatastoreAdminV1IndexOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDatastoreAdminV1Progress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -481,6 +487,17 @@ module Google end end + class GoogleDatastoreAdminV1IndexOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata::Representation + + property :index_id, as: 'indexId' + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress::Representation + + end + end + class GoogleDatastoreAdminV1Progress # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/deploymentmanager_alpha.rb b/generated/google/apis/deploymentmanager_alpha.rb index c0cb4ed91..7b8ce89af 100644 --- a/generated/google/apis/deploymentmanager_alpha.rb +++ b/generated/google/apis/deploymentmanager_alpha.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerAlpha VERSION = 'Alpha' - REVISION = '' + REVISION = '20180609' # 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/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index 1b5d29ba1..b53454a45 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '' + REVISION = '20180609' # 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/deploymentmanager_v2beta.rb b/generated/google/apis/deploymentmanager_v2beta.rb index b4b68424f..9ed81f8ef 100644 --- a/generated/google/apis/deploymentmanager_v2beta.rb +++ b/generated/google/apis/deploymentmanager_v2beta.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/deployment-manager/ module DeploymentmanagerV2beta VERSION = 'V2beta' - REVISION = '' + REVISION = '20180609' # 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/dfareporting_v2_8.rb b/generated/google/apis/dfareporting_v2_8.rb index ea903eed3..c887d591e 100644 --- a/generated/google/apis/dfareporting_v2_8.rb +++ b/generated/google/apis/dfareporting_v2_8.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/ module DfareportingV2_8 VERSION = 'V2_8' - REVISION = '' + REVISION = '20180720' # Manage DoubleClick Digital Marketing conversions AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions' diff --git a/generated/google/apis/dfareporting_v3_0.rb b/generated/google/apis/dfareporting_v3_0.rb index b94f6fb43..fe4db26dd 100644 --- a/generated/google/apis/dfareporting_v3_0.rb +++ b/generated/google/apis/dfareporting_v3_0.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/ module DfareportingV3_0 VERSION = 'V3_0' - REVISION = '' + REVISION = '20180720' # Manage DoubleClick Digital Marketing conversions AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions' diff --git a/generated/google/apis/dfareporting_v3_1.rb b/generated/google/apis/dfareporting_v3_1.rb index a271cae6e..3c7ceafd5 100644 --- a/generated/google/apis/dfareporting_v3_1.rb +++ b/generated/google/apis/dfareporting_v3_1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/ module DfareportingV3_1 VERSION = 'V3_1' - REVISION = '' + REVISION = '20180720' # Manage DoubleClick Digital Marketing conversions AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions' diff --git a/generated/google/apis/dfareporting_v3_2.rb b/generated/google/apis/dfareporting_v3_2.rb new file mode 100644 index 000000000..1f5e32d67 --- /dev/null +++ b/generated/google/apis/dfareporting_v3_2.rb @@ -0,0 +1,40 @@ +# 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/dfareporting_v3_2/service.rb' +require 'google/apis/dfareporting_v3_2/classes.rb' +require 'google/apis/dfareporting_v3_2/representations.rb' + +module Google + module Apis + # DCM/DFA Reporting And Trafficking API + # + # Manages your DoubleClick Campaign Manager ad campaigns and reports. + # + # @see https://developers.google.com/doubleclick-advertisers/ + module DfareportingV3_2 + VERSION = 'V3_2' + REVISION = '20180720' + + # Manage DoubleClick Digital Marketing conversions + AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions' + + # View and manage DoubleClick for Advertisers reports + AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting' + + # View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns + AUTH_DFATRAFFICKING = 'https://www.googleapis.com/auth/dfatrafficking' + end + end +end diff --git a/generated/google/apis/dfareporting_v3_2/classes.rb b/generated/google/apis/dfareporting_v3_2/classes.rb new file mode 100644 index 000000000..fc78fa870 --- /dev/null +++ b/generated/google/apis/dfareporting_v3_2/classes.rb @@ -0,0 +1,12297 @@ +# 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 DfareportingV3_2 + + # Contains properties of a DCM account. + class Account + include Google::Apis::Core::Hashable + + # Account permissions assigned to this account. + # Corresponds to the JSON property `accountPermissionIds` + # @return [Array] + attr_accessor :account_permission_ids + + # Profile for this account. This is a read-only field that can be left blank. + # Corresponds to the JSON property `accountProfile` + # @return [String] + attr_accessor :account_profile + + # Whether this account is active. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # Maximum number of active ads allowed for this account. + # Corresponds to the JSON property `activeAdsLimitTier` + # @return [String] + attr_accessor :active_ads_limit_tier + + # Whether to serve creatives with Active View tags. If disabled, viewability + # data will not be available for any impressions. + # Corresponds to the JSON property `activeViewOptOut` + # @return [Boolean] + attr_accessor :active_view_opt_out + alias_method :active_view_opt_out?, :active_view_opt_out + + # User role permissions available to the user roles of this account. + # Corresponds to the JSON property `availablePermissionIds` + # @return [Array] + attr_accessor :available_permission_ids + + # ID of the country associated with this account. + # Corresponds to the JSON property `countryId` + # @return [Fixnum] + attr_accessor :country_id + + # ID of currency associated with this account. This is a required field. + # Acceptable values are: + # - "1" for USD + # - "2" for GBP + # - "3" for ESP + # - "4" for SEK + # - "5" for CAD + # - "6" for JPY + # - "7" for DEM + # - "8" for AUD + # - "9" for FRF + # - "10" for ITL + # - "11" for DKK + # - "12" for NOK + # - "13" for FIM + # - "14" for ZAR + # - "15" for IEP + # - "16" for NLG + # - "17" for EUR + # - "18" for KRW + # - "19" for TWD + # - "20" for SGD + # - "21" for CNY + # - "22" for HKD + # - "23" for NZD + # - "24" for MYR + # - "25" for BRL + # - "26" for PTE + # - "27" for MXP + # - "28" for CLP + # - "29" for TRY + # - "30" for ARS + # - "31" for PEN + # - "32" for ILS + # - "33" for CHF + # - "34" for VEF + # - "35" for COP + # - "36" for GTQ + # - "37" for PLN + # - "39" for INR + # - "40" for THB + # - "41" for IDR + # - "42" for CZK + # - "43" for RON + # - "44" for HUF + # - "45" for RUB + # - "46" for AED + # - "47" for BGN + # - "48" for HRK + # - "49" for MXN + # - "50" for NGN + # Corresponds to the JSON property `currencyId` + # @return [Fixnum] + attr_accessor :currency_id + + # Default placement dimensions for this account. + # Corresponds to the JSON property `defaultCreativeSizeId` + # @return [Fixnum] + attr_accessor :default_creative_size_id + + # Description of this account. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # ID of this account. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#account". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Locale of this account. + # Acceptable values are: + # - "cs" (Czech) + # - "de" (German) + # - "en" (English) + # - "en-GB" (English United Kingdom) + # - "es" (Spanish) + # - "fr" (French) + # - "it" (Italian) + # - "ja" (Japanese) + # - "ko" (Korean) + # - "pl" (Polish) + # - "pt-BR" (Portuguese Brazil) + # - "ru" (Russian) + # - "sv" (Swedish) + # - "tr" (Turkish) + # - "zh-CN" (Chinese Simplified) + # - "zh-TW" (Chinese Traditional) + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # Maximum image size allowed for this account, in kilobytes. Value must be + # greater than or equal to 1. + # Corresponds to the JSON property `maximumImageSize` + # @return [Fixnum] + attr_accessor :maximum_image_size + + # Name of this account. This is a required field, and must be less than 128 + # characters long and be globally unique. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Whether campaigns created in this account will be enabled for Nielsen OCR + # reach ratings by default. + # Corresponds to the JSON property `nielsenOcrEnabled` + # @return [Boolean] + attr_accessor :nielsen_ocr_enabled + alias_method :nielsen_ocr_enabled?, :nielsen_ocr_enabled + + # Reporting Configuration + # Corresponds to the JSON property `reportsConfiguration` + # @return [Google::Apis::DfareportingV3_2::ReportsConfiguration] + attr_accessor :reports_configuration + + # Share Path to Conversion reports with Twitter. + # Corresponds to the JSON property `shareReportsWithTwitter` + # @return [Boolean] + attr_accessor :share_reports_with_twitter + alias_method :share_reports_with_twitter?, :share_reports_with_twitter + + # File size limit in kilobytes of Rich Media teaser creatives. Acceptable values + # are 1 to 10240, inclusive. + # Corresponds to the JSON property `teaserSizeLimit` + # @return [Fixnum] + attr_accessor :teaser_size_limit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_permission_ids = args[:account_permission_ids] if args.key?(:account_permission_ids) + @account_profile = args[:account_profile] if args.key?(:account_profile) + @active = args[:active] if args.key?(:active) + @active_ads_limit_tier = args[:active_ads_limit_tier] if args.key?(:active_ads_limit_tier) + @active_view_opt_out = args[:active_view_opt_out] if args.key?(:active_view_opt_out) + @available_permission_ids = args[:available_permission_ids] if args.key?(:available_permission_ids) + @country_id = args[:country_id] if args.key?(:country_id) + @currency_id = args[:currency_id] if args.key?(:currency_id) + @default_creative_size_id = args[:default_creative_size_id] if args.key?(:default_creative_size_id) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @locale = args[:locale] if args.key?(:locale) + @maximum_image_size = args[:maximum_image_size] if args.key?(:maximum_image_size) + @name = args[:name] if args.key?(:name) + @nielsen_ocr_enabled = args[:nielsen_ocr_enabled] if args.key?(:nielsen_ocr_enabled) + @reports_configuration = args[:reports_configuration] if args.key?(:reports_configuration) + @share_reports_with_twitter = args[:share_reports_with_twitter] if args.key?(:share_reports_with_twitter) + @teaser_size_limit = args[:teaser_size_limit] if args.key?(:teaser_size_limit) + end + end + + # Gets a summary of active ads in an account. + class AccountActiveAdSummary + include Google::Apis::Core::Hashable + + # ID of the account. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Ads that have been activated for the account + # Corresponds to the JSON property `activeAds` + # @return [Fixnum] + attr_accessor :active_ads + + # Maximum number of active ads allowed for the account. + # Corresponds to the JSON property `activeAdsLimitTier` + # @return [String] + attr_accessor :active_ads_limit_tier + + # Ads that can be activated for the account. + # Corresponds to the JSON property `availableAds` + # @return [Fixnum] + attr_accessor :available_ads + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#accountActiveAdSummary". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @active_ads = args[:active_ads] if args.key?(:active_ads) + @active_ads_limit_tier = args[:active_ads_limit_tier] if args.key?(:active_ads_limit_tier) + @available_ads = args[:available_ads] if args.key?(:available_ads) + @kind = args[:kind] if args.key?(:kind) + end + end + + # AccountPermissions contains information about a particular account permission. + # Some features of DCM require an account permission to be present in the + # account. + class AccountPermission + include Google::Apis::Core::Hashable + + # Account profiles associated with this account permission. + # Possible values are: + # - "ACCOUNT_PROFILE_BASIC" + # - "ACCOUNT_PROFILE_STANDARD" + # Corresponds to the JSON property `accountProfiles` + # @return [Array] + attr_accessor :account_profiles + + # ID of this account permission. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#accountPermission". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Administrative level required to enable this account permission. + # Corresponds to the JSON property `level` + # @return [String] + attr_accessor :level + + # Name of this account permission. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Permission group of this account permission. + # Corresponds to the JSON property `permissionGroupId` + # @return [Fixnum] + attr_accessor :permission_group_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_profiles = args[:account_profiles] if args.key?(:account_profiles) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @level = args[:level] if args.key?(:level) + @name = args[:name] if args.key?(:name) + @permission_group_id = args[:permission_group_id] if args.key?(:permission_group_id) + end + end + + # AccountPermissionGroups contains a mapping of permission group IDs to names. A + # permission group is a grouping of account permissions. + class AccountPermissionGroup + include Google::Apis::Core::Hashable + + # ID of this account permission group. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#accountPermissionGroup". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this account permission group. + # 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) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # Account Permission Group List Response + class AccountPermissionGroupsListResponse + include Google::Apis::Core::Hashable + + # Account permission group collection. + # Corresponds to the JSON property `accountPermissionGroups` + # @return [Array] + attr_accessor :account_permission_groups + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#accountPermissionGroupsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_permission_groups = args[:account_permission_groups] if args.key?(:account_permission_groups) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Account Permission List Response + class AccountPermissionsListResponse + include Google::Apis::Core::Hashable + + # Account permission collection. + # Corresponds to the JSON property `accountPermissions` + # @return [Array] + attr_accessor :account_permissions + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#accountPermissionsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_permissions = args[:account_permissions] if args.key?(:account_permissions) + @kind = args[:kind] if args.key?(:kind) + end + end + + # AccountUserProfiles contains properties of a DCM user profile. This resource + # is specifically for managing user profiles, whereas UserProfiles is for + # accessing the API. + class AccountUserProfile + include Google::Apis::Core::Hashable + + # Account ID of the user profile. This is a read-only field that can be left + # blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Whether this user profile is active. This defaults to false, and must be set + # true on insert for the user profile to be usable. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # Object Filter. + # Corresponds to the JSON property `advertiserFilter` + # @return [Google::Apis::DfareportingV3_2::ObjectFilter] + attr_accessor :advertiser_filter + + # Object Filter. + # Corresponds to the JSON property `campaignFilter` + # @return [Google::Apis::DfareportingV3_2::ObjectFilter] + attr_accessor :campaign_filter + + # Comments for this user profile. + # Corresponds to the JSON property `comments` + # @return [String] + attr_accessor :comments + + # Email of the user profile. The email addresss must be linked to a Google + # Account. This field is required on insertion and is read-only after insertion. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # ID of the user profile. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#accountUserProfile". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Locale of the user profile. This is a required field. + # Acceptable values are: + # - "cs" (Czech) + # - "de" (German) + # - "en" (English) + # - "en-GB" (English United Kingdom) + # - "es" (Spanish) + # - "fr" (French) + # - "it" (Italian) + # - "ja" (Japanese) + # - "ko" (Korean) + # - "pl" (Polish) + # - "pt-BR" (Portuguese Brazil) + # - "ru" (Russian) + # - "sv" (Swedish) + # - "tr" (Turkish) + # - "zh-CN" (Chinese Simplified) + # - "zh-TW" (Chinese Traditional) + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # Name of the user profile. This is a required field. Must be less than 64 + # characters long, must be globally unique, and cannot contain whitespace or any + # of the following characters: "&;"#%,". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Object Filter. + # Corresponds to the JSON property `siteFilter` + # @return [Google::Apis::DfareportingV3_2::ObjectFilter] + attr_accessor :site_filter + + # Subaccount ID of the user profile. This is a read-only field that can be left + # blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Trafficker type of this user profile. This is a read-only field. + # Corresponds to the JSON property `traffickerType` + # @return [String] + attr_accessor :trafficker_type + + # User type of the user profile. This is a read-only field that can be left + # blank. + # Corresponds to the JSON property `userAccessType` + # @return [String] + attr_accessor :user_access_type + + # Object Filter. + # Corresponds to the JSON property `userRoleFilter` + # @return [Google::Apis::DfareportingV3_2::ObjectFilter] + attr_accessor :user_role_filter + + # User role ID of the user profile. This is a required field. + # Corresponds to the JSON property `userRoleId` + # @return [Fixnum] + attr_accessor :user_role_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @advertiser_filter = args[:advertiser_filter] if args.key?(:advertiser_filter) + @campaign_filter = args[:campaign_filter] if args.key?(:campaign_filter) + @comments = args[:comments] if args.key?(:comments) + @email = args[:email] if args.key?(:email) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @locale = args[:locale] if args.key?(:locale) + @name = args[:name] if args.key?(:name) + @site_filter = args[:site_filter] if args.key?(:site_filter) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @trafficker_type = args[:trafficker_type] if args.key?(:trafficker_type) + @user_access_type = args[:user_access_type] if args.key?(:user_access_type) + @user_role_filter = args[:user_role_filter] if args.key?(:user_role_filter) + @user_role_id = args[:user_role_id] if args.key?(:user_role_id) + end + end + + # Account User Profile List Response + class AccountUserProfilesListResponse + include Google::Apis::Core::Hashable + + # Account user profile collection. + # Corresponds to the JSON property `accountUserProfiles` + # @return [Array] + attr_accessor :account_user_profiles + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#accountUserProfilesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @account_user_profiles = args[:account_user_profiles] if args.key?(:account_user_profiles) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Account List Response + class AccountsListResponse + include Google::Apis::Core::Hashable + + # Account collection. + # Corresponds to the JSON property `accounts` + # @return [Array] + attr_accessor :accounts + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#accountsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @accounts = args[:accounts] if args.key?(:accounts) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Represents an activity group. + class Activities + include Google::Apis::Core::Hashable + + # List of activity filters. The dimension values need to be all either of type " + # dfa:activity" or "dfa:activityGroup". + # Corresponds to the JSON property `filters` + # @return [Array] + attr_accessor :filters + + # The kind of resource this is, in this case dfareporting#activities. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # List of names of floodlight activity metrics. + # Corresponds to the JSON property `metricNames` + # @return [Array] + attr_accessor :metric_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filters = args[:filters] if args.key?(:filters) + @kind = args[:kind] if args.key?(:kind) + @metric_names = args[:metric_names] if args.key?(:metric_names) + end + end + + # Contains properties of a DCM ad. + class Ad + include Google::Apis::Core::Hashable + + # Account ID of this ad. This is a read-only field that can be left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Whether this ad is active. When true, archived must be false. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # Advertiser ID of this ad. This is a required field on insertion. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Whether this ad is archived. When true, active must be false. + # Corresponds to the JSON property `archived` + # @return [Boolean] + attr_accessor :archived + alias_method :archived?, :archived + + # Audience segment ID that is being targeted for this ad. Applicable when type + # is AD_SERVING_STANDARD_AD. + # Corresponds to the JSON property `audienceSegmentId` + # @return [Fixnum] + attr_accessor :audience_segment_id + + # Campaign ID of this ad. This is a required field on insertion. + # Corresponds to the JSON property `campaignId` + # @return [Fixnum] + attr_accessor :campaign_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `campaignIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :campaign_id_dimension_value + + # Click-through URL + # Corresponds to the JSON property `clickThroughUrl` + # @return [Google::Apis::DfareportingV3_2::ClickThroughUrl] + attr_accessor :click_through_url + + # Click Through URL Suffix settings. + # Corresponds to the JSON property `clickThroughUrlSuffixProperties` + # @return [Google::Apis::DfareportingV3_2::ClickThroughUrlSuffixProperties] + attr_accessor :click_through_url_suffix_properties + + # Comments for this ad. + # Corresponds to the JSON property `comments` + # @return [String] + attr_accessor :comments + + # Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. + # DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on + # mobile devices or in mobile apps for regular or interstitial ads, respectively. + # APP and APP_INTERSTITIAL are only used for existing default ads. New mobile + # placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads + # created for those placements will be limited to those compatibility types. + # IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the + # VAST standard. + # Corresponds to the JSON property `compatibility` + # @return [String] + attr_accessor :compatibility + + # Modification timestamp. + # Corresponds to the JSON property `createInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :create_info + + # Creative group assignments for this ad. Applicable when type is + # AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is + # allowed for a maximum of two assignments. + # Corresponds to the JSON property `creativeGroupAssignments` + # @return [Array] + attr_accessor :creative_group_assignments + + # Creative Rotation. + # Corresponds to the JSON property `creativeRotation` + # @return [Google::Apis::DfareportingV3_2::CreativeRotation] + attr_accessor :creative_rotation + + # Day Part Targeting. + # Corresponds to the JSON property `dayPartTargeting` + # @return [Google::Apis::DfareportingV3_2::DayPartTargeting] + attr_accessor :day_part_targeting + + # Properties of inheriting and overriding the default click-through event tag. A + # campaign may override the event tag defined at the advertiser level, and an ad + # may also override the campaign's setting further. + # Corresponds to the JSON property `defaultClickThroughEventTagProperties` + # @return [Google::Apis::DfareportingV3_2::DefaultClickThroughEventTagProperties] + attr_accessor :default_click_through_event_tag_properties + + # Delivery Schedule. + # Corresponds to the JSON property `deliverySchedule` + # @return [Google::Apis::DfareportingV3_2::DeliverySchedule] + attr_accessor :delivery_schedule + + # Whether this ad is a dynamic click tracker. Applicable when type is + # AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only + # after insert. + # Corresponds to the JSON property `dynamicClickTracker` + # @return [Boolean] + attr_accessor :dynamic_click_tracker + alias_method :dynamic_click_tracker?, :dynamic_click_tracker + + # Date and time that this ad should stop serving. Must be later than the start + # time. This is a required field on insertion. + # Corresponds to the JSON property `endTime` + # @return [DateTime] + attr_accessor :end_time + + # Event tag overrides for this ad. + # Corresponds to the JSON property `eventTagOverrides` + # @return [Array] + attr_accessor :event_tag_overrides + + # Geographical Targeting. + # Corresponds to the JSON property `geoTargeting` + # @return [Google::Apis::DfareportingV3_2::GeoTargeting] + attr_accessor :geo_targeting + + # ID of this ad. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Key Value Targeting Expression. + # Corresponds to the JSON property `keyValueTargetingExpression` + # @return [Google::Apis::DfareportingV3_2::KeyValueTargetingExpression] + attr_accessor :key_value_targeting_expression + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#ad". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Language Targeting. + # Corresponds to the JSON property `languageTargeting` + # @return [Google::Apis::DfareportingV3_2::LanguageTargeting] + attr_accessor :language_targeting + + # Modification timestamp. + # Corresponds to the JSON property `lastModifiedInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :last_modified_info + + # Name of this ad. This is a required field and must be less than 256 characters + # long. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Placement assignments for this ad. + # Corresponds to the JSON property `placementAssignments` + # @return [Array] + attr_accessor :placement_assignments + + # Remarketing List Targeting Expression. + # Corresponds to the JSON property `remarketingListExpression` + # @return [Google::Apis::DfareportingV3_2::ListTargetingExpression] + attr_accessor :remarketing_list_expression + + # Represents the dimensions of ads, placements, creatives, or creative assets. + # Corresponds to the JSON property `size` + # @return [Google::Apis::DfareportingV3_2::Size] + attr_accessor :size + + # Whether this ad is ssl compliant. This is a read-only field that is auto- + # generated when the ad is inserted or updated. + # Corresponds to the JSON property `sslCompliant` + # @return [Boolean] + attr_accessor :ssl_compliant + alias_method :ssl_compliant?, :ssl_compliant + + # Whether this ad requires ssl. This is a read-only field that is auto-generated + # when the ad is inserted or updated. + # Corresponds to the JSON property `sslRequired` + # @return [Boolean] + attr_accessor :ssl_required + alias_method :ssl_required?, :ssl_required + + # Date and time that this ad should start serving. If creating an ad, this field + # must be a time in the future. This is a required field on insertion. + # Corresponds to the JSON property `startTime` + # @return [DateTime] + attr_accessor :start_time + + # Subaccount ID of this ad. This is a read-only field that can be left blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Targeting template ID, used to apply preconfigured targeting information to + # this ad. This cannot be set while any of dayPartTargeting, geoTargeting, + # keyValueTargetingExpression, languageTargeting, remarketingListExpression, or + # technologyTargeting are set. Applicable when type is AD_SERVING_STANDARD_AD. + # Corresponds to the JSON property `targetingTemplateId` + # @return [Fixnum] + attr_accessor :targeting_template_id + + # Technology Targeting. + # Corresponds to the JSON property `technologyTargeting` + # @return [Google::Apis::DfareportingV3_2::TechnologyTargeting] + attr_accessor :technology_targeting + + # Type of ad. This is a required field on insertion. Note that default ads ( + # AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @archived = args[:archived] if args.key?(:archived) + @audience_segment_id = args[:audience_segment_id] if args.key?(:audience_segment_id) + @campaign_id = args[:campaign_id] if args.key?(:campaign_id) + @campaign_id_dimension_value = args[:campaign_id_dimension_value] if args.key?(:campaign_id_dimension_value) + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @click_through_url_suffix_properties = args[:click_through_url_suffix_properties] if args.key?(:click_through_url_suffix_properties) + @comments = args[:comments] if args.key?(:comments) + @compatibility = args[:compatibility] if args.key?(:compatibility) + @create_info = args[:create_info] if args.key?(:create_info) + @creative_group_assignments = args[:creative_group_assignments] if args.key?(:creative_group_assignments) + @creative_rotation = args[:creative_rotation] if args.key?(:creative_rotation) + @day_part_targeting = args[:day_part_targeting] if args.key?(:day_part_targeting) + @default_click_through_event_tag_properties = args[:default_click_through_event_tag_properties] if args.key?(:default_click_through_event_tag_properties) + @delivery_schedule = args[:delivery_schedule] if args.key?(:delivery_schedule) + @dynamic_click_tracker = args[:dynamic_click_tracker] if args.key?(:dynamic_click_tracker) + @end_time = args[:end_time] if args.key?(:end_time) + @event_tag_overrides = args[:event_tag_overrides] if args.key?(:event_tag_overrides) + @geo_targeting = args[:geo_targeting] if args.key?(:geo_targeting) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @key_value_targeting_expression = args[:key_value_targeting_expression] if args.key?(:key_value_targeting_expression) + @kind = args[:kind] if args.key?(:kind) + @language_targeting = args[:language_targeting] if args.key?(:language_targeting) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @placement_assignments = args[:placement_assignments] if args.key?(:placement_assignments) + @remarketing_list_expression = args[:remarketing_list_expression] if args.key?(:remarketing_list_expression) + @size = args[:size] if args.key?(:size) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @ssl_required = args[:ssl_required] if args.key?(:ssl_required) + @start_time = args[:start_time] if args.key?(:start_time) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @targeting_template_id = args[:targeting_template_id] if args.key?(:targeting_template_id) + @technology_targeting = args[:technology_targeting] if args.key?(:technology_targeting) + @type = args[:type] if args.key?(:type) + end + end + + # Campaign ad blocking settings. + class AdBlockingConfiguration + include Google::Apis::Core::Hashable + + # Click-through URL used by brand-neutral ads. This is a required field when + # overrideClickThroughUrl is set to true. + # Corresponds to the JSON property `clickThroughUrl` + # @return [String] + attr_accessor :click_through_url + + # ID of a creative bundle to use for this campaign. If set, brand-neutral ads + # will select creatives from this bundle. Otherwise, a default transparent pixel + # will be used. + # Corresponds to the JSON property `creativeBundleId` + # @return [Fixnum] + attr_accessor :creative_bundle_id + + # Whether this campaign has enabled ad blocking. When true, ad blocking is + # enabled for placements in the campaign, but this may be overridden by site and + # placement settings. When false, ad blocking is disabled for all placements + # under the campaign, regardless of site and placement settings. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Whether the brand-neutral ad's click-through URL comes from the campaign's + # creative bundle or the override URL. Must be set to true if ad blocking is + # enabled and no creative bundle is configured. + # Corresponds to the JSON property `overrideClickThroughUrl` + # @return [Boolean] + attr_accessor :override_click_through_url + alias_method :override_click_through_url?, :override_click_through_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @creative_bundle_id = args[:creative_bundle_id] if args.key?(:creative_bundle_id) + @enabled = args[:enabled] if args.key?(:enabled) + @override_click_through_url = args[:override_click_through_url] if args.key?(:override_click_through_url) + end + end + + # Ad Slot + class AdSlot + include Google::Apis::Core::Hashable + + # Comment for this ad slot. + # Corresponds to the JSON property `comment` + # @return [String] + attr_accessor :comment + + # Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering + # either on desktop, mobile devices or in mobile apps for regular or + # interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in + # mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads + # developed with the VAST standard. + # Corresponds to the JSON property `compatibility` + # @return [String] + attr_accessor :compatibility + + # Height of this ad slot. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # ID of the placement from an external platform that is linked to this ad slot. + # Corresponds to the JSON property `linkedPlacementId` + # @return [Fixnum] + attr_accessor :linked_placement_id + + # Name of this ad slot. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Payment source type of this ad slot. + # Corresponds to the JSON property `paymentSourceType` + # @return [String] + attr_accessor :payment_source_type + + # Primary ad slot of a roadblock inventory item. + # Corresponds to the JSON property `primary` + # @return [Boolean] + attr_accessor :primary + alias_method :primary?, :primary + + # Width of this ad slot. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @comment = args[:comment] if args.key?(:comment) + @compatibility = args[:compatibility] if args.key?(:compatibility) + @height = args[:height] if args.key?(:height) + @linked_placement_id = args[:linked_placement_id] if args.key?(:linked_placement_id) + @name = args[:name] if args.key?(:name) + @payment_source_type = args[:payment_source_type] if args.key?(:payment_source_type) + @primary = args[:primary] if args.key?(:primary) + @width = args[:width] if args.key?(:width) + end + end + + # Ad List Response + class AdsListResponse + include Google::Apis::Core::Hashable + + # Ad collection. + # Corresponds to the JSON property `ads` + # @return [Array] + attr_accessor :ads + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#adsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @ads = args[:ads] if args.key?(:ads) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Contains properties of a DCM advertiser. + class Advertiser + include Google::Apis::Core::Hashable + + # Account ID of this advertiser.This is a read-only field that can be left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # ID of the advertiser group this advertiser belongs to. You can group + # advertisers for reporting purposes, allowing you to see aggregated information + # for all advertisers in each group. + # Corresponds to the JSON property `advertiserGroupId` + # @return [Fixnum] + attr_accessor :advertiser_group_id + + # Suffix added to click-through URL of ad creative associations under this + # advertiser. Must be less than 129 characters long. + # Corresponds to the JSON property `clickThroughUrlSuffix` + # @return [String] + attr_accessor :click_through_url_suffix + + # ID of the click-through event tag to apply by default to the landing pages of + # this advertiser's campaigns. + # Corresponds to the JSON property `defaultClickThroughEventTagId` + # @return [Fixnum] + attr_accessor :default_click_through_event_tag_id + + # Default email address used in sender field for tag emails. + # Corresponds to the JSON property `defaultEmail` + # @return [String] + attr_accessor :default_email + + # Floodlight configuration ID of this advertiser. The floodlight configuration + # ID will be created automatically, so on insert this field should be left blank. + # This field can be set to another advertiser's floodlight configuration ID in + # order to share that advertiser's floodlight configuration with this advertiser, + # so long as: + # - This advertiser's original floodlight configuration is not already + # associated with floodlight activities or floodlight activity groups. + # - This advertiser's original floodlight configuration is not already shared + # with another advertiser. + # Corresponds to the JSON property `floodlightConfigurationId` + # @return [Fixnum] + attr_accessor :floodlight_configuration_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `floodlightConfigurationIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :floodlight_configuration_id_dimension_value + + # ID of this advertiser. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#advertiser". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this advertiser. This is a required field and must be less than 256 + # characters long and unique among advertisers of the same account. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Original floodlight configuration before any sharing occurred. Set the + # floodlightConfigurationId of this advertiser to + # originalFloodlightConfigurationId to unshare the advertiser's current + # floodlight configuration. You cannot unshare an advertiser's floodlight + # configuration if the shared configuration has activities associated with any + # campaign or placement. + # Corresponds to the JSON property `originalFloodlightConfigurationId` + # @return [Fixnum] + attr_accessor :original_floodlight_configuration_id + + # Status of this advertiser. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Subaccount ID of this advertiser.This is a read-only field that can be left + # blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Suspension status of this advertiser. + # Corresponds to the JSON property `suspended` + # @return [Boolean] + attr_accessor :suspended + alias_method :suspended?, :suspended + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_group_id = args[:advertiser_group_id] if args.key?(:advertiser_group_id) + @click_through_url_suffix = args[:click_through_url_suffix] if args.key?(:click_through_url_suffix) + @default_click_through_event_tag_id = args[:default_click_through_event_tag_id] if args.key?(:default_click_through_event_tag_id) + @default_email = args[:default_email] if args.key?(:default_email) + @floodlight_configuration_id = args[:floodlight_configuration_id] if args.key?(:floodlight_configuration_id) + @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] if args.key?(:floodlight_configuration_id_dimension_value) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @original_floodlight_configuration_id = args[:original_floodlight_configuration_id] if args.key?(:original_floodlight_configuration_id) + @status = args[:status] if args.key?(:status) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @suspended = args[:suspended] if args.key?(:suspended) + end + end + + # Groups advertisers together so that reports can be generated for the entire + # group at once. + class AdvertiserGroup + include Google::Apis::Core::Hashable + + # Account ID of this advertiser group. This is a read-only field that can be + # left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # ID of this advertiser group. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#advertiserGroup". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this advertiser group. This is a required field and must be less than + # 256 characters long and unique among advertiser groups of the same account. + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # Advertiser Group List Response + class AdvertiserGroupsListResponse + include Google::Apis::Core::Hashable + + # Advertiser group collection. + # Corresponds to the JSON property `advertiserGroups` + # @return [Array] + attr_accessor :advertiser_groups + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#advertiserGroupsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @advertiser_groups = args[:advertiser_groups] if args.key?(:advertiser_groups) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Landing Page List Response + class AdvertiserLandingPagesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#advertiserLandingPagesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Landing page collection + # Corresponds to the JSON property `landingPages` + # @return [Array] + attr_accessor :landing_pages + + # Pagination token to be used for the next list operation. + # 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) + @kind = args[:kind] if args.key?(:kind) + @landing_pages = args[:landing_pages] if args.key?(:landing_pages) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Advertiser List Response + class AdvertisersListResponse + include Google::Apis::Core::Hashable + + # Advertiser collection. + # Corresponds to the JSON property `advertisers` + # @return [Array] + attr_accessor :advertisers + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#advertisersListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @advertisers = args[:advertisers] if args.key?(:advertisers) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Audience Segment. + class AudienceSegment + include Google::Apis::Core::Hashable + + # Weight allocated to this segment. The weight assigned will be understood in + # proportion to the weights assigned to other segments in the same segment group. + # Acceptable values are 1 to 1000, inclusive. + # Corresponds to the JSON property `allocation` + # @return [Fixnum] + attr_accessor :allocation + + # ID of this audience segment. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Name of this audience segment. This is a required field and must be less than + # 65 characters long. + # 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) + @allocation = args[:allocation] if args.key?(:allocation) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + end + end + + # Audience Segment Group. + class AudienceSegmentGroup + include Google::Apis::Core::Hashable + + # Audience segments assigned to this group. The number of segments must be + # between 2 and 100. + # Corresponds to the JSON property `audienceSegments` + # @return [Array] + attr_accessor :audience_segments + + # ID of this audience segment group. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Name of this audience segment group. This is a required field and must be less + # than 65 characters long. + # 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) + @audience_segments = args[:audience_segments] if args.key?(:audience_segments) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + end + end + + # Contains information about a browser that can be targeted by ads. + class Browser + include Google::Apis::Core::Hashable + + # ID referring to this grouping of browser and version numbers. This is the ID + # used for targeting. + # Corresponds to the JSON property `browserVersionId` + # @return [Fixnum] + attr_accessor :browser_version_id + + # DART ID of this browser. This is the ID used when generating reports. + # Corresponds to the JSON property `dartId` + # @return [Fixnum] + attr_accessor :dart_id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#browser". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Major version number (leftmost number) of this browser. For example, for + # Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be + # used to target any version number, and a question mark (?) may be used to + # target cases where the version number cannot be identified. For example, + # Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* + # targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad + # server knows the browser is Firefox but can't tell which version it is. + # Corresponds to the JSON property `majorVersion` + # @return [String] + attr_accessor :major_version + + # Minor version number (number after first dot on left) of this browser. For + # example, for Chrome 5.0.375.86 beta, this field should be set to 0. An + # asterisk (*) may be used to target any version number, and a question mark (?) + # may be used to target cases where the version number cannot be identified. For + # example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. + # Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases + # where the ad server knows the browser is Firefox but can't tell which version + # it is. + # Corresponds to the JSON property `minorVersion` + # @return [String] + attr_accessor :minor_version + + # Name of this browser. + # 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) + @browser_version_id = args[:browser_version_id] if args.key?(:browser_version_id) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @kind = args[:kind] if args.key?(:kind) + @major_version = args[:major_version] if args.key?(:major_version) + @minor_version = args[:minor_version] if args.key?(:minor_version) + @name = args[:name] if args.key?(:name) + end + end + + # Browser List Response + class BrowsersListResponse + include Google::Apis::Core::Hashable + + # Browser collection. + # Corresponds to the JSON property `browsers` + # @return [Array] + attr_accessor :browsers + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#browsersListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @browsers = args[:browsers] if args.key?(:browsers) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Contains properties of a DCM campaign. + class Campaign + include Google::Apis::Core::Hashable + + # Account ID of this campaign. This is a read-only field that can be left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Campaign ad blocking settings. + # Corresponds to the JSON property `adBlockingConfiguration` + # @return [Google::Apis::DfareportingV3_2::AdBlockingConfiguration] + attr_accessor :ad_blocking_configuration + + # Additional creative optimization configurations for the campaign. + # Corresponds to the JSON property `additionalCreativeOptimizationConfigurations` + # @return [Array] + attr_accessor :additional_creative_optimization_configurations + + # Advertiser group ID of the associated advertiser. + # Corresponds to the JSON property `advertiserGroupId` + # @return [Fixnum] + attr_accessor :advertiser_group_id + + # Advertiser ID of this campaign. This is a required field. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Whether this campaign has been archived. + # Corresponds to the JSON property `archived` + # @return [Boolean] + attr_accessor :archived + alias_method :archived?, :archived + + # Audience segment groups assigned to this campaign. Cannot have more than 300 + # segment groups. + # Corresponds to the JSON property `audienceSegmentGroups` + # @return [Array] + attr_accessor :audience_segment_groups + + # Billing invoice code included in the DCM client billing invoices associated + # with the campaign. + # Corresponds to the JSON property `billingInvoiceCode` + # @return [String] + attr_accessor :billing_invoice_code + + # Click Through URL Suffix settings. + # Corresponds to the JSON property `clickThroughUrlSuffixProperties` + # @return [Google::Apis::DfareportingV3_2::ClickThroughUrlSuffixProperties] + attr_accessor :click_through_url_suffix_properties + + # Arbitrary comments about this campaign. Must be less than 256 characters long. + # Corresponds to the JSON property `comment` + # @return [String] + attr_accessor :comment + + # Modification timestamp. + # Corresponds to the JSON property `createInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :create_info + + # List of creative group IDs that are assigned to the campaign. + # Corresponds to the JSON property `creativeGroupIds` + # @return [Array] + attr_accessor :creative_group_ids + + # Creative optimization settings. + # Corresponds to the JSON property `creativeOptimizationConfiguration` + # @return [Google::Apis::DfareportingV3_2::CreativeOptimizationConfiguration] + attr_accessor :creative_optimization_configuration + + # Properties of inheriting and overriding the default click-through event tag. A + # campaign may override the event tag defined at the advertiser level, and an ad + # may also override the campaign's setting further. + # Corresponds to the JSON property `defaultClickThroughEventTagProperties` + # @return [Google::Apis::DfareportingV3_2::DefaultClickThroughEventTagProperties] + attr_accessor :default_click_through_event_tag_properties + + # The default landing page ID for this campaign. + # Corresponds to the JSON property `defaultLandingPageId` + # @return [Fixnum] + attr_accessor :default_landing_page_id + + # Date on which the campaign will stop running. On insert, the end date must be + # today or a future date. The end date must be later than or be the same as the + # start date. If, for example, you set 6/25/2015 as both the start and end dates, + # the effective campaign run date is just that day only, 6/25/2015. The hours, + # minutes, and seconds of the end date should not be set, as doing so will + # result in an error. This is a required field. + # Corresponds to the JSON property `endDate` + # @return [Date] + attr_accessor :end_date + + # Overrides that can be used to activate or deactivate advertiser event tags. + # Corresponds to the JSON property `eventTagOverrides` + # @return [Array] + attr_accessor :event_tag_overrides + + # External ID for this campaign. + # Corresponds to the JSON property `externalId` + # @return [String] + attr_accessor :external_id + + # ID of this campaign. This is a read-only auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#campaign". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Modification timestamp. + # Corresponds to the JSON property `lastModifiedInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :last_modified_info + + # Lookback configuration settings. + # Corresponds to the JSON property `lookbackConfiguration` + # @return [Google::Apis::DfareportingV3_2::LookbackConfiguration] + attr_accessor :lookback_configuration + + # Name of this campaign. This is a required field and must be less than 256 + # characters long and unique among campaigns of the same advertiser. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Whether Nielsen reports are enabled for this campaign. + # Corresponds to the JSON property `nielsenOcrEnabled` + # @return [Boolean] + attr_accessor :nielsen_ocr_enabled + alias_method :nielsen_ocr_enabled?, :nielsen_ocr_enabled + + # Date on which the campaign starts running. The start date can be any date. The + # hours, minutes, and seconds of the start date should not be set, as doing so + # will result in an error. This is a required field. + # Corresponds to the JSON property `startDate` + # @return [Date] + attr_accessor :start_date + + # Subaccount ID of this campaign. This is a read-only field that can be left + # blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Campaign trafficker contact emails. + # Corresponds to the JSON property `traffickerEmails` + # @return [Array] + attr_accessor :trafficker_emails + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @ad_blocking_configuration = args[:ad_blocking_configuration] if args.key?(:ad_blocking_configuration) + @additional_creative_optimization_configurations = args[:additional_creative_optimization_configurations] if args.key?(:additional_creative_optimization_configurations) + @advertiser_group_id = args[:advertiser_group_id] if args.key?(:advertiser_group_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @archived = args[:archived] if args.key?(:archived) + @audience_segment_groups = args[:audience_segment_groups] if args.key?(:audience_segment_groups) + @billing_invoice_code = args[:billing_invoice_code] if args.key?(:billing_invoice_code) + @click_through_url_suffix_properties = args[:click_through_url_suffix_properties] if args.key?(:click_through_url_suffix_properties) + @comment = args[:comment] if args.key?(:comment) + @create_info = args[:create_info] if args.key?(:create_info) + @creative_group_ids = args[:creative_group_ids] if args.key?(:creative_group_ids) + @creative_optimization_configuration = args[:creative_optimization_configuration] if args.key?(:creative_optimization_configuration) + @default_click_through_event_tag_properties = args[:default_click_through_event_tag_properties] if args.key?(:default_click_through_event_tag_properties) + @default_landing_page_id = args[:default_landing_page_id] if args.key?(:default_landing_page_id) + @end_date = args[:end_date] if args.key?(:end_date) + @event_tag_overrides = args[:event_tag_overrides] if args.key?(:event_tag_overrides) + @external_id = args[:external_id] if args.key?(:external_id) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) + @name = args[:name] if args.key?(:name) + @nielsen_ocr_enabled = args[:nielsen_ocr_enabled] if args.key?(:nielsen_ocr_enabled) + @start_date = args[:start_date] if args.key?(:start_date) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @trafficker_emails = args[:trafficker_emails] if args.key?(:trafficker_emails) + end + end + + # Identifies a creative which has been associated with a given campaign. + class CampaignCreativeAssociation + include Google::Apis::Core::Hashable + + # ID of the creative associated with the campaign. This is a required field. + # Corresponds to the JSON property `creativeId` + # @return [Fixnum] + attr_accessor :creative_id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#campaignCreativeAssociation". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creative_id = args[:creative_id] if args.key?(:creative_id) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Campaign Creative Association List Response + class CampaignCreativeAssociationsListResponse + include Google::Apis::Core::Hashable + + # Campaign creative association collection + # Corresponds to the JSON property `campaignCreativeAssociations` + # @return [Array] + attr_accessor :campaign_creative_associations + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#campaignCreativeAssociationsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @campaign_creative_associations = args[:campaign_creative_associations] if args.key?(:campaign_creative_associations) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Campaign List Response + class CampaignsListResponse + include Google::Apis::Core::Hashable + + # Campaign collection. + # Corresponds to the JSON property `campaigns` + # @return [Array] + attr_accessor :campaigns + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#campaignsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @campaigns = args[:campaigns] if args.key?(:campaigns) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Describes a change that a user has made to a resource. + class ChangeLog + include Google::Apis::Core::Hashable + + # Account ID of the modified object. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Action which caused the change. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # Time when the object was modified. + # Corresponds to the JSON property `changeTime` + # @return [DateTime] + attr_accessor :change_time + + # Field name of the object which changed. + # Corresponds to the JSON property `fieldName` + # @return [String] + attr_accessor :field_name + + # ID of this change log. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#changeLog". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # New value of the object field. + # Corresponds to the JSON property `newValue` + # @return [String] + attr_accessor :new_value + + # ID of the object of this change log. The object could be a campaign, placement, + # ad, or other type. + # Corresponds to the JSON property `objectId` + # @return [Fixnum] + attr_accessor :object_id_prop + + # Object type of the change log. + # Corresponds to the JSON property `objectType` + # @return [String] + attr_accessor :object_type + + # Old value of the object field. + # Corresponds to the JSON property `oldValue` + # @return [String] + attr_accessor :old_value + + # Subaccount ID of the modified object. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Transaction ID of this change log. When a single API call results in many + # changes, each change will have a separate ID in the change log but will share + # the same transactionId. + # Corresponds to the JSON property `transactionId` + # @return [Fixnum] + attr_accessor :transaction_id + + # ID of the user who modified the object. + # Corresponds to the JSON property `userProfileId` + # @return [Fixnum] + attr_accessor :user_profile_id + + # User profile name of the user who modified the object. + # Corresponds to the JSON property `userProfileName` + # @return [String] + attr_accessor :user_profile_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @action = args[:action] if args.key?(:action) + @change_time = args[:change_time] if args.key?(:change_time) + @field_name = args[:field_name] if args.key?(:field_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @new_value = args[:new_value] if args.key?(:new_value) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) + @object_type = args[:object_type] if args.key?(:object_type) + @old_value = args[:old_value] if args.key?(:old_value) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @transaction_id = args[:transaction_id] if args.key?(:transaction_id) + @user_profile_id = args[:user_profile_id] if args.key?(:user_profile_id) + @user_profile_name = args[:user_profile_name] if args.key?(:user_profile_name) + end + end + + # Change Log List Response + class ChangeLogsListResponse + include Google::Apis::Core::Hashable + + # Change log collection. + # Corresponds to the JSON property `changeLogs` + # @return [Array] + attr_accessor :change_logs + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#changeLogsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @change_logs = args[:change_logs] if args.key?(:change_logs) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # City List Response + class CitiesListResponse + include Google::Apis::Core::Hashable + + # City collection. + # Corresponds to the JSON property `cities` + # @return [Array] + attr_accessor :cities + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#citiesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cities = args[:cities] if args.key?(:cities) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Contains information about a city that can be targeted by ads. + class City + include Google::Apis::Core::Hashable + + # Country code of the country to which this city belongs. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # DART ID of the country to which this city belongs. + # Corresponds to the JSON property `countryDartId` + # @return [Fixnum] + attr_accessor :country_dart_id + + # DART ID of this city. This is the ID used for targeting and generating reports. + # Corresponds to the JSON property `dartId` + # @return [Fixnum] + attr_accessor :dart_id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#city". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Metro region code of the metro region (DMA) to which this city belongs. + # Corresponds to the JSON property `metroCode` + # @return [String] + attr_accessor :metro_code + + # ID of the metro region (DMA) to which this city belongs. + # Corresponds to the JSON property `metroDmaId` + # @return [Fixnum] + attr_accessor :metro_dma_id + + # Name of this city. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Region code of the region to which this city belongs. + # Corresponds to the JSON property `regionCode` + # @return [String] + attr_accessor :region_code + + # DART ID of the region to which this city belongs. + # Corresponds to the JSON property `regionDartId` + # @return [Fixnum] + attr_accessor :region_dart_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country_code = args[:country_code] if args.key?(:country_code) + @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @kind = args[:kind] if args.key?(:kind) + @metro_code = args[:metro_code] if args.key?(:metro_code) + @metro_dma_id = args[:metro_dma_id] if args.key?(:metro_dma_id) + @name = args[:name] if args.key?(:name) + @region_code = args[:region_code] if args.key?(:region_code) + @region_dart_id = args[:region_dart_id] if args.key?(:region_dart_id) + end + end + + # Creative Click Tag. + class ClickTag + include Google::Apis::Core::Hashable + + # Click-through URL + # Corresponds to the JSON property `clickThroughUrl` + # @return [Google::Apis::DfareportingV3_2::CreativeClickThroughUrl] + attr_accessor :click_through_url + + # Advertiser event name associated with the click tag. This field is used by + # DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to DISPLAY when + # the primary asset type is not HTML_IMAGE. + # Corresponds to the JSON property `eventName` + # @return [String] + attr_accessor :event_name + + # Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY creative + # assets, this field must match the value of the creative asset's + # creativeAssetId.name field. + # 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) + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @event_name = args[:event_name] if args.key?(:event_name) + @name = args[:name] if args.key?(:name) + end + end + + # Click-through URL + class ClickThroughUrl + include Google::Apis::Core::Hashable + + # Read-only convenience field representing the actual URL that will be used for + # this click-through. The URL is computed as follows: + # - If defaultLandingPage is enabled then the campaign's default landing page + # URL is assigned to this field. + # - If defaultLandingPage is not enabled and a landingPageId is specified then + # that landing page's URL is assigned to this field. + # - If neither of the above cases apply, then the customClickThroughUrl is + # assigned to this field. + # Corresponds to the JSON property `computedClickThroughUrl` + # @return [String] + attr_accessor :computed_click_through_url + + # Custom click-through URL. Applicable if the defaultLandingPage field is set to + # false and the landingPageId field is left unset. + # Corresponds to the JSON property `customClickThroughUrl` + # @return [String] + attr_accessor :custom_click_through_url + + # Whether the campaign default landing page is used. + # Corresponds to the JSON property `defaultLandingPage` + # @return [Boolean] + attr_accessor :default_landing_page + alias_method :default_landing_page?, :default_landing_page + + # ID of the landing page for the click-through URL. Applicable if the + # defaultLandingPage field is set to false. + # Corresponds to the JSON property `landingPageId` + # @return [Fixnum] + attr_accessor :landing_page_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @computed_click_through_url = args[:computed_click_through_url] if args.key?(:computed_click_through_url) + @custom_click_through_url = args[:custom_click_through_url] if args.key?(:custom_click_through_url) + @default_landing_page = args[:default_landing_page] if args.key?(:default_landing_page) + @landing_page_id = args[:landing_page_id] if args.key?(:landing_page_id) + end + end + + # Click Through URL Suffix settings. + class ClickThroughUrlSuffixProperties + include Google::Apis::Core::Hashable + + # Click-through URL suffix to apply to all ads in this entity's scope. Must be + # less than 128 characters long. + # Corresponds to the JSON property `clickThroughUrlSuffix` + # @return [String] + attr_accessor :click_through_url_suffix + + # Whether this entity should override the inherited click-through URL suffix + # with its own defined value. + # Corresponds to the JSON property `overrideInheritedSuffix` + # @return [Boolean] + attr_accessor :override_inherited_suffix + alias_method :override_inherited_suffix?, :override_inherited_suffix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @click_through_url_suffix = args[:click_through_url_suffix] if args.key?(:click_through_url_suffix) + @override_inherited_suffix = args[:override_inherited_suffix] if args.key?(:override_inherited_suffix) + end + end + + # Companion Click-through override. + class CompanionClickThroughOverride + include Google::Apis::Core::Hashable + + # Click-through URL + # Corresponds to the JSON property `clickThroughUrl` + # @return [Google::Apis::DfareportingV3_2::ClickThroughUrl] + attr_accessor :click_through_url + + # ID of the creative for this companion click-through override. + # Corresponds to the JSON property `creativeId` + # @return [Fixnum] + attr_accessor :creative_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @creative_id = args[:creative_id] if args.key?(:creative_id) + end + end + + # Companion Settings + class CompanionSetting + include Google::Apis::Core::Hashable + + # Whether companions are disabled for this placement. + # Corresponds to the JSON property `companionsDisabled` + # @return [Boolean] + attr_accessor :companions_disabled + alias_method :companions_disabled?, :companions_disabled + + # Whitelist of companion sizes to be served to this placement. Set this list to + # null or empty to serve all companion sizes. + # Corresponds to the JSON property `enabledSizes` + # @return [Array] + attr_accessor :enabled_sizes + + # Whether to serve only static images as companions. + # Corresponds to the JSON property `imageOnly` + # @return [Boolean] + attr_accessor :image_only + alias_method :image_only?, :image_only + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#companionSetting". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @companions_disabled = args[:companions_disabled] if args.key?(:companions_disabled) + @enabled_sizes = args[:enabled_sizes] if args.key?(:enabled_sizes) + @image_only = args[:image_only] if args.key?(:image_only) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Represents a response to the queryCompatibleFields method. + class CompatibleFields + include Google::Apis::Core::Hashable + + # Represents fields that are compatible to be selected for a report of type " + # CROSS_DIMENSION_REACH". + # Corresponds to the JSON property `crossDimensionReachReportCompatibleFields` + # @return [Google::Apis::DfareportingV3_2::CrossDimensionReachReportCompatibleFields] + attr_accessor :cross_dimension_reach_report_compatible_fields + + # Represents fields that are compatible to be selected for a report of type " + # FlOODLIGHT". + # Corresponds to the JSON property `floodlightReportCompatibleFields` + # @return [Google::Apis::DfareportingV3_2::FloodlightReportCompatibleFields] + attr_accessor :floodlight_report_compatible_fields + + # The kind of resource this is, in this case dfareporting#compatibleFields. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Represents fields that are compatible to be selected for a report of type " + # PATH_TO_CONVERSION". + # Corresponds to the JSON property `pathToConversionReportCompatibleFields` + # @return [Google::Apis::DfareportingV3_2::PathToConversionReportCompatibleFields] + attr_accessor :path_to_conversion_report_compatible_fields + + # Represents fields that are compatible to be selected for a report of type " + # REACH". + # Corresponds to the JSON property `reachReportCompatibleFields` + # @return [Google::Apis::DfareportingV3_2::ReachReportCompatibleFields] + attr_accessor :reach_report_compatible_fields + + # Represents fields that are compatible to be selected for a report of type " + # STANDARD". + # Corresponds to the JSON property `reportCompatibleFields` + # @return [Google::Apis::DfareportingV3_2::ReportCompatibleFields] + attr_accessor :report_compatible_fields + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cross_dimension_reach_report_compatible_fields = args[:cross_dimension_reach_report_compatible_fields] if args.key?(:cross_dimension_reach_report_compatible_fields) + @floodlight_report_compatible_fields = args[:floodlight_report_compatible_fields] if args.key?(:floodlight_report_compatible_fields) + @kind = args[:kind] if args.key?(:kind) + @path_to_conversion_report_compatible_fields = args[:path_to_conversion_report_compatible_fields] if args.key?(:path_to_conversion_report_compatible_fields) + @reach_report_compatible_fields = args[:reach_report_compatible_fields] if args.key?(:reach_report_compatible_fields) + @report_compatible_fields = args[:report_compatible_fields] if args.key?(:report_compatible_fields) + end + end + + # Contains information about an internet connection type that can be targeted by + # ads. Clients can use the connection type to target mobile vs. broadband users. + class ConnectionType + include Google::Apis::Core::Hashable + + # ID of this connection type. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#connectionType". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this connection type. + # 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) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # Connection Type List Response + class ConnectionTypesListResponse + include Google::Apis::Core::Hashable + + # Collection of connection types such as broadband and mobile. + # Corresponds to the JSON property `connectionTypes` + # @return [Array] + attr_accessor :connection_types + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#connectionTypesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @connection_types = args[:connection_types] if args.key?(:connection_types) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Content Category List Response + class ContentCategoriesListResponse + include Google::Apis::Core::Hashable + + # Content category collection. + # Corresponds to the JSON property `contentCategories` + # @return [Array] + attr_accessor :content_categories + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#contentCategoriesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @content_categories = args[:content_categories] if args.key?(:content_categories) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Organizes placements according to the contents of their associated webpages. + class ContentCategory + include Google::Apis::Core::Hashable + + # Account ID of this content category. This is a read-only field that can be + # left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # ID of this content category. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#contentCategory". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this content category. This is a required field and must be less than + # 256 characters long and unique among content categories of the same account. + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # A Conversion represents when a user successfully performs a desired action + # after seeing an ad. + class Conversion + include Google::Apis::Core::Hashable + + # Whether this particular request may come from a user under the age of 13, + # under COPPA compliance. + # Corresponds to the JSON property `childDirectedTreatment` + # @return [Boolean] + attr_accessor :child_directed_treatment + alias_method :child_directed_treatment?, :child_directed_treatment + + # Custom floodlight variables. + # Corresponds to the JSON property `customVariables` + # @return [Array] + attr_accessor :custom_variables + + # The alphanumeric encrypted user ID. When set, encryptionInfo should also be + # specified. This field is mutually exclusive with encryptedUserIdCandidates[], + # mobileDeviceId and gclid. This or encryptedUserIdCandidates[] or + # mobileDeviceId or gclid is a required field. + # Corresponds to the JSON property `encryptedUserId` + # @return [String] + attr_accessor :encrypted_user_id + + # A list of the alphanumeric encrypted user IDs. Any user ID with exposure prior + # to the conversion timestamp will be used in the inserted conversion. If no + # such user ID is found then the conversion will be rejected with + # NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo should also be specified. + # This field may only be used when calling batchinsert; it is not supported by + # batchupdate. This field is mutually exclusive with encryptedUserId, + # mobileDeviceId and gclid. This or encryptedUserId or mobileDeviceId or gclid + # is a required field. + # Corresponds to the JSON property `encryptedUserIdCandidates` + # @return [Array] + attr_accessor :encrypted_user_id_candidates + + # Floodlight Activity ID of this conversion. This is a required field. + # Corresponds to the JSON property `floodlightActivityId` + # @return [Fixnum] + attr_accessor :floodlight_activity_id + + # Floodlight Configuration ID of this conversion. This is a required field. + # Corresponds to the JSON property `floodlightConfigurationId` + # @return [Fixnum] + attr_accessor :floodlight_configuration_id + + # The Google click ID. This field is mutually exclusive with encryptedUserId, + # encryptedUserIdCandidates[] and mobileDeviceId. This or encryptedUserId or + # encryptedUserIdCandidates[] or mobileDeviceId is a required field. + # Corresponds to the JSON property `gclid` + # @return [String] + attr_accessor :gclid + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#conversion". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Whether Limit Ad Tracking is enabled. When set to true, the conversion will be + # used for reporting but not targeting. This will prevent remarketing. + # Corresponds to the JSON property `limitAdTracking` + # @return [Boolean] + attr_accessor :limit_ad_tracking + alias_method :limit_ad_tracking?, :limit_ad_tracking + + # The mobile device ID. This field is mutually exclusive with encryptedUserId, + # encryptedUserIdCandidates[] and gclid. This or encryptedUserId or + # encryptedUserIdCandidates[] or gclid is a required field. + # Corresponds to the JSON property `mobileDeviceId` + # @return [String] + attr_accessor :mobile_device_id + + # Whether the conversion was for a non personalized ad. + # Corresponds to the JSON property `nonPersonalizedAd` + # @return [Boolean] + attr_accessor :non_personalized_ad + alias_method :non_personalized_ad?, :non_personalized_ad + + # The ordinal of the conversion. Use this field to control how conversions of + # the same user and day are de-duplicated. This is a required field. + # Corresponds to the JSON property `ordinal` + # @return [String] + attr_accessor :ordinal + + # The quantity of the conversion. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The timestamp of conversion, in Unix epoch micros. This is a required field. + # Corresponds to the JSON property `timestampMicros` + # @return [Fixnum] + attr_accessor :timestamp_micros + + # Whether this particular request may come from a user under the age of 16 (may + # differ by country), under compliance with the EU?s General Data Protection + # Regulation (GDPR). + # Corresponds to the JSON property `treatmentForUnderage` + # @return [Boolean] + attr_accessor :treatment_for_underage + alias_method :treatment_for_underage?, :treatment_for_underage + + # The value of the conversion. + # Corresponds to the JSON property `value` + # @return [Float] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @child_directed_treatment = args[:child_directed_treatment] if args.key?(:child_directed_treatment) + @custom_variables = args[:custom_variables] if args.key?(:custom_variables) + @encrypted_user_id = args[:encrypted_user_id] if args.key?(:encrypted_user_id) + @encrypted_user_id_candidates = args[:encrypted_user_id_candidates] if args.key?(:encrypted_user_id_candidates) + @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id) + @floodlight_configuration_id = args[:floodlight_configuration_id] if args.key?(:floodlight_configuration_id) + @gclid = args[:gclid] if args.key?(:gclid) + @kind = args[:kind] if args.key?(:kind) + @limit_ad_tracking = args[:limit_ad_tracking] if args.key?(:limit_ad_tracking) + @mobile_device_id = args[:mobile_device_id] if args.key?(:mobile_device_id) + @non_personalized_ad = args[:non_personalized_ad] if args.key?(:non_personalized_ad) + @ordinal = args[:ordinal] if args.key?(:ordinal) + @quantity = args[:quantity] if args.key?(:quantity) + @timestamp_micros = args[:timestamp_micros] if args.key?(:timestamp_micros) + @treatment_for_underage = args[:treatment_for_underage] if args.key?(:treatment_for_underage) + @value = args[:value] if args.key?(:value) + end + end + + # The error code and description for a conversion that failed to insert or + # update. + class ConversionError + include Google::Apis::Core::Hashable + + # The error code. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#conversionError". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A description of the error. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @kind = args[:kind] if args.key?(:kind) + @message = args[:message] if args.key?(:message) + end + end + + # The original conversion that was inserted or updated and whether there were + # any errors. + class ConversionStatus + include Google::Apis::Core::Hashable + + # A Conversion represents when a user successfully performs a desired action + # after seeing an ad. + # Corresponds to the JSON property `conversion` + # @return [Google::Apis::DfareportingV3_2::Conversion] + attr_accessor :conversion + + # A list of errors related to this conversion. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#conversionStatus". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conversion = args[:conversion] if args.key?(:conversion) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Insert Conversions Request. + class ConversionsBatchInsertRequest + include Google::Apis::Core::Hashable + + # The set of conversions to insert. + # Corresponds to the JSON property `conversions` + # @return [Array] + attr_accessor :conversions + + # A description of how user IDs are encrypted. + # Corresponds to the JSON property `encryptionInfo` + # @return [Google::Apis::DfareportingV3_2::EncryptionInfo] + attr_accessor :encryption_info + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#conversionsBatchInsertRequest". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conversions = args[:conversions] if args.key?(:conversions) + @encryption_info = args[:encryption_info] if args.key?(:encryption_info) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Insert Conversions Response. + class ConversionsBatchInsertResponse + include Google::Apis::Core::Hashable + + # Indicates that some or all conversions failed to insert. + # Corresponds to the JSON property `hasFailures` + # @return [Boolean] + attr_accessor :has_failures + alias_method :has_failures?, :has_failures + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#conversionsBatchInsertResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The insert status of each conversion. Statuses are returned in the same order + # that conversions are inserted. + # Corresponds to the JSON property `status` + # @return [Array] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @has_failures = args[:has_failures] if args.key?(:has_failures) + @kind = args[:kind] if args.key?(:kind) + @status = args[:status] if args.key?(:status) + end + end + + # Update Conversions Request. + class ConversionsBatchUpdateRequest + include Google::Apis::Core::Hashable + + # The set of conversions to update. + # Corresponds to the JSON property `conversions` + # @return [Array] + attr_accessor :conversions + + # A description of how user IDs are encrypted. + # Corresponds to the JSON property `encryptionInfo` + # @return [Google::Apis::DfareportingV3_2::EncryptionInfo] + attr_accessor :encryption_info + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#conversionsBatchUpdateRequest". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conversions = args[:conversions] if args.key?(:conversions) + @encryption_info = args[:encryption_info] if args.key?(:encryption_info) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Update Conversions Response. + class ConversionsBatchUpdateResponse + include Google::Apis::Core::Hashable + + # Indicates that some or all conversions failed to update. + # Corresponds to the JSON property `hasFailures` + # @return [Boolean] + attr_accessor :has_failures + alias_method :has_failures?, :has_failures + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#conversionsBatchUpdateResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The update status of each conversion. Statuses are returned in the same order + # that conversions are updated. + # Corresponds to the JSON property `status` + # @return [Array] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @has_failures = args[:has_failures] if args.key?(:has_failures) + @kind = args[:kind] if args.key?(:kind) + @status = args[:status] if args.key?(:status) + end + end + + # Country List Response + class CountriesListResponse + include Google::Apis::Core::Hashable + + # Country collection. + # Corresponds to the JSON property `countries` + # @return [Array] + attr_accessor :countries + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#countriesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @countries = args[:countries] if args.key?(:countries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Contains information about a country that can be targeted by ads. + class Country + include Google::Apis::Core::Hashable + + # Country code. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # DART ID of this country. This is the ID used for targeting and generating + # reports. + # Corresponds to the JSON property `dartId` + # @return [Fixnum] + attr_accessor :dart_id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#country". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this country. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Whether ad serving supports secure servers in this country. + # Corresponds to the JSON property `sslEnabled` + # @return [Boolean] + attr_accessor :ssl_enabled + alias_method :ssl_enabled?, :ssl_enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country_code = args[:country_code] if args.key?(:country_code) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @ssl_enabled = args[:ssl_enabled] if args.key?(:ssl_enabled) + end + end + + # Contains properties of a Creative. + class Creative + include Google::Apis::Core::Hashable + + # Account ID of this creative. This field, if left unset, will be auto-generated + # for both insert and update operations. Applicable to all creative types. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Whether the creative is active. Applicable to all creative types. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # Ad parameters user for VPAID creative. This is a read-only field. Applicable + # to the following creative types: all VPAID. + # Corresponds to the JSON property `adParameters` + # @return [String] + attr_accessor :ad_parameters + + # Keywords for a Rich Media creative. Keywords let you customize the creative + # settings of a Rich Media ad running on your site without having to contact the + # advertiser. You can use keywords to dynamically change the look or + # functionality of a creative. Applicable to the following creative types: all + # RICH_MEDIA, and all VPAID. + # Corresponds to the JSON property `adTagKeys` + # @return [Array] + attr_accessor :ad_tag_keys + + # Additional sizes associated with a responsive creative. When inserting or + # updating a creative either the size ID field or size width and height fields + # can be used. Applicable to DISPLAY creatives when the primary asset type is + # HTML_IMAGE + # Corresponds to the JSON property `additionalSizes` + # @return [Array] + attr_accessor :additional_sizes + + # Advertiser ID of this creative. This is a required field. Applicable to all + # creative types. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Whether script access is allowed for this creative. This is a read-only and + # deprecated field which will automatically be set to true on update. Applicable + # to the following creative types: FLASH_INPAGE. + # Corresponds to the JSON property `allowScriptAccess` + # @return [Boolean] + attr_accessor :allow_script_access + alias_method :allow_script_access?, :allow_script_access + + # Whether the creative is archived. Applicable to all creative types. + # Corresponds to the JSON property `archived` + # @return [Boolean] + attr_accessor :archived + alias_method :archived?, :archived + + # Type of artwork used for the creative. This is a read-only field. Applicable + # to the following creative types: all RICH_MEDIA, and all VPAID. + # Corresponds to the JSON property `artworkType` + # @return [String] + attr_accessor :artwork_type + + # Source application where creative was authored. Presently, only DBM authored + # creatives will have this field set. Applicable to all creative types. + # Corresponds to the JSON property `authoringSource` + # @return [String] + attr_accessor :authoring_source + + # Authoring tool for HTML5 banner creatives. This is a read-only field. + # Applicable to the following creative types: HTML5_BANNER. + # Corresponds to the JSON property `authoringTool` + # @return [String] + attr_accessor :authoring_tool + + # Whether images are automatically advanced for image gallery creatives. + # Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. + # Corresponds to the JSON property `autoAdvanceImages` + # @return [Boolean] + attr_accessor :auto_advance_images + alias_method :auto_advance_images?, :auto_advance_images + + # The 6-character HTML color code, beginning with #, for the background of the + # window area where the Flash file is displayed. Default is white. Applicable to + # the following creative types: FLASH_INPAGE. + # Corresponds to the JSON property `backgroundColor` + # @return [String] + attr_accessor :background_color + + # Click-through URL + # Corresponds to the JSON property `backupImageClickThroughUrl` + # @return [Google::Apis::DfareportingV3_2::CreativeClickThroughUrl] + attr_accessor :backup_image_click_through_url + + # List of feature dependencies that will cause a backup image to be served if + # the browser that serves the ad does not support them. Feature dependencies are + # features that a browser must be able to support in order to render your HTML5 + # creative asset correctly. This field is initially auto-generated to contain + # all features detected by DCM for all the assets of this creative and can then + # be modified by the client. To reset this field, copy over all the + # creativeAssets' detected features. Applicable to the following creative types: + # HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not + # HTML_IMAGE. + # Corresponds to the JSON property `backupImageFeatures` + # @return [Array] + attr_accessor :backup_image_features + + # Reporting label used for HTML5 banner backup image. Applicable to the + # following creative types: DISPLAY when the primary asset type is not + # HTML_IMAGE. + # Corresponds to the JSON property `backupImageReportingLabel` + # @return [String] + attr_accessor :backup_image_reporting_label + + # Target Window. + # Corresponds to the JSON property `backupImageTargetWindow` + # @return [Google::Apis::DfareportingV3_2::TargetWindow] + attr_accessor :backup_image_target_window + + # Click tags of the creative. For DISPLAY, FLASH_INPAGE, and HTML5_BANNER + # creatives, this is a subset of detected click tags for the assets associated + # with this creative. After creating a flash asset, detected click tags will be + # returned in the creativeAssetMetadata. When inserting the creative, populate + # the creative clickTags field using the creativeAssetMetadata.clickTags field. + # For DISPLAY_IMAGE_GALLERY creatives, there should be exactly one entry in this + # list for each image creative asset. A click tag is matched with a + # corresponding creative asset by matching the clickTag.name field with the + # creativeAsset.assetIdentifier.name field. Applicable to the following creative + # types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. Applicable to + # DISPLAY when the primary asset type is not HTML_IMAGE. + # Corresponds to the JSON property `clickTags` + # @return [Array] + attr_accessor :click_tags + + # Industry standard ID assigned to creative for reach and frequency. Applicable + # to INSTREAM_VIDEO_REDIRECT creatives. + # Corresponds to the JSON property `commercialId` + # @return [String] + attr_accessor :commercial_id + + # List of companion creatives assigned to an in-Stream video creative. + # Acceptable values include IDs of existing flash and image creatives. + # Applicable to the following creative types: all VPAID, all INSTREAM_AUDIO and + # all INSTREAM_VIDEO with dynamicAssetSelection set to false. + # Corresponds to the JSON property `companionCreatives` + # @return [Array] + attr_accessor :companion_creatives + + # Compatibilities associated with this creative. This is a read-only field. + # DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on + # mobile devices or in mobile apps for regular or interstitial ads, respectively. + # APP and APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing + # creatives may have these compatibilities since new creatives will either be + # assigned DISPLAY or DISPLAY_INTERSTITIAL instead. IN_STREAM_VIDEO refers to + # rendering in in-stream video ads developed with the VAST standard. + # IN_STREAM_AUDIO refers to rendering in in-stream audio ads developed with the + # VAST standard. Applicable to all creative types. + # Acceptable values are: + # - "APP" + # - "APP_INTERSTITIAL" + # - "IN_STREAM_VIDEO" + # - "IN_STREAM_AUDIO" + # - "DISPLAY" + # - "DISPLAY_INTERSTITIAL" + # Corresponds to the JSON property `compatibility` + # @return [Array] + attr_accessor :compatibility + + # Whether Flash assets associated with the creative need to be automatically + # converted to HTML5. This flag is enabled by default and users can choose to + # disable it if they don't want the system to generate and use HTML5 asset for + # this creative. Applicable to the following creative type: FLASH_INPAGE. + # Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + # Corresponds to the JSON property `convertFlashToHtml5` + # @return [Boolean] + attr_accessor :convert_flash_to_html5 + alias_method :convert_flash_to_html5?, :convert_flash_to_html5 + + # List of counter events configured for the creative. For DISPLAY_IMAGE_GALLERY + # creatives, these are read-only and auto-generated from clickTags. Applicable + # to the following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and + # all VPAID. + # Corresponds to the JSON property `counterCustomEvents` + # @return [Array] + attr_accessor :counter_custom_events + + # Encapsulates the list of rules for asset selection and a default asset in case + # none of the rules match. Applicable to INSTREAM_VIDEO creatives. + # Corresponds to the JSON property `creativeAssetSelection` + # @return [Google::Apis::DfareportingV3_2::CreativeAssetSelection] + attr_accessor :creative_asset_selection + + # Assets associated with a creative. Applicable to all but the following + # creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and + # REDIRECT + # Corresponds to the JSON property `creativeAssets` + # @return [Array] + attr_accessor :creative_assets + + # Creative field assignments for this creative. Applicable to all creative types. + # Corresponds to the JSON property `creativeFieldAssignments` + # @return [Array] + attr_accessor :creative_field_assignments + + # Custom key-values for a Rich Media creative. Key-values let you customize the + # creative settings of a Rich Media ad running on your site without having to + # contact the advertiser. You can use key-values to dynamically change the look + # or functionality of a creative. Applicable to the following creative types: + # all RICH_MEDIA, and all VPAID. + # Corresponds to the JSON property `customKeyValues` + # @return [Array] + attr_accessor :custom_key_values + + # Set this to true to enable the use of rules to target individual assets in + # this creative. When set to true creativeAssetSelection must be set. This also + # controls asset-level companions. When this is true, companion creatives should + # be assigned to creative assets. Learn more. Applicable to INSTREAM_VIDEO + # creatives. + # Corresponds to the JSON property `dynamicAssetSelection` + # @return [Boolean] + attr_accessor :dynamic_asset_selection + alias_method :dynamic_asset_selection?, :dynamic_asset_selection + + # List of exit events configured for the creative. For DISPLAY and + # DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + # clickTags, For DISPLAY, an event is also created from the + # backupImageReportingLabel. Applicable to the following creative types: + # DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + # when the primary asset type is not HTML_IMAGE. + # Corresponds to the JSON property `exitCustomEvents` + # @return [Array] + attr_accessor :exit_custom_events + + # FsCommand. + # Corresponds to the JSON property `fsCommand` + # @return [Google::Apis::DfareportingV3_2::FsCommand] + attr_accessor :fs_command + + # HTML code for the creative. This is a required field when applicable. This + # field is ignored if htmlCodeLocked is true. Applicable to the following + # creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all RICH_MEDIA. + # Corresponds to the JSON property `htmlCode` + # @return [String] + attr_accessor :html_code + + # Whether HTML code is DCM-generated or manually entered. Set to true to ignore + # changes to htmlCode. Applicable to the following creative types: FLASH_INPAGE + # and HTML5_BANNER. + # Corresponds to the JSON property `htmlCodeLocked` + # @return [Boolean] + attr_accessor :html_code_locked + alias_method :html_code_locked?, :html_code_locked + + # ID of this creative. This is a read-only, auto-generated field. Applicable to + # all creative types. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#creative". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Modification timestamp. + # Corresponds to the JSON property `lastModifiedInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :last_modified_info + + # Latest Studio trafficked creative ID associated with rich media and VPAID + # creatives. This is a read-only field. Applicable to the following creative + # types: all RICH_MEDIA, and all VPAID. + # Corresponds to the JSON property `latestTraffickedCreativeId` + # @return [Fixnum] + attr_accessor :latest_trafficked_creative_id + + # Description of the audio or video ad. Applicable to the following creative + # types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and all VPAID. + # Corresponds to the JSON property `mediaDescription` + # @return [String] + attr_accessor :media_description + + # Creative audio or video duration in seconds. This is a read-only field. + # Applicable to the following creative types: INSTREAM_VIDEO, INSTREAM_AUDIO, + # all RICH_MEDIA, and all VPAID. + # Corresponds to the JSON property `mediaDuration` + # @return [Float] + attr_accessor :media_duration + + # Name of the creative. This is a required field and must be less than 256 + # characters long. Applicable to all creative types. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Override CSS value for rich media creatives. Applicable to the following + # creative types: all RICH_MEDIA. + # Corresponds to the JSON property `overrideCss` + # @return [String] + attr_accessor :override_css + + # The asset ID of the polite load image asset. Applicable to the creative type: + # DISPLAY. + # Corresponds to the JSON property `politeLoadAssetId` + # @return [Fixnum] + attr_accessor :polite_load_asset_id + + # Video Offset + # Corresponds to the JSON property `progressOffset` + # @return [Google::Apis::DfareportingV3_2::VideoOffset] + attr_accessor :progress_offset + + # URL of hosted image or hosted video or another ad tag. For + # INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. + # The standard for a VAST (Video Ad Serving Template) ad response allows for a + # redirect link to another VAST 2.0 or 3.0 call. This is a required field when + # applicable. Applicable to the following creative types: DISPLAY_REDIRECT, + # INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT + # Corresponds to the JSON property `redirectUrl` + # @return [String] + attr_accessor :redirect_url + + # ID of current rendering version. This is a read-only field. Applicable to all + # creative types. + # Corresponds to the JSON property `renderingId` + # @return [Fixnum] + attr_accessor :rendering_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `renderingIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :rendering_id_dimension_value + + # The minimum required Flash plugin version for this creative. For example, 11.2. + # 202.235. This is a read-only field. Applicable to the following creative types: + # all RICH_MEDIA, and all VPAID. + # Corresponds to the JSON property `requiredFlashPluginVersion` + # @return [String] + attr_accessor :required_flash_plugin_version + + # The internal Flash version for this creative as calculated by DoubleClick + # Studio. This is a read-only field. Applicable to the following creative types: + # FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the + # primary asset type is not HTML_IMAGE. + # Corresponds to the JSON property `requiredFlashVersion` + # @return [Fixnum] + attr_accessor :required_flash_version + + # Represents the dimensions of ads, placements, creatives, or creative assets. + # Corresponds to the JSON property `size` + # @return [Google::Apis::DfareportingV3_2::Size] + attr_accessor :size + + # Video Offset + # Corresponds to the JSON property `skipOffset` + # @return [Google::Apis::DfareportingV3_2::VideoOffset] + attr_accessor :skip_offset + + # Whether the user can choose to skip the creative. Applicable to the following + # creative types: all INSTREAM_VIDEO and all VPAID. + # Corresponds to the JSON property `skippable` + # @return [Boolean] + attr_accessor :skippable + alias_method :skippable?, :skippable + + # Whether the creative is SSL-compliant. This is a read-only field. Applicable + # to all creative types. + # Corresponds to the JSON property `sslCompliant` + # @return [Boolean] + attr_accessor :ssl_compliant + alias_method :ssl_compliant?, :ssl_compliant + + # Whether creative should be treated as SSL compliant even if the system scan + # shows it's not. Applicable to all creative types. + # Corresponds to the JSON property `sslOverride` + # @return [Boolean] + attr_accessor :ssl_override + alias_method :ssl_override?, :ssl_override + + # Studio advertiser ID associated with rich media and VPAID creatives. This is a + # read-only field. Applicable to the following creative types: all RICH_MEDIA, + # and all VPAID. + # Corresponds to the JSON property `studioAdvertiserId` + # @return [Fixnum] + attr_accessor :studio_advertiser_id + + # Studio creative ID associated with rich media and VPAID creatives. This is a + # read-only field. Applicable to the following creative types: all RICH_MEDIA, + # and all VPAID. + # Corresponds to the JSON property `studioCreativeId` + # @return [Fixnum] + attr_accessor :studio_creative_id + + # Studio trafficked creative ID associated with rich media and VPAID creatives. + # This is a read-only field. Applicable to the following creative types: all + # RICH_MEDIA, and all VPAID. + # Corresponds to the JSON property `studioTraffickedCreativeId` + # @return [Fixnum] + attr_accessor :studio_trafficked_creative_id + + # Subaccount ID of this creative. This field, if left unset, will be auto- + # generated for both insert and update operations. Applicable to all creative + # types. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Third-party URL used to record backup image impressions. Applicable to the + # following creative types: all RICH_MEDIA. + # Corresponds to the JSON property `thirdPartyBackupImageImpressionsUrl` + # @return [String] + attr_accessor :third_party_backup_image_impressions_url + + # Third-party URL used to record rich media impressions. Applicable to the + # following creative types: all RICH_MEDIA. + # Corresponds to the JSON property `thirdPartyRichMediaImpressionsUrl` + # @return [String] + attr_accessor :third_party_rich_media_impressions_url + + # Third-party URLs for tracking in-stream creative events. Applicable to the + # following creative types: all INSTREAM_VIDEO, all INSTREAM_AUDIO, and all + # VPAID. + # Corresponds to the JSON property `thirdPartyUrls` + # @return [Array] + attr_accessor :third_party_urls + + # List of timer events configured for the creative. For DISPLAY_IMAGE_GALLERY + # creatives, these are read-only and auto-generated from clickTags. Applicable + # to the following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and + # all VPAID. Applicable to DISPLAY when the primary asset is not HTML_IMAGE. + # Corresponds to the JSON property `timerCustomEvents` + # @return [Array] + attr_accessor :timer_custom_events + + # Combined size of all creative assets. This is a read-only field. Applicable to + # the following creative types: all RICH_MEDIA, and all VPAID. + # Corresponds to the JSON property `totalFileSize` + # @return [Fixnum] + attr_accessor :total_file_size + + # Type of this creative. This is a required field. Applicable to all creative + # types. + # Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing + # creatives. New creatives should use DISPLAY as a replacement for these types. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following + # creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID. + # Corresponds to the JSON property `universalAdId` + # @return [Google::Apis::DfareportingV3_2::UniversalAdId] + attr_accessor :universal_ad_id + + # The version number helps you keep track of multiple versions of your creative + # in your reports. The version number will always be auto-generated during + # insert operations to start at 1. For tracking creatives the version cannot be + # incremented and will always remain at 1. For all other creative types the + # version can be incremented only by 1 during update operations. In addition, + # the version will be automatically incremented by 1 when undergoing Rich Media + # creative merging. Applicable to all creative types. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @ad_parameters = args[:ad_parameters] if args.key?(:ad_parameters) + @ad_tag_keys = args[:ad_tag_keys] if args.key?(:ad_tag_keys) + @additional_sizes = args[:additional_sizes] if args.key?(:additional_sizes) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @allow_script_access = args[:allow_script_access] if args.key?(:allow_script_access) + @archived = args[:archived] if args.key?(:archived) + @artwork_type = args[:artwork_type] if args.key?(:artwork_type) + @authoring_source = args[:authoring_source] if args.key?(:authoring_source) + @authoring_tool = args[:authoring_tool] if args.key?(:authoring_tool) + @auto_advance_images = args[:auto_advance_images] if args.key?(:auto_advance_images) + @background_color = args[:background_color] if args.key?(:background_color) + @backup_image_click_through_url = args[:backup_image_click_through_url] if args.key?(:backup_image_click_through_url) + @backup_image_features = args[:backup_image_features] if args.key?(:backup_image_features) + @backup_image_reporting_label = args[:backup_image_reporting_label] if args.key?(:backup_image_reporting_label) + @backup_image_target_window = args[:backup_image_target_window] if args.key?(:backup_image_target_window) + @click_tags = args[:click_tags] if args.key?(:click_tags) + @commercial_id = args[:commercial_id] if args.key?(:commercial_id) + @companion_creatives = args[:companion_creatives] if args.key?(:companion_creatives) + @compatibility = args[:compatibility] if args.key?(:compatibility) + @convert_flash_to_html5 = args[:convert_flash_to_html5] if args.key?(:convert_flash_to_html5) + @counter_custom_events = args[:counter_custom_events] if args.key?(:counter_custom_events) + @creative_asset_selection = args[:creative_asset_selection] if args.key?(:creative_asset_selection) + @creative_assets = args[:creative_assets] if args.key?(:creative_assets) + @creative_field_assignments = args[:creative_field_assignments] if args.key?(:creative_field_assignments) + @custom_key_values = args[:custom_key_values] if args.key?(:custom_key_values) + @dynamic_asset_selection = args[:dynamic_asset_selection] if args.key?(:dynamic_asset_selection) + @exit_custom_events = args[:exit_custom_events] if args.key?(:exit_custom_events) + @fs_command = args[:fs_command] if args.key?(:fs_command) + @html_code = args[:html_code] if args.key?(:html_code) + @html_code_locked = args[:html_code_locked] if args.key?(:html_code_locked) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @latest_trafficked_creative_id = args[:latest_trafficked_creative_id] if args.key?(:latest_trafficked_creative_id) + @media_description = args[:media_description] if args.key?(:media_description) + @media_duration = args[:media_duration] if args.key?(:media_duration) + @name = args[:name] if args.key?(:name) + @override_css = args[:override_css] if args.key?(:override_css) + @polite_load_asset_id = args[:polite_load_asset_id] if args.key?(:polite_load_asset_id) + @progress_offset = args[:progress_offset] if args.key?(:progress_offset) + @redirect_url = args[:redirect_url] if args.key?(:redirect_url) + @rendering_id = args[:rendering_id] if args.key?(:rendering_id) + @rendering_id_dimension_value = args[:rendering_id_dimension_value] if args.key?(:rendering_id_dimension_value) + @required_flash_plugin_version = args[:required_flash_plugin_version] if args.key?(:required_flash_plugin_version) + @required_flash_version = args[:required_flash_version] if args.key?(:required_flash_version) + @size = args[:size] if args.key?(:size) + @skip_offset = args[:skip_offset] if args.key?(:skip_offset) + @skippable = args[:skippable] if args.key?(:skippable) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @ssl_override = args[:ssl_override] if args.key?(:ssl_override) + @studio_advertiser_id = args[:studio_advertiser_id] if args.key?(:studio_advertiser_id) + @studio_creative_id = args[:studio_creative_id] if args.key?(:studio_creative_id) + @studio_trafficked_creative_id = args[:studio_trafficked_creative_id] if args.key?(:studio_trafficked_creative_id) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @third_party_backup_image_impressions_url = args[:third_party_backup_image_impressions_url] if args.key?(:third_party_backup_image_impressions_url) + @third_party_rich_media_impressions_url = args[:third_party_rich_media_impressions_url] if args.key?(:third_party_rich_media_impressions_url) + @third_party_urls = args[:third_party_urls] if args.key?(:third_party_urls) + @timer_custom_events = args[:timer_custom_events] if args.key?(:timer_custom_events) + @total_file_size = args[:total_file_size] if args.key?(:total_file_size) + @type = args[:type] if args.key?(:type) + @universal_ad_id = args[:universal_ad_id] if args.key?(:universal_ad_id) + @version = args[:version] if args.key?(:version) + end + end + + # Creative Asset. + class CreativeAsset + include Google::Apis::Core::Hashable + + # Whether ActionScript3 is enabled for the flash asset. This is a read-only + # field. Applicable to the following creative type: FLASH_INPAGE. Applicable to + # DISPLAY when the primary asset type is not HTML_IMAGE. + # Corresponds to the JSON property `actionScript3` + # @return [Boolean] + attr_accessor :action_script3 + alias_method :action_script3?, :action_script3 + + # Whether the video or audio asset is active. This is a read-only field for + # VPAID_NON_LINEAR_VIDEO assets. Applicable to the following creative types: + # INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # Additional sizes associated with this creative asset. HTML5 asset generated by + # compatible software such as GWD will be able to support more sizes this + # creative asset can render. + # Corresponds to the JSON property `additionalSizes` + # @return [Array] + attr_accessor :additional_sizes + + # Possible alignments for an asset. This is a read-only field. Applicable to the + # following creative types: RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. + # Corresponds to the JSON property `alignment` + # @return [String] + attr_accessor :alignment + + # Artwork type of rich media creative. This is a read-only field. Applicable to + # the following creative types: all RICH_MEDIA. + # Corresponds to the JSON property `artworkType` + # @return [String] + attr_accessor :artwork_type + + # Creative Asset ID. + # Corresponds to the JSON property `assetIdentifier` + # @return [Google::Apis::DfareportingV3_2::CreativeAssetId] + attr_accessor :asset_identifier + + # Creative Custom Event. + # Corresponds to the JSON property `backupImageExit` + # @return [Google::Apis::DfareportingV3_2::CreativeCustomEvent] + attr_accessor :backup_image_exit + + # Detected bit-rate for audio or video asset. This is a read-only field. + # Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and + # all VPAID. + # Corresponds to the JSON property `bitRate` + # @return [Fixnum] + attr_accessor :bit_rate + + # Rich media child asset type. This is a read-only field. Applicable to the + # following creative types: all VPAID. + # Corresponds to the JSON property `childAssetType` + # @return [String] + attr_accessor :child_asset_type + + # Represents the dimensions of ads, placements, creatives, or creative assets. + # Corresponds to the JSON property `collapsedSize` + # @return [Google::Apis::DfareportingV3_2::Size] + attr_accessor :collapsed_size + + # List of companion creatives assigned to an in-stream video creative asset. + # Acceptable values include IDs of existing flash and image creatives. + # Applicable to INSTREAM_VIDEO creative type with dynamicAssetSelection set to + # true. + # Corresponds to the JSON property `companionCreativeIds` + # @return [Array] + attr_accessor :companion_creative_ids + + # Custom start time in seconds for making the asset visible. Applicable to the + # following creative types: all RICH_MEDIA. Value must be greater than or equal + # to 0. + # Corresponds to the JSON property `customStartTimeValue` + # @return [Fixnum] + attr_accessor :custom_start_time_value + + # List of feature dependencies for the creative asset that are detected by DCM. + # Feature dependencies are features that a browser must be able to support in + # order to render your HTML5 creative correctly. This is a read-only, auto- + # generated field. Applicable to the following creative types: HTML5_BANNER. + # Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + # Corresponds to the JSON property `detectedFeatures` + # @return [Array] + attr_accessor :detected_features + + # Type of rich media asset. This is a read-only field. Applicable to the + # following creative types: all RICH_MEDIA. + # Corresponds to the JSON property `displayType` + # @return [String] + attr_accessor :display_type + + # Duration in seconds for which an asset will be displayed. Applicable to the + # following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and + # VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. + # Corresponds to the JSON property `duration` + # @return [Fixnum] + attr_accessor :duration + + # Duration type for which an asset will be displayed. Applicable to the + # following creative types: all RICH_MEDIA. + # Corresponds to the JSON property `durationType` + # @return [String] + attr_accessor :duration_type + + # Represents the dimensions of ads, placements, creatives, or creative assets. + # Corresponds to the JSON property `expandedDimension` + # @return [Google::Apis::DfareportingV3_2::Size] + attr_accessor :expanded_dimension + + # File size associated with this creative asset. This is a read-only field. + # Applicable to all but the following creative types: all REDIRECT and + # TRACKING_TEXT. + # Corresponds to the JSON property `fileSize` + # @return [Fixnum] + attr_accessor :file_size + + # Flash version of the asset. This is a read-only field. Applicable to the + # following creative types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID. + # Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + # Corresponds to the JSON property `flashVersion` + # @return [Fixnum] + attr_accessor :flash_version + + # Whether to hide Flash objects flag for an asset. Applicable to the following + # creative types: all RICH_MEDIA. + # Corresponds to the JSON property `hideFlashObjects` + # @return [Boolean] + attr_accessor :hide_flash_objects + alias_method :hide_flash_objects?, :hide_flash_objects + + # Whether to hide selection boxes flag for an asset. Applicable to the following + # creative types: all RICH_MEDIA. + # Corresponds to the JSON property `hideSelectionBoxes` + # @return [Boolean] + attr_accessor :hide_selection_boxes + alias_method :hide_selection_boxes?, :hide_selection_boxes + + # Whether the asset is horizontally locked. This is a read-only field. + # Applicable to the following creative types: all RICH_MEDIA. + # Corresponds to the JSON property `horizontallyLocked` + # @return [Boolean] + attr_accessor :horizontally_locked + alias_method :horizontally_locked?, :horizontally_locked + + # Numeric ID of this creative asset. This is a required field and should not be + # modified. Applicable to all but the following creative types: all REDIRECT and + # TRACKING_TEXT. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Detected duration for audio or video asset. This is a read-only field. + # Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and + # all VPAID. + # Corresponds to the JSON property `mediaDuration` + # @return [Float] + attr_accessor :media_duration + + # Detected MIME type for audio or video asset. This is a read-only field. + # Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and + # all VPAID. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # Offset Position. + # Corresponds to the JSON property `offset` + # @return [Google::Apis::DfareportingV3_2::OffsetPosition] + attr_accessor :offset + + # Orientation of video asset. This is a read-only, auto-generated field. + # Corresponds to the JSON property `orientation` + # @return [String] + attr_accessor :orientation + + # Whether the backup asset is original or changed by the user in DCM. Applicable + # to the following creative types: all RICH_MEDIA. + # Corresponds to the JSON property `originalBackup` + # @return [Boolean] + attr_accessor :original_backup + alias_method :original_backup?, :original_backup + + # Offset Position. + # Corresponds to the JSON property `position` + # @return [Google::Apis::DfareportingV3_2::OffsetPosition] + attr_accessor :position + + # Offset left unit for an asset. This is a read-only field. Applicable to the + # following creative types: all RICH_MEDIA. + # Corresponds to the JSON property `positionLeftUnit` + # @return [String] + attr_accessor :position_left_unit + + # Offset top unit for an asset. This is a read-only field if the asset + # displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following + # creative types: all RICH_MEDIA. + # Corresponds to the JSON property `positionTopUnit` + # @return [String] + attr_accessor :position_top_unit + + # Progressive URL for video asset. This is a read-only field. Applicable to the + # following creative types: INSTREAM_VIDEO and all VPAID. + # Corresponds to the JSON property `progressiveServingUrl` + # @return [String] + attr_accessor :progressive_serving_url + + # Whether the asset pushes down other content. Applicable to the following + # creative types: all RICH_MEDIA. Additionally, only applicable when the asset + # offsets are 0, the collapsedSize.width matches size.width, and the + # collapsedSize.height is less than size.height. + # Corresponds to the JSON property `pushdown` + # @return [Boolean] + attr_accessor :pushdown + alias_method :pushdown?, :pushdown + + # Pushdown duration in seconds for an asset. Applicable to the following + # creative types: all RICH_MEDIA.Additionally, only applicable when the asset + # pushdown field is true, the offsets are 0, the collapsedSize.width matches + # size.width, and the collapsedSize.height is less than size.height. Acceptable + # values are 0 to 9.99, inclusive. + # Corresponds to the JSON property `pushdownDuration` + # @return [Float] + attr_accessor :pushdown_duration + + # Role of the asset in relation to creative. Applicable to all but the following + # creative types: all REDIRECT and TRACKING_TEXT. This is a required field. + # PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, + # DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary + # assets), and all VPAID creatives. + # BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all + # VPAID creatives. Applicable to DISPLAY when the primary asset type is not + # HTML_IMAGE. + # ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. + # OTHER refers to assets from sources other than DCM, such as Studio uploaded + # assets, applicable to all RICH_MEDIA and all VPAID creatives. + # PARENT_VIDEO refers to videos uploaded by the user in DCM and is applicable to + # INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. + # TRANSCODED_VIDEO refers to videos transcoded by DCM from PARENT_VIDEO assets + # and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. + # ALTERNATE_VIDEO refers to the DCM representation of child asset videos from + # Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be + # added or removed within DCM. + # For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and + # ALTERNATE_VIDEO assets that are marked active serve as backup in case the + # VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or + # removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. + # PARENT_AUDIO refers to audios uploaded by the user in DCM and is applicable to + # INSTREAM_AUDIO creatives. + # TRANSCODED_AUDIO refers to audios transcoded by DCM from PARENT_AUDIO assets + # and is applicable to INSTREAM_AUDIO creatives. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # Represents the dimensions of ads, placements, creatives, or creative assets. + # Corresponds to the JSON property `size` + # @return [Google::Apis::DfareportingV3_2::Size] + attr_accessor :size + + # Whether the asset is SSL-compliant. This is a read-only field. Applicable to + # all but the following creative types: all REDIRECT and TRACKING_TEXT. + # Corresponds to the JSON property `sslCompliant` + # @return [Boolean] + attr_accessor :ssl_compliant + alias_method :ssl_compliant?, :ssl_compliant + + # Initial wait time type before making the asset visible. Applicable to the + # following creative types: all RICH_MEDIA. + # Corresponds to the JSON property `startTimeType` + # @return [String] + attr_accessor :start_time_type + + # Streaming URL for video asset. This is a read-only field. Applicable to the + # following creative types: INSTREAM_VIDEO and all VPAID. + # Corresponds to the JSON property `streamingServingUrl` + # @return [String] + attr_accessor :streaming_serving_url + + # Whether the asset is transparent. Applicable to the following creative types: + # all RICH_MEDIA. Additionally, only applicable to HTML5 assets. + # Corresponds to the JSON property `transparency` + # @return [Boolean] + attr_accessor :transparency + alias_method :transparency?, :transparency + + # Whether the asset is vertically locked. This is a read-only field. Applicable + # to the following creative types: all RICH_MEDIA. + # Corresponds to the JSON property `verticallyLocked` + # @return [Boolean] + attr_accessor :vertically_locked + alias_method :vertically_locked?, :vertically_locked + + # Window mode options for flash assets. Applicable to the following creative + # types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, + # RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING. + # Corresponds to the JSON property `windowMode` + # @return [String] + attr_accessor :window_mode + + # zIndex value of an asset. Applicable to the following creative types: all + # RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT + # one of the following types: ASSET_DISPLAY_TYPE_INPAGE or + # ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, + # inclusive. + # Corresponds to the JSON property `zIndex` + # @return [Fixnum] + attr_accessor :z_index + + # File name of zip file. This is a read-only field. Applicable to the following + # creative types: HTML5_BANNER. + # Corresponds to the JSON property `zipFilename` + # @return [String] + attr_accessor :zip_filename + + # Size of zip file. This is a read-only field. Applicable to the following + # creative types: HTML5_BANNER. + # Corresponds to the JSON property `zipFilesize` + # @return [String] + attr_accessor :zip_filesize + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_script3 = args[:action_script3] if args.key?(:action_script3) + @active = args[:active] if args.key?(:active) + @additional_sizes = args[:additional_sizes] if args.key?(:additional_sizes) + @alignment = args[:alignment] if args.key?(:alignment) + @artwork_type = args[:artwork_type] if args.key?(:artwork_type) + @asset_identifier = args[:asset_identifier] if args.key?(:asset_identifier) + @backup_image_exit = args[:backup_image_exit] if args.key?(:backup_image_exit) + @bit_rate = args[:bit_rate] if args.key?(:bit_rate) + @child_asset_type = args[:child_asset_type] if args.key?(:child_asset_type) + @collapsed_size = args[:collapsed_size] if args.key?(:collapsed_size) + @companion_creative_ids = args[:companion_creative_ids] if args.key?(:companion_creative_ids) + @custom_start_time_value = args[:custom_start_time_value] if args.key?(:custom_start_time_value) + @detected_features = args[:detected_features] if args.key?(:detected_features) + @display_type = args[:display_type] if args.key?(:display_type) + @duration = args[:duration] if args.key?(:duration) + @duration_type = args[:duration_type] if args.key?(:duration_type) + @expanded_dimension = args[:expanded_dimension] if args.key?(:expanded_dimension) + @file_size = args[:file_size] if args.key?(:file_size) + @flash_version = args[:flash_version] if args.key?(:flash_version) + @hide_flash_objects = args[:hide_flash_objects] if args.key?(:hide_flash_objects) + @hide_selection_boxes = args[:hide_selection_boxes] if args.key?(:hide_selection_boxes) + @horizontally_locked = args[:horizontally_locked] if args.key?(:horizontally_locked) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @media_duration = args[:media_duration] if args.key?(:media_duration) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @offset = args[:offset] if args.key?(:offset) + @orientation = args[:orientation] if args.key?(:orientation) + @original_backup = args[:original_backup] if args.key?(:original_backup) + @position = args[:position] if args.key?(:position) + @position_left_unit = args[:position_left_unit] if args.key?(:position_left_unit) + @position_top_unit = args[:position_top_unit] if args.key?(:position_top_unit) + @progressive_serving_url = args[:progressive_serving_url] if args.key?(:progressive_serving_url) + @pushdown = args[:pushdown] if args.key?(:pushdown) + @pushdown_duration = args[:pushdown_duration] if args.key?(:pushdown_duration) + @role = args[:role] if args.key?(:role) + @size = args[:size] if args.key?(:size) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @start_time_type = args[:start_time_type] if args.key?(:start_time_type) + @streaming_serving_url = args[:streaming_serving_url] if args.key?(:streaming_serving_url) + @transparency = args[:transparency] if args.key?(:transparency) + @vertically_locked = args[:vertically_locked] if args.key?(:vertically_locked) + @window_mode = args[:window_mode] if args.key?(:window_mode) + @z_index = args[:z_index] if args.key?(:z_index) + @zip_filename = args[:zip_filename] if args.key?(:zip_filename) + @zip_filesize = args[:zip_filesize] if args.key?(:zip_filesize) + end + end + + # Creative Asset ID. + class CreativeAssetId + include Google::Apis::Core::Hashable + + # Name of the creative asset. This is a required field while inserting an asset. + # After insertion, this assetIdentifier is used to identify the uploaded asset. + # Characters in the name must be alphanumeric or one of the following: ".-_ ". + # Spaces are allowed. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Type of asset to upload. This is a required field. FLASH and IMAGE are no + # longer supported for new uploads. All image assets should use HTML_IMAGE. + # 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) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + end + end + + # CreativeAssets contains properties of a creative asset file which will be + # uploaded or has already been uploaded. Refer to the creative sample code for + # how to upload assets and insert a creative. + class CreativeAssetMetadata + include Google::Apis::Core::Hashable + + # Creative Asset ID. + # Corresponds to the JSON property `assetIdentifier` + # @return [Google::Apis::DfareportingV3_2::CreativeAssetId] + attr_accessor :asset_identifier + + # List of detected click tags for assets. This is a read-only auto-generated + # field. + # Corresponds to the JSON property `clickTags` + # @return [Array] + attr_accessor :click_tags + + # List of feature dependencies for the creative asset that are detected by DCM. + # Feature dependencies are features that a browser must be able to support in + # order to render your HTML5 creative correctly. This is a read-only, auto- + # generated field. + # Corresponds to the JSON property `detectedFeatures` + # @return [Array] + attr_accessor :detected_features + + # Numeric ID of the asset. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#creativeAssetMetadata". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Rules validated during code generation that generated a warning. This is a + # read-only, auto-generated field. + # Possible values are: + # - "ADMOB_REFERENCED" + # - "ASSET_FORMAT_UNSUPPORTED_DCM" + # - "ASSET_INVALID" + # - "CLICK_TAG_HARD_CODED" + # - "CLICK_TAG_INVALID" + # - "CLICK_TAG_IN_GWD" + # - "CLICK_TAG_MISSING" + # - "CLICK_TAG_MORE_THAN_ONE" + # - "CLICK_TAG_NON_TOP_LEVEL" + # - "COMPONENT_UNSUPPORTED_DCM" + # - "ENABLER_UNSUPPORTED_METHOD_DCM" + # - "EXTERNAL_FILE_REFERENCED" + # - "FILE_DETAIL_EMPTY" + # - "FILE_TYPE_INVALID" + # - "GWD_PROPERTIES_INVALID" + # - "HTML5_FEATURE_UNSUPPORTED" + # - "LINKED_FILE_NOT_FOUND" + # - "MAX_FLASH_VERSION_11" + # - "MRAID_REFERENCED" + # - "NOT_SSL_COMPLIANT" + # - "ORPHANED_ASSET" + # - "PRIMARY_HTML_MISSING" + # - "SVG_INVALID" + # - "ZIP_INVALID" + # Corresponds to the JSON property `warnedValidationRules` + # @return [Array] + attr_accessor :warned_validation_rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_identifier = args[:asset_identifier] if args.key?(:asset_identifier) + @click_tags = args[:click_tags] if args.key?(:click_tags) + @detected_features = args[:detected_features] if args.key?(:detected_features) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @warned_validation_rules = args[:warned_validation_rules] if args.key?(:warned_validation_rules) + end + end + + # Encapsulates the list of rules for asset selection and a default asset in case + # none of the rules match. Applicable to INSTREAM_VIDEO creatives. + class CreativeAssetSelection + include Google::Apis::Core::Hashable + + # A creativeAssets[].id. This should refer to one of the parent assets in this + # creative, and will be served if none of the rules match. This is a required + # field. + # Corresponds to the JSON property `defaultAssetId` + # @return [Fixnum] + attr_accessor :default_asset_id + + # Rules determine which asset will be served to a viewer. Rules will be + # evaluated in the order in which they are stored in this list. This list must + # contain at least one rule. Applicable to INSTREAM_VIDEO creatives. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @default_asset_id = args[:default_asset_id] if args.key?(:default_asset_id) + @rules = args[:rules] if args.key?(:rules) + end + end + + # Creative Assignment. + class CreativeAssignment + include Google::Apis::Core::Hashable + + # Whether this creative assignment is active. When true, the creative will be + # included in the ad's rotation. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # Whether applicable event tags should fire when this creative assignment is + # rendered. If this value is unset when the ad is inserted or updated, it will + # default to true for all creative types EXCEPT for INTERNAL_REDIRECT, + # INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. + # Corresponds to the JSON property `applyEventTags` + # @return [Boolean] + attr_accessor :apply_event_tags + alias_method :apply_event_tags?, :apply_event_tags + + # Click-through URL + # Corresponds to the JSON property `clickThroughUrl` + # @return [Google::Apis::DfareportingV3_2::ClickThroughUrl] + attr_accessor :click_through_url + + # Companion creative overrides for this creative assignment. Applicable to video + # ads. + # Corresponds to the JSON property `companionCreativeOverrides` + # @return [Array] + attr_accessor :companion_creative_overrides + + # Creative group assignments for this creative assignment. Only one assignment + # per creative group number is allowed for a maximum of two assignments. + # Corresponds to the JSON property `creativeGroupAssignments` + # @return [Array] + attr_accessor :creative_group_assignments + + # ID of the creative to be assigned. This is a required field. + # Corresponds to the JSON property `creativeId` + # @return [Fixnum] + attr_accessor :creative_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `creativeIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :creative_id_dimension_value + + # Date and time that the assigned creative should stop serving. Must be later + # than the start time. + # Corresponds to the JSON property `endTime` + # @return [DateTime] + attr_accessor :end_time + + # Rich media exit overrides for this creative assignment. + # Applicable when the creative type is any of the following: + # - DISPLAY + # - RICH_MEDIA_INPAGE + # - RICH_MEDIA_INPAGE_FLOATING + # - RICH_MEDIA_IM_EXPAND + # - RICH_MEDIA_EXPANDING + # - RICH_MEDIA_INTERSTITIAL_FLOAT + # - RICH_MEDIA_MOBILE_IN_APP + # - RICH_MEDIA_MULTI_FLOATING + # - RICH_MEDIA_PEEL_DOWN + # - VPAID_LINEAR + # - VPAID_NON_LINEAR + # Corresponds to the JSON property `richMediaExitOverrides` + # @return [Array] + attr_accessor :rich_media_exit_overrides + + # Sequence number of the creative assignment, applicable when the rotation type + # is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, + # inclusive. + # Corresponds to the JSON property `sequence` + # @return [Fixnum] + attr_accessor :sequence + + # Whether the creative to be assigned is SSL-compliant. This is a read-only + # field that is auto-generated when the ad is inserted or updated. + # Corresponds to the JSON property `sslCompliant` + # @return [Boolean] + attr_accessor :ssl_compliant + alias_method :ssl_compliant?, :ssl_compliant + + # Date and time that the assigned creative should start serving. + # Corresponds to the JSON property `startTime` + # @return [DateTime] + attr_accessor :start_time + + # Weight of the creative assignment, applicable when the rotation type is + # CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. + # Corresponds to the JSON property `weight` + # @return [Fixnum] + attr_accessor :weight + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active = args[:active] if args.key?(:active) + @apply_event_tags = args[:apply_event_tags] if args.key?(:apply_event_tags) + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @companion_creative_overrides = args[:companion_creative_overrides] if args.key?(:companion_creative_overrides) + @creative_group_assignments = args[:creative_group_assignments] if args.key?(:creative_group_assignments) + @creative_id = args[:creative_id] if args.key?(:creative_id) + @creative_id_dimension_value = args[:creative_id_dimension_value] if args.key?(:creative_id_dimension_value) + @end_time = args[:end_time] if args.key?(:end_time) + @rich_media_exit_overrides = args[:rich_media_exit_overrides] if args.key?(:rich_media_exit_overrides) + @sequence = args[:sequence] if args.key?(:sequence) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @start_time = args[:start_time] if args.key?(:start_time) + @weight = args[:weight] if args.key?(:weight) + end + end + + # Click-through URL + class CreativeClickThroughUrl + include Google::Apis::Core::Hashable + + # Read-only convenience field representing the actual URL that will be used for + # this click-through. The URL is computed as follows: + # - If landingPageId is specified then that landing page's URL is assigned to + # this field. + # - Otherwise, the customClickThroughUrl is assigned to this field. + # Corresponds to the JSON property `computedClickThroughUrl` + # @return [String] + attr_accessor :computed_click_through_url + + # Custom click-through URL. Applicable if the landingPageId field is left unset. + # Corresponds to the JSON property `customClickThroughUrl` + # @return [String] + attr_accessor :custom_click_through_url + + # ID of the landing page for the click-through URL. + # Corresponds to the JSON property `landingPageId` + # @return [Fixnum] + attr_accessor :landing_page_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @computed_click_through_url = args[:computed_click_through_url] if args.key?(:computed_click_through_url) + @custom_click_through_url = args[:custom_click_through_url] if args.key?(:custom_click_through_url) + @landing_page_id = args[:landing_page_id] if args.key?(:landing_page_id) + end + end + + # Creative Custom Event. + class CreativeCustomEvent + include Google::Apis::Core::Hashable + + # Unique ID of this event used by DDM Reporting and Data Transfer. This is a + # read-only field. + # Corresponds to the JSON property `advertiserCustomEventId` + # @return [Fixnum] + attr_accessor :advertiser_custom_event_id + + # User-entered name for the event. + # Corresponds to the JSON property `advertiserCustomEventName` + # @return [String] + attr_accessor :advertiser_custom_event_name + + # Type of the event. This is a read-only field. + # Corresponds to the JSON property `advertiserCustomEventType` + # @return [String] + attr_accessor :advertiser_custom_event_type + + # Artwork label column, used to link events in DCM back to events in Studio. + # This is a required field and should not be modified after insertion. + # Corresponds to the JSON property `artworkLabel` + # @return [String] + attr_accessor :artwork_label + + # Artwork type used by the creative.This is a read-only field. + # Corresponds to the JSON property `artworkType` + # @return [String] + attr_accessor :artwork_type + + # Click-through URL + # Corresponds to the JSON property `exitClickThroughUrl` + # @return [Google::Apis::DfareportingV3_2::CreativeClickThroughUrl] + attr_accessor :exit_click_through_url + + # ID of this event. This is a required field and should not be modified after + # insertion. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Popup Window Properties. + # Corresponds to the JSON property `popupWindowProperties` + # @return [Google::Apis::DfareportingV3_2::PopupWindowProperties] + attr_accessor :popup_window_properties + + # Target type used by the event. + # Corresponds to the JSON property `targetType` + # @return [String] + attr_accessor :target_type + + # Video reporting ID, used to differentiate multiple videos in a single creative. + # This is a read-only field. + # Corresponds to the JSON property `videoReportingId` + # @return [String] + attr_accessor :video_reporting_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @advertiser_custom_event_id = args[:advertiser_custom_event_id] if args.key?(:advertiser_custom_event_id) + @advertiser_custom_event_name = args[:advertiser_custom_event_name] if args.key?(:advertiser_custom_event_name) + @advertiser_custom_event_type = args[:advertiser_custom_event_type] if args.key?(:advertiser_custom_event_type) + @artwork_label = args[:artwork_label] if args.key?(:artwork_label) + @artwork_type = args[:artwork_type] if args.key?(:artwork_type) + @exit_click_through_url = args[:exit_click_through_url] if args.key?(:exit_click_through_url) + @id = args[:id] if args.key?(:id) + @popup_window_properties = args[:popup_window_properties] if args.key?(:popup_window_properties) + @target_type = args[:target_type] if args.key?(:target_type) + @video_reporting_id = args[:video_reporting_id] if args.key?(:video_reporting_id) + end + end + + # Contains properties of a creative field. + class CreativeField + include Google::Apis::Core::Hashable + + # Account ID of this creative field. This is a read-only field that can be left + # blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of this creative field. This is a required field on insertion. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # ID of this creative field. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#creativeField". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this creative field. This is a required field and must be less than + # 256 characters long and unique among creative fields of the same advertiser. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Subaccount ID of this creative field. This is a read-only field that can be + # left blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + end + end + + # Creative Field Assignment. + class CreativeFieldAssignment + include Google::Apis::Core::Hashable + + # ID of the creative field. + # Corresponds to the JSON property `creativeFieldId` + # @return [Fixnum] + attr_accessor :creative_field_id + + # ID of the creative field value. + # Corresponds to the JSON property `creativeFieldValueId` + # @return [Fixnum] + attr_accessor :creative_field_value_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creative_field_id = args[:creative_field_id] if args.key?(:creative_field_id) + @creative_field_value_id = args[:creative_field_value_id] if args.key?(:creative_field_value_id) + end + end + + # Contains properties of a creative field value. + class CreativeFieldValue + include Google::Apis::Core::Hashable + + # ID of this creative field value. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#creativeFieldValue". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Value of this creative field value. It needs to be less than 256 characters in + # length and unique per creative field. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @value = args[:value] if args.key?(:value) + end + end + + # Creative Field Value List Response + class CreativeFieldValuesListResponse + include Google::Apis::Core::Hashable + + # Creative field value collection. + # Corresponds to the JSON property `creativeFieldValues` + # @return [Array] + attr_accessor :creative_field_values + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#creativeFieldValuesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @creative_field_values = args[:creative_field_values] if args.key?(:creative_field_values) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Creative Field List Response + class CreativeFieldsListResponse + include Google::Apis::Core::Hashable + + # Creative field collection. + # Corresponds to the JSON property `creativeFields` + # @return [Array] + attr_accessor :creative_fields + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#creativeFieldsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @creative_fields = args[:creative_fields] if args.key?(:creative_fields) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Contains properties of a creative group. + class CreativeGroup + include Google::Apis::Core::Hashable + + # Account ID of this creative group. This is a read-only field that can be left + # blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of this creative group. This is a required field on insertion. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Subgroup of the creative group. Assign your creative groups to a subgroup in + # order to filter or manage them more easily. This field is required on + # insertion and is read-only after insertion. Acceptable values are 1 to 2, + # inclusive. + # Corresponds to the JSON property `groupNumber` + # @return [Fixnum] + attr_accessor :group_number + + # ID of this creative group. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#creativeGroup". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this creative group. This is a required field and must be less than + # 256 characters long and unique among creative groups of the same advertiser. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Subaccount ID of this creative group. This is a read-only field that can be + # left blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @group_number = args[:group_number] if args.key?(:group_number) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + end + end + + # Creative Group Assignment. + class CreativeGroupAssignment + include Google::Apis::Core::Hashable + + # ID of the creative group to be assigned. + # Corresponds to the JSON property `creativeGroupId` + # @return [Fixnum] + attr_accessor :creative_group_id + + # Creative group number of the creative group assignment. + # Corresponds to the JSON property `creativeGroupNumber` + # @return [String] + attr_accessor :creative_group_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creative_group_id = args[:creative_group_id] if args.key?(:creative_group_id) + @creative_group_number = args[:creative_group_number] if args.key?(:creative_group_number) + end + end + + # Creative Group List Response + class CreativeGroupsListResponse + include Google::Apis::Core::Hashable + + # Creative group collection. + # Corresponds to the JSON property `creativeGroups` + # @return [Array] + attr_accessor :creative_groups + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#creativeGroupsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @creative_groups = args[:creative_groups] if args.key?(:creative_groups) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Creative optimization settings. + class CreativeOptimizationConfiguration + include Google::Apis::Core::Hashable + + # ID of this creative optimization config. This field is auto-generated when the + # campaign is inserted or updated. It can be null for existing campaigns. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Name of this creative optimization config. This is a required field and must + # be less than 129 characters long. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # List of optimization activities associated with this configuration. + # Corresponds to the JSON property `optimizationActivitys` + # @return [Array] + attr_accessor :optimization_activitys + + # Optimization model for this configuration. + # Corresponds to the JSON property `optimizationModel` + # @return [String] + attr_accessor :optimization_model + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @optimization_activitys = args[:optimization_activitys] if args.key?(:optimization_activitys) + @optimization_model = args[:optimization_model] if args.key?(:optimization_model) + end + end + + # Creative Rotation. + class CreativeRotation + include Google::Apis::Core::Hashable + + # Creative assignments in this creative rotation. + # Corresponds to the JSON property `creativeAssignments` + # @return [Array] + attr_accessor :creative_assignments + + # Creative optimization configuration that is used by this ad. It should refer + # to one of the existing optimization configurations in the ad's campaign. If it + # is unset or set to 0, then the campaign's default optimization configuration + # will be used for this ad. + # Corresponds to the JSON property `creativeOptimizationConfigurationId` + # @return [Fixnum] + attr_accessor :creative_optimization_configuration_id + + # Type of creative rotation. Can be used to specify whether to use sequential or + # random rotation. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. + # Corresponds to the JSON property `weightCalculationStrategy` + # @return [String] + attr_accessor :weight_calculation_strategy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creative_assignments = args[:creative_assignments] if args.key?(:creative_assignments) + @creative_optimization_configuration_id = args[:creative_optimization_configuration_id] if args.key?(:creative_optimization_configuration_id) + @type = args[:type] if args.key?(:type) + @weight_calculation_strategy = args[:weight_calculation_strategy] if args.key?(:weight_calculation_strategy) + end + end + + # Creative Settings + class CreativeSettings + include Google::Apis::Core::Hashable + + # Header text for iFrames for this site. Must be less than or equal to 2000 + # characters long. + # Corresponds to the JSON property `iFrameFooter` + # @return [String] + attr_accessor :i_frame_footer + + # Header text for iFrames for this site. Must be less than or equal to 2000 + # characters long. + # Corresponds to the JSON property `iFrameHeader` + # @return [String] + attr_accessor :i_frame_header + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @i_frame_footer = args[:i_frame_footer] if args.key?(:i_frame_footer) + @i_frame_header = args[:i_frame_header] if args.key?(:i_frame_header) + end + end + + # Creative List Response + class CreativesListResponse + include Google::Apis::Core::Hashable + + # Creative collection. + # Corresponds to the JSON property `creatives` + # @return [Array] + attr_accessor :creatives + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#creativesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @creatives = args[:creatives] if args.key?(:creatives) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Represents fields that are compatible to be selected for a report of type " + # CROSS_DIMENSION_REACH". + class CrossDimensionReachReportCompatibleFields + include Google::Apis::Core::Hashable + + # Dimensions which are compatible to be selected in the "breakdown" section of + # the report. + # Corresponds to the JSON property `breakdown` + # @return [Array] + attr_accessor :breakdown + + # Dimensions which are compatible to be selected in the "dimensionFilters" + # section of the report. + # Corresponds to the JSON property `dimensionFilters` + # @return [Array] + attr_accessor :dimension_filters + + # The kind of resource this is, in this case dfareporting# + # crossDimensionReachReportCompatibleFields. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Metrics which are compatible to be selected in the "metricNames" section of + # the report. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + # Metrics which are compatible to be selected in the "overlapMetricNames" + # section of the report. + # Corresponds to the JSON property `overlapMetrics` + # @return [Array] + attr_accessor :overlap_metrics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakdown = args[:breakdown] if args.key?(:breakdown) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + @overlap_metrics = args[:overlap_metrics] if args.key?(:overlap_metrics) + end + end + + # A custom floodlight variable. + class CustomFloodlightVariable + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#customFloodlightVariable". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The type of custom floodlight variable to supply a value for. These map to the + # "u[1-20]=" in the tags. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The value of the custom floodlight variable. The length of string must not + # exceed 50 characters. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) + end + end + + # Represents a Custom Rich Media Events group. + class CustomRichMediaEvents + include Google::Apis::Core::Hashable + + # List of custom rich media event IDs. Dimension values must be all of type dfa: + # richMediaEventTypeIdAndName. + # Corresponds to the JSON property `filteredEventIds` + # @return [Array] + attr_accessor :filtered_event_ids + + # The kind of resource this is, in this case dfareporting#customRichMediaEvents. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filtered_event_ids = args[:filtered_event_ids] if args.key?(:filtered_event_ids) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Represents a date range. + class DateRange + include Google::Apis::Core::Hashable + + # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd" + # . + # Corresponds to the JSON property `endDate` + # @return [Date] + attr_accessor :end_date + + # The kind of resource this is, in this case dfareporting#dateRange. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The date range relative to the date of when the report is run. + # Corresponds to the JSON property `relativeDateRange` + # @return [String] + attr_accessor :relative_date_range + + # The start date of the date range, inclusive. A string of the format: "yyyy-MM- + # dd". + # Corresponds to the JSON property `startDate` + # @return [Date] + attr_accessor :start_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_date = args[:end_date] if args.key?(:end_date) + @kind = args[:kind] if args.key?(:kind) + @relative_date_range = args[:relative_date_range] if args.key?(:relative_date_range) + @start_date = args[:start_date] if args.key?(:start_date) + end + end + + # Day Part Targeting. + class DayPartTargeting + include Google::Apis::Core::Hashable + + # Days of the week when the ad will serve. + # Acceptable values are: + # - "SUNDAY" + # - "MONDAY" + # - "TUESDAY" + # - "WEDNESDAY" + # - "THURSDAY" + # - "FRIDAY" + # - "SATURDAY" + # Corresponds to the JSON property `daysOfWeek` + # @return [Array] + attr_accessor :days_of_week + + # Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is + # 11 PM to midnight. Can be specified with days of week, in which case the ad + # would serve during these hours on the specified days. For example if Monday, + # Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, + # 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays + # at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. + # Corresponds to the JSON property `hoursOfDay` + # @return [Array] + attr_accessor :hours_of_day + + # Whether or not to use the user's local time. If false, the America/New York + # time zone applies. + # Corresponds to the JSON property `userLocalTime` + # @return [Boolean] + attr_accessor :user_local_time + alias_method :user_local_time?, :user_local_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @days_of_week = args[:days_of_week] if args.key?(:days_of_week) + @hours_of_day = args[:hours_of_day] if args.key?(:hours_of_day) + @user_local_time = args[:user_local_time] if args.key?(:user_local_time) + end + end + + # Contains information about a landing page deep link. + class DeepLink + include Google::Apis::Core::Hashable + + # The URL of the mobile app being linked to. + # Corresponds to the JSON property `appUrl` + # @return [String] + attr_accessor :app_url + + # The fallback URL. This URL will be served to users who do not have the mobile + # app installed. + # Corresponds to the JSON property `fallbackUrl` + # @return [String] + attr_accessor :fallback_url + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#deepLink". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Contains information about a mobile app. Used as a landing page deep link. + # Corresponds to the JSON property `mobileApp` + # @return [Google::Apis::DfareportingV3_2::MobileApp] + attr_accessor :mobile_app + + # Ads served to users on these remarketing lists will use this deep link. + # Applicable when mobileApp.directory is APPLE_APP_STORE. + # Corresponds to the JSON property `remarketingListIds` + # @return [Array] + attr_accessor :remarketing_list_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_url = args[:app_url] if args.key?(:app_url) + @fallback_url = args[:fallback_url] if args.key?(:fallback_url) + @kind = args[:kind] if args.key?(:kind) + @mobile_app = args[:mobile_app] if args.key?(:mobile_app) + @remarketing_list_ids = args[:remarketing_list_ids] if args.key?(:remarketing_list_ids) + end + end + + # Properties of inheriting and overriding the default click-through event tag. A + # campaign may override the event tag defined at the advertiser level, and an ad + # may also override the campaign's setting further. + class DefaultClickThroughEventTagProperties + include Google::Apis::Core::Hashable + + # ID of the click-through event tag to apply to all ads in this entity's scope. + # Corresponds to the JSON property `defaultClickThroughEventTagId` + # @return [Fixnum] + attr_accessor :default_click_through_event_tag_id + + # Whether this entity should override the inherited default click-through event + # tag with its own defined value. + # Corresponds to the JSON property `overrideInheritedEventTag` + # @return [Boolean] + attr_accessor :override_inherited_event_tag + alias_method :override_inherited_event_tag?, :override_inherited_event_tag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @default_click_through_event_tag_id = args[:default_click_through_event_tag_id] if args.key?(:default_click_through_event_tag_id) + @override_inherited_event_tag = args[:override_inherited_event_tag] if args.key?(:override_inherited_event_tag) + end + end + + # Delivery Schedule. + class DeliverySchedule + include Google::Apis::Core::Hashable + + # Frequency Cap. + # Corresponds to the JSON property `frequencyCap` + # @return [Google::Apis::DfareportingV3_2::FrequencyCap] + attr_accessor :frequency_cap + + # Whether or not hard cutoff is enabled. If true, the ad will not serve after + # the end date and time. Otherwise the ad will continue to be served until it + # has reached its delivery goals. + # Corresponds to the JSON property `hardCutoff` + # @return [Boolean] + attr_accessor :hard_cutoff + alias_method :hard_cutoff?, :hard_cutoff + + # Impression ratio for this ad. This ratio determines how often each ad is + # served relative to the others. For example, if ad A has an impression ratio of + # 1 and ad B has an impression ratio of 3, then DCM will serve ad B three times + # as often as ad A. Acceptable values are 1 to 10, inclusive. + # Corresponds to the JSON property `impressionRatio` + # @return [Fixnum] + attr_accessor :impression_ratio + + # Serving priority of an ad, with respect to other ads. The lower the priority + # number, the greater the priority with which it is served. + # Corresponds to the JSON property `priority` + # @return [String] + attr_accessor :priority + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @frequency_cap = args[:frequency_cap] if args.key?(:frequency_cap) + @hard_cutoff = args[:hard_cutoff] if args.key?(:hard_cutoff) + @impression_ratio = args[:impression_ratio] if args.key?(:impression_ratio) + @priority = args[:priority] if args.key?(:priority) + end + end + + # DFP Settings + class DfpSettings + include Google::Apis::Core::Hashable + + # DFP network code for this directory site. + # Corresponds to the JSON property `dfpNetworkCode` + # @return [String] + attr_accessor :dfp_network_code + + # DFP network name for this directory site. + # Corresponds to the JSON property `dfpNetworkName` + # @return [String] + attr_accessor :dfp_network_name + + # Whether this directory site accepts programmatic placements. + # Corresponds to the JSON property `programmaticPlacementAccepted` + # @return [Boolean] + attr_accessor :programmatic_placement_accepted + alias_method :programmatic_placement_accepted?, :programmatic_placement_accepted + + # Whether this directory site accepts publisher-paid tags. + # Corresponds to the JSON property `pubPaidPlacementAccepted` + # @return [Boolean] + attr_accessor :pub_paid_placement_accepted + alias_method :pub_paid_placement_accepted?, :pub_paid_placement_accepted + + # Whether this directory site is available only via DoubleClick Publisher Portal. + # Corresponds to the JSON property `publisherPortalOnly` + # @return [Boolean] + attr_accessor :publisher_portal_only + alias_method :publisher_portal_only?, :publisher_portal_only + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dfp_network_code = args[:dfp_network_code] if args.key?(:dfp_network_code) + @dfp_network_name = args[:dfp_network_name] if args.key?(:dfp_network_name) + @programmatic_placement_accepted = args[:programmatic_placement_accepted] if args.key?(:programmatic_placement_accepted) + @pub_paid_placement_accepted = args[:pub_paid_placement_accepted] if args.key?(:pub_paid_placement_accepted) + @publisher_portal_only = args[:publisher_portal_only] if args.key?(:publisher_portal_only) + end + end + + # Represents a dimension. + class Dimension + include Google::Apis::Core::Hashable + + # The kind of resource this is, in this case dfareporting#dimension. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The dimension name, e.g. dfa:advertiser + # 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) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # Represents a dimension filter. + class DimensionFilter + include Google::Apis::Core::Hashable + + # The name of the dimension to filter. + # Corresponds to the JSON property `dimensionName` + # @return [String] + attr_accessor :dimension_name + + # The kind of resource this is, in this case dfareporting#dimensionFilter. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The value of the dimension to filter. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension_name = args[:dimension_name] if args.key?(:dimension_name) + @kind = args[:kind] if args.key?(:kind) + @value = args[:value] if args.key?(:value) + end + end + + # Represents a DimensionValue resource. + class DimensionValue + include Google::Apis::Core::Hashable + + # The name of the dimension. + # Corresponds to the JSON property `dimensionName` + # @return [String] + attr_accessor :dimension_name + + # The eTag of this response for caching purposes. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The ID associated with the value if available. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The kind of resource this is, in this case dfareporting#dimensionValue. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Determines how the 'value' field is matched when filtering. If not specified, + # defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a + # placeholder for variable length character sequences, and it can be escaped + # with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow + # a matchType other than EXACT. + # Corresponds to the JSON property `matchType` + # @return [String] + attr_accessor :match_type + + # The value of the dimension. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension_name = args[:dimension_name] if args.key?(:dimension_name) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @match_type = args[:match_type] if args.key?(:match_type) + @value = args[:value] if args.key?(:value) + end + end + + # Represents the list of DimensionValue resources. + class DimensionValueList + include Google::Apis::Core::Hashable + + # The eTag of this response for caching purposes. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The dimension values returned in this response. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of list this is, in this case dfareporting#dimensionValueList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Continuation token used to page through dimension values. To retrieve the next + # page of results, set the next request's "pageToken" to the value of this field. + # The page token is only valid for a limited amount of time and should not be + # persisted. + # 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) + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Represents a DimensionValuesRequest. + class DimensionValueRequest + include Google::Apis::Core::Hashable + + # The name of the dimension for which values should be requested. + # Corresponds to the JSON property `dimensionName` + # @return [String] + attr_accessor :dimension_name + + # The end date of the date range for which to retrieve dimension values. A + # string of the format "yyyy-MM-dd". + # Corresponds to the JSON property `endDate` + # @return [Date] + attr_accessor :end_date + + # The list of filters by which to filter values. The filters are ANDed. + # Corresponds to the JSON property `filters` + # @return [Array] + attr_accessor :filters + + # The kind of request this is, in this case dfareporting#dimensionValueRequest. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The start date of the date range for which to retrieve dimension values. A + # string of the format "yyyy-MM-dd". + # Corresponds to the JSON property `startDate` + # @return [Date] + attr_accessor :start_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension_name = args[:dimension_name] if args.key?(:dimension_name) + @end_date = args[:end_date] if args.key?(:end_date) + @filters = args[:filters] if args.key?(:filters) + @kind = args[:kind] if args.key?(:kind) + @start_date = args[:start_date] if args.key?(:start_date) + end + end + + # DirectorySites contains properties of a website from the Site Directory. Sites + # need to be added to an account via the Sites resource before they can be + # assigned to a placement. + class DirectorySite + include Google::Apis::Core::Hashable + + # Whether this directory site is active. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # Directory site contacts. + # Corresponds to the JSON property `contactAssignments` + # @return [Array] + attr_accessor :contact_assignments + + # Country ID of this directory site. This is a read-only field. + # Corresponds to the JSON property `countryId` + # @return [Fixnum] + attr_accessor :country_id + + # Currency ID of this directory site. This is a read-only field. + # Possible values are: + # - "1" for USD + # - "2" for GBP + # - "3" for ESP + # - "4" for SEK + # - "5" for CAD + # - "6" for JPY + # - "7" for DEM + # - "8" for AUD + # - "9" for FRF + # - "10" for ITL + # - "11" for DKK + # - "12" for NOK + # - "13" for FIM + # - "14" for ZAR + # - "15" for IEP + # - "16" for NLG + # - "17" for EUR + # - "18" for KRW + # - "19" for TWD + # - "20" for SGD + # - "21" for CNY + # - "22" for HKD + # - "23" for NZD + # - "24" for MYR + # - "25" for BRL + # - "26" for PTE + # - "27" for MXP + # - "28" for CLP + # - "29" for TRY + # - "30" for ARS + # - "31" for PEN + # - "32" for ILS + # - "33" for CHF + # - "34" for VEF + # - "35" for COP + # - "36" for GTQ + # - "37" for PLN + # - "39" for INR + # - "40" for THB + # - "41" for IDR + # - "42" for CZK + # - "43" for RON + # - "44" for HUF + # - "45" for RUB + # - "46" for AED + # - "47" for BGN + # - "48" for HRK + # - "49" for MXN + # - "50" for NGN + # Corresponds to the JSON property `currencyId` + # @return [Fixnum] + attr_accessor :currency_id + + # Description of this directory site. This is a read-only field. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # ID of this directory site. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Tag types for regular placements. + # Acceptable values are: + # - "STANDARD" + # - "IFRAME_JAVASCRIPT_INPAGE" + # - "INTERNAL_REDIRECT_INPAGE" + # - "JAVASCRIPT_INPAGE" + # Corresponds to the JSON property `inpageTagFormats` + # @return [Array] + attr_accessor :inpage_tag_formats + + # Tag types for interstitial placements. + # Acceptable values are: + # - "IFRAME_JAVASCRIPT_INTERSTITIAL" + # - "INTERNAL_REDIRECT_INTERSTITIAL" + # - "JAVASCRIPT_INTERSTITIAL" + # Corresponds to the JSON property `interstitialTagFormats` + # @return [Array] + attr_accessor :interstitial_tag_formats + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#directorySite". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this directory site. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Parent directory site ID. + # Corresponds to the JSON property `parentId` + # @return [Fixnum] + attr_accessor :parent_id + + # Directory Site Settings + # Corresponds to the JSON property `settings` + # @return [Google::Apis::DfareportingV3_2::DirectorySiteSettings] + attr_accessor :settings + + # URL of this directory site. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active = args[:active] if args.key?(:active) + @contact_assignments = args[:contact_assignments] if args.key?(:contact_assignments) + @country_id = args[:country_id] if args.key?(:country_id) + @currency_id = args[:currency_id] if args.key?(:currency_id) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @inpage_tag_formats = args[:inpage_tag_formats] if args.key?(:inpage_tag_formats) + @interstitial_tag_formats = args[:interstitial_tag_formats] if args.key?(:interstitial_tag_formats) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @parent_id = args[:parent_id] if args.key?(:parent_id) + @settings = args[:settings] if args.key?(:settings) + @url = args[:url] if args.key?(:url) + end + end + + # Contains properties of a Site Directory contact. + class DirectorySiteContact + include Google::Apis::Core::Hashable + + # Address of this directory site contact. + # Corresponds to the JSON property `address` + # @return [String] + attr_accessor :address + + # Email address of this directory site contact. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # First name of this directory site contact. + # Corresponds to the JSON property `firstName` + # @return [String] + attr_accessor :first_name + + # ID of this directory site contact. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#directorySiteContact". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Last name of this directory site contact. + # Corresponds to the JSON property `lastName` + # @return [String] + attr_accessor :last_name + + # Phone number of this directory site contact. + # Corresponds to the JSON property `phone` + # @return [String] + attr_accessor :phone + + # Directory site contact role. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # Title or designation of this directory site contact. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Directory site contact type. + # 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) + @address = args[:address] if args.key?(:address) + @email = args[:email] if args.key?(:email) + @first_name = args[:first_name] if args.key?(:first_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_name = args[:last_name] if args.key?(:last_name) + @phone = args[:phone] if args.key?(:phone) + @role = args[:role] if args.key?(:role) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) + end + end + + # Directory Site Contact Assignment + class DirectorySiteContactAssignment + include Google::Apis::Core::Hashable + + # ID of this directory site contact. This is a read-only, auto-generated field. + # Corresponds to the JSON property `contactId` + # @return [Fixnum] + attr_accessor :contact_id + + # Visibility of this directory site contact assignment. When set to PUBLIC this + # contact assignment is visible to all account and agency users; when set to + # PRIVATE it is visible only to the site. + # Corresponds to the JSON property `visibility` + # @return [String] + attr_accessor :visibility + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_id = args[:contact_id] if args.key?(:contact_id) + @visibility = args[:visibility] if args.key?(:visibility) + end + end + + # Directory Site Contact List Response + class DirectorySiteContactsListResponse + include Google::Apis::Core::Hashable + + # Directory site contact collection + # Corresponds to the JSON property `directorySiteContacts` + # @return [Array] + attr_accessor :directory_site_contacts + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#directorySiteContactsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @directory_site_contacts = args[:directory_site_contacts] if args.key?(:directory_site_contacts) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Directory Site Settings + class DirectorySiteSettings + include Google::Apis::Core::Hashable + + # Whether this directory site has disabled active view creatives. + # Corresponds to the JSON property `activeViewOptOut` + # @return [Boolean] + attr_accessor :active_view_opt_out + alias_method :active_view_opt_out?, :active_view_opt_out + + # DFP Settings + # Corresponds to the JSON property `dfpSettings` + # @return [Google::Apis::DfareportingV3_2::DfpSettings] + attr_accessor :dfp_settings + + # Whether this site accepts in-stream video ads. + # Corresponds to the JSON property `instreamVideoPlacementAccepted` + # @return [Boolean] + attr_accessor :instream_video_placement_accepted + alias_method :instream_video_placement_accepted?, :instream_video_placement_accepted + + # Whether this site accepts interstitial ads. + # Corresponds to the JSON property `interstitialPlacementAccepted` + # @return [Boolean] + attr_accessor :interstitial_placement_accepted + alias_method :interstitial_placement_accepted?, :interstitial_placement_accepted + + # Whether this directory site has disabled Nielsen OCR reach ratings. + # Corresponds to the JSON property `nielsenOcrOptOut` + # @return [Boolean] + attr_accessor :nielsen_ocr_opt_out + alias_method :nielsen_ocr_opt_out?, :nielsen_ocr_opt_out + + # Whether this directory site has disabled generation of Verification ins tags. + # Corresponds to the JSON property `verificationTagOptOut` + # @return [Boolean] + attr_accessor :verification_tag_opt_out + alias_method :verification_tag_opt_out?, :verification_tag_opt_out + + # Whether this directory site has disabled active view for in-stream video + # creatives. This is a read-only field. + # Corresponds to the JSON property `videoActiveViewOptOut` + # @return [Boolean] + attr_accessor :video_active_view_opt_out + alias_method :video_active_view_opt_out?, :video_active_view_opt_out + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active_view_opt_out = args[:active_view_opt_out] if args.key?(:active_view_opt_out) + @dfp_settings = args[:dfp_settings] if args.key?(:dfp_settings) + @instream_video_placement_accepted = args[:instream_video_placement_accepted] if args.key?(:instream_video_placement_accepted) + @interstitial_placement_accepted = args[:interstitial_placement_accepted] if args.key?(:interstitial_placement_accepted) + @nielsen_ocr_opt_out = args[:nielsen_ocr_opt_out] if args.key?(:nielsen_ocr_opt_out) + @verification_tag_opt_out = args[:verification_tag_opt_out] if args.key?(:verification_tag_opt_out) + @video_active_view_opt_out = args[:video_active_view_opt_out] if args.key?(:video_active_view_opt_out) + end + end + + # Directory Site List Response + class DirectorySitesListResponse + include Google::Apis::Core::Hashable + + # Directory site collection. + # Corresponds to the JSON property `directorySites` + # @return [Array] + attr_accessor :directory_sites + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#directorySitesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @directory_sites = args[:directory_sites] if args.key?(:directory_sites) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Contains properties of a dynamic targeting key. Dynamic targeting keys are + # unique, user-friendly labels, created at the advertiser level in DCM, that can + # be assigned to ads, creatives, and placements and used for targeting with + # DoubleClick Studio dynamic creatives. Use these labels instead of numeric DCM + # IDs (such as placement IDs) to save time and avoid errors in your dynamic + # feeds. + class DynamicTargetingKey + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#dynamicTargetingKey". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this dynamic targeting key. This is a required field. Must be less + # than 256 characters long and cannot contain commas. All characters are + # converted to lowercase. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # ID of the object of this dynamic targeting key. This is a required field. + # Corresponds to the JSON property `objectId` + # @return [Fixnum] + attr_accessor :object_id_prop + + # Type of the object of this dynamic targeting key. This is a required field. + # Corresponds to the JSON property `objectType` + # @return [String] + attr_accessor :object_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) + @object_type = args[:object_type] if args.key?(:object_type) + end + end + + # Dynamic Targeting Key List Response + class DynamicTargetingKeysListResponse + include Google::Apis::Core::Hashable + + # Dynamic targeting key collection. + # Corresponds to the JSON property `dynamicTargetingKeys` + # @return [Array] + attr_accessor :dynamic_targeting_keys + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#dynamicTargetingKeysListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dynamic_targeting_keys = args[:dynamic_targeting_keys] if args.key?(:dynamic_targeting_keys) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A description of how user IDs are encrypted. + class EncryptionInfo + include Google::Apis::Core::Hashable + + # The encryption entity ID. This should match the encryption configuration for + # ad serving or Data Transfer. + # Corresponds to the JSON property `encryptionEntityId` + # @return [Fixnum] + attr_accessor :encryption_entity_id + + # The encryption entity type. This should match the encryption configuration for + # ad serving or Data Transfer. + # Corresponds to the JSON property `encryptionEntityType` + # @return [String] + attr_accessor :encryption_entity_type + + # Describes whether the encrypted cookie was received from ad serving (the %m + # macro) or from Data Transfer. + # Corresponds to the JSON property `encryptionSource` + # @return [String] + attr_accessor :encryption_source + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#encryptionInfo". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @encryption_entity_id = args[:encryption_entity_id] if args.key?(:encryption_entity_id) + @encryption_entity_type = args[:encryption_entity_type] if args.key?(:encryption_entity_type) + @encryption_source = args[:encryption_source] if args.key?(:encryption_source) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Contains properties of an event tag. + class EventTag + include Google::Apis::Core::Hashable + + # Account ID of this event tag. This is a read-only field that can be left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of this event tag. This field or the campaignId field is + # required on insertion. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Campaign ID of this event tag. This field or the advertiserId field is + # required on insertion. + # Corresponds to the JSON property `campaignId` + # @return [Fixnum] + attr_accessor :campaign_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `campaignIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :campaign_id_dimension_value + + # Whether this event tag should be automatically enabled for all of the + # advertiser's campaigns and ads. + # Corresponds to the JSON property `enabledByDefault` + # @return [Boolean] + attr_accessor :enabled_by_default + alias_method :enabled_by_default?, :enabled_by_default + + # Whether to remove this event tag from ads that are trafficked through + # DoubleClick Bid Manager to Ad Exchange. This may be useful if the event tag + # uses a pixel that is unapproved for Ad Exchange bids on one or more networks, + # such as the Google Display Network. + # Corresponds to the JSON property `excludeFromAdxRequests` + # @return [Boolean] + attr_accessor :exclude_from_adx_requests + alias_method :exclude_from_adx_requests?, :exclude_from_adx_requests + + # ID of this event tag. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#eventTag". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this event tag. This is a required field and must be less than 256 + # characters long. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Site filter type for this event tag. If no type is specified then the event + # tag will be applied to all sites. + # Corresponds to the JSON property `siteFilterType` + # @return [String] + attr_accessor :site_filter_type + + # Filter list of site IDs associated with this event tag. The siteFilterType + # determines whether this is a whitelist or blacklist filter. + # Corresponds to the JSON property `siteIds` + # @return [Array] + attr_accessor :site_ids + + # Whether this tag is SSL-compliant or not. This is a read-only field. + # Corresponds to the JSON property `sslCompliant` + # @return [Boolean] + attr_accessor :ssl_compliant + alias_method :ssl_compliant?, :ssl_compliant + + # Status of this event tag. Must be ENABLED for this event tag to fire. This is + # a required field. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Subaccount ID of this event tag. This is a read-only field that can be left + # blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Event tag type. Can be used to specify whether to use a third-party pixel, a + # third-party JavaScript URL, or a third-party click-through URL for either + # impression or click tracking. This is a required field. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Payload URL for this event tag. The URL on a click-through event tag should + # have a landing page URL appended to the end of it. This field is required on + # insertion. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # Number of times the landing page URL should be URL-escaped before being + # appended to the click-through event tag URL. Only applies to click-through + # event tags as specified by the event tag type. + # Corresponds to the JSON property `urlEscapeLevels` + # @return [Fixnum] + attr_accessor :url_escape_levels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @campaign_id = args[:campaign_id] if args.key?(:campaign_id) + @campaign_id_dimension_value = args[:campaign_id_dimension_value] if args.key?(:campaign_id_dimension_value) + @enabled_by_default = args[:enabled_by_default] if args.key?(:enabled_by_default) + @exclude_from_adx_requests = args[:exclude_from_adx_requests] if args.key?(:exclude_from_adx_requests) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @site_filter_type = args[:site_filter_type] if args.key?(:site_filter_type) + @site_ids = args[:site_ids] if args.key?(:site_ids) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @status = args[:status] if args.key?(:status) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) + @url_escape_levels = args[:url_escape_levels] if args.key?(:url_escape_levels) + end + end + + # Event tag override information. + class EventTagOverride + include Google::Apis::Core::Hashable + + # Whether this override is enabled. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # ID of this event tag override. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enabled = args[:enabled] if args.key?(:enabled) + @id = args[:id] if args.key?(:id) + end + end + + # Event Tag List Response + class EventTagsListResponse + include Google::Apis::Core::Hashable + + # Event tag collection. + # Corresponds to the JSON property `eventTags` + # @return [Array] + attr_accessor :event_tags + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#eventTagsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event_tags = args[:event_tags] if args.key?(:event_tags) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Represents a File resource. A file contains the metadata for a report run. It + # shows the status of the run and holds the URLs to the generated report data if + # the run is finished and the status is "REPORT_AVAILABLE". + class File + include Google::Apis::Core::Hashable + + # Represents a date range. + # Corresponds to the JSON property `dateRange` + # @return [Google::Apis::DfareportingV3_2::DateRange] + attr_accessor :date_range + + # The eTag of this response for caching purposes. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The filename of the file. + # Corresponds to the JSON property `fileName` + # @return [String] + attr_accessor :file_name + + # The output format of the report. Only available once the file is available. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # The unique ID of this report file. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # The kind of resource this is, in this case dfareporting#file. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The timestamp in milliseconds since epoch when this file was last modified. + # Corresponds to the JSON property `lastModifiedTime` + # @return [Fixnum] + attr_accessor :last_modified_time + + # The ID of the report this file was generated from. + # Corresponds to the JSON property `reportId` + # @return [Fixnum] + attr_accessor :report_id + + # The status of the report file. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The URLs where the completed report file can be downloaded. + # Corresponds to the JSON property `urls` + # @return [Google::Apis::DfareportingV3_2::File::Urls] + attr_accessor :urls + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @date_range = args[:date_range] if args.key?(:date_range) + @etag = args[:etag] if args.key?(:etag) + @file_name = args[:file_name] if args.key?(:file_name) + @format = args[:format] if args.key?(:format) + @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) + @report_id = args[:report_id] if args.key?(:report_id) + @status = args[:status] if args.key?(:status) + @urls = args[:urls] if args.key?(:urls) + end + + # The URLs where the completed report file can be downloaded. + class Urls + include Google::Apis::Core::Hashable + + # The URL for downloading the report data through the API. + # Corresponds to the JSON property `apiUrl` + # @return [String] + attr_accessor :api_url + + # The URL for downloading the report data through a browser. + # Corresponds to the JSON property `browserUrl` + # @return [String] + attr_accessor :browser_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_url = args[:api_url] if args.key?(:api_url) + @browser_url = args[:browser_url] if args.key?(:browser_url) + end + end + end + + # Represents the list of File resources. + class FileList + include Google::Apis::Core::Hashable + + # The eTag of this response for caching purposes. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The files returned in this response. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of list this is, in this case dfareporting#fileList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Continuation token used to page through files. To retrieve the next page of + # results, set the next request's "pageToken" to the value of this field. The + # page token is only valid for a limited amount of time and should not be + # persisted. + # 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) + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Flight + class Flight + include Google::Apis::Core::Hashable + + # Inventory item flight end date. + # Corresponds to the JSON property `endDate` + # @return [Date] + attr_accessor :end_date + + # Rate or cost of this flight. + # Corresponds to the JSON property `rateOrCost` + # @return [Fixnum] + attr_accessor :rate_or_cost + + # Inventory item flight start date. + # Corresponds to the JSON property `startDate` + # @return [Date] + attr_accessor :start_date + + # Units of this flight. + # Corresponds to the JSON property `units` + # @return [Fixnum] + attr_accessor :units + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_date = args[:end_date] if args.key?(:end_date) + @rate_or_cost = args[:rate_or_cost] if args.key?(:rate_or_cost) + @start_date = args[:start_date] if args.key?(:start_date) + @units = args[:units] if args.key?(:units) + end + end + + # Floodlight Activity GenerateTag Response + class FloodlightActivitiesGenerateTagResponse + include Google::Apis::Core::Hashable + + # Generated tag for this Floodlight activity. For global site tags, this is the + # event snippet. + # Corresponds to the JSON property `floodlightActivityTag` + # @return [String] + attr_accessor :floodlight_activity_tag + + # The global snippet section of a global site tag. The global site tag sets new + # cookies on your domain, which will store a unique identifier for a user or the + # ad click that brought the user to your site. Learn more. + # Corresponds to the JSON property `globalSiteTagGlobalSnippet` + # @return [String] + attr_accessor :global_site_tag_global_snippet + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#floodlightActivitiesGenerateTagResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @floodlight_activity_tag = args[:floodlight_activity_tag] if args.key?(:floodlight_activity_tag) + @global_site_tag_global_snippet = args[:global_site_tag_global_snippet] if args.key?(:global_site_tag_global_snippet) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Floodlight Activity List Response + class FloodlightActivitiesListResponse + include Google::Apis::Core::Hashable + + # Floodlight activity collection. + # Corresponds to the JSON property `floodlightActivities` + # @return [Array] + attr_accessor :floodlight_activities + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#floodlightActivitiesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @floodlight_activities = args[:floodlight_activities] if args.key?(:floodlight_activities) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Contains properties of a Floodlight activity. + class FloodlightActivity + include Google::Apis::Core::Hashable + + # Account ID of this floodlight activity. This is a read-only field that can be + # left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of this floodlight activity. If this field is left blank, the + # value will be copied over either from the activity group's advertiser or the + # existing activity's advertiser. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Code type used for cache busting in the generated tag. Applicable only when + # floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING + # or UNIQUE_COUNTING. + # Corresponds to the JSON property `cacheBustingType` + # @return [String] + attr_accessor :cache_busting_type + + # Counting method for conversions for this floodlight activity. This is a + # required field. + # Corresponds to the JSON property `countingMethod` + # @return [String] + attr_accessor :counting_method + + # Dynamic floodlight tags. + # Corresponds to the JSON property `defaultTags` + # @return [Array] + attr_accessor :default_tags + + # URL where this tag will be deployed. If specified, must be less than 256 + # characters long. + # Corresponds to the JSON property `expectedUrl` + # @return [String] + attr_accessor :expected_url + + # Floodlight activity group ID of this floodlight activity. This is a required + # field. + # Corresponds to the JSON property `floodlightActivityGroupId` + # @return [Fixnum] + attr_accessor :floodlight_activity_group_id + + # Name of the associated floodlight activity group. This is a read-only field. + # Corresponds to the JSON property `floodlightActivityGroupName` + # @return [String] + attr_accessor :floodlight_activity_group_name + + # Tag string of the associated floodlight activity group. This is a read-only + # field. + # Corresponds to the JSON property `floodlightActivityGroupTagString` + # @return [String] + attr_accessor :floodlight_activity_group_tag_string + + # Type of the associated floodlight activity group. This is a read-only field. + # Corresponds to the JSON property `floodlightActivityGroupType` + # @return [String] + attr_accessor :floodlight_activity_group_type + + # Floodlight configuration ID of this floodlight activity. If this field is left + # blank, the value will be copied over either from the activity group's + # floodlight configuration or from the existing activity's floodlight + # configuration. + # Corresponds to the JSON property `floodlightConfigurationId` + # @return [Fixnum] + attr_accessor :floodlight_configuration_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `floodlightConfigurationIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :floodlight_configuration_id_dimension_value + + # The type of Floodlight tag this activity will generate. This is a required + # field. + # Corresponds to the JSON property `floodlightTagType` + # @return [String] + attr_accessor :floodlight_tag_type + + # Whether this activity is archived. + # Corresponds to the JSON property `hidden` + # @return [Boolean] + attr_accessor :hidden + alias_method :hidden?, :hidden + + # ID of this floodlight activity. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#floodlightActivity". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this floodlight activity. This is a required field. Must be less than + # 129 characters long and cannot contain quotes. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # General notes or implementation instructions for the tag. + # Corresponds to the JSON property `notes` + # @return [String] + attr_accessor :notes + + # Publisher dynamic floodlight tags. + # Corresponds to the JSON property `publisherTags` + # @return [Array] + attr_accessor :publisher_tags + + # Whether this tag should use SSL. + # Corresponds to the JSON property `secure` + # @return [Boolean] + attr_accessor :secure + alias_method :secure?, :secure + + # Whether the floodlight activity is SSL-compliant. This is a read-only field, + # its value detected by the system from the floodlight tags. + # Corresponds to the JSON property `sslCompliant` + # @return [Boolean] + attr_accessor :ssl_compliant + alias_method :ssl_compliant?, :ssl_compliant + + # Whether this floodlight activity must be SSL-compliant. + # Corresponds to the JSON property `sslRequired` + # @return [Boolean] + attr_accessor :ssl_required + alias_method :ssl_required?, :ssl_required + + # Subaccount ID of this floodlight activity. This is a read-only field that can + # be left blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Tag format type for the floodlight activity. If left blank, the tag format + # will default to HTML. + # Corresponds to the JSON property `tagFormat` + # @return [String] + attr_accessor :tag_format + + # Value of the cat= parameter in the floodlight tag, which the ad servers use to + # identify the activity. This is optional: if empty, a new tag string will be + # generated for you. This string must be 1 to 8 characters long, with valid + # characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique + # among activities of the same activity group. This field is read-only after + # insertion. + # Corresponds to the JSON property `tagString` + # @return [String] + attr_accessor :tag_string + + # List of the user-defined variables used by this conversion tag. These map to + # the "u[1-100]=" in the tags. Each of these can have a user defined type. + # Acceptable values are U1 to U100, inclusive. + # Corresponds to the JSON property `userDefinedVariableTypes` + # @return [Array] + attr_accessor :user_defined_variable_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @cache_busting_type = args[:cache_busting_type] if args.key?(:cache_busting_type) + @counting_method = args[:counting_method] if args.key?(:counting_method) + @default_tags = args[:default_tags] if args.key?(:default_tags) + @expected_url = args[:expected_url] if args.key?(:expected_url) + @floodlight_activity_group_id = args[:floodlight_activity_group_id] if args.key?(:floodlight_activity_group_id) + @floodlight_activity_group_name = args[:floodlight_activity_group_name] if args.key?(:floodlight_activity_group_name) + @floodlight_activity_group_tag_string = args[:floodlight_activity_group_tag_string] if args.key?(:floodlight_activity_group_tag_string) + @floodlight_activity_group_type = args[:floodlight_activity_group_type] if args.key?(:floodlight_activity_group_type) + @floodlight_configuration_id = args[:floodlight_configuration_id] if args.key?(:floodlight_configuration_id) + @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] if args.key?(:floodlight_configuration_id_dimension_value) + @floodlight_tag_type = args[:floodlight_tag_type] if args.key?(:floodlight_tag_type) + @hidden = args[:hidden] if args.key?(:hidden) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @publisher_tags = args[:publisher_tags] if args.key?(:publisher_tags) + @secure = args[:secure] if args.key?(:secure) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @ssl_required = args[:ssl_required] if args.key?(:ssl_required) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @tag_format = args[:tag_format] if args.key?(:tag_format) + @tag_string = args[:tag_string] if args.key?(:tag_string) + @user_defined_variable_types = args[:user_defined_variable_types] if args.key?(:user_defined_variable_types) + end + end + + # Dynamic Tag + class FloodlightActivityDynamicTag + include Google::Apis::Core::Hashable + + # ID of this dynamic tag. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Name of this tag. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Tag code. + # Corresponds to the JSON property `tag` + # @return [String] + attr_accessor :tag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @tag = args[:tag] if args.key?(:tag) + end + end + + # Contains properties of a Floodlight activity group. + class FloodlightActivityGroup + include Google::Apis::Core::Hashable + + # Account ID of this floodlight activity group. This is a read-only field that + # can be left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of this floodlight activity group. If this field is left blank, + # the value will be copied over either from the floodlight configuration's + # advertiser or from the existing activity group's advertiser. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Floodlight configuration ID of this floodlight activity group. This is a + # required field. + # Corresponds to the JSON property `floodlightConfigurationId` + # @return [Fixnum] + attr_accessor :floodlight_configuration_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `floodlightConfigurationIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :floodlight_configuration_id_dimension_value + + # ID of this floodlight activity group. This is a read-only, auto-generated + # field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#floodlightActivityGroup". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this floodlight activity group. This is a required field. Must be less + # than 65 characters long and cannot contain quotes. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Subaccount ID of this floodlight activity group. This is a read-only field + # that can be left blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Value of the type= parameter in the floodlight tag, which the ad servers use + # to identify the activity group that the activity belongs to. This is optional: + # if empty, a new tag string will be generated for you. This string must be 1 to + # 8 characters long, with valid characters being [a-z][A-Z][0-9][-][ _ ]. This + # tag string must also be unique among activity groups of the same floodlight + # configuration. This field is read-only after insertion. + # Corresponds to the JSON property `tagString` + # @return [String] + attr_accessor :tag_string + + # Type of the floodlight activity group. This is a required field that is read- + # only after insertion. + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @floodlight_configuration_id = args[:floodlight_configuration_id] if args.key?(:floodlight_configuration_id) + @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] if args.key?(:floodlight_configuration_id_dimension_value) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @tag_string = args[:tag_string] if args.key?(:tag_string) + @type = args[:type] if args.key?(:type) + end + end + + # Floodlight Activity Group List Response + class FloodlightActivityGroupsListResponse + include Google::Apis::Core::Hashable + + # Floodlight activity group collection. + # Corresponds to the JSON property `floodlightActivityGroups` + # @return [Array] + attr_accessor :floodlight_activity_groups + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#floodlightActivityGroupsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @floodlight_activity_groups = args[:floodlight_activity_groups] if args.key?(:floodlight_activity_groups) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Publisher Dynamic Tag + class FloodlightActivityPublisherDynamicTag + include Google::Apis::Core::Hashable + + # Whether this tag is applicable only for click-throughs. + # Corresponds to the JSON property `clickThrough` + # @return [Boolean] + attr_accessor :click_through + alias_method :click_through?, :click_through + + # Directory site ID of this dynamic tag. This is a write-only field that can be + # used as an alternative to the siteId field. When this resource is retrieved, + # only the siteId field will be populated. + # Corresponds to the JSON property `directorySiteId` + # @return [Fixnum] + attr_accessor :directory_site_id + + # Dynamic Tag + # Corresponds to the JSON property `dynamicTag` + # @return [Google::Apis::DfareportingV3_2::FloodlightActivityDynamicTag] + attr_accessor :dynamic_tag + + # Site ID of this dynamic tag. + # Corresponds to the JSON property `siteId` + # @return [Fixnum] + attr_accessor :site_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `siteIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :site_id_dimension_value + + # Whether this tag is applicable only for view-throughs. + # Corresponds to the JSON property `viewThrough` + # @return [Boolean] + attr_accessor :view_through + alias_method :view_through?, :view_through + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @click_through = args[:click_through] if args.key?(:click_through) + @directory_site_id = args[:directory_site_id] if args.key?(:directory_site_id) + @dynamic_tag = args[:dynamic_tag] if args.key?(:dynamic_tag) + @site_id = args[:site_id] if args.key?(:site_id) + @site_id_dimension_value = args[:site_id_dimension_value] if args.key?(:site_id_dimension_value) + @view_through = args[:view_through] if args.key?(:view_through) + end + end + + # Contains properties of a Floodlight configuration. + class FloodlightConfiguration + include Google::Apis::Core::Hashable + + # Account ID of this floodlight configuration. This is a read-only field that + # can be left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of the parent advertiser of this floodlight configuration. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Whether advertiser data is shared with Google Analytics. + # Corresponds to the JSON property `analyticsDataSharingEnabled` + # @return [Boolean] + attr_accessor :analytics_data_sharing_enabled + alias_method :analytics_data_sharing_enabled?, :analytics_data_sharing_enabled + + # Whether the exposure-to-conversion report is enabled. This report shows + # detailed pathway information on up to 10 of the most recent ad exposures seen + # by a user before converting. + # Corresponds to the JSON property `exposureToConversionEnabled` + # @return [Boolean] + attr_accessor :exposure_to_conversion_enabled + alias_method :exposure_to_conversion_enabled?, :exposure_to_conversion_enabled + + # Day that will be counted as the first day of the week in reports. This is a + # required field. + # Corresponds to the JSON property `firstDayOfWeek` + # @return [String] + attr_accessor :first_day_of_week + + # ID of this floodlight configuration. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Whether in-app attribution tracking is enabled. + # Corresponds to the JSON property `inAppAttributionTrackingEnabled` + # @return [Boolean] + attr_accessor :in_app_attribution_tracking_enabled + alias_method :in_app_attribution_tracking_enabled?, :in_app_attribution_tracking_enabled + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#floodlightConfiguration". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Lookback configuration settings. + # Corresponds to the JSON property `lookbackConfiguration` + # @return [Google::Apis::DfareportingV3_2::LookbackConfiguration] + attr_accessor :lookback_configuration + + # Types of attribution options for natural search conversions. + # Corresponds to the JSON property `naturalSearchConversionAttributionOption` + # @return [String] + attr_accessor :natural_search_conversion_attribution_option + + # Omniture Integration Settings. + # Corresponds to the JSON property `omnitureSettings` + # @return [Google::Apis::DfareportingV3_2::OmnitureSettings] + attr_accessor :omniture_settings + + # Subaccount ID of this floodlight configuration. This is a read-only field that + # can be left blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Dynamic and Image Tag Settings. + # Corresponds to the JSON property `tagSettings` + # @return [Google::Apis::DfareportingV3_2::TagSettings] + attr_accessor :tag_settings + + # List of third-party authentication tokens enabled for this configuration. + # Corresponds to the JSON property `thirdPartyAuthenticationTokens` + # @return [Array] + attr_accessor :third_party_authentication_tokens + + # List of user defined variables enabled for this configuration. + # Corresponds to the JSON property `userDefinedVariableConfigurations` + # @return [Array] + attr_accessor :user_defined_variable_configurations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @analytics_data_sharing_enabled = args[:analytics_data_sharing_enabled] if args.key?(:analytics_data_sharing_enabled) + @exposure_to_conversion_enabled = args[:exposure_to_conversion_enabled] if args.key?(:exposure_to_conversion_enabled) + @first_day_of_week = args[:first_day_of_week] if args.key?(:first_day_of_week) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @in_app_attribution_tracking_enabled = args[:in_app_attribution_tracking_enabled] if args.key?(:in_app_attribution_tracking_enabled) + @kind = args[:kind] if args.key?(:kind) + @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) + @natural_search_conversion_attribution_option = args[:natural_search_conversion_attribution_option] if args.key?(:natural_search_conversion_attribution_option) + @omniture_settings = args[:omniture_settings] if args.key?(:omniture_settings) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @tag_settings = args[:tag_settings] if args.key?(:tag_settings) + @third_party_authentication_tokens = args[:third_party_authentication_tokens] if args.key?(:third_party_authentication_tokens) + @user_defined_variable_configurations = args[:user_defined_variable_configurations] if args.key?(:user_defined_variable_configurations) + end + end + + # Floodlight Configuration List Response + class FloodlightConfigurationsListResponse + include Google::Apis::Core::Hashable + + # Floodlight configuration collection. + # Corresponds to the JSON property `floodlightConfigurations` + # @return [Array] + attr_accessor :floodlight_configurations + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#floodlightConfigurationsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @floodlight_configurations = args[:floodlight_configurations] if args.key?(:floodlight_configurations) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Represents fields that are compatible to be selected for a report of type " + # FlOODLIGHT". + class FloodlightReportCompatibleFields + include Google::Apis::Core::Hashable + + # Dimensions which are compatible to be selected in the "dimensionFilters" + # section of the report. + # Corresponds to the JSON property `dimensionFilters` + # @return [Array] + attr_accessor :dimension_filters + + # Dimensions which are compatible to be selected in the "dimensions" section of + # the report. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # The kind of resource this is, in this case dfareporting# + # floodlightReportCompatibleFields. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Metrics which are compatible to be selected in the "metricNames" section of + # the report. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + end + end + + # Frequency Cap. + class FrequencyCap + include Google::Apis::Core::Hashable + + # Duration of time, in seconds, for this frequency cap. The maximum duration is + # 90 days. Acceptable values are 1 to 7776000, inclusive. + # Corresponds to the JSON property `duration` + # @return [Fixnum] + attr_accessor :duration + + # Number of times an individual user can be served the ad within the specified + # duration. Acceptable values are 1 to 15, inclusive. + # Corresponds to the JSON property `impressions` + # @return [Fixnum] + attr_accessor :impressions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @impressions = args[:impressions] if args.key?(:impressions) + end + end + + # FsCommand. + class FsCommand + include Google::Apis::Core::Hashable + + # Distance from the left of the browser.Applicable when positionOption is + # DISTANCE_FROM_TOP_LEFT_CORNER. + # Corresponds to the JSON property `left` + # @return [Fixnum] + attr_accessor :left + + # Position in the browser where the window will open. + # Corresponds to the JSON property `positionOption` + # @return [String] + attr_accessor :position_option + + # Distance from the top of the browser. Applicable when positionOption is + # DISTANCE_FROM_TOP_LEFT_CORNER. + # Corresponds to the JSON property `top` + # @return [Fixnum] + attr_accessor :top + + # Height of the window. + # Corresponds to the JSON property `windowHeight` + # @return [Fixnum] + attr_accessor :window_height + + # Width of the window. + # Corresponds to the JSON property `windowWidth` + # @return [Fixnum] + attr_accessor :window_width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @left = args[:left] if args.key?(:left) + @position_option = args[:position_option] if args.key?(:position_option) + @top = args[:top] if args.key?(:top) + @window_height = args[:window_height] if args.key?(:window_height) + @window_width = args[:window_width] if args.key?(:window_width) + end + end + + # Geographical Targeting. + class GeoTargeting + include Google::Apis::Core::Hashable + + # Cities to be targeted. For each city only dartId is required. The other fields + # are populated automatically when the ad is inserted or updated. If targeting a + # city, do not target or exclude the country of the city, and do not target the + # metro or region of the city. + # Corresponds to the JSON property `cities` + # @return [Array] + attr_accessor :cities + + # Countries to be targeted or excluded from targeting, depending on the setting + # of the excludeCountries field. For each country only dartId is required. The + # other fields are populated automatically when the ad is inserted or updated. + # If targeting or excluding a country, do not target regions, cities, metros, or + # postal codes in the same country. + # Corresponds to the JSON property `countries` + # @return [Array] + attr_accessor :countries + + # Whether or not to exclude the countries in the countries field from targeting. + # If false, the countries field refers to countries which will be targeted by + # the ad. + # Corresponds to the JSON property `excludeCountries` + # @return [Boolean] + attr_accessor :exclude_countries + alias_method :exclude_countries?, :exclude_countries + + # Metros to be targeted. For each metro only dmaId is required. The other fields + # are populated automatically when the ad is inserted or updated. If targeting a + # metro, do not target or exclude the country of the metro. + # Corresponds to the JSON property `metros` + # @return [Array] + attr_accessor :metros + + # Postal codes to be targeted. For each postal code only id is required. The + # other fields are populated automatically when the ad is inserted or updated. + # If targeting a postal code, do not target or exclude the country of the postal + # code. + # Corresponds to the JSON property `postalCodes` + # @return [Array] + attr_accessor :postal_codes + + # Regions to be targeted. For each region only dartId is required. The other + # fields are populated automatically when the ad is inserted or updated. If + # targeting a region, do not target or exclude the country of the region. + # Corresponds to the JSON property `regions` + # @return [Array] + attr_accessor :regions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cities = args[:cities] if args.key?(:cities) + @countries = args[:countries] if args.key?(:countries) + @exclude_countries = args[:exclude_countries] if args.key?(:exclude_countries) + @metros = args[:metros] if args.key?(:metros) + @postal_codes = args[:postal_codes] if args.key?(:postal_codes) + @regions = args[:regions] if args.key?(:regions) + end + end + + # Represents a buy from the DoubleClick Planning inventory store. + class InventoryItem + include Google::Apis::Core::Hashable + + # Account ID of this inventory item. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Ad slots of this inventory item. If this inventory item represents a + # standalone placement, there will be exactly one ad slot. If this inventory + # item represents a placement group, there will be more than one ad slot, each + # representing one child placement in that placement group. + # Corresponds to the JSON property `adSlots` + # @return [Array] + attr_accessor :ad_slots + + # Advertiser ID of this inventory item. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Content category ID of this inventory item. + # Corresponds to the JSON property `contentCategoryId` + # @return [Fixnum] + attr_accessor :content_category_id + + # Estimated click-through rate of this inventory item. + # Corresponds to the JSON property `estimatedClickThroughRate` + # @return [Fixnum] + attr_accessor :estimated_click_through_rate + + # Estimated conversion rate of this inventory item. + # Corresponds to the JSON property `estimatedConversionRate` + # @return [Fixnum] + attr_accessor :estimated_conversion_rate + + # ID of this inventory item. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Whether this inventory item is in plan. + # Corresponds to the JSON property `inPlan` + # @return [Boolean] + attr_accessor :in_plan + alias_method :in_plan?, :in_plan + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#inventoryItem". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Modification timestamp. + # Corresponds to the JSON property `lastModifiedInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :last_modified_info + + # Name of this inventory item. For standalone inventory items, this is the same + # name as that of its only ad slot. For group inventory items, this can differ + # from the name of any of its ad slots. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Negotiation channel ID of this inventory item. + # Corresponds to the JSON property `negotiationChannelId` + # @return [Fixnum] + attr_accessor :negotiation_channel_id + + # Order ID of this inventory item. + # Corresponds to the JSON property `orderId` + # @return [Fixnum] + attr_accessor :order_id + + # Placement strategy ID of this inventory item. + # Corresponds to the JSON property `placementStrategyId` + # @return [Fixnum] + attr_accessor :placement_strategy_id + + # Pricing Information + # Corresponds to the JSON property `pricing` + # @return [Google::Apis::DfareportingV3_2::Pricing] + attr_accessor :pricing + + # Project ID of this inventory item. + # Corresponds to the JSON property `projectId` + # @return [Fixnum] + attr_accessor :project_id + + # RFP ID of this inventory item. + # Corresponds to the JSON property `rfpId` + # @return [Fixnum] + attr_accessor :rfp_id + + # ID of the site this inventory item is associated with. + # Corresponds to the JSON property `siteId` + # @return [Fixnum] + attr_accessor :site_id + + # Subaccount ID of this inventory item. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Type of inventory item. + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @ad_slots = args[:ad_slots] if args.key?(:ad_slots) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @content_category_id = args[:content_category_id] if args.key?(:content_category_id) + @estimated_click_through_rate = args[:estimated_click_through_rate] if args.key?(:estimated_click_through_rate) + @estimated_conversion_rate = args[:estimated_conversion_rate] if args.key?(:estimated_conversion_rate) + @id = args[:id] if args.key?(:id) + @in_plan = args[:in_plan] if args.key?(:in_plan) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @negotiation_channel_id = args[:negotiation_channel_id] if args.key?(:negotiation_channel_id) + @order_id = args[:order_id] if args.key?(:order_id) + @placement_strategy_id = args[:placement_strategy_id] if args.key?(:placement_strategy_id) + @pricing = args[:pricing] if args.key?(:pricing) + @project_id = args[:project_id] if args.key?(:project_id) + @rfp_id = args[:rfp_id] if args.key?(:rfp_id) + @site_id = args[:site_id] if args.key?(:site_id) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @type = args[:type] if args.key?(:type) + end + end + + # Inventory item List Response + class InventoryItemsListResponse + include Google::Apis::Core::Hashable + + # Inventory item collection + # Corresponds to the JSON property `inventoryItems` + # @return [Array] + attr_accessor :inventory_items + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#inventoryItemsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # 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) + @inventory_items = args[:inventory_items] if args.key?(:inventory_items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Key Value Targeting Expression. + class KeyValueTargetingExpression + include Google::Apis::Core::Hashable + + # Keyword expression being targeted by the ad. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expression = args[:expression] if args.key?(:expression) + end + end + + # Contains information about where a user's browser is taken after the user + # clicks an ad. + class LandingPage + include Google::Apis::Core::Hashable + + # Advertiser ID of this landing page. This is a required field. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Whether this landing page has been archived. + # Corresponds to the JSON property `archived` + # @return [Boolean] + attr_accessor :archived + alias_method :archived?, :archived + + # Links that will direct the user to a mobile app, if installed. + # Corresponds to the JSON property `deepLinks` + # @return [Array] + attr_accessor :deep_links + + # ID of this landing page. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#landingPage". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this landing page. This is a required field. It must be less than 256 + # characters long. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # URL of this landing page. This is a required field. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @archived = args[:archived] if args.key?(:archived) + @deep_links = args[:deep_links] if args.key?(:deep_links) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @url = args[:url] if args.key?(:url) + end + end + + # Contains information about a language that can be targeted by ads. + class Language + include Google::Apis::Core::Hashable + + # Language ID of this language. This is the ID used for targeting and generating + # reports. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#language". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Format of language code is an ISO 639 two-letter language code optionally + # followed by an underscore followed by an ISO 3166 code. Examples are "en" for + # English or "zh_CN" for Simplified Chinese. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Name of this language. + # 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) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @language_code = args[:language_code] if args.key?(:language_code) + @name = args[:name] if args.key?(:name) + end + end + + # Language Targeting. + class LanguageTargeting + include Google::Apis::Core::Hashable + + # Languages that this ad targets. For each language only languageId is required. + # The other fields are populated automatically when the ad is inserted or + # updated. + # Corresponds to the JSON property `languages` + # @return [Array] + attr_accessor :languages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @languages = args[:languages] if args.key?(:languages) + end + end + + # Language List Response + class LanguagesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#languagesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Language collection. + # Corresponds to the JSON property `languages` + # @return [Array] + attr_accessor :languages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @languages = args[:languages] if args.key?(:languages) + end + end + + # Modification timestamp. + class LastModifiedInfo + include Google::Apis::Core::Hashable + + # Timestamp of the last change in milliseconds since epoch. + # Corresponds to the JSON property `time` + # @return [Fixnum] + attr_accessor :time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @time = args[:time] if args.key?(:time) + end + end + + # A group clause made up of list population terms representing constraints + # joined by ORs. + class ListPopulationClause + include Google::Apis::Core::Hashable + + # Terms of this list population clause. Each clause is made up of list + # population terms representing constraints and are joined by ORs. + # Corresponds to the JSON property `terms` + # @return [Array] + attr_accessor :terms + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @terms = args[:terms] if args.key?(:terms) + end + end + + # Remarketing List Population Rule. + class ListPopulationRule + include Google::Apis::Core::Hashable + + # Floodlight activity ID associated with this rule. This field can be left blank. + # Corresponds to the JSON property `floodlightActivityId` + # @return [Fixnum] + attr_accessor :floodlight_activity_id + + # Name of floodlight activity associated with this rule. This is a read-only, + # auto-generated field. + # Corresponds to the JSON property `floodlightActivityName` + # @return [String] + attr_accessor :floodlight_activity_name + + # Clauses that make up this list population rule. Clauses are joined by ANDs, + # and the clauses themselves are made up of list population terms which are + # joined by ORs. + # Corresponds to the JSON property `listPopulationClauses` + # @return [Array] + attr_accessor :list_population_clauses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id) + @floodlight_activity_name = args[:floodlight_activity_name] if args.key?(:floodlight_activity_name) + @list_population_clauses = args[:list_population_clauses] if args.key?(:list_population_clauses) + end + end + + # Remarketing List Population Rule Term. + class ListPopulationTerm + include Google::Apis::Core::Hashable + + # Will be true if the term should check if the user is in the list and false if + # the term should check if the user is not in the list. This field is only + # relevant when type is set to LIST_MEMBERSHIP_TERM. False by default. + # Corresponds to the JSON property `contains` + # @return [Boolean] + attr_accessor :contains + alias_method :contains?, :contains + + # Whether to negate the comparison result of this term during rule evaluation. + # This field is only relevant when type is left unset or set to + # CUSTOM_VARIABLE_TERM or REFERRER_TERM. + # Corresponds to the JSON property `negation` + # @return [Boolean] + attr_accessor :negation + alias_method :negation?, :negation + + # Comparison operator of this term. This field is only relevant when type is + # left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + + # ID of the list in question. This field is only relevant when type is set to + # LIST_MEMBERSHIP_TERM. + # Corresponds to the JSON property `remarketingListId` + # @return [Fixnum] + attr_accessor :remarketing_list_id + + # List population term type determines the applicable fields in this object. If + # left unset or set to CUSTOM_VARIABLE_TERM, then variableName, + # variableFriendlyName, operator, value, and negation are applicable. If set to + # LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. If + # set to REFERRER_TERM then operator, value, and negation are applicable. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Literal to compare the variable to. This field is only relevant when type is + # left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # Friendly name of this term's variable. This is a read-only, auto-generated + # field. This field is only relevant when type is left unset or set to + # CUSTOM_VARIABLE_TERM. + # Corresponds to the JSON property `variableFriendlyName` + # @return [String] + attr_accessor :variable_friendly_name + + # Name of the variable (U1, U2, etc.) being compared in this term. This field is + # only relevant when type is set to null, CUSTOM_VARIABLE_TERM or REFERRER_TERM. + # Corresponds to the JSON property `variableName` + # @return [String] + attr_accessor :variable_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contains = args[:contains] if args.key?(:contains) + @negation = args[:negation] if args.key?(:negation) + @operator = args[:operator] if args.key?(:operator) + @remarketing_list_id = args[:remarketing_list_id] if args.key?(:remarketing_list_id) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) + @variable_friendly_name = args[:variable_friendly_name] if args.key?(:variable_friendly_name) + @variable_name = args[:variable_name] if args.key?(:variable_name) + end + end + + # Remarketing List Targeting Expression. + class ListTargetingExpression + include Google::Apis::Core::Hashable + + # Expression describing which lists are being targeted by the ad. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expression = args[:expression] if args.key?(:expression) + end + end + + # Lookback configuration settings. + class LookbackConfiguration + include Google::Apis::Core::Hashable + + # Lookback window, in days, from the last time a given user clicked on one of + # your ads. If you enter 0, clicks will not be considered as triggering events + # for floodlight tracking. If you leave this field blank, the default value for + # your account will be used. Acceptable values are 0 to 90, inclusive. + # Corresponds to the JSON property `clickDuration` + # @return [Fixnum] + attr_accessor :click_duration + + # Lookback window, in days, from the last time a given user viewed one of your + # ads. If you enter 0, impressions will not be considered as triggering events + # for floodlight tracking. If you leave this field blank, the default value for + # your account will be used. Acceptable values are 0 to 90, inclusive. + # Corresponds to the JSON property `postImpressionActivitiesDuration` + # @return [Fixnum] + attr_accessor :post_impression_activities_duration + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @click_duration = args[:click_duration] if args.key?(:click_duration) + @post_impression_activities_duration = args[:post_impression_activities_duration] if args.key?(:post_impression_activities_duration) + end + end + + # Represents a metric. + class Metric + include Google::Apis::Core::Hashable + + # The kind of resource this is, in this case dfareporting#metric. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The metric name, e.g. dfa:impressions + # 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) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # Contains information about a metro region that can be targeted by ads. + class Metro + include Google::Apis::Core::Hashable + + # Country code of the country to which this metro region belongs. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # DART ID of the country to which this metro region belongs. + # Corresponds to the JSON property `countryDartId` + # @return [Fixnum] + attr_accessor :country_dart_id + + # DART ID of this metro region. + # Corresponds to the JSON property `dartId` + # @return [Fixnum] + attr_accessor :dart_id + + # DMA ID of this metro region. This is the ID used for targeting and generating + # reports, and is equivalent to metro_code. + # Corresponds to the JSON property `dmaId` + # @return [Fixnum] + attr_accessor :dma_id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#metro". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Metro code of this metro region. This is equivalent to dma_id. + # Corresponds to the JSON property `metroCode` + # @return [String] + attr_accessor :metro_code + + # Name of this metro region. + # 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) + @country_code = args[:country_code] if args.key?(:country_code) + @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @dma_id = args[:dma_id] if args.key?(:dma_id) + @kind = args[:kind] if args.key?(:kind) + @metro_code = args[:metro_code] if args.key?(:metro_code) + @name = args[:name] if args.key?(:name) + end + end + + # Metro List Response + class MetrosListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#metrosListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Metro collection. + # Corresponds to the JSON property `metros` + # @return [Array] + attr_accessor :metros + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @metros = args[:metros] if args.key?(:metros) + end + end + + # Contains information about a mobile app. Used as a landing page deep link. + class MobileApp + include Google::Apis::Core::Hashable + + # Mobile app directory. + # Corresponds to the JSON property `directory` + # @return [String] + attr_accessor :directory + + # ID of this mobile app. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#mobileApp". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Publisher name. + # Corresponds to the JSON property `publisherName` + # @return [String] + attr_accessor :publisher_name + + # Title of this mobile app. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @directory = args[:directory] if args.key?(:directory) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @publisher_name = args[:publisher_name] if args.key?(:publisher_name) + @title = args[:title] if args.key?(:title) + end + end + + # Mobile app List Response + class MobileAppsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#mobileAppsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Mobile apps collection. + # Corresponds to the JSON property `mobileApps` + # @return [Array] + attr_accessor :mobile_apps + + # Pagination token to be used for the next list operation. + # 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) + @kind = args[:kind] if args.key?(:kind) + @mobile_apps = args[:mobile_apps] if args.key?(:mobile_apps) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Contains information about a mobile carrier that can be targeted by ads. + class MobileCarrier + include Google::Apis::Core::Hashable + + # Country code of the country to which this mobile carrier belongs. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # DART ID of the country to which this mobile carrier belongs. + # Corresponds to the JSON property `countryDartId` + # @return [Fixnum] + attr_accessor :country_dart_id + + # ID of this mobile carrier. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#mobileCarrier". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this mobile carrier. + # 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) + @country_code = args[:country_code] if args.key?(:country_code) + @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # Mobile Carrier List Response + class MobileCarriersListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#mobileCarriersListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Mobile carrier collection. + # Corresponds to the JSON property `mobileCarriers` + # @return [Array] + attr_accessor :mobile_carriers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @mobile_carriers = args[:mobile_carriers] if args.key?(:mobile_carriers) + end + end + + # Object Filter. + class ObjectFilter + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#objectFilter". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Applicable when status is ASSIGNED. The user has access to objects with these + # object IDs. + # Corresponds to the JSON property `objectIds` + # @return [Array] + attr_accessor :object_ids + + # Status of the filter. NONE means the user has access to none of the objects. + # ALL means the user has access to all objects. ASSIGNED means the user has + # access to the objects with IDs in the objectIds list. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @object_ids = args[:object_ids] if args.key?(:object_ids) + @status = args[:status] if args.key?(:status) + end + end + + # Offset Position. + class OffsetPosition + include Google::Apis::Core::Hashable + + # Offset distance from left side of an asset or a window. + # Corresponds to the JSON property `left` + # @return [Fixnum] + attr_accessor :left + + # Offset distance from top side of an asset or a window. + # Corresponds to the JSON property `top` + # @return [Fixnum] + attr_accessor :top + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @left = args[:left] if args.key?(:left) + @top = args[:top] if args.key?(:top) + end + end + + # Omniture Integration Settings. + class OmnitureSettings + include Google::Apis::Core::Hashable + + # Whether placement cost data will be sent to Omniture. This property can be + # enabled only if omnitureIntegrationEnabled is true. + # Corresponds to the JSON property `omnitureCostDataEnabled` + # @return [Boolean] + attr_accessor :omniture_cost_data_enabled + alias_method :omniture_cost_data_enabled?, :omniture_cost_data_enabled + + # Whether Omniture integration is enabled. This property can be enabled only + # when the "Advanced Ad Serving" account setting is enabled. + # Corresponds to the JSON property `omnitureIntegrationEnabled` + # @return [Boolean] + attr_accessor :omniture_integration_enabled + alias_method :omniture_integration_enabled?, :omniture_integration_enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @omniture_cost_data_enabled = args[:omniture_cost_data_enabled] if args.key?(:omniture_cost_data_enabled) + @omniture_integration_enabled = args[:omniture_integration_enabled] if args.key?(:omniture_integration_enabled) + end + end + + # Contains information about an operating system that can be targeted by ads. + class OperatingSystem + include Google::Apis::Core::Hashable + + # DART ID of this operating system. This is the ID used for targeting. + # Corresponds to the JSON property `dartId` + # @return [Fixnum] + attr_accessor :dart_id + + # Whether this operating system is for desktop. + # Corresponds to the JSON property `desktop` + # @return [Boolean] + attr_accessor :desktop + alias_method :desktop?, :desktop + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#operatingSystem". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Whether this operating system is for mobile. + # Corresponds to the JSON property `mobile` + # @return [Boolean] + attr_accessor :mobile + alias_method :mobile?, :mobile + + # Name of this operating system. + # 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) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @desktop = args[:desktop] if args.key?(:desktop) + @kind = args[:kind] if args.key?(:kind) + @mobile = args[:mobile] if args.key?(:mobile) + @name = args[:name] if args.key?(:name) + end + end + + # Contains information about a particular version of an operating system that + # can be targeted by ads. + class OperatingSystemVersion + include Google::Apis::Core::Hashable + + # ID of this operating system version. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#operatingSystemVersion". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Major version (leftmost number) of this operating system version. + # Corresponds to the JSON property `majorVersion` + # @return [String] + attr_accessor :major_version + + # Minor version (number after the first dot) of this operating system version. + # Corresponds to the JSON property `minorVersion` + # @return [String] + attr_accessor :minor_version + + # Name of this operating system version. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Contains information about an operating system that can be targeted by ads. + # Corresponds to the JSON property `operatingSystem` + # @return [Google::Apis::DfareportingV3_2::OperatingSystem] + attr_accessor :operating_system + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @major_version = args[:major_version] if args.key?(:major_version) + @minor_version = args[:minor_version] if args.key?(:minor_version) + @name = args[:name] if args.key?(:name) + @operating_system = args[:operating_system] if args.key?(:operating_system) + end + end + + # Operating System Version List Response + class OperatingSystemVersionsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#operatingSystemVersionsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Operating system version collection. + # Corresponds to the JSON property `operatingSystemVersions` + # @return [Array] + attr_accessor :operating_system_versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operating_system_versions = args[:operating_system_versions] if args.key?(:operating_system_versions) + end + end + + # Operating System List Response + class OperatingSystemsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#operatingSystemsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Operating system collection. + # Corresponds to the JSON property `operatingSystems` + # @return [Array] + attr_accessor :operating_systems + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operating_systems = args[:operating_systems] if args.key?(:operating_systems) + end + end + + # Creative optimization activity. + class OptimizationActivity + include Google::Apis::Core::Hashable + + # Floodlight activity ID of this optimization activity. This is a required field. + # Corresponds to the JSON property `floodlightActivityId` + # @return [Fixnum] + attr_accessor :floodlight_activity_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `floodlightActivityIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :floodlight_activity_id_dimension_value + + # Weight associated with this optimization. The weight assigned will be + # understood in proportion to the weights assigned to the other optimization + # activities. Value must be greater than or equal to 1. + # Corresponds to the JSON property `weight` + # @return [Fixnum] + attr_accessor :weight + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id) + @floodlight_activity_id_dimension_value = args[:floodlight_activity_id_dimension_value] if args.key?(:floodlight_activity_id_dimension_value) + @weight = args[:weight] if args.key?(:weight) + end + end + + # Describes properties of a DoubleClick Planning order. + class Order + include Google::Apis::Core::Hashable + + # Account ID of this order. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of this order. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # IDs for users that have to approve documents created for this order. + # Corresponds to the JSON property `approverUserProfileIds` + # @return [Array] + attr_accessor :approver_user_profile_ids + + # Buyer invoice ID associated with this order. + # Corresponds to the JSON property `buyerInvoiceId` + # @return [String] + attr_accessor :buyer_invoice_id + + # Name of the buyer organization. + # Corresponds to the JSON property `buyerOrganizationName` + # @return [String] + attr_accessor :buyer_organization_name + + # Comments in this order. + # Corresponds to the JSON property `comments` + # @return [String] + attr_accessor :comments + + # Contacts for this order. + # Corresponds to the JSON property `contacts` + # @return [Array] + attr_accessor :contacts + + # ID of this order. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#order". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Modification timestamp. + # Corresponds to the JSON property `lastModifiedInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :last_modified_info + + # Name of this order. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Notes of this order. + # Corresponds to the JSON property `notes` + # @return [String] + attr_accessor :notes + + # ID of the terms and conditions template used in this order. + # Corresponds to the JSON property `planningTermId` + # @return [Fixnum] + attr_accessor :planning_term_id + + # Project ID of this order. + # Corresponds to the JSON property `projectId` + # @return [Fixnum] + attr_accessor :project_id + + # Seller order ID associated with this order. + # Corresponds to the JSON property `sellerOrderId` + # @return [String] + attr_accessor :seller_order_id + + # Name of the seller organization. + # Corresponds to the JSON property `sellerOrganizationName` + # @return [String] + attr_accessor :seller_organization_name + + # Site IDs this order is associated with. + # Corresponds to the JSON property `siteId` + # @return [Array] + attr_accessor :site_id + + # Free-form site names this order is associated with. + # Corresponds to the JSON property `siteNames` + # @return [Array] + attr_accessor :site_names + + # Subaccount ID of this order. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Terms and conditions of this order. + # Corresponds to the JSON property `termsAndConditions` + # @return [String] + attr_accessor :terms_and_conditions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @approver_user_profile_ids = args[:approver_user_profile_ids] if args.key?(:approver_user_profile_ids) + @buyer_invoice_id = args[:buyer_invoice_id] if args.key?(:buyer_invoice_id) + @buyer_organization_name = args[:buyer_organization_name] if args.key?(:buyer_organization_name) + @comments = args[:comments] if args.key?(:comments) + @contacts = args[:contacts] if args.key?(:contacts) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @planning_term_id = args[:planning_term_id] if args.key?(:planning_term_id) + @project_id = args[:project_id] if args.key?(:project_id) + @seller_order_id = args[:seller_order_id] if args.key?(:seller_order_id) + @seller_organization_name = args[:seller_organization_name] if args.key?(:seller_organization_name) + @site_id = args[:site_id] if args.key?(:site_id) + @site_names = args[:site_names] if args.key?(:site_names) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @terms_and_conditions = args[:terms_and_conditions] if args.key?(:terms_and_conditions) + end + end + + # Contact of an order. + class OrderContact + include Google::Apis::Core::Hashable + + # Free-form information about this contact. It could be any information related + # to this contact in addition to type, title, name, and signature user profile + # ID. + # Corresponds to the JSON property `contactInfo` + # @return [String] + attr_accessor :contact_info + + # Name of this contact. + # Corresponds to the JSON property `contactName` + # @return [String] + attr_accessor :contact_name + + # Title of this contact. + # Corresponds to the JSON property `contactTitle` + # @return [String] + attr_accessor :contact_title + + # Type of this contact. + # Corresponds to the JSON property `contactType` + # @return [String] + attr_accessor :contact_type + + # ID of the user profile containing the signature that will be embedded into + # order documents. + # Corresponds to the JSON property `signatureUserProfileId` + # @return [Fixnum] + attr_accessor :signature_user_profile_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_info = args[:contact_info] if args.key?(:contact_info) + @contact_name = args[:contact_name] if args.key?(:contact_name) + @contact_title = args[:contact_title] if args.key?(:contact_title) + @contact_type = args[:contact_type] if args.key?(:contact_type) + @signature_user_profile_id = args[:signature_user_profile_id] if args.key?(:signature_user_profile_id) + end + end + + # Contains properties of a DoubleClick Planning order document. + class OrderDocument + include Google::Apis::Core::Hashable + + # Account ID of this order document. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of this order document. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # The amended order document ID of this order document. An order document can be + # created by optionally amending another order document so that the change + # history can be preserved. + # Corresponds to the JSON property `amendedOrderDocumentId` + # @return [Fixnum] + attr_accessor :amended_order_document_id + + # IDs of users who have approved this order document. + # Corresponds to the JSON property `approvedByUserProfileIds` + # @return [Array] + attr_accessor :approved_by_user_profile_ids + + # Whether this order document is cancelled. + # Corresponds to the JSON property `cancelled` + # @return [Boolean] + attr_accessor :cancelled + alias_method :cancelled?, :cancelled + + # Modification timestamp. + # Corresponds to the JSON property `createdInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :created_info + + # Effective date of this order document. + # Corresponds to the JSON property `effectiveDate` + # @return [Date] + attr_accessor :effective_date + + # ID of this order document. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#orderDocument". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # List of email addresses that received the last sent document. + # Corresponds to the JSON property `lastSentRecipients` + # @return [Array] + attr_accessor :last_sent_recipients + + # Timestamp of the last email sent with this order document. + # Corresponds to the JSON property `lastSentTime` + # @return [DateTime] + attr_accessor :last_sent_time + + # ID of the order from which this order document is created. + # Corresponds to the JSON property `orderId` + # @return [Fixnum] + attr_accessor :order_id + + # Project ID of this order document. + # Corresponds to the JSON property `projectId` + # @return [Fixnum] + attr_accessor :project_id + + # Whether this order document has been signed. + # Corresponds to the JSON property `signed` + # @return [Boolean] + attr_accessor :signed + alias_method :signed?, :signed + + # Subaccount ID of this order document. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Title of this order document. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Type of this order document + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @amended_order_document_id = args[:amended_order_document_id] if args.key?(:amended_order_document_id) + @approved_by_user_profile_ids = args[:approved_by_user_profile_ids] if args.key?(:approved_by_user_profile_ids) + @cancelled = args[:cancelled] if args.key?(:cancelled) + @created_info = args[:created_info] if args.key?(:created_info) + @effective_date = args[:effective_date] if args.key?(:effective_date) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_sent_recipients = args[:last_sent_recipients] if args.key?(:last_sent_recipients) + @last_sent_time = args[:last_sent_time] if args.key?(:last_sent_time) + @order_id = args[:order_id] if args.key?(:order_id) + @project_id = args[:project_id] if args.key?(:project_id) + @signed = args[:signed] if args.key?(:signed) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) + end + end + + # Order document List Response + class OrderDocumentsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#orderDocumentsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Order document collection + # Corresponds to the JSON property `orderDocuments` + # @return [Array] + attr_accessor :order_documents + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @order_documents = args[:order_documents] if args.key?(:order_documents) + end + end + + # Order List Response + class OrdersListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#ordersListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Order collection. + # Corresponds to the JSON property `orders` + # @return [Array] + attr_accessor :orders + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @orders = args[:orders] if args.key?(:orders) + end + end + + # Represents fields that are compatible to be selected for a report of type " + # PATH_TO_CONVERSION". + class PathToConversionReportCompatibleFields + include Google::Apis::Core::Hashable + + # Conversion dimensions which are compatible to be selected in the " + # conversionDimensions" section of the report. + # Corresponds to the JSON property `conversionDimensions` + # @return [Array] + attr_accessor :conversion_dimensions + + # Custom floodlight variables which are compatible to be selected in the " + # customFloodlightVariables" section of the report. + # Corresponds to the JSON property `customFloodlightVariables` + # @return [Array] + attr_accessor :custom_floodlight_variables + + # The kind of resource this is, in this case dfareporting# + # pathToConversionReportCompatibleFields. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Metrics which are compatible to be selected in the "metricNames" section of + # the report. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + # Per-interaction dimensions which are compatible to be selected in the " + # perInteractionDimensions" section of the report. + # Corresponds to the JSON property `perInteractionDimensions` + # @return [Array] + attr_accessor :per_interaction_dimensions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conversion_dimensions = args[:conversion_dimensions] if args.key?(:conversion_dimensions) + @custom_floodlight_variables = args[:custom_floodlight_variables] if args.key?(:custom_floodlight_variables) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + @per_interaction_dimensions = args[:per_interaction_dimensions] if args.key?(:per_interaction_dimensions) + end + end + + # Contains properties of a placement. + class Placement + include Google::Apis::Core::Hashable + + # Account ID of this placement. This field can be left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Whether this placement opts out of ad blocking. When true, ad blocking is + # disabled for this placement. When false, the campaign and site settings take + # effect. + # Corresponds to the JSON property `adBlockingOptOut` + # @return [Boolean] + attr_accessor :ad_blocking_opt_out + alias_method :ad_blocking_opt_out?, :ad_blocking_opt_out + + # Additional sizes associated with this placement. When inserting or updating a + # placement, only the size ID field is used. + # Corresponds to the JSON property `additionalSizes` + # @return [Array] + attr_accessor :additional_sizes + + # Advertiser ID of this placement. This field can be left blank. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Whether this placement is archived. + # Corresponds to the JSON property `archived` + # @return [Boolean] + attr_accessor :archived + alias_method :archived?, :archived + + # Campaign ID of this placement. This field is a required field on insertion. + # Corresponds to the JSON property `campaignId` + # @return [Fixnum] + attr_accessor :campaign_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `campaignIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :campaign_id_dimension_value + + # Comments for this placement. + # Corresponds to the JSON property `comment` + # @return [String] + attr_accessor :comment + + # Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering + # on desktop, on mobile devices or in mobile apps for regular or interstitial + # ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new + # placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. + # IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the + # VAST standard. This field is required on insertion. + # Corresponds to the JSON property `compatibility` + # @return [String] + attr_accessor :compatibility + + # ID of the content category assigned to this placement. + # Corresponds to the JSON property `contentCategoryId` + # @return [Fixnum] + attr_accessor :content_category_id + + # Modification timestamp. + # Corresponds to the JSON property `createInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :create_info + + # Directory site ID of this placement. On insert, you must set either this field + # or the siteId field to specify the site associated with this placement. This + # is a required field that is read-only after insertion. + # Corresponds to the JSON property `directorySiteId` + # @return [Fixnum] + attr_accessor :directory_site_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `directorySiteIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :directory_site_id_dimension_value + + # External ID for this placement. + # Corresponds to the JSON property `externalId` + # @return [String] + attr_accessor :external_id + + # ID of this placement. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Key name of this placement. This is a read-only, auto-generated field. + # Corresponds to the JSON property `keyName` + # @return [String] + attr_accessor :key_name + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#placement". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Modification timestamp. + # Corresponds to the JSON property `lastModifiedInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :last_modified_info + + # Lookback configuration settings. + # Corresponds to the JSON property `lookbackConfiguration` + # @return [Google::Apis::DfareportingV3_2::LookbackConfiguration] + attr_accessor :lookback_configuration + + # Name of this placement.This is a required field and must be less than 256 + # characters long. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Whether payment was approved for this placement. This is a read-only field + # relevant only to publisher-paid placements. + # Corresponds to the JSON property `paymentApproved` + # @return [Boolean] + attr_accessor :payment_approved + alias_method :payment_approved?, :payment_approved + + # Payment source for this placement. This is a required field that is read-only + # after insertion. + # Corresponds to the JSON property `paymentSource` + # @return [String] + attr_accessor :payment_source + + # ID of this placement's group, if applicable. + # Corresponds to the JSON property `placementGroupId` + # @return [Fixnum] + attr_accessor :placement_group_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `placementGroupIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :placement_group_id_dimension_value + + # ID of the placement strategy assigned to this placement. + # Corresponds to the JSON property `placementStrategyId` + # @return [Fixnum] + attr_accessor :placement_strategy_id + + # Pricing Schedule + # Corresponds to the JSON property `pricingSchedule` + # @return [Google::Apis::DfareportingV3_2::PricingSchedule] + attr_accessor :pricing_schedule + + # Whether this placement is the primary placement of a roadblock (placement + # group). You cannot change this field from true to false. Setting this field to + # true will automatically set the primary field on the original primary + # placement of the roadblock to false, and it will automatically set the + # roadblock's primaryPlacementId field to the ID of this placement. + # Corresponds to the JSON property `primary` + # @return [Boolean] + attr_accessor :primary + alias_method :primary?, :primary + + # Modification timestamp. + # Corresponds to the JSON property `publisherUpdateInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :publisher_update_info + + # Site ID associated with this placement. On insert, you must set either this + # field or the directorySiteId field to specify the site associated with this + # placement. This is a required field that is read-only after insertion. + # Corresponds to the JSON property `siteId` + # @return [Fixnum] + attr_accessor :site_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `siteIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :site_id_dimension_value + + # Represents the dimensions of ads, placements, creatives, or creative assets. + # Corresponds to the JSON property `size` + # @return [Google::Apis::DfareportingV3_2::Size] + attr_accessor :size + + # Whether creatives assigned to this placement must be SSL-compliant. + # Corresponds to the JSON property `sslRequired` + # @return [Boolean] + attr_accessor :ssl_required + alias_method :ssl_required?, :ssl_required + + # Third-party placement status. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Subaccount ID of this placement. This field can be left blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Tag formats to generate for this placement. This field is required on + # insertion. + # Acceptable values are: + # - "PLACEMENT_TAG_STANDARD" + # - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" + # - "PLACEMENT_TAG_IFRAME_ILAYER" + # - "PLACEMENT_TAG_INTERNAL_REDIRECT" + # - "PLACEMENT_TAG_JAVASCRIPT" + # - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" + # - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" + # - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" + # - "PLACEMENT_TAG_CLICK_COMMANDS" + # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" + # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" + # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" + # - "PLACEMENT_TAG_TRACKING" + # - "PLACEMENT_TAG_TRACKING_IFRAME" + # - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" + # Corresponds to the JSON property `tagFormats` + # @return [Array] + attr_accessor :tag_formats + + # Tag Settings + # Corresponds to the JSON property `tagSetting` + # @return [Google::Apis::DfareportingV3_2::TagSetting] + attr_accessor :tag_setting + + # Whether Verification and ActiveView are disabled for in-stream video creatives + # for this placement. The same setting videoActiveViewOptOut exists on the site + # level -- the opt out occurs if either of these settings are true. These + # settings are distinct from DirectorySites.settings.activeViewOptOut or Sites. + # siteSettings.activeViewOptOut which only apply to display ads. However, + # Accounts.activeViewOptOut opts out both video traffic, as well as display ads, + # from Verification and ActiveView. + # Corresponds to the JSON property `videoActiveViewOptOut` + # @return [Boolean] + attr_accessor :video_active_view_opt_out + alias_method :video_active_view_opt_out?, :video_active_view_opt_out + + # Video Settings + # Corresponds to the JSON property `videoSettings` + # @return [Google::Apis::DfareportingV3_2::VideoSettings] + attr_accessor :video_settings + + # VPAID adapter setting for this placement. Controls which VPAID format the + # measurement adapter will use for in-stream video creatives assigned to this + # placement. + # Note: Flash is no longer supported. This field now defaults to HTML5 when the + # following values are provided: FLASH, BOTH. + # Corresponds to the JSON property `vpaidAdapterChoice` + # @return [String] + attr_accessor :vpaid_adapter_choice + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @ad_blocking_opt_out = args[:ad_blocking_opt_out] if args.key?(:ad_blocking_opt_out) + @additional_sizes = args[:additional_sizes] if args.key?(:additional_sizes) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @archived = args[:archived] if args.key?(:archived) + @campaign_id = args[:campaign_id] if args.key?(:campaign_id) + @campaign_id_dimension_value = args[:campaign_id_dimension_value] if args.key?(:campaign_id_dimension_value) + @comment = args[:comment] if args.key?(:comment) + @compatibility = args[:compatibility] if args.key?(:compatibility) + @content_category_id = args[:content_category_id] if args.key?(:content_category_id) + @create_info = args[:create_info] if args.key?(:create_info) + @directory_site_id = args[:directory_site_id] if args.key?(:directory_site_id) + @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] if args.key?(:directory_site_id_dimension_value) + @external_id = args[:external_id] if args.key?(:external_id) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @key_name = args[:key_name] if args.key?(:key_name) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) + @name = args[:name] if args.key?(:name) + @payment_approved = args[:payment_approved] if args.key?(:payment_approved) + @payment_source = args[:payment_source] if args.key?(:payment_source) + @placement_group_id = args[:placement_group_id] if args.key?(:placement_group_id) + @placement_group_id_dimension_value = args[:placement_group_id_dimension_value] if args.key?(:placement_group_id_dimension_value) + @placement_strategy_id = args[:placement_strategy_id] if args.key?(:placement_strategy_id) + @pricing_schedule = args[:pricing_schedule] if args.key?(:pricing_schedule) + @primary = args[:primary] if args.key?(:primary) + @publisher_update_info = args[:publisher_update_info] if args.key?(:publisher_update_info) + @site_id = args[:site_id] if args.key?(:site_id) + @site_id_dimension_value = args[:site_id_dimension_value] if args.key?(:site_id_dimension_value) + @size = args[:size] if args.key?(:size) + @ssl_required = args[:ssl_required] if args.key?(:ssl_required) + @status = args[:status] if args.key?(:status) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @tag_formats = args[:tag_formats] if args.key?(:tag_formats) + @tag_setting = args[:tag_setting] if args.key?(:tag_setting) + @video_active_view_opt_out = args[:video_active_view_opt_out] if args.key?(:video_active_view_opt_out) + @video_settings = args[:video_settings] if args.key?(:video_settings) + @vpaid_adapter_choice = args[:vpaid_adapter_choice] if args.key?(:vpaid_adapter_choice) + end + end + + # Placement Assignment. + class PlacementAssignment + include Google::Apis::Core::Hashable + + # Whether this placement assignment is active. When true, the placement will be + # included in the ad's rotation. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # ID of the placement to be assigned. This is a required field. + # Corresponds to the JSON property `placementId` + # @return [Fixnum] + attr_accessor :placement_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `placementIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :placement_id_dimension_value + + # Whether the placement to be assigned requires SSL. This is a read-only field + # that is auto-generated when the ad is inserted or updated. + # Corresponds to the JSON property `sslRequired` + # @return [Boolean] + attr_accessor :ssl_required + alias_method :ssl_required?, :ssl_required + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active = args[:active] if args.key?(:active) + @placement_id = args[:placement_id] if args.key?(:placement_id) + @placement_id_dimension_value = args[:placement_id_dimension_value] if args.key?(:placement_id_dimension_value) + @ssl_required = args[:ssl_required] if args.key?(:ssl_required) + end + end + + # Contains properties of a package or roadblock. + class PlacementGroup + include Google::Apis::Core::Hashable + + # Account ID of this placement group. This is a read-only field that can be left + # blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of this placement group. This is a required field on insertion. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Whether this placement group is archived. + # Corresponds to the JSON property `archived` + # @return [Boolean] + attr_accessor :archived + alias_method :archived?, :archived + + # Campaign ID of this placement group. This field is required on insertion. + # Corresponds to the JSON property `campaignId` + # @return [Fixnum] + attr_accessor :campaign_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `campaignIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :campaign_id_dimension_value + + # IDs of placements which are assigned to this placement group. This is a read- + # only, auto-generated field. + # Corresponds to the JSON property `childPlacementIds` + # @return [Array] + attr_accessor :child_placement_ids + + # Comments for this placement group. + # Corresponds to the JSON property `comment` + # @return [String] + attr_accessor :comment + + # ID of the content category assigned to this placement group. + # Corresponds to the JSON property `contentCategoryId` + # @return [Fixnum] + attr_accessor :content_category_id + + # Modification timestamp. + # Corresponds to the JSON property `createInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :create_info + + # Directory site ID associated with this placement group. On insert, you must + # set either this field or the site_id field to specify the site associated with + # this placement group. This is a required field that is read-only after + # insertion. + # Corresponds to the JSON property `directorySiteId` + # @return [Fixnum] + attr_accessor :directory_site_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `directorySiteIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :directory_site_id_dimension_value + + # External ID for this placement. + # Corresponds to the JSON property `externalId` + # @return [String] + attr_accessor :external_id + + # ID of this placement group. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#placementGroup". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Modification timestamp. + # Corresponds to the JSON property `lastModifiedInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :last_modified_info + + # Name of this placement group. This is a required field and must be less than + # 256 characters long. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Type of this placement group. A package is a simple group of placements that + # acts as a single pricing point for a group of tags. A roadblock is a group of + # placements that not only acts as a single pricing point, but also assumes that + # all the tags in it will be served at the same time. A roadblock requires one + # of its assigned placements to be marked as primary for reporting. This field + # is required on insertion. + # Corresponds to the JSON property `placementGroupType` + # @return [String] + attr_accessor :placement_group_type + + # ID of the placement strategy assigned to this placement group. + # Corresponds to the JSON property `placementStrategyId` + # @return [Fixnum] + attr_accessor :placement_strategy_id + + # Pricing Schedule + # Corresponds to the JSON property `pricingSchedule` + # @return [Google::Apis::DfareportingV3_2::PricingSchedule] + attr_accessor :pricing_schedule + + # ID of the primary placement, used to calculate the media cost of a roadblock ( + # placement group). Modifying this field will automatically modify the primary + # field on all affected roadblock child placements. + # Corresponds to the JSON property `primaryPlacementId` + # @return [Fixnum] + attr_accessor :primary_placement_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `primaryPlacementIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :primary_placement_id_dimension_value + + # Site ID associated with this placement group. On insert, you must set either + # this field or the directorySiteId field to specify the site associated with + # this placement group. This is a required field that is read-only after + # insertion. + # Corresponds to the JSON property `siteId` + # @return [Fixnum] + attr_accessor :site_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `siteIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :site_id_dimension_value + + # Subaccount ID of this placement group. This is a read-only field that can be + # left blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @archived = args[:archived] if args.key?(:archived) + @campaign_id = args[:campaign_id] if args.key?(:campaign_id) + @campaign_id_dimension_value = args[:campaign_id_dimension_value] if args.key?(:campaign_id_dimension_value) + @child_placement_ids = args[:child_placement_ids] if args.key?(:child_placement_ids) + @comment = args[:comment] if args.key?(:comment) + @content_category_id = args[:content_category_id] if args.key?(:content_category_id) + @create_info = args[:create_info] if args.key?(:create_info) + @directory_site_id = args[:directory_site_id] if args.key?(:directory_site_id) + @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] if args.key?(:directory_site_id_dimension_value) + @external_id = args[:external_id] if args.key?(:external_id) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @placement_group_type = args[:placement_group_type] if args.key?(:placement_group_type) + @placement_strategy_id = args[:placement_strategy_id] if args.key?(:placement_strategy_id) + @pricing_schedule = args[:pricing_schedule] if args.key?(:pricing_schedule) + @primary_placement_id = args[:primary_placement_id] if args.key?(:primary_placement_id) + @primary_placement_id_dimension_value = args[:primary_placement_id_dimension_value] if args.key?(:primary_placement_id_dimension_value) + @site_id = args[:site_id] if args.key?(:site_id) + @site_id_dimension_value = args[:site_id_dimension_value] if args.key?(:site_id_dimension_value) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + end + end + + # Placement Group List Response + class PlacementGroupsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#placementGroupsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Placement group collection. + # Corresponds to the JSON property `placementGroups` + # @return [Array] + attr_accessor :placement_groups + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @placement_groups = args[:placement_groups] if args.key?(:placement_groups) + end + end + + # Placement Strategy List Response + class PlacementStrategiesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#placementStrategiesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Placement strategy collection. + # Corresponds to the JSON property `placementStrategies` + # @return [Array] + attr_accessor :placement_strategies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @placement_strategies = args[:placement_strategies] if args.key?(:placement_strategies) + end + end + + # Contains properties of a placement strategy. + class PlacementStrategy + include Google::Apis::Core::Hashable + + # Account ID of this placement strategy.This is a read-only field that can be + # left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # ID of this placement strategy. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#placementStrategy". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this placement strategy. This is a required field. It must be less + # than 256 characters long and unique among placement strategies of the same + # account. + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # Placement Tag + class PlacementTag + include Google::Apis::Core::Hashable + + # Placement ID + # Corresponds to the JSON property `placementId` + # @return [Fixnum] + attr_accessor :placement_id + + # Tags generated for this placement. + # Corresponds to the JSON property `tagDatas` + # @return [Array] + attr_accessor :tag_datas + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @placement_id = args[:placement_id] if args.key?(:placement_id) + @tag_datas = args[:tag_datas] if args.key?(:tag_datas) + end + end + + # Placement GenerateTags Response + class PlacementsGenerateTagsResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#placementsGenerateTagsResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Set of generated tags for the specified placements. + # Corresponds to the JSON property `placementTags` + # @return [Array] + attr_accessor :placement_tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @placement_tags = args[:placement_tags] if args.key?(:placement_tags) + end + end + + # Placement List Response + class PlacementsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#placementsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Placement collection. + # Corresponds to the JSON property `placements` + # @return [Array] + attr_accessor :placements + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @placements = args[:placements] if args.key?(:placements) + end + end + + # Contains information about a platform type that can be targeted by ads. + class PlatformType + include Google::Apis::Core::Hashable + + # ID of this platform type. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#platformType". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this platform type. + # 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) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # Platform Type List Response + class PlatformTypesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#platformTypesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Platform type collection. + # Corresponds to the JSON property `platformTypes` + # @return [Array] + attr_accessor :platform_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @platform_types = args[:platform_types] if args.key?(:platform_types) + end + end + + # Popup Window Properties. + class PopupWindowProperties + include Google::Apis::Core::Hashable + + # Represents the dimensions of ads, placements, creatives, or creative assets. + # Corresponds to the JSON property `dimension` + # @return [Google::Apis::DfareportingV3_2::Size] + attr_accessor :dimension + + # Offset Position. + # Corresponds to the JSON property `offset` + # @return [Google::Apis::DfareportingV3_2::OffsetPosition] + attr_accessor :offset + + # Popup window position either centered or at specific coordinate. + # Corresponds to the JSON property `positionType` + # @return [String] + attr_accessor :position_type + + # Whether to display the browser address bar. + # Corresponds to the JSON property `showAddressBar` + # @return [Boolean] + attr_accessor :show_address_bar + alias_method :show_address_bar?, :show_address_bar + + # Whether to display the browser menu bar. + # Corresponds to the JSON property `showMenuBar` + # @return [Boolean] + attr_accessor :show_menu_bar + alias_method :show_menu_bar?, :show_menu_bar + + # Whether to display the browser scroll bar. + # Corresponds to the JSON property `showScrollBar` + # @return [Boolean] + attr_accessor :show_scroll_bar + alias_method :show_scroll_bar?, :show_scroll_bar + + # Whether to display the browser status bar. + # Corresponds to the JSON property `showStatusBar` + # @return [Boolean] + attr_accessor :show_status_bar + alias_method :show_status_bar?, :show_status_bar + + # Whether to display the browser tool bar. + # Corresponds to the JSON property `showToolBar` + # @return [Boolean] + attr_accessor :show_tool_bar + alias_method :show_tool_bar?, :show_tool_bar + + # Title of popup window. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension = args[:dimension] if args.key?(:dimension) + @offset = args[:offset] if args.key?(:offset) + @position_type = args[:position_type] if args.key?(:position_type) + @show_address_bar = args[:show_address_bar] if args.key?(:show_address_bar) + @show_menu_bar = args[:show_menu_bar] if args.key?(:show_menu_bar) + @show_scroll_bar = args[:show_scroll_bar] if args.key?(:show_scroll_bar) + @show_status_bar = args[:show_status_bar] if args.key?(:show_status_bar) + @show_tool_bar = args[:show_tool_bar] if args.key?(:show_tool_bar) + @title = args[:title] if args.key?(:title) + end + end + + # Contains information about a postal code that can be targeted by ads. + class PostalCode + include Google::Apis::Core::Hashable + + # Postal code. This is equivalent to the id field. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # Country code of the country to which this postal code belongs. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # DART ID of the country to which this postal code belongs. + # Corresponds to the JSON property `countryDartId` + # @return [Fixnum] + attr_accessor :country_dart_id + + # ID of this postal code. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#postalCode". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @country_code = args[:country_code] if args.key?(:country_code) + @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Postal Code List Response + class PostalCodesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#postalCodesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Postal code collection. + # Corresponds to the JSON property `postalCodes` + # @return [Array] + attr_accessor :postal_codes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @postal_codes = args[:postal_codes] if args.key?(:postal_codes) + end + end + + # Pricing Information + class Pricing + include Google::Apis::Core::Hashable + + # Cap cost type of this inventory item. + # Corresponds to the JSON property `capCostType` + # @return [String] + attr_accessor :cap_cost_type + + # End date of this inventory item. + # Corresponds to the JSON property `endDate` + # @return [Date] + attr_accessor :end_date + + # Flights of this inventory item. A flight (a.k.a. pricing period) represents + # the inventory item pricing information for a specific period of time. + # Corresponds to the JSON property `flights` + # @return [Array] + attr_accessor :flights + + # Group type of this inventory item if it represents a placement group. Is null + # otherwise. There are two type of placement groups: + # PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items + # that acts as a single pricing point for a group of tags. + # PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not + # only acts as a single pricing point, but also assumes that all the tags in it + # will be served at the same time. A roadblock requires one of its assigned + # inventory items to be marked as primary. + # Corresponds to the JSON property `groupType` + # @return [String] + attr_accessor :group_type + + # Pricing type of this inventory item. + # Corresponds to the JSON property `pricingType` + # @return [String] + attr_accessor :pricing_type + + # Start date of this inventory item. + # Corresponds to the JSON property `startDate` + # @return [Date] + attr_accessor :start_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cap_cost_type = args[:cap_cost_type] if args.key?(:cap_cost_type) + @end_date = args[:end_date] if args.key?(:end_date) + @flights = args[:flights] if args.key?(:flights) + @group_type = args[:group_type] if args.key?(:group_type) + @pricing_type = args[:pricing_type] if args.key?(:pricing_type) + @start_date = args[:start_date] if args.key?(:start_date) + end + end + + # Pricing Schedule + class PricingSchedule + include Google::Apis::Core::Hashable + + # Placement cap cost option. + # Corresponds to the JSON property `capCostOption` + # @return [String] + attr_accessor :cap_cost_option + + # Whether cap costs are ignored by ad serving. + # Corresponds to the JSON property `disregardOverdelivery` + # @return [Boolean] + attr_accessor :disregard_overdelivery + alias_method :disregard_overdelivery?, :disregard_overdelivery + + # Placement end date. This date must be later than, or the same day as, the + # placement start date, but not later than the campaign end date. If, for + # example, you set 6/25/2015 as both the start and end dates, the effective + # placement date is just that day only, 6/25/2015. The hours, minutes, and + # seconds of the end date should not be set, as doing so will result in an error. + # This field is required on insertion. + # Corresponds to the JSON property `endDate` + # @return [Date] + attr_accessor :end_date + + # Whether this placement is flighted. If true, pricing periods will be computed + # automatically. + # Corresponds to the JSON property `flighted` + # @return [Boolean] + attr_accessor :flighted + alias_method :flighted?, :flighted + + # Floodlight activity ID associated with this placement. This field should be + # set when placement pricing type is set to PRICING_TYPE_CPA. + # Corresponds to the JSON property `floodlightActivityId` + # @return [Fixnum] + attr_accessor :floodlight_activity_id + + # Pricing periods for this placement. + # Corresponds to the JSON property `pricingPeriods` + # @return [Array] + attr_accessor :pricing_periods + + # Placement pricing type. This field is required on insertion. + # Corresponds to the JSON property `pricingType` + # @return [String] + attr_accessor :pricing_type + + # Placement start date. This date must be later than, or the same day as, the + # campaign start date. The hours, minutes, and seconds of the start date should + # not be set, as doing so will result in an error. This field is required on + # insertion. + # Corresponds to the JSON property `startDate` + # @return [Date] + attr_accessor :start_date + + # Testing start date of this placement. The hours, minutes, and seconds of the + # start date should not be set, as doing so will result in an error. + # Corresponds to the JSON property `testingStartDate` + # @return [Date] + attr_accessor :testing_start_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cap_cost_option = args[:cap_cost_option] if args.key?(:cap_cost_option) + @disregard_overdelivery = args[:disregard_overdelivery] if args.key?(:disregard_overdelivery) + @end_date = args[:end_date] if args.key?(:end_date) + @flighted = args[:flighted] if args.key?(:flighted) + @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id) + @pricing_periods = args[:pricing_periods] if args.key?(:pricing_periods) + @pricing_type = args[:pricing_type] if args.key?(:pricing_type) + @start_date = args[:start_date] if args.key?(:start_date) + @testing_start_date = args[:testing_start_date] if args.key?(:testing_start_date) + end + end + + # Pricing Period + class PricingSchedulePricingPeriod + include Google::Apis::Core::Hashable + + # Pricing period end date. This date must be later than, or the same day as, the + # pricing period start date, but not later than the placement end date. The + # period end date can be the same date as the period start date. If, for example, + # you set 6/25/2015 as both the start and end dates, the effective pricing + # period date is just that day only, 6/25/2015. The hours, minutes, and seconds + # of the end date should not be set, as doing so will result in an error. + # Corresponds to the JSON property `endDate` + # @return [Date] + attr_accessor :end_date + + # Comments for this pricing period. + # Corresponds to the JSON property `pricingComment` + # @return [String] + attr_accessor :pricing_comment + + # Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). + # Acceptable values are 0 to 1000000000000000000, inclusive. + # Corresponds to the JSON property `rateOrCostNanos` + # @return [Fixnum] + attr_accessor :rate_or_cost_nanos + + # Pricing period start date. This date must be later than, or the same day as, + # the placement start date. The hours, minutes, and seconds of the start date + # should not be set, as doing so will result in an error. + # Corresponds to the JSON property `startDate` + # @return [Date] + attr_accessor :start_date + + # Units of this pricing period. Acceptable values are 0 to 10000000000, + # inclusive. + # Corresponds to the JSON property `units` + # @return [Fixnum] + attr_accessor :units + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_date = args[:end_date] if args.key?(:end_date) + @pricing_comment = args[:pricing_comment] if args.key?(:pricing_comment) + @rate_or_cost_nanos = args[:rate_or_cost_nanos] if args.key?(:rate_or_cost_nanos) + @start_date = args[:start_date] if args.key?(:start_date) + @units = args[:units] if args.key?(:units) + end + end + + # Contains properties of a DoubleClick Planning project. + class Project + include Google::Apis::Core::Hashable + + # Account ID of this project. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of this project. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Audience age group of this project. + # Corresponds to the JSON property `audienceAgeGroup` + # @return [String] + attr_accessor :audience_age_group + + # Audience gender of this project. + # Corresponds to the JSON property `audienceGender` + # @return [String] + attr_accessor :audience_gender + + # Budget of this project in the currency specified by the current account. The + # value stored in this field represents only the non-fractional amount. For + # example, for USD, the smallest value that can be represented by this field is + # 1 US dollar. + # Corresponds to the JSON property `budget` + # @return [Fixnum] + attr_accessor :budget + + # Client billing code of this project. + # Corresponds to the JSON property `clientBillingCode` + # @return [String] + attr_accessor :client_billing_code + + # Name of the project client. + # Corresponds to the JSON property `clientName` + # @return [String] + attr_accessor :client_name + + # End date of the project. + # Corresponds to the JSON property `endDate` + # @return [Date] + attr_accessor :end_date + + # ID of this project. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#project". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Modification timestamp. + # Corresponds to the JSON property `lastModifiedInfo` + # @return [Google::Apis::DfareportingV3_2::LastModifiedInfo] + attr_accessor :last_modified_info + + # Name of this project. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Overview of this project. + # Corresponds to the JSON property `overview` + # @return [String] + attr_accessor :overview + + # Start date of the project. + # Corresponds to the JSON property `startDate` + # @return [Date] + attr_accessor :start_date + + # Subaccount ID of this project. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Number of clicks that the advertiser is targeting. + # Corresponds to the JSON property `targetClicks` + # @return [Fixnum] + attr_accessor :target_clicks + + # Number of conversions that the advertiser is targeting. + # Corresponds to the JSON property `targetConversions` + # @return [Fixnum] + attr_accessor :target_conversions + + # CPA that the advertiser is targeting. + # Corresponds to the JSON property `targetCpaNanos` + # @return [Fixnum] + attr_accessor :target_cpa_nanos + + # CPC that the advertiser is targeting. + # Corresponds to the JSON property `targetCpcNanos` + # @return [Fixnum] + attr_accessor :target_cpc_nanos + + # vCPM from Active View that the advertiser is targeting. + # Corresponds to the JSON property `targetCpmActiveViewNanos` + # @return [Fixnum] + attr_accessor :target_cpm_active_view_nanos + + # CPM that the advertiser is targeting. + # Corresponds to the JSON property `targetCpmNanos` + # @return [Fixnum] + attr_accessor :target_cpm_nanos + + # Number of impressions that the advertiser is targeting. + # Corresponds to the JSON property `targetImpressions` + # @return [Fixnum] + attr_accessor :target_impressions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @audience_age_group = args[:audience_age_group] if args.key?(:audience_age_group) + @audience_gender = args[:audience_gender] if args.key?(:audience_gender) + @budget = args[:budget] if args.key?(:budget) + @client_billing_code = args[:client_billing_code] if args.key?(:client_billing_code) + @client_name = args[:client_name] if args.key?(:client_name) + @end_date = args[:end_date] if args.key?(:end_date) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @overview = args[:overview] if args.key?(:overview) + @start_date = args[:start_date] if args.key?(:start_date) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @target_clicks = args[:target_clicks] if args.key?(:target_clicks) + @target_conversions = args[:target_conversions] if args.key?(:target_conversions) + @target_cpa_nanos = args[:target_cpa_nanos] if args.key?(:target_cpa_nanos) + @target_cpc_nanos = args[:target_cpc_nanos] if args.key?(:target_cpc_nanos) + @target_cpm_active_view_nanos = args[:target_cpm_active_view_nanos] if args.key?(:target_cpm_active_view_nanos) + @target_cpm_nanos = args[:target_cpm_nanos] if args.key?(:target_cpm_nanos) + @target_impressions = args[:target_impressions] if args.key?(:target_impressions) + end + end + + # Project List Response + class ProjectsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#projectsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Project collection. + # Corresponds to the JSON property `projects` + # @return [Array] + attr_accessor :projects + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @projects = args[:projects] if args.key?(:projects) + end + end + + # Represents fields that are compatible to be selected for a report of type " + # REACH". + class ReachReportCompatibleFields + include Google::Apis::Core::Hashable + + # Dimensions which are compatible to be selected in the "dimensionFilters" + # section of the report. + # Corresponds to the JSON property `dimensionFilters` + # @return [Array] + attr_accessor :dimension_filters + + # Dimensions which are compatible to be selected in the "dimensions" section of + # the report. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # The kind of resource this is, in this case dfareporting# + # reachReportCompatibleFields. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Metrics which are compatible to be selected in the "metricNames" section of + # the report. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + # Metrics which are compatible to be selected as activity metrics to pivot on in + # the "activities" section of the report. + # Corresponds to the JSON property `pivotedActivityMetrics` + # @return [Array] + attr_accessor :pivoted_activity_metrics + + # Metrics which are compatible to be selected in the " + # reachByFrequencyMetricNames" section of the report. + # Corresponds to the JSON property `reachByFrequencyMetrics` + # @return [Array] + attr_accessor :reach_by_frequency_metrics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + @pivoted_activity_metrics = args[:pivoted_activity_metrics] if args.key?(:pivoted_activity_metrics) + @reach_by_frequency_metrics = args[:reach_by_frequency_metrics] if args.key?(:reach_by_frequency_metrics) + end + end + + # Represents a recipient. + class Recipient + include Google::Apis::Core::Hashable + + # The delivery type for the recipient. + # Corresponds to the JSON property `deliveryType` + # @return [String] + attr_accessor :delivery_type + + # The email address of the recipient. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # The kind of resource this is, in this case dfareporting#recipient. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @delivery_type = args[:delivery_type] if args.key?(:delivery_type) + @email = args[:email] if args.key?(:email) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Contains information about a region that can be targeted by ads. + class Region + include Google::Apis::Core::Hashable + + # Country code of the country to which this region belongs. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # DART ID of the country to which this region belongs. + # Corresponds to the JSON property `countryDartId` + # @return [Fixnum] + attr_accessor :country_dart_id + + # DART ID of this region. + # Corresponds to the JSON property `dartId` + # @return [Fixnum] + attr_accessor :dart_id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#region". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this region. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Region code. + # Corresponds to the JSON property `regionCode` + # @return [String] + attr_accessor :region_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country_code = args[:country_code] if args.key?(:country_code) + @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @region_code = args[:region_code] if args.key?(:region_code) + end + end + + # Region List Response + class RegionsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#regionsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Region collection. + # Corresponds to the JSON property `regions` + # @return [Array] + attr_accessor :regions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @regions = args[:regions] if args.key?(:regions) + end + end + + # Contains properties of a remarketing list. Remarketing enables you to create + # lists of users who have performed specific actions on a site, then target ads + # to members of those lists. This resource can be used to manage remarketing + # lists that are owned by your advertisers. To see all remarketing lists that + # are visible to your advertisers, including those that are shared to your + # advertiser or account, use the TargetableRemarketingLists resource. + class RemarketingList + include Google::Apis::Core::Hashable + + # Account ID of this remarketing list. This is a read-only, auto-generated field + # that is only returned in GET requests. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Whether this remarketing list is active. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # Dimension value for the advertiser ID that owns this remarketing list. This is + # a required field. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Remarketing list description. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Remarketing list ID. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#remarketingList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Number of days that a user should remain in the remarketing list without an + # impression. Acceptable values are 1 to 540, inclusive. + # Corresponds to the JSON property `lifeSpan` + # @return [Fixnum] + attr_accessor :life_span + + # Remarketing List Population Rule. + # Corresponds to the JSON property `listPopulationRule` + # @return [Google::Apis::DfareportingV3_2::ListPopulationRule] + attr_accessor :list_population_rule + + # Number of users currently in the list. This is a read-only field. + # Corresponds to the JSON property `listSize` + # @return [Fixnum] + attr_accessor :list_size + + # Product from which this remarketing list was originated. + # Corresponds to the JSON property `listSource` + # @return [String] + attr_accessor :list_source + + # Name of the remarketing list. This is a required field. Must be no greater + # than 128 characters long. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Subaccount ID of this remarketing list. This is a read-only, auto-generated + # field that is only returned in GET requests. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @life_span = args[:life_span] if args.key?(:life_span) + @list_population_rule = args[:list_population_rule] if args.key?(:list_population_rule) + @list_size = args[:list_size] if args.key?(:list_size) + @list_source = args[:list_source] if args.key?(:list_source) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + end + end + + # Contains properties of a remarketing list's sharing information. Sharing + # allows other accounts or advertisers to target to your remarketing lists. This + # resource can be used to manage remarketing list sharing to other accounts and + # advertisers. + class RemarketingListShare + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#remarketingListShare". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Remarketing list ID. This is a read-only, auto-generated field. + # Corresponds to the JSON property `remarketingListId` + # @return [Fixnum] + attr_accessor :remarketing_list_id + + # Accounts that the remarketing list is shared with. + # Corresponds to the JSON property `sharedAccountIds` + # @return [Array] + attr_accessor :shared_account_ids + + # Advertisers that the remarketing list is shared with. + # Corresponds to the JSON property `sharedAdvertiserIds` + # @return [Array] + attr_accessor :shared_advertiser_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @remarketing_list_id = args[:remarketing_list_id] if args.key?(:remarketing_list_id) + @shared_account_ids = args[:shared_account_ids] if args.key?(:shared_account_ids) + @shared_advertiser_ids = args[:shared_advertiser_ids] if args.key?(:shared_advertiser_ids) + end + end + + # Remarketing list response + class RemarketingListsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#remarketingListsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Remarketing list collection. + # Corresponds to the JSON property `remarketingLists` + # @return [Array] + attr_accessor :remarketing_lists + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @remarketing_lists = args[:remarketing_lists] if args.key?(:remarketing_lists) + end + end + + # Represents a Report resource. + class Report + include Google::Apis::Core::Hashable + + # The account ID to which this report belongs. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # The report criteria for a report of type "STANDARD". + # Corresponds to the JSON property `criteria` + # @return [Google::Apis::DfareportingV3_2::Report::Criteria] + attr_accessor :criteria + + # The report criteria for a report of type "CROSS_DIMENSION_REACH". + # Corresponds to the JSON property `crossDimensionReachCriteria` + # @return [Google::Apis::DfareportingV3_2::Report::CrossDimensionReachCriteria] + attr_accessor :cross_dimension_reach_criteria + + # The report's email delivery settings. + # Corresponds to the JSON property `delivery` + # @return [Google::Apis::DfareportingV3_2::Report::Delivery] + attr_accessor :delivery + + # The eTag of this response for caching purposes. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The filename used when generating report files for this report. + # Corresponds to the JSON property `fileName` + # @return [String] + attr_accessor :file_name + + # The report criteria for a report of type "FLOODLIGHT". + # Corresponds to the JSON property `floodlightCriteria` + # @return [Google::Apis::DfareportingV3_2::Report::FloodlightCriteria] + attr_accessor :floodlight_criteria + + # The output format of the report. If not specified, default format is "CSV". + # Note that the actual format in the completed report file might differ if for + # instance the report's size exceeds the format's capabilities. "CSV" will then + # be the fallback format. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # The unique ID identifying this report resource. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # The kind of resource this is, in this case dfareporting#report. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The timestamp (in milliseconds since epoch) of when this report was last + # modified. + # Corresponds to the JSON property `lastModifiedTime` + # @return [Fixnum] + attr_accessor :last_modified_time + + # The name of the report. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The user profile id of the owner of this report. + # Corresponds to the JSON property `ownerProfileId` + # @return [Fixnum] + attr_accessor :owner_profile_id + + # The report criteria for a report of type "PATH_TO_CONVERSION". + # Corresponds to the JSON property `pathToConversionCriteria` + # @return [Google::Apis::DfareportingV3_2::Report::PathToConversionCriteria] + attr_accessor :path_to_conversion_criteria + + # The report criteria for a report of type "REACH". + # Corresponds to the JSON property `reachCriteria` + # @return [Google::Apis::DfareportingV3_2::Report::ReachCriteria] + attr_accessor :reach_criteria + + # The report's schedule. Can only be set if the report's 'dateRange' is a + # relative date range and the relative date range is not "TODAY". + # Corresponds to the JSON property `schedule` + # @return [Google::Apis::DfareportingV3_2::Report::Schedule] + attr_accessor :schedule + + # The subaccount ID to which this report belongs if applicable. + # Corresponds to the JSON property `subAccountId` + # @return [Fixnum] + attr_accessor :sub_account_id + + # The type of the report. + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @criteria = args[:criteria] if args.key?(:criteria) + @cross_dimension_reach_criteria = args[:cross_dimension_reach_criteria] if args.key?(:cross_dimension_reach_criteria) + @delivery = args[:delivery] if args.key?(:delivery) + @etag = args[:etag] if args.key?(:etag) + @file_name = args[:file_name] if args.key?(:file_name) + @floodlight_criteria = args[:floodlight_criteria] if args.key?(:floodlight_criteria) + @format = args[:format] if args.key?(:format) + @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) + @name = args[:name] if args.key?(:name) + @owner_profile_id = args[:owner_profile_id] if args.key?(:owner_profile_id) + @path_to_conversion_criteria = args[:path_to_conversion_criteria] if args.key?(:path_to_conversion_criteria) + @reach_criteria = args[:reach_criteria] if args.key?(:reach_criteria) + @schedule = args[:schedule] if args.key?(:schedule) + @sub_account_id = args[:sub_account_id] if args.key?(:sub_account_id) + @type = args[:type] if args.key?(:type) + end + + # The report criteria for a report of type "STANDARD". + class Criteria + include Google::Apis::Core::Hashable + + # Represents an activity group. + # Corresponds to the JSON property `activities` + # @return [Google::Apis::DfareportingV3_2::Activities] + attr_accessor :activities + + # Represents a Custom Rich Media Events group. + # Corresponds to the JSON property `customRichMediaEvents` + # @return [Google::Apis::DfareportingV3_2::CustomRichMediaEvents] + attr_accessor :custom_rich_media_events + + # Represents a date range. + # Corresponds to the JSON property `dateRange` + # @return [Google::Apis::DfareportingV3_2::DateRange] + attr_accessor :date_range + + # The list of filters on which dimensions are filtered. + # Filters for different dimensions are ANDed, filters for the same dimension are + # grouped together and ORed. + # Corresponds to the JSON property `dimensionFilters` + # @return [Array] + attr_accessor :dimension_filters + + # The list of standard dimensions the report should include. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # The list of names of metrics the report should include. + # Corresponds to the JSON property `metricNames` + # @return [Array] + attr_accessor :metric_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @activities = args[:activities] if args.key?(:activities) + @custom_rich_media_events = args[:custom_rich_media_events] if args.key?(:custom_rich_media_events) + @date_range = args[:date_range] if args.key?(:date_range) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @metric_names = args[:metric_names] if args.key?(:metric_names) + end + end + + # The report criteria for a report of type "CROSS_DIMENSION_REACH". + class CrossDimensionReachCriteria + include Google::Apis::Core::Hashable + + # The list of dimensions the report should include. + # Corresponds to the JSON property `breakdown` + # @return [Array] + attr_accessor :breakdown + + # Represents a date range. + # Corresponds to the JSON property `dateRange` + # @return [Google::Apis::DfareportingV3_2::DateRange] + attr_accessor :date_range + + # The dimension option. + # Corresponds to the JSON property `dimension` + # @return [String] + attr_accessor :dimension + + # The list of filters on which dimensions are filtered. + # Corresponds to the JSON property `dimensionFilters` + # @return [Array] + attr_accessor :dimension_filters + + # The list of names of metrics the report should include. + # Corresponds to the JSON property `metricNames` + # @return [Array] + attr_accessor :metric_names + + # The list of names of overlap metrics the report should include. + # Corresponds to the JSON property `overlapMetricNames` + # @return [Array] + attr_accessor :overlap_metric_names + + # Whether the report is pivoted or not. Defaults to true. + # Corresponds to the JSON property `pivoted` + # @return [Boolean] + attr_accessor :pivoted + alias_method :pivoted?, :pivoted + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakdown = args[:breakdown] if args.key?(:breakdown) + @date_range = args[:date_range] if args.key?(:date_range) + @dimension = args[:dimension] if args.key?(:dimension) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @metric_names = args[:metric_names] if args.key?(:metric_names) + @overlap_metric_names = args[:overlap_metric_names] if args.key?(:overlap_metric_names) + @pivoted = args[:pivoted] if args.key?(:pivoted) + end + end + + # The report's email delivery settings. + class Delivery + include Google::Apis::Core::Hashable + + # Whether the report should be emailed to the report owner. + # Corresponds to the JSON property `emailOwner` + # @return [Boolean] + attr_accessor :email_owner + alias_method :email_owner?, :email_owner + + # The type of delivery for the owner to receive, if enabled. + # Corresponds to the JSON property `emailOwnerDeliveryType` + # @return [String] + attr_accessor :email_owner_delivery_type + + # The message to be sent with each email. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # The list of recipients to which to email the report. + # Corresponds to the JSON property `recipients` + # @return [Array] + attr_accessor :recipients + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email_owner = args[:email_owner] if args.key?(:email_owner) + @email_owner_delivery_type = args[:email_owner_delivery_type] if args.key?(:email_owner_delivery_type) + @message = args[:message] if args.key?(:message) + @recipients = args[:recipients] if args.key?(:recipients) + end + end + + # The report criteria for a report of type "FLOODLIGHT". + class FloodlightCriteria + include Google::Apis::Core::Hashable + + # The list of custom rich media events to include. + # Corresponds to the JSON property `customRichMediaEvents` + # @return [Array] + attr_accessor :custom_rich_media_events + + # Represents a date range. + # Corresponds to the JSON property `dateRange` + # @return [Google::Apis::DfareportingV3_2::DateRange] + attr_accessor :date_range + + # The list of filters on which dimensions are filtered. + # Filters for different dimensions are ANDed, filters for the same dimension are + # grouped together and ORed. + # Corresponds to the JSON property `dimensionFilters` + # @return [Array] + attr_accessor :dimension_filters + + # The list of dimensions the report should include. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `floodlightConfigId` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :floodlight_config_id + + # The list of names of metrics the report should include. + # Corresponds to the JSON property `metricNames` + # @return [Array] + attr_accessor :metric_names + + # The properties of the report. + # Corresponds to the JSON property `reportProperties` + # @return [Google::Apis::DfareportingV3_2::Report::FloodlightCriteria::ReportProperties] + attr_accessor :report_properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @custom_rich_media_events = args[:custom_rich_media_events] if args.key?(:custom_rich_media_events) + @date_range = args[:date_range] if args.key?(:date_range) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @floodlight_config_id = args[:floodlight_config_id] if args.key?(:floodlight_config_id) + @metric_names = args[:metric_names] if args.key?(:metric_names) + @report_properties = args[:report_properties] if args.key?(:report_properties) + end + + # The properties of the report. + class ReportProperties + include Google::Apis::Core::Hashable + + # Include conversions that have no cookie, but do have an exposure path. + # Corresponds to the JSON property `includeAttributedIPConversions` + # @return [Boolean] + attr_accessor :include_attributed_ip_conversions + alias_method :include_attributed_ip_conversions?, :include_attributed_ip_conversions + + # Include conversions of users with a DoubleClick cookie but without an exposure. + # That means the user did not click or see an ad from the advertiser within the + # Floodlight group, or that the interaction happened outside the lookback window. + # Corresponds to the JSON property `includeUnattributedCookieConversions` + # @return [Boolean] + attr_accessor :include_unattributed_cookie_conversions + alias_method :include_unattributed_cookie_conversions?, :include_unattributed_cookie_conversions + + # Include conversions that have no associated cookies and no exposures. It’s + # therefore impossible to know how the user was exposed to your ads during the + # lookback window prior to a conversion. + # Corresponds to the JSON property `includeUnattributedIPConversions` + # @return [Boolean] + attr_accessor :include_unattributed_ip_conversions + alias_method :include_unattributed_ip_conversions?, :include_unattributed_ip_conversions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @include_attributed_ip_conversions = args[:include_attributed_ip_conversions] if args.key?(:include_attributed_ip_conversions) + @include_unattributed_cookie_conversions = args[:include_unattributed_cookie_conversions] if args.key?(:include_unattributed_cookie_conversions) + @include_unattributed_ip_conversions = args[:include_unattributed_ip_conversions] if args.key?(:include_unattributed_ip_conversions) + end + end + end + + # The report criteria for a report of type "PATH_TO_CONVERSION". + class PathToConversionCriteria + include Google::Apis::Core::Hashable + + # The list of 'dfa:activity' values to filter on. + # Corresponds to the JSON property `activityFilters` + # @return [Array] + attr_accessor :activity_filters + + # The list of conversion dimensions the report should include. + # Corresponds to the JSON property `conversionDimensions` + # @return [Array] + attr_accessor :conversion_dimensions + + # The list of custom floodlight variables the report should include. + # Corresponds to the JSON property `customFloodlightVariables` + # @return [Array] + attr_accessor :custom_floodlight_variables + + # The list of custom rich media events to include. + # Corresponds to the JSON property `customRichMediaEvents` + # @return [Array] + attr_accessor :custom_rich_media_events + + # Represents a date range. + # Corresponds to the JSON property `dateRange` + # @return [Google::Apis::DfareportingV3_2::DateRange] + attr_accessor :date_range + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `floodlightConfigId` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :floodlight_config_id + + # The list of names of metrics the report should include. + # Corresponds to the JSON property `metricNames` + # @return [Array] + attr_accessor :metric_names + + # The list of per interaction dimensions the report should include. + # Corresponds to the JSON property `perInteractionDimensions` + # @return [Array] + attr_accessor :per_interaction_dimensions + + # The properties of the report. + # Corresponds to the JSON property `reportProperties` + # @return [Google::Apis::DfareportingV3_2::Report::PathToConversionCriteria::ReportProperties] + attr_accessor :report_properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @activity_filters = args[:activity_filters] if args.key?(:activity_filters) + @conversion_dimensions = args[:conversion_dimensions] if args.key?(:conversion_dimensions) + @custom_floodlight_variables = args[:custom_floodlight_variables] if args.key?(:custom_floodlight_variables) + @custom_rich_media_events = args[:custom_rich_media_events] if args.key?(:custom_rich_media_events) + @date_range = args[:date_range] if args.key?(:date_range) + @floodlight_config_id = args[:floodlight_config_id] if args.key?(:floodlight_config_id) + @metric_names = args[:metric_names] if args.key?(:metric_names) + @per_interaction_dimensions = args[:per_interaction_dimensions] if args.key?(:per_interaction_dimensions) + @report_properties = args[:report_properties] if args.key?(:report_properties) + end + + # The properties of the report. + class ReportProperties + include Google::Apis::Core::Hashable + + # DFA checks to see if a click interaction occurred within the specified period + # of time before a conversion. By default the value is pulled from Floodlight or + # you can manually enter a custom value. Valid values: 1-90. + # Corresponds to the JSON property `clicksLookbackWindow` + # @return [Fixnum] + attr_accessor :clicks_lookback_window + + # DFA checks to see if an impression interaction occurred within the specified + # period of time before a conversion. By default the value is pulled from + # Floodlight or you can manually enter a custom value. Valid values: 1-90. + # Corresponds to the JSON property `impressionsLookbackWindow` + # @return [Fixnum] + attr_accessor :impressions_lookback_window + + # Deprecated: has no effect. + # Corresponds to the JSON property `includeAttributedIPConversions` + # @return [Boolean] + attr_accessor :include_attributed_ip_conversions + alias_method :include_attributed_ip_conversions?, :include_attributed_ip_conversions + + # Include conversions of users with a DoubleClick cookie but without an exposure. + # That means the user did not click or see an ad from the advertiser within the + # Floodlight group, or that the interaction happened outside the lookback window. + # Corresponds to the JSON property `includeUnattributedCookieConversions` + # @return [Boolean] + attr_accessor :include_unattributed_cookie_conversions + alias_method :include_unattributed_cookie_conversions?, :include_unattributed_cookie_conversions + + # Include conversions that have no associated cookies and no exposures. It’s + # therefore impossible to know how the user was exposed to your ads during the + # lookback window prior to a conversion. + # Corresponds to the JSON property `includeUnattributedIPConversions` + # @return [Boolean] + attr_accessor :include_unattributed_ip_conversions + alias_method :include_unattributed_ip_conversions?, :include_unattributed_ip_conversions + + # The maximum number of click interactions to include in the report. Advertisers + # currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). + # If another advertiser in your network is paying for E2C, you can have up to 5 + # total exposures per report. + # Corresponds to the JSON property `maximumClickInteractions` + # @return [Fixnum] + attr_accessor :maximum_click_interactions + + # The maximum number of click interactions to include in the report. Advertisers + # currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). + # If another advertiser in your network is paying for E2C, you can have up to 5 + # total exposures per report. + # Corresponds to the JSON property `maximumImpressionInteractions` + # @return [Fixnum] + attr_accessor :maximum_impression_interactions + + # The maximum amount of time that can take place between interactions (clicks or + # impressions) by the same user. Valid values: 1-90. + # Corresponds to the JSON property `maximumInteractionGap` + # @return [Fixnum] + attr_accessor :maximum_interaction_gap + + # Enable pivoting on interaction path. + # Corresponds to the JSON property `pivotOnInteractionPath` + # @return [Boolean] + attr_accessor :pivot_on_interaction_path + alias_method :pivot_on_interaction_path?, :pivot_on_interaction_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @clicks_lookback_window = args[:clicks_lookback_window] if args.key?(:clicks_lookback_window) + @impressions_lookback_window = args[:impressions_lookback_window] if args.key?(:impressions_lookback_window) + @include_attributed_ip_conversions = args[:include_attributed_ip_conversions] if args.key?(:include_attributed_ip_conversions) + @include_unattributed_cookie_conversions = args[:include_unattributed_cookie_conversions] if args.key?(:include_unattributed_cookie_conversions) + @include_unattributed_ip_conversions = args[:include_unattributed_ip_conversions] if args.key?(:include_unattributed_ip_conversions) + @maximum_click_interactions = args[:maximum_click_interactions] if args.key?(:maximum_click_interactions) + @maximum_impression_interactions = args[:maximum_impression_interactions] if args.key?(:maximum_impression_interactions) + @maximum_interaction_gap = args[:maximum_interaction_gap] if args.key?(:maximum_interaction_gap) + @pivot_on_interaction_path = args[:pivot_on_interaction_path] if args.key?(:pivot_on_interaction_path) + end + end + end + + # The report criteria for a report of type "REACH". + class ReachCriteria + include Google::Apis::Core::Hashable + + # Represents an activity group. + # Corresponds to the JSON property `activities` + # @return [Google::Apis::DfareportingV3_2::Activities] + attr_accessor :activities + + # Represents a Custom Rich Media Events group. + # Corresponds to the JSON property `customRichMediaEvents` + # @return [Google::Apis::DfareportingV3_2::CustomRichMediaEvents] + attr_accessor :custom_rich_media_events + + # Represents a date range. + # Corresponds to the JSON property `dateRange` + # @return [Google::Apis::DfareportingV3_2::DateRange] + attr_accessor :date_range + + # The list of filters on which dimensions are filtered. + # Filters for different dimensions are ANDed, filters for the same dimension are + # grouped together and ORed. + # Corresponds to the JSON property `dimensionFilters` + # @return [Array] + attr_accessor :dimension_filters + + # The list of dimensions the report should include. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # Whether to enable all reach dimension combinations in the report. Defaults to + # false. If enabled, the date range of the report should be within the last 42 + # days. + # Corresponds to the JSON property `enableAllDimensionCombinations` + # @return [Boolean] + attr_accessor :enable_all_dimension_combinations + alias_method :enable_all_dimension_combinations?, :enable_all_dimension_combinations + + # The list of names of metrics the report should include. + # Corresponds to the JSON property `metricNames` + # @return [Array] + attr_accessor :metric_names + + # The list of names of Reach By Frequency metrics the report should include. + # Corresponds to the JSON property `reachByFrequencyMetricNames` + # @return [Array] + attr_accessor :reach_by_frequency_metric_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @activities = args[:activities] if args.key?(:activities) + @custom_rich_media_events = args[:custom_rich_media_events] if args.key?(:custom_rich_media_events) + @date_range = args[:date_range] if args.key?(:date_range) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @enable_all_dimension_combinations = args[:enable_all_dimension_combinations] if args.key?(:enable_all_dimension_combinations) + @metric_names = args[:metric_names] if args.key?(:metric_names) + @reach_by_frequency_metric_names = args[:reach_by_frequency_metric_names] if args.key?(:reach_by_frequency_metric_names) + end + end + + # The report's schedule. Can only be set if the report's 'dateRange' is a + # relative date range and the relative date range is not "TODAY". + class Schedule + include Google::Apis::Core::Hashable + + # Whether the schedule is active or not. Must be set to either true or false. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # Defines every how many days, weeks or months the report should be run. Needs + # to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY". + # Corresponds to the JSON property `every` + # @return [Fixnum] + attr_accessor :every + + # The expiration date when the scheduled report stops running. + # Corresponds to the JSON property `expirationDate` + # @return [Date] + attr_accessor :expiration_date + + # The interval for which the report is repeated. Note: + # - "DAILY" also requires field "every" to be set. + # - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be set. + # - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be set. + # Corresponds to the JSON property `repeats` + # @return [String] + attr_accessor :repeats + + # List of week days "WEEKLY" on which scheduled reports should run. + # Corresponds to the JSON property `repeatsOnWeekDays` + # @return [Array] + attr_accessor :repeats_on_week_days + + # Enum to define for "MONTHLY" scheduled reports whether reports should be + # repeated on the same day of the month as "startDate" or the same day of the + # week of the month. + # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" + # would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" + # would run subsequent reports on the first Monday of the month. + # Corresponds to the JSON property `runsOnDayOfMonth` + # @return [String] + attr_accessor :runs_on_day_of_month + + # Start date of date range for which scheduled reports should be run. + # Corresponds to the JSON property `startDate` + # @return [Date] + attr_accessor :start_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active = args[:active] if args.key?(:active) + @every = args[:every] if args.key?(:every) + @expiration_date = args[:expiration_date] if args.key?(:expiration_date) + @repeats = args[:repeats] if args.key?(:repeats) + @repeats_on_week_days = args[:repeats_on_week_days] if args.key?(:repeats_on_week_days) + @runs_on_day_of_month = args[:runs_on_day_of_month] if args.key?(:runs_on_day_of_month) + @start_date = args[:start_date] if args.key?(:start_date) + end + end + end + + # Represents fields that are compatible to be selected for a report of type " + # STANDARD". + class ReportCompatibleFields + include Google::Apis::Core::Hashable + + # Dimensions which are compatible to be selected in the "dimensionFilters" + # section of the report. + # Corresponds to the JSON property `dimensionFilters` + # @return [Array] + attr_accessor :dimension_filters + + # Dimensions which are compatible to be selected in the "dimensions" section of + # the report. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # The kind of resource this is, in this case dfareporting#reportCompatibleFields. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Metrics which are compatible to be selected in the "metricNames" section of + # the report. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + # Metrics which are compatible to be selected as activity metrics to pivot on in + # the "activities" section of the report. + # Corresponds to the JSON property `pivotedActivityMetrics` + # @return [Array] + attr_accessor :pivoted_activity_metrics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + @pivoted_activity_metrics = args[:pivoted_activity_metrics] if args.key?(:pivoted_activity_metrics) + end + end + + # Represents the list of reports. + class ReportList + include Google::Apis::Core::Hashable + + # The eTag of this response for caching purposes. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The reports returned in this response. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of list this is, in this case dfareporting#reportList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Continuation token used to page through reports. To retrieve the next page of + # results, set the next request's "pageToken" to the value of this field. The + # page token is only valid for a limited amount of time and should not be + # persisted. + # 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) + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Reporting Configuration + class ReportsConfiguration + include Google::Apis::Core::Hashable + + # Whether the exposure to conversion report is enabled. This report shows + # detailed pathway information on up to 10 of the most recent ad exposures seen + # by a user before converting. + # Corresponds to the JSON property `exposureToConversionEnabled` + # @return [Boolean] + attr_accessor :exposure_to_conversion_enabled + alias_method :exposure_to_conversion_enabled?, :exposure_to_conversion_enabled + + # Lookback configuration settings. + # Corresponds to the JSON property `lookbackConfiguration` + # @return [Google::Apis::DfareportingV3_2::LookbackConfiguration] + attr_accessor :lookback_configuration + + # Report generation time zone ID of this account. This is a required field that + # can only be changed by a superuser. + # Acceptable values are: + # - "1" for "America/New_York" + # - "2" for "Europe/London" + # - "3" for "Europe/Paris" + # - "4" for "Africa/Johannesburg" + # - "5" for "Asia/Jerusalem" + # - "6" for "Asia/Shanghai" + # - "7" for "Asia/Hong_Kong" + # - "8" for "Asia/Tokyo" + # - "9" for "Australia/Sydney" + # - "10" for "Asia/Dubai" + # - "11" for "America/Los_Angeles" + # - "12" for "Pacific/Auckland" + # - "13" for "America/Sao_Paulo" + # Corresponds to the JSON property `reportGenerationTimeZoneId` + # @return [Fixnum] + attr_accessor :report_generation_time_zone_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exposure_to_conversion_enabled = args[:exposure_to_conversion_enabled] if args.key?(:exposure_to_conversion_enabled) + @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) + @report_generation_time_zone_id = args[:report_generation_time_zone_id] if args.key?(:report_generation_time_zone_id) + end + end + + # Rich Media Exit Override. + class RichMediaExitOverride + include Google::Apis::Core::Hashable + + # Click-through URL + # Corresponds to the JSON property `clickThroughUrl` + # @return [Google::Apis::DfareportingV3_2::ClickThroughUrl] + attr_accessor :click_through_url + + # Whether to use the clickThroughUrl. If false, the creative-level exit will be + # used. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # ID for the override to refer to a specific exit in the creative. + # Corresponds to the JSON property `exitId` + # @return [Fixnum] + attr_accessor :exit_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @enabled = args[:enabled] if args.key?(:enabled) + @exit_id = args[:exit_id] if args.key?(:exit_id) + end + end + + # A rule associates an asset with a targeting template for asset-level targeting. + # Applicable to INSTREAM_VIDEO creatives. + class Rule + include Google::Apis::Core::Hashable + + # A creativeAssets[].id. This should refer to one of the parent assets in this + # creative. This is a required field. + # Corresponds to the JSON property `assetId` + # @return [Fixnum] + attr_accessor :asset_id + + # A user-friendly name for this rule. This is a required field. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A targeting template ID. The targeting from the targeting template will be + # used to determine whether this asset should be served. This is a required + # field. + # Corresponds to the JSON property `targetingTemplateId` + # @return [Fixnum] + attr_accessor :targeting_template_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_id = args[:asset_id] if args.key?(:asset_id) + @name = args[:name] if args.key?(:name) + @targeting_template_id = args[:targeting_template_id] if args.key?(:targeting_template_id) + end + end + + # Contains properties of a site. + class Site + include Google::Apis::Core::Hashable + + # Account ID of this site. This is a read-only field that can be left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Whether this site is approved. + # Corresponds to the JSON property `approved` + # @return [Boolean] + attr_accessor :approved + alias_method :approved?, :approved + + # Directory site associated with this site. This is a required field that is + # read-only after insertion. + # Corresponds to the JSON property `directorySiteId` + # @return [Fixnum] + attr_accessor :directory_site_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `directorySiteIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :directory_site_id_dimension_value + + # ID of this site. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `idDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :id_dimension_value + + # Key name of this site. This is a read-only, auto-generated field. + # Corresponds to the JSON property `keyName` + # @return [String] + attr_accessor :key_name + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#site". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this site.This is a required field. Must be less than 128 characters + # long. If this site is under a subaccount, the name must be unique among sites + # of the same subaccount. Otherwise, this site is a top-level site, and the name + # must be unique among top-level sites of the same account. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Site contacts. + # Corresponds to the JSON property `siteContacts` + # @return [Array] + attr_accessor :site_contacts + + # Site Settings + # Corresponds to the JSON property `siteSettings` + # @return [Google::Apis::DfareportingV3_2::SiteSettings] + attr_accessor :site_settings + + # Subaccount ID of this site. This is a read-only field that can be left blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @approved = args[:approved] if args.key?(:approved) + @directory_site_id = args[:directory_site_id] if args.key?(:directory_site_id) + @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] if args.key?(:directory_site_id_dimension_value) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @key_name = args[:key_name] if args.key?(:key_name) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @site_contacts = args[:site_contacts] if args.key?(:site_contacts) + @site_settings = args[:site_settings] if args.key?(:site_settings) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + end + end + + # Site Contact + class SiteContact + include Google::Apis::Core::Hashable + + # Address of this site contact. + # Corresponds to the JSON property `address` + # @return [String] + attr_accessor :address + + # Site contact type. + # Corresponds to the JSON property `contactType` + # @return [String] + attr_accessor :contact_type + + # Email address of this site contact. This is a required field. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # First name of this site contact. + # Corresponds to the JSON property `firstName` + # @return [String] + attr_accessor :first_name + + # ID of this site contact. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Last name of this site contact. + # Corresponds to the JSON property `lastName` + # @return [String] + attr_accessor :last_name + + # Primary phone number of this site contact. + # Corresponds to the JSON property `phone` + # @return [String] + attr_accessor :phone + + # Title or designation of this site contact. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address = args[:address] if args.key?(:address) + @contact_type = args[:contact_type] if args.key?(:contact_type) + @email = args[:email] if args.key?(:email) + @first_name = args[:first_name] if args.key?(:first_name) + @id = args[:id] if args.key?(:id) + @last_name = args[:last_name] if args.key?(:last_name) + @phone = args[:phone] if args.key?(:phone) + @title = args[:title] if args.key?(:title) + end + end + + # Site Settings + class SiteSettings + include Google::Apis::Core::Hashable + + # Whether active view creatives are disabled for this site. + # Corresponds to the JSON property `activeViewOptOut` + # @return [Boolean] + attr_accessor :active_view_opt_out + alias_method :active_view_opt_out?, :active_view_opt_out + + # Whether this site opts out of ad blocking. When true, ad blocking is disabled + # for all placements under the site, regardless of the individual placement + # settings. When false, the campaign and placement settings take effect. + # Corresponds to the JSON property `adBlockingOptOut` + # @return [Boolean] + attr_accessor :ad_blocking_opt_out + alias_method :ad_blocking_opt_out?, :ad_blocking_opt_out + + # Creative Settings + # Corresponds to the JSON property `creativeSettings` + # @return [Google::Apis::DfareportingV3_2::CreativeSettings] + attr_accessor :creative_settings + + # Whether new cookies are disabled for this site. + # Corresponds to the JSON property `disableNewCookie` + # @return [Boolean] + attr_accessor :disable_new_cookie + alias_method :disable_new_cookie?, :disable_new_cookie + + # Lookback configuration settings. + # Corresponds to the JSON property `lookbackConfiguration` + # @return [Google::Apis::DfareportingV3_2::LookbackConfiguration] + attr_accessor :lookback_configuration + + # Tag Settings + # Corresponds to the JSON property `tagSetting` + # @return [Google::Apis::DfareportingV3_2::TagSetting] + attr_accessor :tag_setting + + # Whether Verification and ActiveView for in-stream video creatives are disabled + # by default for new placements created under this site. This value will be used + # to populate the placement.videoActiveViewOptOut field, when no value is + # specified for the new placement. + # Corresponds to the JSON property `videoActiveViewOptOutTemplate` + # @return [Boolean] + attr_accessor :video_active_view_opt_out_template + alias_method :video_active_view_opt_out_template?, :video_active_view_opt_out_template + + # Default VPAID adapter setting for new placements created under this site. This + # value will be used to populate the placements.vpaidAdapterChoice field, when + # no value is specified for the new placement. Controls which VPAID format the + # measurement adapter will use for in-stream video creatives assigned to the + # placement. The publisher's specifications will typically determine this + # setting. For VPAID creatives, the adapter format will match the VPAID format ( + # HTML5 VPAID creatives use the HTML5 adapter). + # Note: Flash is no longer supported. This field now defaults to HTML5 when the + # following values are provided: FLASH, BOTH. + # Corresponds to the JSON property `vpaidAdapterChoiceTemplate` + # @return [String] + attr_accessor :vpaid_adapter_choice_template + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active_view_opt_out = args[:active_view_opt_out] if args.key?(:active_view_opt_out) + @ad_blocking_opt_out = args[:ad_blocking_opt_out] if args.key?(:ad_blocking_opt_out) + @creative_settings = args[:creative_settings] if args.key?(:creative_settings) + @disable_new_cookie = args[:disable_new_cookie] if args.key?(:disable_new_cookie) + @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) + @tag_setting = args[:tag_setting] if args.key?(:tag_setting) + @video_active_view_opt_out_template = args[:video_active_view_opt_out_template] if args.key?(:video_active_view_opt_out_template) + @vpaid_adapter_choice_template = args[:vpaid_adapter_choice_template] if args.key?(:vpaid_adapter_choice_template) + end + end + + # Site List Response + class SitesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#sitesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Site collection. + # Corresponds to the JSON property `sites` + # @return [Array] + attr_accessor :sites + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @sites = args[:sites] if args.key?(:sites) + end + end + + # Represents the dimensions of ads, placements, creatives, or creative assets. + class Size + include Google::Apis::Core::Hashable + + # Height of this size. Acceptable values are 0 to 32767, inclusive. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # IAB standard size. This is a read-only, auto-generated field. + # Corresponds to the JSON property `iab` + # @return [Boolean] + attr_accessor :iab + alias_method :iab?, :iab + + # ID of this size. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#size". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Width of this size. Acceptable values are 0 to 32767, inclusive. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] if args.key?(:height) + @iab = args[:iab] if args.key?(:iab) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @width = args[:width] if args.key?(:width) + end + end + + # Size List Response + class SizesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#sizesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Size collection. + # Corresponds to the JSON property `sizes` + # @return [Array] + attr_accessor :sizes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @sizes = args[:sizes] if args.key?(:sizes) + end + end + + # Skippable Settings + class SkippableSetting + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#skippableSetting". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Video Offset + # Corresponds to the JSON property `progressOffset` + # @return [Google::Apis::DfareportingV3_2::VideoOffset] + attr_accessor :progress_offset + + # Video Offset + # Corresponds to the JSON property `skipOffset` + # @return [Google::Apis::DfareportingV3_2::VideoOffset] + attr_accessor :skip_offset + + # Whether the user can skip creatives served to this placement. + # Corresponds to the JSON property `skippable` + # @return [Boolean] + attr_accessor :skippable + alias_method :skippable?, :skippable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @progress_offset = args[:progress_offset] if args.key?(:progress_offset) + @skip_offset = args[:skip_offset] if args.key?(:skip_offset) + @skippable = args[:skippable] if args.key?(:skippable) + end + end + + # Represents a sorted dimension. + class SortedDimension + include Google::Apis::Core::Hashable + + # The kind of resource this is, in this case dfareporting#sortedDimension. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the dimension. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # An optional sort order for the dimension column. + # Corresponds to the JSON property `sortOrder` + # @return [String] + attr_accessor :sort_order + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @sort_order = args[:sort_order] if args.key?(:sort_order) + end + end + + # Contains properties of a DCM subaccount. + class Subaccount + include Google::Apis::Core::Hashable + + # ID of the account that contains this subaccount. This is a read-only field + # that can be left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # IDs of the available user role permissions for this subaccount. + # Corresponds to the JSON property `availablePermissionIds` + # @return [Array] + attr_accessor :available_permission_ids + + # ID of this subaccount. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#subaccount". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this subaccount. This is a required field. Must be less than 128 + # characters long and be unique among subaccounts of the same account. + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @available_permission_ids = args[:available_permission_ids] if args.key?(:available_permission_ids) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # Subaccount List Response + class SubaccountsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#subaccountsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Subaccount collection. + # Corresponds to the JSON property `subaccounts` + # @return [Array] + attr_accessor :subaccounts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @subaccounts = args[:subaccounts] if args.key?(:subaccounts) + end + end + + # Placement Tag Data + class TagData + include Google::Apis::Core::Hashable + + # Ad associated with this placement tag. Applicable only when format is + # PLACEMENT_TAG_TRACKING. + # Corresponds to the JSON property `adId` + # @return [Fixnum] + attr_accessor :ad_id + + # Tag string to record a click. + # Corresponds to the JSON property `clickTag` + # @return [String] + attr_accessor :click_tag + + # Creative associated with this placement tag. Applicable only when format is + # PLACEMENT_TAG_TRACKING. + # Corresponds to the JSON property `creativeId` + # @return [Fixnum] + attr_accessor :creative_id + + # TagData tag format of this tag. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # Tag string for serving an ad. + # Corresponds to the JSON property `impressionTag` + # @return [String] + attr_accessor :impression_tag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_id = args[:ad_id] if args.key?(:ad_id) + @click_tag = args[:click_tag] if args.key?(:click_tag) + @creative_id = args[:creative_id] if args.key?(:creative_id) + @format = args[:format] if args.key?(:format) + @impression_tag = args[:impression_tag] if args.key?(:impression_tag) + end + end + + # Tag Settings + class TagSetting + include Google::Apis::Core::Hashable + + # Additional key-values to be included in tags. Each key-value pair must be of + # the form key=value, and pairs must be separated by a semicolon (;). Keys and + # values must not contain commas. For example, id=2;color=red is a valid value + # for this field. + # Corresponds to the JSON property `additionalKeyValues` + # @return [String] + attr_accessor :additional_key_values + + # Whether static landing page URLs should be included in the tags. This setting + # applies only to placements. + # Corresponds to the JSON property `includeClickThroughUrls` + # @return [Boolean] + attr_accessor :include_click_through_urls + alias_method :include_click_through_urls?, :include_click_through_urls + + # Whether click-tracking string should be included in the tags. + # Corresponds to the JSON property `includeClickTracking` + # @return [Boolean] + attr_accessor :include_click_tracking + alias_method :include_click_tracking?, :include_click_tracking + + # Option specifying how keywords are embedded in ad tags. This setting can be + # used to specify whether keyword placeholders are inserted in placement tags + # for this site. Publishers can then add keywords to those placeholders. + # Corresponds to the JSON property `keywordOption` + # @return [String] + attr_accessor :keyword_option + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @additional_key_values = args[:additional_key_values] if args.key?(:additional_key_values) + @include_click_through_urls = args[:include_click_through_urls] if args.key?(:include_click_through_urls) + @include_click_tracking = args[:include_click_tracking] if args.key?(:include_click_tracking) + @keyword_option = args[:keyword_option] if args.key?(:keyword_option) + end + end + + # Dynamic and Image Tag Settings. + class TagSettings + include Google::Apis::Core::Hashable + + # Whether dynamic floodlight tags are enabled. + # Corresponds to the JSON property `dynamicTagEnabled` + # @return [Boolean] + attr_accessor :dynamic_tag_enabled + alias_method :dynamic_tag_enabled?, :dynamic_tag_enabled + + # Whether image tags are enabled. + # Corresponds to the JSON property `imageTagEnabled` + # @return [Boolean] + attr_accessor :image_tag_enabled + alias_method :image_tag_enabled?, :image_tag_enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dynamic_tag_enabled = args[:dynamic_tag_enabled] if args.key?(:dynamic_tag_enabled) + @image_tag_enabled = args[:image_tag_enabled] if args.key?(:image_tag_enabled) + end + end + + # Target Window. + class TargetWindow + include Google::Apis::Core::Hashable + + # User-entered value. + # Corresponds to the JSON property `customHtml` + # @return [String] + attr_accessor :custom_html + + # Type of browser window for which the backup image of the flash creative can be + # displayed. + # Corresponds to the JSON property `targetWindowOption` + # @return [String] + attr_accessor :target_window_option + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @custom_html = args[:custom_html] if args.key?(:custom_html) + @target_window_option = args[:target_window_option] if args.key?(:target_window_option) + end + end + + # Contains properties of a targetable remarketing list. Remarketing enables you + # to create lists of users who have performed specific actions on a site, then + # target ads to members of those lists. This resource is a read-only view of a + # remarketing list to be used to faciliate targeting ads to specific lists. + # Remarketing lists that are owned by your advertisers and those that are shared + # to your advertisers or account are accessible via this resource. To manage + # remarketing lists that are owned by your advertisers, use the RemarketingLists + # resource. + class TargetableRemarketingList + include Google::Apis::Core::Hashable + + # Account ID of this remarketing list. This is a read-only, auto-generated field + # that is only returned in GET requests. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Whether this targetable remarketing list is active. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # Dimension value for the advertiser ID that owns this targetable remarketing + # list. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Targetable remarketing list description. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Targetable remarketing list ID. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#targetableRemarketingList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Number of days that a user should remain in the targetable remarketing list + # without an impression. + # Corresponds to the JSON property `lifeSpan` + # @return [Fixnum] + attr_accessor :life_span + + # Number of users currently in the list. This is a read-only field. + # Corresponds to the JSON property `listSize` + # @return [Fixnum] + attr_accessor :list_size + + # Product from which this targetable remarketing list was originated. + # Corresponds to the JSON property `listSource` + # @return [String] + attr_accessor :list_source + + # Name of the targetable remarketing list. Is no greater than 128 characters + # long. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Subaccount ID of this remarketing list. This is a read-only, auto-generated + # field that is only returned in GET requests. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @life_span = args[:life_span] if args.key?(:life_span) + @list_size = args[:list_size] if args.key?(:list_size) + @list_source = args[:list_source] if args.key?(:list_source) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + end + end + + # Targetable remarketing list response + class TargetableRemarketingListsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#targetableRemarketingListsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Targetable remarketing list collection. + # Corresponds to the JSON property `targetableRemarketingLists` + # @return [Array] + attr_accessor :targetable_remarketing_lists + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @targetable_remarketing_lists = args[:targetable_remarketing_lists] if args.key?(:targetable_remarketing_lists) + end + end + + # Contains properties of a targeting template. A targeting template encapsulates + # targeting information which can be reused across multiple ads. + class TargetingTemplate + include Google::Apis::Core::Hashable + + # Account ID of this targeting template. This field, if left unset, will be auto- + # generated on insert and is read-only after insert. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Advertiser ID of this targeting template. This is a required field on insert + # and is read-only after insert. + # Corresponds to the JSON property `advertiserId` + # @return [Fixnum] + attr_accessor :advertiser_id + + # Represents a DimensionValue resource. + # Corresponds to the JSON property `advertiserIdDimensionValue` + # @return [Google::Apis::DfareportingV3_2::DimensionValue] + attr_accessor :advertiser_id_dimension_value + + # Day Part Targeting. + # Corresponds to the JSON property `dayPartTargeting` + # @return [Google::Apis::DfareportingV3_2::DayPartTargeting] + attr_accessor :day_part_targeting + + # Geographical Targeting. + # Corresponds to the JSON property `geoTargeting` + # @return [Google::Apis::DfareportingV3_2::GeoTargeting] + attr_accessor :geo_targeting + + # ID of this targeting template. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Key Value Targeting Expression. + # Corresponds to the JSON property `keyValueTargetingExpression` + # @return [Google::Apis::DfareportingV3_2::KeyValueTargetingExpression] + attr_accessor :key_value_targeting_expression + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#targetingTemplate". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Language Targeting. + # Corresponds to the JSON property `languageTargeting` + # @return [Google::Apis::DfareportingV3_2::LanguageTargeting] + attr_accessor :language_targeting + + # Remarketing List Targeting Expression. + # Corresponds to the JSON property `listTargetingExpression` + # @return [Google::Apis::DfareportingV3_2::ListTargetingExpression] + attr_accessor :list_targeting_expression + + # Name of this targeting template. This field is required. It must be less than + # 256 characters long and unique within an advertiser. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Subaccount ID of this targeting template. This field, if left unset, will be + # auto-generated on insert and is read-only after insert. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + # Technology Targeting. + # Corresponds to the JSON property `technologyTargeting` + # @return [Google::Apis::DfareportingV3_2::TechnologyTargeting] + attr_accessor :technology_targeting + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @day_part_targeting = args[:day_part_targeting] if args.key?(:day_part_targeting) + @geo_targeting = args[:geo_targeting] if args.key?(:geo_targeting) + @id = args[:id] if args.key?(:id) + @key_value_targeting_expression = args[:key_value_targeting_expression] if args.key?(:key_value_targeting_expression) + @kind = args[:kind] if args.key?(:kind) + @language_targeting = args[:language_targeting] if args.key?(:language_targeting) + @list_targeting_expression = args[:list_targeting_expression] if args.key?(:list_targeting_expression) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @technology_targeting = args[:technology_targeting] if args.key?(:technology_targeting) + end + end + + # Targeting Template List Response + class TargetingTemplatesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#targetingTemplatesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Targeting template collection. + # Corresponds to the JSON property `targetingTemplates` + # @return [Array] + attr_accessor :targeting_templates + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @targeting_templates = args[:targeting_templates] if args.key?(:targeting_templates) + end + end + + # Technology Targeting. + class TechnologyTargeting + include Google::Apis::Core::Hashable + + # Browsers that this ad targets. For each browser either set browserVersionId or + # dartId along with the version numbers. If both are specified, only + # browserVersionId will be used. The other fields are populated automatically + # when the ad is inserted or updated. + # Corresponds to the JSON property `browsers` + # @return [Array] + attr_accessor :browsers + + # Connection types that this ad targets. For each connection type only id is + # required. The other fields are populated automatically when the ad is inserted + # or updated. + # Corresponds to the JSON property `connectionTypes` + # @return [Array] + attr_accessor :connection_types + + # Mobile carriers that this ad targets. For each mobile carrier only id is + # required, and the other fields are populated automatically when the ad is + # inserted or updated. If targeting a mobile carrier, do not set targeting for + # any zip codes. + # Corresponds to the JSON property `mobileCarriers` + # @return [Array] + attr_accessor :mobile_carriers + + # Operating system versions that this ad targets. To target all versions, use + # operatingSystems. For each operating system version, only id is required. The + # other fields are populated automatically when the ad is inserted or updated. + # If targeting an operating system version, do not set targeting for the + # corresponding operating system in operatingSystems. + # Corresponds to the JSON property `operatingSystemVersions` + # @return [Array] + attr_accessor :operating_system_versions + + # Operating systems that this ad targets. To target specific versions, use + # operatingSystemVersions. For each operating system only dartId is required. + # The other fields are populated automatically when the ad is inserted or + # updated. If targeting an operating system, do not set targeting for operating + # system versions for the same operating system. + # Corresponds to the JSON property `operatingSystems` + # @return [Array] + attr_accessor :operating_systems + + # Platform types that this ad targets. For example, desktop, mobile, or tablet. + # For each platform type, only id is required, and the other fields are + # populated automatically when the ad is inserted or updated. + # Corresponds to the JSON property `platformTypes` + # @return [Array] + attr_accessor :platform_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @browsers = args[:browsers] if args.key?(:browsers) + @connection_types = args[:connection_types] if args.key?(:connection_types) + @mobile_carriers = args[:mobile_carriers] if args.key?(:mobile_carriers) + @operating_system_versions = args[:operating_system_versions] if args.key?(:operating_system_versions) + @operating_systems = args[:operating_systems] if args.key?(:operating_systems) + @platform_types = args[:platform_types] if args.key?(:platform_types) + end + end + + # Third Party Authentication Token + class ThirdPartyAuthenticationToken + include Google::Apis::Core::Hashable + + # Name of the third-party authentication token. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Value of the third-party authentication token. This is a read-only, auto- + # generated field. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + + # Third-party Tracking URL. + class ThirdPartyTrackingUrl + include Google::Apis::Core::Hashable + + # Third-party URL type for in-stream video and in-stream audio creatives. + # Corresponds to the JSON property `thirdPartyUrlType` + # @return [String] + attr_accessor :third_party_url_type + + # URL for the specified third-party URL type. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @third_party_url_type = args[:third_party_url_type] if args.key?(:third_party_url_type) + @url = args[:url] if args.key?(:url) + end + end + + # Transcode Settings + class TranscodeSetting + include Google::Apis::Core::Hashable + + # Whitelist of video formats to be served to this placement. Set this list to + # null or empty to serve all video formats. + # Corresponds to the JSON property `enabledVideoFormats` + # @return [Array] + attr_accessor :enabled_video_formats + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#transcodeSetting". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enabled_video_formats = args[:enabled_video_formats] if args.key?(:enabled_video_formats) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following + # creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID. + class UniversalAdId + include Google::Apis::Core::Hashable + + # Registry used for the Ad ID value. + # Corresponds to the JSON property `registry` + # @return [String] + attr_accessor :registry + + # ID value for this creative. Only alphanumeric characters and the following + # symbols are valid: "_/\-". Maximum length is 64 characters. Read only when + # registry is DCM. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @registry = args[:registry] if args.key?(:registry) + @value = args[:value] if args.key?(:value) + end + end + + # User Defined Variable configuration. + class UserDefinedVariableConfiguration + include Google::Apis::Core::Hashable + + # Data type for the variable. This is a required field. + # Corresponds to the JSON property `dataType` + # @return [String] + attr_accessor :data_type + + # User-friendly name for the variable which will appear in reports. This is a + # required field, must be less than 64 characters long, and cannot contain the + # following characters: ""<>". + # Corresponds to the JSON property `reportName` + # @return [String] + attr_accessor :report_name + + # Variable name in the tag. This is a required field. + # Corresponds to the JSON property `variableType` + # @return [String] + attr_accessor :variable_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_type = args[:data_type] if args.key?(:data_type) + @report_name = args[:report_name] if args.key?(:report_name) + @variable_type = args[:variable_type] if args.key?(:variable_type) + end + end + + # Represents a UserProfile resource. + class UserProfile + include Google::Apis::Core::Hashable + + # The account ID to which this profile belongs. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # The account name this profile belongs to. + # Corresponds to the JSON property `accountName` + # @return [String] + attr_accessor :account_name + + # The eTag of this response for caching purposes. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The kind of resource this is, in this case dfareporting#userProfile. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The unique ID of the user profile. + # Corresponds to the JSON property `profileId` + # @return [Fixnum] + attr_accessor :profile_id + + # The sub account ID this profile belongs to if applicable. + # Corresponds to the JSON property `subAccountId` + # @return [Fixnum] + attr_accessor :sub_account_id + + # The sub account name this profile belongs to if applicable. + # Corresponds to the JSON property `subAccountName` + # @return [String] + attr_accessor :sub_account_name + + # The user name. + # Corresponds to the JSON property `userName` + # @return [String] + attr_accessor :user_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @account_name = args[:account_name] if args.key?(:account_name) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @profile_id = args[:profile_id] if args.key?(:profile_id) + @sub_account_id = args[:sub_account_id] if args.key?(:sub_account_id) + @sub_account_name = args[:sub_account_name] if args.key?(:sub_account_name) + @user_name = args[:user_name] if args.key?(:user_name) + end + end + + # Represents the list of user profiles. + class UserProfileList + include Google::Apis::Core::Hashable + + # The eTag of this response for caching purposes. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The user profiles returned in this response. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of list this is, in this case dfareporting#userProfileList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Contains properties of auser role, which is used to manage user access. + class UserRole + include Google::Apis::Core::Hashable + + # Account ID of this user role. This is a read-only field that can be left blank. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Whether this is a default user role. Default user roles are created by the + # system for the account/subaccount and cannot be modified or deleted. Each + # default user role comes with a basic set of preassigned permissions. + # Corresponds to the JSON property `defaultUserRole` + # @return [Boolean] + attr_accessor :default_user_role + alias_method :default_user_role?, :default_user_role + + # ID of this user role. This is a read-only, auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#userRole". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this user role. This is a required field. Must be less than 256 + # characters long. If this user role is under a subaccount, the name must be + # unique among sites of the same subaccount. Otherwise, this user role is a top- + # level user role, and the name must be unique among top-level user roles of the + # same account. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # ID of the user role that this user role is based on or copied from. This is a + # required field. + # Corresponds to the JSON property `parentUserRoleId` + # @return [Fixnum] + attr_accessor :parent_user_role_id + + # List of permissions associated with this user role. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + # Subaccount ID of this user role. This is a read-only field that can be left + # blank. + # Corresponds to the JSON property `subaccountId` + # @return [Fixnum] + attr_accessor :subaccount_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @default_user_role = args[:default_user_role] if args.key?(:default_user_role) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @parent_user_role_id = args[:parent_user_role_id] if args.key?(:parent_user_role_id) + @permissions = args[:permissions] if args.key?(:permissions) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + end + end + + # Contains properties of a user role permission. + class UserRolePermission + include Google::Apis::Core::Hashable + + # Levels of availability for a user role permission. + # Corresponds to the JSON property `availability` + # @return [String] + attr_accessor :availability + + # ID of this user role permission. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#userRolePermission". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this user role permission. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # ID of the permission group that this user role permission belongs to. + # Corresponds to the JSON property `permissionGroupId` + # @return [Fixnum] + attr_accessor :permission_group_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @availability = args[:availability] if args.key?(:availability) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @permission_group_id = args[:permission_group_id] if args.key?(:permission_group_id) + end + end + + # Represents a grouping of related user role permissions. + class UserRolePermissionGroup + include Google::Apis::Core::Hashable + + # ID of this user role permission. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#userRolePermissionGroup". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of this user role permission group. + # 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) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # User Role Permission Group List Response + class UserRolePermissionGroupsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#userRolePermissionGroupsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # User role permission group collection. + # Corresponds to the JSON property `userRolePermissionGroups` + # @return [Array] + attr_accessor :user_role_permission_groups + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @user_role_permission_groups = args[:user_role_permission_groups] if args.key?(:user_role_permission_groups) + end + end + + # User Role Permission List Response + class UserRolePermissionsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#userRolePermissionsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # User role permission collection. + # Corresponds to the JSON property `userRolePermissions` + # @return [Array] + attr_accessor :user_role_permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @user_role_permissions = args[:user_role_permissions] if args.key?(:user_role_permissions) + end + end + + # User Role List Response + class UserRolesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#userRolesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Pagination token to be used for the next list operation. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # User role collection. + # Corresponds to the JSON property `userRoles` + # @return [Array] + attr_accessor :user_roles + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @user_roles = args[:user_roles] if args.key?(:user_roles) + end + end + + # Contains information about supported video formats. + class VideoFormat + include Google::Apis::Core::Hashable + + # File type of the video format. + # Corresponds to the JSON property `fileType` + # @return [String] + attr_accessor :file_type + + # ID of the video format. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#videoFormat". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Represents the dimensions of ads, placements, creatives, or creative assets. + # Corresponds to the JSON property `resolution` + # @return [Google::Apis::DfareportingV3_2::Size] + attr_accessor :resolution + + # The target bit rate of this video format. + # Corresponds to the JSON property `targetBitRate` + # @return [Fixnum] + attr_accessor :target_bit_rate + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file_type = args[:file_type] if args.key?(:file_type) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @resolution = args[:resolution] if args.key?(:resolution) + @target_bit_rate = args[:target_bit_rate] if args.key?(:target_bit_rate) + end + end + + # Video Format List Response + class VideoFormatsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#videoFormatsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Video format collection. + # Corresponds to the JSON property `videoFormats` + # @return [Array] + attr_accessor :video_formats + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @video_formats = args[:video_formats] if args.key?(:video_formats) + end + end + + # Video Offset + class VideoOffset + include Google::Apis::Core::Hashable + + # Duration, as a percentage of video duration. Do not set when offsetSeconds is + # set. Acceptable values are 0 to 100, inclusive. + # Corresponds to the JSON property `offsetPercentage` + # @return [Fixnum] + attr_accessor :offset_percentage + + # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable + # values are 0 to 86399, inclusive. + # Corresponds to the JSON property `offsetSeconds` + # @return [Fixnum] + attr_accessor :offset_seconds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @offset_percentage = args[:offset_percentage] if args.key?(:offset_percentage) + @offset_seconds = args[:offset_seconds] if args.key?(:offset_seconds) + end + end + + # Video Settings + class VideoSettings + include Google::Apis::Core::Hashable + + # Companion Settings + # Corresponds to the JSON property `companionSettings` + # @return [Google::Apis::DfareportingV3_2::CompanionSetting] + attr_accessor :companion_settings + + # Identifies what kind of resource this is. Value: the fixed string " + # dfareporting#videoSettings". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Orientation of a video placement. If this value is set, placement will return + # assets matching the specified orientation. + # Corresponds to the JSON property `orientation` + # @return [String] + attr_accessor :orientation + + # Skippable Settings + # Corresponds to the JSON property `skippableSettings` + # @return [Google::Apis::DfareportingV3_2::SkippableSetting] + attr_accessor :skippable_settings + + # Transcode Settings + # Corresponds to the JSON property `transcodeSettings` + # @return [Google::Apis::DfareportingV3_2::TranscodeSetting] + attr_accessor :transcode_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @companion_settings = args[:companion_settings] if args.key?(:companion_settings) + @kind = args[:kind] if args.key?(:kind) + @orientation = args[:orientation] if args.key?(:orientation) + @skippable_settings = args[:skippable_settings] if args.key?(:skippable_settings) + @transcode_settings = args[:transcode_settings] if args.key?(:transcode_settings) + end + end + end + end +end diff --git a/generated/google/apis/dfareporting_v3_2/representations.rb b/generated/google/apis/dfareporting_v3_2/representations.rb new file mode 100644 index 000000000..6e4a93a28 --- /dev/null +++ b/generated/google/apis/dfareporting_v3_2/representations.rb @@ -0,0 +1,4397 @@ +# 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 DfareportingV3_2 + + class Account + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountActiveAdSummary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountPermission + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountPermissionGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountPermissionGroupsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountPermissionsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountUserProfile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountUserProfilesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Activities + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Ad + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdBlockingConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdSlot + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Advertiser + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdvertiserGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdvertiserGroupsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdvertiserLandingPagesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdvertisersListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AudienceSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AudienceSegmentGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Browser + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BrowsersListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Campaign + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CampaignCreativeAssociation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CampaignCreativeAssociationsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CampaignsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ChangeLog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ChangeLogsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CitiesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class City + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClickTag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClickThroughUrl + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClickThroughUrlSuffixProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CompanionClickThroughOverride + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CompanionSetting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CompatibleFields + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConnectionType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConnectionTypesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContentCategoriesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContentCategory + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Conversion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConversionError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConversionStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConversionsBatchInsertRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConversionsBatchInsertResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConversionsBatchUpdateRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConversionsBatchUpdateResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CountriesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Country + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Creative + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeAsset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeAssetId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeAssetMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeAssetSelection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeAssignment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeClickThroughUrl + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeCustomEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeFieldAssignment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeFieldValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeFieldValuesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeFieldsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeGroupAssignment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeGroupsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeOptimizationConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeRotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CrossDimensionReachReportCompatibleFields + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CustomFloodlightVariable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CustomRichMediaEvents + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DateRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DayPartTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeepLink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DefaultClickThroughEventTagProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeliverySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DfpSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Dimension + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DimensionFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DimensionValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DimensionValueList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DimensionValueRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DirectorySite + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DirectorySiteContact + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DirectorySiteContactAssignment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DirectorySiteContactsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DirectorySiteSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DirectorySitesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DynamicTargetingKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DynamicTargetingKeysListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EncryptionInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EventTag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EventTagOverride + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EventTagsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class File + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Urls + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class FileList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Flight + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightActivitiesGenerateTagResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightActivitiesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightActivity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightActivityDynamicTag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightActivityGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightActivityGroupsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightActivityPublisherDynamicTag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightConfigurationsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightReportCompatibleFields + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FrequencyCap + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FsCommand + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GeoTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InventoryItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InventoryItemsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class KeyValueTargetingExpression + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LandingPage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Language + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LanguageTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LanguagesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LastModifiedInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListPopulationClause + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListPopulationRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListPopulationTerm + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListTargetingExpression + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LookbackConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Metric + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Metro + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetrosListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MobileApp + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MobileAppsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MobileCarrier + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MobileCarriersListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ObjectFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OffsetPosition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OmnitureSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperatingSystem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperatingSystemVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperatingSystemVersionsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperatingSystemsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OptimizationActivity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Order + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderContact + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderDocument + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderDocumentsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PathToConversionReportCompatibleFields + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Placement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlacementAssignment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlacementGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlacementGroupsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlacementStrategiesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlacementStrategy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlacementTag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlacementsGenerateTagsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlacementsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlatformType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlatformTypesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PopupWindowProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PostalCode + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PostalCodesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Pricing + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PricingSchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PricingSchedulePricingPeriod + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Project + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProjectsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReachReportCompatibleFields + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Recipient + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Region + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegionsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RemarketingList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RemarketingListShare + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RemarketingListsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Report + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Criteria + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CrossDimensionReachCriteria + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Delivery + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloodlightCriteria + class Representation < Google::Apis::Core::JsonRepresentation; end + + class ReportProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class PathToConversionCriteria + class Representation < Google::Apis::Core::JsonRepresentation; end + + class ReportProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReachCriteria + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Schedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportCompatibleFields + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportsConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RichMediaExitOverride + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Rule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Site + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SiteContact + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SiteSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SitesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Size + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SizesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SkippableSetting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SortedDimension + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Subaccount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SubaccountsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TagData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TagSetting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TagSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TargetWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TargetableRemarketingList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TargetableRemarketingListsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TargetingTemplate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TargetingTemplatesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TechnologyTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ThirdPartyAuthenticationToken + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ThirdPartyTrackingUrl + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TranscodeSetting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UniversalAdId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserDefinedVariableConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserProfile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserProfileList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserRole + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserRolePermission + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserRolePermissionGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserRolePermissionGroupsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserRolePermissionsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserRolesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VideoFormat + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VideoFormatsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VideoOffset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VideoSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Account + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_permission_ids, as: 'accountPermissionIds' + property :account_profile, as: 'accountProfile' + property :active, as: 'active' + property :active_ads_limit_tier, as: 'activeAdsLimitTier' + property :active_view_opt_out, as: 'activeViewOptOut' + collection :available_permission_ids, as: 'availablePermissionIds' + property :country_id, :numeric_string => true, as: 'countryId' + property :currency_id, :numeric_string => true, as: 'currencyId' + property :default_creative_size_id, :numeric_string => true, as: 'defaultCreativeSizeId' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :locale, as: 'locale' + property :maximum_image_size, :numeric_string => true, as: 'maximumImageSize' + property :name, as: 'name' + property :nielsen_ocr_enabled, as: 'nielsenOcrEnabled' + property :reports_configuration, as: 'reportsConfiguration', class: Google::Apis::DfareportingV3_2::ReportsConfiguration, decorator: Google::Apis::DfareportingV3_2::ReportsConfiguration::Representation + + property :share_reports_with_twitter, as: 'shareReportsWithTwitter' + property :teaser_size_limit, :numeric_string => true, as: 'teaserSizeLimit' + end + end + + class AccountActiveAdSummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :active_ads, :numeric_string => true, as: 'activeAds' + property :active_ads_limit_tier, as: 'activeAdsLimitTier' + property :available_ads, :numeric_string => true, as: 'availableAds' + property :kind, as: 'kind' + end + end + + class AccountPermission + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_profiles, as: 'accountProfiles' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :level, as: 'level' + property :name, as: 'name' + property :permission_group_id, :numeric_string => true, as: 'permissionGroupId' + end + end + + class AccountPermissionGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class AccountPermissionGroupsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_permission_groups, as: 'accountPermissionGroups', class: Google::Apis::DfareportingV3_2::AccountPermissionGroup, decorator: Google::Apis::DfareportingV3_2::AccountPermissionGroup::Representation + + property :kind, as: 'kind' + end + end + + class AccountPermissionsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_permissions, as: 'accountPermissions', class: Google::Apis::DfareportingV3_2::AccountPermission, decorator: Google::Apis::DfareportingV3_2::AccountPermission::Representation + + property :kind, as: 'kind' + end + end + + class AccountUserProfile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :active, as: 'active' + property :advertiser_filter, as: 'advertiserFilter', class: Google::Apis::DfareportingV3_2::ObjectFilter, decorator: Google::Apis::DfareportingV3_2::ObjectFilter::Representation + + property :campaign_filter, as: 'campaignFilter', class: Google::Apis::DfareportingV3_2::ObjectFilter, decorator: Google::Apis::DfareportingV3_2::ObjectFilter::Representation + + property :comments, as: 'comments' + property :email, as: 'email' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :locale, as: 'locale' + property :name, as: 'name' + property :site_filter, as: 'siteFilter', class: Google::Apis::DfareportingV3_2::ObjectFilter, decorator: Google::Apis::DfareportingV3_2::ObjectFilter::Representation + + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :trafficker_type, as: 'traffickerType' + property :user_access_type, as: 'userAccessType' + property :user_role_filter, as: 'userRoleFilter', class: Google::Apis::DfareportingV3_2::ObjectFilter, decorator: Google::Apis::DfareportingV3_2::ObjectFilter::Representation + + property :user_role_id, :numeric_string => true, as: 'userRoleId' + end + end + + class AccountUserProfilesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_user_profiles, as: 'accountUserProfiles', class: Google::Apis::DfareportingV3_2::AccountUserProfile, decorator: Google::Apis::DfareportingV3_2::AccountUserProfile::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class AccountsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :accounts, as: 'accounts', class: Google::Apis::DfareportingV3_2::Account, decorator: Google::Apis::DfareportingV3_2::Account::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class Activities + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :filters, as: 'filters', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :kind, as: 'kind' + collection :metric_names, as: 'metricNames' + end + end + + class Ad + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :active, as: 'active' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :archived, as: 'archived' + property :audience_segment_id, :numeric_string => true, as: 'audienceSegmentId' + property :campaign_id, :numeric_string => true, as: 'campaignId' + property :campaign_id_dimension_value, as: 'campaignIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :click_through_url, as: 'clickThroughUrl', class: Google::Apis::DfareportingV3_2::ClickThroughUrl, decorator: Google::Apis::DfareportingV3_2::ClickThroughUrl::Representation + + property :click_through_url_suffix_properties, as: 'clickThroughUrlSuffixProperties', class: Google::Apis::DfareportingV3_2::ClickThroughUrlSuffixProperties, decorator: Google::Apis::DfareportingV3_2::ClickThroughUrlSuffixProperties::Representation + + property :comments, as: 'comments' + property :compatibility, as: 'compatibility' + property :create_info, as: 'createInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + collection :creative_group_assignments, as: 'creativeGroupAssignments', class: Google::Apis::DfareportingV3_2::CreativeGroupAssignment, decorator: Google::Apis::DfareportingV3_2::CreativeGroupAssignment::Representation + + property :creative_rotation, as: 'creativeRotation', class: Google::Apis::DfareportingV3_2::CreativeRotation, decorator: Google::Apis::DfareportingV3_2::CreativeRotation::Representation + + property :day_part_targeting, as: 'dayPartTargeting', class: Google::Apis::DfareportingV3_2::DayPartTargeting, decorator: Google::Apis::DfareportingV3_2::DayPartTargeting::Representation + + property :default_click_through_event_tag_properties, as: 'defaultClickThroughEventTagProperties', class: Google::Apis::DfareportingV3_2::DefaultClickThroughEventTagProperties, decorator: Google::Apis::DfareportingV3_2::DefaultClickThroughEventTagProperties::Representation + + property :delivery_schedule, as: 'deliverySchedule', class: Google::Apis::DfareportingV3_2::DeliverySchedule, decorator: Google::Apis::DfareportingV3_2::DeliverySchedule::Representation + + property :dynamic_click_tracker, as: 'dynamicClickTracker' + property :end_time, as: 'endTime', type: DateTime + + collection :event_tag_overrides, as: 'eventTagOverrides', class: Google::Apis::DfareportingV3_2::EventTagOverride, decorator: Google::Apis::DfareportingV3_2::EventTagOverride::Representation + + property :geo_targeting, as: 'geoTargeting', class: Google::Apis::DfareportingV3_2::GeoTargeting, decorator: Google::Apis::DfareportingV3_2::GeoTargeting::Representation + + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :key_value_targeting_expression, as: 'keyValueTargetingExpression', class: Google::Apis::DfareportingV3_2::KeyValueTargetingExpression, decorator: Google::Apis::DfareportingV3_2::KeyValueTargetingExpression::Representation + + property :kind, as: 'kind' + property :language_targeting, as: 'languageTargeting', class: Google::Apis::DfareportingV3_2::LanguageTargeting, decorator: Google::Apis::DfareportingV3_2::LanguageTargeting::Representation + + property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :name, as: 'name' + collection :placement_assignments, as: 'placementAssignments', class: Google::Apis::DfareportingV3_2::PlacementAssignment, decorator: Google::Apis::DfareportingV3_2::PlacementAssignment::Representation + + property :remarketing_list_expression, as: 'remarketingListExpression', class: Google::Apis::DfareportingV3_2::ListTargetingExpression, decorator: Google::Apis::DfareportingV3_2::ListTargetingExpression::Representation + + property :size, as: 'size', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :ssl_compliant, as: 'sslCompliant' + property :ssl_required, as: 'sslRequired' + property :start_time, as: 'startTime', type: DateTime + + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :targeting_template_id, :numeric_string => true, as: 'targetingTemplateId' + property :technology_targeting, as: 'technologyTargeting', class: Google::Apis::DfareportingV3_2::TechnologyTargeting, decorator: Google::Apis::DfareportingV3_2::TechnologyTargeting::Representation + + property :type, as: 'type' + end + end + + class AdBlockingConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :click_through_url, as: 'clickThroughUrl' + property :creative_bundle_id, :numeric_string => true, as: 'creativeBundleId' + property :enabled, as: 'enabled' + property :override_click_through_url, as: 'overrideClickThroughUrl' + end + end + + class AdSlot + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :comment, as: 'comment' + property :compatibility, as: 'compatibility' + property :height, :numeric_string => true, as: 'height' + property :linked_placement_id, :numeric_string => true, as: 'linkedPlacementId' + property :name, as: 'name' + property :payment_source_type, as: 'paymentSourceType' + property :primary, as: 'primary' + property :width, :numeric_string => true, as: 'width' + end + end + + class AdsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ads, as: 'ads', class: Google::Apis::DfareportingV3_2::Ad, decorator: Google::Apis::DfareportingV3_2::Ad::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class Advertiser + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_group_id, :numeric_string => true, as: 'advertiserGroupId' + property :click_through_url_suffix, as: 'clickThroughUrlSuffix' + property :default_click_through_event_tag_id, :numeric_string => true, as: 'defaultClickThroughEventTagId' + property :default_email, as: 'defaultEmail' + property :floodlight_configuration_id, :numeric_string => true, as: 'floodlightConfigurationId' + property :floodlight_configuration_id_dimension_value, as: 'floodlightConfigurationIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :kind, as: 'kind' + property :name, as: 'name' + property :original_floodlight_configuration_id, :numeric_string => true, as: 'originalFloodlightConfigurationId' + property :status, as: 'status' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :suspended, as: 'suspended' + end + end + + class AdvertiserGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class AdvertiserGroupsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :advertiser_groups, as: 'advertiserGroups', class: Google::Apis::DfareportingV3_2::AdvertiserGroup, decorator: Google::Apis::DfareportingV3_2::AdvertiserGroup::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class AdvertiserLandingPagesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :landing_pages, as: 'landingPages', class: Google::Apis::DfareportingV3_2::LandingPage, decorator: Google::Apis::DfareportingV3_2::LandingPage::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class AdvertisersListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :advertisers, as: 'advertisers', class: Google::Apis::DfareportingV3_2::Advertiser, decorator: Google::Apis::DfareportingV3_2::Advertiser::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class AudienceSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allocation, as: 'allocation' + property :id, :numeric_string => true, as: 'id' + property :name, as: 'name' + end + end + + class AudienceSegmentGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audience_segments, as: 'audienceSegments', class: Google::Apis::DfareportingV3_2::AudienceSegment, decorator: Google::Apis::DfareportingV3_2::AudienceSegment::Representation + + property :id, :numeric_string => true, as: 'id' + property :name, as: 'name' + end + end + + class Browser + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :browser_version_id, :numeric_string => true, as: 'browserVersionId' + property :dart_id, :numeric_string => true, as: 'dartId' + property :kind, as: 'kind' + property :major_version, as: 'majorVersion' + property :minor_version, as: 'minorVersion' + property :name, as: 'name' + end + end + + class BrowsersListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :browsers, as: 'browsers', class: Google::Apis::DfareportingV3_2::Browser, decorator: Google::Apis::DfareportingV3_2::Browser::Representation + + property :kind, as: 'kind' + end + end + + class Campaign + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :ad_blocking_configuration, as: 'adBlockingConfiguration', class: Google::Apis::DfareportingV3_2::AdBlockingConfiguration, decorator: Google::Apis::DfareportingV3_2::AdBlockingConfiguration::Representation + + collection :additional_creative_optimization_configurations, as: 'additionalCreativeOptimizationConfigurations', class: Google::Apis::DfareportingV3_2::CreativeOptimizationConfiguration, decorator: Google::Apis::DfareportingV3_2::CreativeOptimizationConfiguration::Representation + + property :advertiser_group_id, :numeric_string => true, as: 'advertiserGroupId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :archived, as: 'archived' + collection :audience_segment_groups, as: 'audienceSegmentGroups', class: Google::Apis::DfareportingV3_2::AudienceSegmentGroup, decorator: Google::Apis::DfareportingV3_2::AudienceSegmentGroup::Representation + + property :billing_invoice_code, as: 'billingInvoiceCode' + property :click_through_url_suffix_properties, as: 'clickThroughUrlSuffixProperties', class: Google::Apis::DfareportingV3_2::ClickThroughUrlSuffixProperties, decorator: Google::Apis::DfareportingV3_2::ClickThroughUrlSuffixProperties::Representation + + property :comment, as: 'comment' + property :create_info, as: 'createInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + collection :creative_group_ids, as: 'creativeGroupIds' + property :creative_optimization_configuration, as: 'creativeOptimizationConfiguration', class: Google::Apis::DfareportingV3_2::CreativeOptimizationConfiguration, decorator: Google::Apis::DfareportingV3_2::CreativeOptimizationConfiguration::Representation + + property :default_click_through_event_tag_properties, as: 'defaultClickThroughEventTagProperties', class: Google::Apis::DfareportingV3_2::DefaultClickThroughEventTagProperties, decorator: Google::Apis::DfareportingV3_2::DefaultClickThroughEventTagProperties::Representation + + property :default_landing_page_id, :numeric_string => true, as: 'defaultLandingPageId' + property :end_date, as: 'endDate', type: Date + + collection :event_tag_overrides, as: 'eventTagOverrides', class: Google::Apis::DfareportingV3_2::EventTagOverride, decorator: Google::Apis::DfareportingV3_2::EventTagOverride::Representation + + property :external_id, as: 'externalId' + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :kind, as: 'kind' + property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :lookback_configuration, as: 'lookbackConfiguration', class: Google::Apis::DfareportingV3_2::LookbackConfiguration, decorator: Google::Apis::DfareportingV3_2::LookbackConfiguration::Representation + + property :name, as: 'name' + property :nielsen_ocr_enabled, as: 'nielsenOcrEnabled' + property :start_date, as: 'startDate', type: Date + + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + collection :trafficker_emails, as: 'traffickerEmails' + end + end + + class CampaignCreativeAssociation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creative_id, :numeric_string => true, as: 'creativeId' + property :kind, as: 'kind' + end + end + + class CampaignCreativeAssociationsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :campaign_creative_associations, as: 'campaignCreativeAssociations', class: Google::Apis::DfareportingV3_2::CampaignCreativeAssociation, decorator: Google::Apis::DfareportingV3_2::CampaignCreativeAssociation::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class CampaignsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :campaigns, as: 'campaigns', class: Google::Apis::DfareportingV3_2::Campaign, decorator: Google::Apis::DfareportingV3_2::Campaign::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class ChangeLog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :action, as: 'action' + property :change_time, as: 'changeTime', type: DateTime + + property :field_name, as: 'fieldName' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :new_value, as: 'newValue' + property :object_id_prop, :numeric_string => true, as: 'objectId' + property :object_type, as: 'objectType' + property :old_value, as: 'oldValue' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :transaction_id, :numeric_string => true, as: 'transactionId' + property :user_profile_id, :numeric_string => true, as: 'userProfileId' + property :user_profile_name, as: 'userProfileName' + end + end + + class ChangeLogsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :change_logs, as: 'changeLogs', class: Google::Apis::DfareportingV3_2::ChangeLog, decorator: Google::Apis::DfareportingV3_2::ChangeLog::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class CitiesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cities, as: 'cities', class: Google::Apis::DfareportingV3_2::City, decorator: Google::Apis::DfareportingV3_2::City::Representation + + property :kind, as: 'kind' + end + end + + class City + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country_code, as: 'countryCode' + property :country_dart_id, :numeric_string => true, as: 'countryDartId' + property :dart_id, :numeric_string => true, as: 'dartId' + property :kind, as: 'kind' + property :metro_code, as: 'metroCode' + property :metro_dma_id, :numeric_string => true, as: 'metroDmaId' + property :name, as: 'name' + property :region_code, as: 'regionCode' + property :region_dart_id, :numeric_string => true, as: 'regionDartId' + end + end + + class ClickTag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :click_through_url, as: 'clickThroughUrl', class: Google::Apis::DfareportingV3_2::CreativeClickThroughUrl, decorator: Google::Apis::DfareportingV3_2::CreativeClickThroughUrl::Representation + + property :event_name, as: 'eventName' + property :name, as: 'name' + end + end + + class ClickThroughUrl + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :computed_click_through_url, as: 'computedClickThroughUrl' + property :custom_click_through_url, as: 'customClickThroughUrl' + property :default_landing_page, as: 'defaultLandingPage' + property :landing_page_id, :numeric_string => true, as: 'landingPageId' + end + end + + class ClickThroughUrlSuffixProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :click_through_url_suffix, as: 'clickThroughUrlSuffix' + property :override_inherited_suffix, as: 'overrideInheritedSuffix' + end + end + + class CompanionClickThroughOverride + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :click_through_url, as: 'clickThroughUrl', class: Google::Apis::DfareportingV3_2::ClickThroughUrl, decorator: Google::Apis::DfareportingV3_2::ClickThroughUrl::Representation + + property :creative_id, :numeric_string => true, as: 'creativeId' + end + end + + class CompanionSetting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :companions_disabled, as: 'companionsDisabled' + collection :enabled_sizes, as: 'enabledSizes', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :image_only, as: 'imageOnly' + property :kind, as: 'kind' + end + end + + class CompatibleFields + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cross_dimension_reach_report_compatible_fields, as: 'crossDimensionReachReportCompatibleFields', class: Google::Apis::DfareportingV3_2::CrossDimensionReachReportCompatibleFields, decorator: Google::Apis::DfareportingV3_2::CrossDimensionReachReportCompatibleFields::Representation + + property :floodlight_report_compatible_fields, as: 'floodlightReportCompatibleFields', class: Google::Apis::DfareportingV3_2::FloodlightReportCompatibleFields, decorator: Google::Apis::DfareportingV3_2::FloodlightReportCompatibleFields::Representation + + property :kind, as: 'kind' + property :path_to_conversion_report_compatible_fields, as: 'pathToConversionReportCompatibleFields', class: Google::Apis::DfareportingV3_2::PathToConversionReportCompatibleFields, decorator: Google::Apis::DfareportingV3_2::PathToConversionReportCompatibleFields::Representation + + property :reach_report_compatible_fields, as: 'reachReportCompatibleFields', class: Google::Apis::DfareportingV3_2::ReachReportCompatibleFields, decorator: Google::Apis::DfareportingV3_2::ReachReportCompatibleFields::Representation + + property :report_compatible_fields, as: 'reportCompatibleFields', class: Google::Apis::DfareportingV3_2::ReportCompatibleFields, decorator: Google::Apis::DfareportingV3_2::ReportCompatibleFields::Representation + + end + end + + class ConnectionType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class ConnectionTypesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :connection_types, as: 'connectionTypes', class: Google::Apis::DfareportingV3_2::ConnectionType, decorator: Google::Apis::DfareportingV3_2::ConnectionType::Representation + + property :kind, as: 'kind' + end + end + + class ContentCategoriesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :content_categories, as: 'contentCategories', class: Google::Apis::DfareportingV3_2::ContentCategory, decorator: Google::Apis::DfareportingV3_2::ContentCategory::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class ContentCategory + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class Conversion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :child_directed_treatment, as: 'childDirectedTreatment' + collection :custom_variables, as: 'customVariables', class: Google::Apis::DfareportingV3_2::CustomFloodlightVariable, decorator: Google::Apis::DfareportingV3_2::CustomFloodlightVariable::Representation + + property :encrypted_user_id, as: 'encryptedUserId' + collection :encrypted_user_id_candidates, as: 'encryptedUserIdCandidates' + property :floodlight_activity_id, :numeric_string => true, as: 'floodlightActivityId' + property :floodlight_configuration_id, :numeric_string => true, as: 'floodlightConfigurationId' + property :gclid, as: 'gclid' + property :kind, as: 'kind' + property :limit_ad_tracking, as: 'limitAdTracking' + property :mobile_device_id, as: 'mobileDeviceId' + property :non_personalized_ad, as: 'nonPersonalizedAd' + property :ordinal, as: 'ordinal' + property :quantity, :numeric_string => true, as: 'quantity' + property :timestamp_micros, :numeric_string => true, as: 'timestampMicros' + property :treatment_for_underage, as: 'treatmentForUnderage' + property :value, as: 'value' + end + end + + class ConversionError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :kind, as: 'kind' + property :message, as: 'message' + end + end + + class ConversionStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :conversion, as: 'conversion', class: Google::Apis::DfareportingV3_2::Conversion, decorator: Google::Apis::DfareportingV3_2::Conversion::Representation + + collection :errors, as: 'errors', class: Google::Apis::DfareportingV3_2::ConversionError, decorator: Google::Apis::DfareportingV3_2::ConversionError::Representation + + property :kind, as: 'kind' + end + end + + class ConversionsBatchInsertRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :conversions, as: 'conversions', class: Google::Apis::DfareportingV3_2::Conversion, decorator: Google::Apis::DfareportingV3_2::Conversion::Representation + + property :encryption_info, as: 'encryptionInfo', class: Google::Apis::DfareportingV3_2::EncryptionInfo, decorator: Google::Apis::DfareportingV3_2::EncryptionInfo::Representation + + property :kind, as: 'kind' + end + end + + class ConversionsBatchInsertResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :has_failures, as: 'hasFailures' + property :kind, as: 'kind' + collection :status, as: 'status', class: Google::Apis::DfareportingV3_2::ConversionStatus, decorator: Google::Apis::DfareportingV3_2::ConversionStatus::Representation + + end + end + + class ConversionsBatchUpdateRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :conversions, as: 'conversions', class: Google::Apis::DfareportingV3_2::Conversion, decorator: Google::Apis::DfareportingV3_2::Conversion::Representation + + property :encryption_info, as: 'encryptionInfo', class: Google::Apis::DfareportingV3_2::EncryptionInfo, decorator: Google::Apis::DfareportingV3_2::EncryptionInfo::Representation + + property :kind, as: 'kind' + end + end + + class ConversionsBatchUpdateResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :has_failures, as: 'hasFailures' + property :kind, as: 'kind' + collection :status, as: 'status', class: Google::Apis::DfareportingV3_2::ConversionStatus, decorator: Google::Apis::DfareportingV3_2::ConversionStatus::Representation + + end + end + + class CountriesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :countries, as: 'countries', class: Google::Apis::DfareportingV3_2::Country, decorator: Google::Apis::DfareportingV3_2::Country::Representation + + property :kind, as: 'kind' + end + end + + class Country + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country_code, as: 'countryCode' + property :dart_id, :numeric_string => true, as: 'dartId' + property :kind, as: 'kind' + property :name, as: 'name' + property :ssl_enabled, as: 'sslEnabled' + end + end + + class Creative + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :active, as: 'active' + property :ad_parameters, as: 'adParameters' + collection :ad_tag_keys, as: 'adTagKeys' + collection :additional_sizes, as: 'additionalSizes', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :allow_script_access, as: 'allowScriptAccess' + property :archived, as: 'archived' + property :artwork_type, as: 'artworkType' + property :authoring_source, as: 'authoringSource' + property :authoring_tool, as: 'authoringTool' + property :auto_advance_images, as: 'autoAdvanceImages' + property :background_color, as: 'backgroundColor' + property :backup_image_click_through_url, as: 'backupImageClickThroughUrl', class: Google::Apis::DfareportingV3_2::CreativeClickThroughUrl, decorator: Google::Apis::DfareportingV3_2::CreativeClickThroughUrl::Representation + + collection :backup_image_features, as: 'backupImageFeatures' + property :backup_image_reporting_label, as: 'backupImageReportingLabel' + property :backup_image_target_window, as: 'backupImageTargetWindow', class: Google::Apis::DfareportingV3_2::TargetWindow, decorator: Google::Apis::DfareportingV3_2::TargetWindow::Representation + + collection :click_tags, as: 'clickTags', class: Google::Apis::DfareportingV3_2::ClickTag, decorator: Google::Apis::DfareportingV3_2::ClickTag::Representation + + property :commercial_id, as: 'commercialId' + collection :companion_creatives, as: 'companionCreatives' + collection :compatibility, as: 'compatibility' + property :convert_flash_to_html5, as: 'convertFlashToHtml5' + collection :counter_custom_events, as: 'counterCustomEvents', class: Google::Apis::DfareportingV3_2::CreativeCustomEvent, decorator: Google::Apis::DfareportingV3_2::CreativeCustomEvent::Representation + + property :creative_asset_selection, as: 'creativeAssetSelection', class: Google::Apis::DfareportingV3_2::CreativeAssetSelection, decorator: Google::Apis::DfareportingV3_2::CreativeAssetSelection::Representation + + collection :creative_assets, as: 'creativeAssets', class: Google::Apis::DfareportingV3_2::CreativeAsset, decorator: Google::Apis::DfareportingV3_2::CreativeAsset::Representation + + collection :creative_field_assignments, as: 'creativeFieldAssignments', class: Google::Apis::DfareportingV3_2::CreativeFieldAssignment, decorator: Google::Apis::DfareportingV3_2::CreativeFieldAssignment::Representation + + collection :custom_key_values, as: 'customKeyValues' + property :dynamic_asset_selection, as: 'dynamicAssetSelection' + collection :exit_custom_events, as: 'exitCustomEvents', class: Google::Apis::DfareportingV3_2::CreativeCustomEvent, decorator: Google::Apis::DfareportingV3_2::CreativeCustomEvent::Representation + + property :fs_command, as: 'fsCommand', class: Google::Apis::DfareportingV3_2::FsCommand, decorator: Google::Apis::DfareportingV3_2::FsCommand::Representation + + property :html_code, as: 'htmlCode' + property :html_code_locked, as: 'htmlCodeLocked' + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :kind, as: 'kind' + property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :latest_trafficked_creative_id, :numeric_string => true, as: 'latestTraffickedCreativeId' + property :media_description, as: 'mediaDescription' + property :media_duration, as: 'mediaDuration' + property :name, as: 'name' + property :override_css, as: 'overrideCss' + property :polite_load_asset_id, :numeric_string => true, as: 'politeLoadAssetId' + property :progress_offset, as: 'progressOffset', class: Google::Apis::DfareportingV3_2::VideoOffset, decorator: Google::Apis::DfareportingV3_2::VideoOffset::Representation + + property :redirect_url, as: 'redirectUrl' + property :rendering_id, :numeric_string => true, as: 'renderingId' + property :rendering_id_dimension_value, as: 'renderingIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :required_flash_plugin_version, as: 'requiredFlashPluginVersion' + property :required_flash_version, as: 'requiredFlashVersion' + property :size, as: 'size', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :skip_offset, as: 'skipOffset', class: Google::Apis::DfareportingV3_2::VideoOffset, decorator: Google::Apis::DfareportingV3_2::VideoOffset::Representation + + property :skippable, as: 'skippable' + property :ssl_compliant, as: 'sslCompliant' + property :ssl_override, as: 'sslOverride' + property :studio_advertiser_id, :numeric_string => true, as: 'studioAdvertiserId' + property :studio_creative_id, :numeric_string => true, as: 'studioCreativeId' + property :studio_trafficked_creative_id, :numeric_string => true, as: 'studioTraffickedCreativeId' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :third_party_backup_image_impressions_url, as: 'thirdPartyBackupImageImpressionsUrl' + property :third_party_rich_media_impressions_url, as: 'thirdPartyRichMediaImpressionsUrl' + collection :third_party_urls, as: 'thirdPartyUrls', class: Google::Apis::DfareportingV3_2::ThirdPartyTrackingUrl, decorator: Google::Apis::DfareportingV3_2::ThirdPartyTrackingUrl::Representation + + collection :timer_custom_events, as: 'timerCustomEvents', class: Google::Apis::DfareportingV3_2::CreativeCustomEvent, decorator: Google::Apis::DfareportingV3_2::CreativeCustomEvent::Representation + + property :total_file_size, :numeric_string => true, as: 'totalFileSize' + property :type, as: 'type' + property :universal_ad_id, as: 'universalAdId', class: Google::Apis::DfareportingV3_2::UniversalAdId, decorator: Google::Apis::DfareportingV3_2::UniversalAdId::Representation + + property :version, as: 'version' + end + end + + class CreativeAsset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_script3, as: 'actionScript3' + property :active, as: 'active' + collection :additional_sizes, as: 'additionalSizes', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :alignment, as: 'alignment' + property :artwork_type, as: 'artworkType' + property :asset_identifier, as: 'assetIdentifier', class: Google::Apis::DfareportingV3_2::CreativeAssetId, decorator: Google::Apis::DfareportingV3_2::CreativeAssetId::Representation + + property :backup_image_exit, as: 'backupImageExit', class: Google::Apis::DfareportingV3_2::CreativeCustomEvent, decorator: Google::Apis::DfareportingV3_2::CreativeCustomEvent::Representation + + property :bit_rate, as: 'bitRate' + property :child_asset_type, as: 'childAssetType' + property :collapsed_size, as: 'collapsedSize', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + collection :companion_creative_ids, as: 'companionCreativeIds' + property :custom_start_time_value, as: 'customStartTimeValue' + collection :detected_features, as: 'detectedFeatures' + property :display_type, as: 'displayType' + property :duration, as: 'duration' + property :duration_type, as: 'durationType' + property :expanded_dimension, as: 'expandedDimension', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :file_size, :numeric_string => true, as: 'fileSize' + property :flash_version, as: 'flashVersion' + property :hide_flash_objects, as: 'hideFlashObjects' + property :hide_selection_boxes, as: 'hideSelectionBoxes' + property :horizontally_locked, as: 'horizontallyLocked' + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :media_duration, as: 'mediaDuration' + property :mime_type, as: 'mimeType' + property :offset, as: 'offset', class: Google::Apis::DfareportingV3_2::OffsetPosition, decorator: Google::Apis::DfareportingV3_2::OffsetPosition::Representation + + property :orientation, as: 'orientation' + property :original_backup, as: 'originalBackup' + property :position, as: 'position', class: Google::Apis::DfareportingV3_2::OffsetPosition, decorator: Google::Apis::DfareportingV3_2::OffsetPosition::Representation + + property :position_left_unit, as: 'positionLeftUnit' + property :position_top_unit, as: 'positionTopUnit' + property :progressive_serving_url, as: 'progressiveServingUrl' + property :pushdown, as: 'pushdown' + property :pushdown_duration, as: 'pushdownDuration' + property :role, as: 'role' + property :size, as: 'size', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :ssl_compliant, as: 'sslCompliant' + property :start_time_type, as: 'startTimeType' + property :streaming_serving_url, as: 'streamingServingUrl' + property :transparency, as: 'transparency' + property :vertically_locked, as: 'verticallyLocked' + property :window_mode, as: 'windowMode' + property :z_index, as: 'zIndex' + property :zip_filename, as: 'zipFilename' + property :zip_filesize, as: 'zipFilesize' + end + end + + class CreativeAssetId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :type, as: 'type' + end + end + + class CreativeAssetMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset_identifier, as: 'assetIdentifier', class: Google::Apis::DfareportingV3_2::CreativeAssetId, decorator: Google::Apis::DfareportingV3_2::CreativeAssetId::Representation + + collection :click_tags, as: 'clickTags', class: Google::Apis::DfareportingV3_2::ClickTag, decorator: Google::Apis::DfareportingV3_2::ClickTag::Representation + + collection :detected_features, as: 'detectedFeatures' + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :kind, as: 'kind' + collection :warned_validation_rules, as: 'warnedValidationRules' + end + end + + class CreativeAssetSelection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :default_asset_id, :numeric_string => true, as: 'defaultAssetId' + collection :rules, as: 'rules', class: Google::Apis::DfareportingV3_2::Rule, decorator: Google::Apis::DfareportingV3_2::Rule::Representation + + end + end + + class CreativeAssignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active, as: 'active' + property :apply_event_tags, as: 'applyEventTags' + property :click_through_url, as: 'clickThroughUrl', class: Google::Apis::DfareportingV3_2::ClickThroughUrl, decorator: Google::Apis::DfareportingV3_2::ClickThroughUrl::Representation + + collection :companion_creative_overrides, as: 'companionCreativeOverrides', class: Google::Apis::DfareportingV3_2::CompanionClickThroughOverride, decorator: Google::Apis::DfareportingV3_2::CompanionClickThroughOverride::Representation + + collection :creative_group_assignments, as: 'creativeGroupAssignments', class: Google::Apis::DfareportingV3_2::CreativeGroupAssignment, decorator: Google::Apis::DfareportingV3_2::CreativeGroupAssignment::Representation + + property :creative_id, :numeric_string => true, as: 'creativeId' + property :creative_id_dimension_value, as: 'creativeIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :end_time, as: 'endTime', type: DateTime + + collection :rich_media_exit_overrides, as: 'richMediaExitOverrides', class: Google::Apis::DfareportingV3_2::RichMediaExitOverride, decorator: Google::Apis::DfareportingV3_2::RichMediaExitOverride::Representation + + property :sequence, as: 'sequence' + property :ssl_compliant, as: 'sslCompliant' + property :start_time, as: 'startTime', type: DateTime + + property :weight, as: 'weight' + end + end + + class CreativeClickThroughUrl + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :computed_click_through_url, as: 'computedClickThroughUrl' + property :custom_click_through_url, as: 'customClickThroughUrl' + property :landing_page_id, :numeric_string => true, as: 'landingPageId' + end + end + + class CreativeCustomEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :advertiser_custom_event_id, :numeric_string => true, as: 'advertiserCustomEventId' + property :advertiser_custom_event_name, as: 'advertiserCustomEventName' + property :advertiser_custom_event_type, as: 'advertiserCustomEventType' + property :artwork_label, as: 'artworkLabel' + property :artwork_type, as: 'artworkType' + property :exit_click_through_url, as: 'exitClickThroughUrl', class: Google::Apis::DfareportingV3_2::CreativeClickThroughUrl, decorator: Google::Apis::DfareportingV3_2::CreativeClickThroughUrl::Representation + + property :id, :numeric_string => true, as: 'id' + property :popup_window_properties, as: 'popupWindowProperties', class: Google::Apis::DfareportingV3_2::PopupWindowProperties, decorator: Google::Apis::DfareportingV3_2::PopupWindowProperties::Representation + + property :target_type, as: 'targetType' + property :video_reporting_id, as: 'videoReportingId' + end + end + + class CreativeField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + end + end + + class CreativeFieldAssignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creative_field_id, :numeric_string => true, as: 'creativeFieldId' + property :creative_field_value_id, :numeric_string => true, as: 'creativeFieldValueId' + end + end + + class CreativeFieldValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :value, as: 'value' + end + end + + class CreativeFieldValuesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :creative_field_values, as: 'creativeFieldValues', class: Google::Apis::DfareportingV3_2::CreativeFieldValue, decorator: Google::Apis::DfareportingV3_2::CreativeFieldValue::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class CreativeFieldsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :creative_fields, as: 'creativeFields', class: Google::Apis::DfareportingV3_2::CreativeField, decorator: Google::Apis::DfareportingV3_2::CreativeField::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class CreativeGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :group_number, as: 'groupNumber' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + end + end + + class CreativeGroupAssignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creative_group_id, :numeric_string => true, as: 'creativeGroupId' + property :creative_group_number, as: 'creativeGroupNumber' + end + end + + class CreativeGroupsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :creative_groups, as: 'creativeGroups', class: Google::Apis::DfareportingV3_2::CreativeGroup, decorator: Google::Apis::DfareportingV3_2::CreativeGroup::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class CreativeOptimizationConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, :numeric_string => true, as: 'id' + property :name, as: 'name' + collection :optimization_activitys, as: 'optimizationActivitys', class: Google::Apis::DfareportingV3_2::OptimizationActivity, decorator: Google::Apis::DfareportingV3_2::OptimizationActivity::Representation + + property :optimization_model, as: 'optimizationModel' + end + end + + class CreativeRotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :creative_assignments, as: 'creativeAssignments', class: Google::Apis::DfareportingV3_2::CreativeAssignment, decorator: Google::Apis::DfareportingV3_2::CreativeAssignment::Representation + + property :creative_optimization_configuration_id, :numeric_string => true, as: 'creativeOptimizationConfigurationId' + property :type, as: 'type' + property :weight_calculation_strategy, as: 'weightCalculationStrategy' + end + end + + class CreativeSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :i_frame_footer, as: 'iFrameFooter' + property :i_frame_header, as: 'iFrameHeader' + end + end + + class CreativesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :creatives, as: 'creatives', class: Google::Apis::DfareportingV3_2::Creative, decorator: Google::Apis::DfareportingV3_2::Creative::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class CrossDimensionReachReportCompatibleFields + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :breakdown, as: 'breakdown', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + property :kind, as: 'kind' + collection :metrics, as: 'metrics', class: Google::Apis::DfareportingV3_2::Metric, decorator: Google::Apis::DfareportingV3_2::Metric::Representation + + collection :overlap_metrics, as: 'overlapMetrics', class: Google::Apis::DfareportingV3_2::Metric, decorator: Google::Apis::DfareportingV3_2::Metric::Representation + + end + end + + class CustomFloodlightVariable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :type, as: 'type' + property :value, as: 'value' + end + end + + class CustomRichMediaEvents + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :filtered_event_ids, as: 'filteredEventIds', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :kind, as: 'kind' + end + end + + class DateRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_date, as: 'endDate', type: Date + + property :kind, as: 'kind' + property :relative_date_range, as: 'relativeDateRange' + property :start_date, as: 'startDate', type: Date + + end + end + + class DayPartTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :days_of_week, as: 'daysOfWeek' + collection :hours_of_day, as: 'hoursOfDay' + property :user_local_time, as: 'userLocalTime' + end + end + + class DeepLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_url, as: 'appUrl' + property :fallback_url, as: 'fallbackUrl' + property :kind, as: 'kind' + property :mobile_app, as: 'mobileApp', class: Google::Apis::DfareportingV3_2::MobileApp, decorator: Google::Apis::DfareportingV3_2::MobileApp::Representation + + collection :remarketing_list_ids, as: 'remarketingListIds' + end + end + + class DefaultClickThroughEventTagProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :default_click_through_event_tag_id, :numeric_string => true, as: 'defaultClickThroughEventTagId' + property :override_inherited_event_tag, as: 'overrideInheritedEventTag' + end + end + + class DeliverySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :frequency_cap, as: 'frequencyCap', class: Google::Apis::DfareportingV3_2::FrequencyCap, decorator: Google::Apis::DfareportingV3_2::FrequencyCap::Representation + + property :hard_cutoff, as: 'hardCutoff' + property :impression_ratio, :numeric_string => true, as: 'impressionRatio' + property :priority, as: 'priority' + end + end + + class DfpSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dfp_network_code, as: 'dfpNetworkCode' + property :dfp_network_name, as: 'dfpNetworkName' + property :programmatic_placement_accepted, as: 'programmaticPlacementAccepted' + property :pub_paid_placement_accepted, as: 'pubPaidPlacementAccepted' + property :publisher_portal_only, as: 'publisherPortalOnly' + end + end + + class Dimension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class DimensionFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dimension_name, as: 'dimensionName' + property :kind, as: 'kind' + property :value, as: 'value' + end + end + + class DimensionValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dimension_name, as: 'dimensionName' + property :etag, as: 'etag' + property :id, as: 'id' + property :kind, as: 'kind' + property :match_type, as: 'matchType' + property :value, as: 'value' + end + end + + class DimensionValueList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + collection :items, as: 'items', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class DimensionValueRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dimension_name, as: 'dimensionName' + property :end_date, as: 'endDate', type: Date + + collection :filters, as: 'filters', class: Google::Apis::DfareportingV3_2::DimensionFilter, decorator: Google::Apis::DfareportingV3_2::DimensionFilter::Representation + + property :kind, as: 'kind' + property :start_date, as: 'startDate', type: Date + + end + end + + class DirectorySite + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active, as: 'active' + collection :contact_assignments, as: 'contactAssignments', class: Google::Apis::DfareportingV3_2::DirectorySiteContactAssignment, decorator: Google::Apis::DfareportingV3_2::DirectorySiteContactAssignment::Representation + + property :country_id, :numeric_string => true, as: 'countryId' + property :currency_id, :numeric_string => true, as: 'currencyId' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + collection :inpage_tag_formats, as: 'inpageTagFormats' + collection :interstitial_tag_formats, as: 'interstitialTagFormats' + property :kind, as: 'kind' + property :name, as: 'name' + property :parent_id, :numeric_string => true, as: 'parentId' + property :settings, as: 'settings', class: Google::Apis::DfareportingV3_2::DirectorySiteSettings, decorator: Google::Apis::DfareportingV3_2::DirectorySiteSettings::Representation + + property :url, as: 'url' + end + end + + class DirectorySiteContact + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address' + property :email, as: 'email' + property :first_name, as: 'firstName' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :last_name, as: 'lastName' + property :phone, as: 'phone' + property :role, as: 'role' + property :title, as: 'title' + property :type, as: 'type' + end + end + + class DirectorySiteContactAssignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :contact_id, :numeric_string => true, as: 'contactId' + property :visibility, as: 'visibility' + end + end + + class DirectorySiteContactsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :directory_site_contacts, as: 'directorySiteContacts', class: Google::Apis::DfareportingV3_2::DirectorySiteContact, decorator: Google::Apis::DfareportingV3_2::DirectorySiteContact::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class DirectorySiteSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active_view_opt_out, as: 'activeViewOptOut' + property :dfp_settings, as: 'dfpSettings', class: Google::Apis::DfareportingV3_2::DfpSettings, decorator: Google::Apis::DfareportingV3_2::DfpSettings::Representation + + property :instream_video_placement_accepted, as: 'instreamVideoPlacementAccepted' + property :interstitial_placement_accepted, as: 'interstitialPlacementAccepted' + property :nielsen_ocr_opt_out, as: 'nielsenOcrOptOut' + property :verification_tag_opt_out, as: 'verificationTagOptOut' + property :video_active_view_opt_out, as: 'videoActiveViewOptOut' + end + end + + class DirectorySitesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :directory_sites, as: 'directorySites', class: Google::Apis::DfareportingV3_2::DirectorySite, decorator: Google::Apis::DfareportingV3_2::DirectorySite::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class DynamicTargetingKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :name, as: 'name' + property :object_id_prop, :numeric_string => true, as: 'objectId' + property :object_type, as: 'objectType' + end + end + + class DynamicTargetingKeysListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dynamic_targeting_keys, as: 'dynamicTargetingKeys', class: Google::Apis::DfareportingV3_2::DynamicTargetingKey, decorator: Google::Apis::DfareportingV3_2::DynamicTargetingKey::Representation + + property :kind, as: 'kind' + end + end + + class EncryptionInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :encryption_entity_id, :numeric_string => true, as: 'encryptionEntityId' + property :encryption_entity_type, as: 'encryptionEntityType' + property :encryption_source, as: 'encryptionSource' + property :kind, as: 'kind' + end + end + + class EventTag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :campaign_id, :numeric_string => true, as: 'campaignId' + property :campaign_id_dimension_value, as: 'campaignIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :enabled_by_default, as: 'enabledByDefault' + property :exclude_from_adx_requests, as: 'excludeFromAdxRequests' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :site_filter_type, as: 'siteFilterType' + collection :site_ids, as: 'siteIds' + property :ssl_compliant, as: 'sslCompliant' + property :status, as: 'status' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :type, as: 'type' + property :url, as: 'url' + property :url_escape_levels, as: 'urlEscapeLevels' + end + end + + class EventTagOverride + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enabled, as: 'enabled' + property :id, :numeric_string => true, as: 'id' + end + end + + class EventTagsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :event_tags, as: 'eventTags', class: Google::Apis::DfareportingV3_2::EventTag, decorator: Google::Apis::DfareportingV3_2::EventTag::Representation + + property :kind, as: 'kind' + end + end + + class File + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :date_range, as: 'dateRange', class: Google::Apis::DfareportingV3_2::DateRange, decorator: Google::Apis::DfareportingV3_2::DateRange::Representation + + property :etag, as: 'etag' + property :file_name, as: 'fileName' + property :format, as: 'format' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime' + property :report_id, :numeric_string => true, as: 'reportId' + property :status, as: 'status' + property :urls, as: 'urls', class: Google::Apis::DfareportingV3_2::File::Urls, decorator: Google::Apis::DfareportingV3_2::File::Urls::Representation + + end + + class Urls + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_url, as: 'apiUrl' + property :browser_url, as: 'browserUrl' + end + end + end + + class FileList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + collection :items, as: 'items', class: Google::Apis::DfareportingV3_2::File, decorator: Google::Apis::DfareportingV3_2::File::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class Flight + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_date, as: 'endDate', type: Date + + property :rate_or_cost, :numeric_string => true, as: 'rateOrCost' + property :start_date, as: 'startDate', type: Date + + property :units, :numeric_string => true, as: 'units' + end + end + + class FloodlightActivitiesGenerateTagResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :floodlight_activity_tag, as: 'floodlightActivityTag' + property :global_site_tag_global_snippet, as: 'globalSiteTagGlobalSnippet' + property :kind, as: 'kind' + end + end + + class FloodlightActivitiesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :floodlight_activities, as: 'floodlightActivities', class: Google::Apis::DfareportingV3_2::FloodlightActivity, decorator: Google::Apis::DfareportingV3_2::FloodlightActivity::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class FloodlightActivity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :cache_busting_type, as: 'cacheBustingType' + property :counting_method, as: 'countingMethod' + collection :default_tags, as: 'defaultTags', class: Google::Apis::DfareportingV3_2::FloodlightActivityDynamicTag, decorator: Google::Apis::DfareportingV3_2::FloodlightActivityDynamicTag::Representation + + property :expected_url, as: 'expectedUrl' + property :floodlight_activity_group_id, :numeric_string => true, as: 'floodlightActivityGroupId' + property :floodlight_activity_group_name, as: 'floodlightActivityGroupName' + property :floodlight_activity_group_tag_string, as: 'floodlightActivityGroupTagString' + property :floodlight_activity_group_type, as: 'floodlightActivityGroupType' + property :floodlight_configuration_id, :numeric_string => true, as: 'floodlightConfigurationId' + property :floodlight_configuration_id_dimension_value, as: 'floodlightConfigurationIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :floodlight_tag_type, as: 'floodlightTagType' + property :hidden, as: 'hidden' + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :kind, as: 'kind' + property :name, as: 'name' + property :notes, as: 'notes' + collection :publisher_tags, as: 'publisherTags', class: Google::Apis::DfareportingV3_2::FloodlightActivityPublisherDynamicTag, decorator: Google::Apis::DfareportingV3_2::FloodlightActivityPublisherDynamicTag::Representation + + property :secure, as: 'secure' + property :ssl_compliant, as: 'sslCompliant' + property :ssl_required, as: 'sslRequired' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :tag_format, as: 'tagFormat' + property :tag_string, as: 'tagString' + collection :user_defined_variable_types, as: 'userDefinedVariableTypes' + end + end + + class FloodlightActivityDynamicTag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, :numeric_string => true, as: 'id' + property :name, as: 'name' + property :tag, as: 'tag' + end + end + + class FloodlightActivityGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :floodlight_configuration_id, :numeric_string => true, as: 'floodlightConfigurationId' + property :floodlight_configuration_id_dimension_value, as: 'floodlightConfigurationIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :kind, as: 'kind' + property :name, as: 'name' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :tag_string, as: 'tagString' + property :type, as: 'type' + end + end + + class FloodlightActivityGroupsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :floodlight_activity_groups, as: 'floodlightActivityGroups', class: Google::Apis::DfareportingV3_2::FloodlightActivityGroup, decorator: Google::Apis::DfareportingV3_2::FloodlightActivityGroup::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class FloodlightActivityPublisherDynamicTag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :click_through, as: 'clickThrough' + property :directory_site_id, :numeric_string => true, as: 'directorySiteId' + property :dynamic_tag, as: 'dynamicTag', class: Google::Apis::DfareportingV3_2::FloodlightActivityDynamicTag, decorator: Google::Apis::DfareportingV3_2::FloodlightActivityDynamicTag::Representation + + property :site_id, :numeric_string => true, as: 'siteId' + property :site_id_dimension_value, as: 'siteIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :view_through, as: 'viewThrough' + end + end + + class FloodlightConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :analytics_data_sharing_enabled, as: 'analyticsDataSharingEnabled' + property :exposure_to_conversion_enabled, as: 'exposureToConversionEnabled' + property :first_day_of_week, as: 'firstDayOfWeek' + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :in_app_attribution_tracking_enabled, as: 'inAppAttributionTrackingEnabled' + property :kind, as: 'kind' + property :lookback_configuration, as: 'lookbackConfiguration', class: Google::Apis::DfareportingV3_2::LookbackConfiguration, decorator: Google::Apis::DfareportingV3_2::LookbackConfiguration::Representation + + property :natural_search_conversion_attribution_option, as: 'naturalSearchConversionAttributionOption' + property :omniture_settings, as: 'omnitureSettings', class: Google::Apis::DfareportingV3_2::OmnitureSettings, decorator: Google::Apis::DfareportingV3_2::OmnitureSettings::Representation + + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :tag_settings, as: 'tagSettings', class: Google::Apis::DfareportingV3_2::TagSettings, decorator: Google::Apis::DfareportingV3_2::TagSettings::Representation + + collection :third_party_authentication_tokens, as: 'thirdPartyAuthenticationTokens', class: Google::Apis::DfareportingV3_2::ThirdPartyAuthenticationToken, decorator: Google::Apis::DfareportingV3_2::ThirdPartyAuthenticationToken::Representation + + collection :user_defined_variable_configurations, as: 'userDefinedVariableConfigurations', class: Google::Apis::DfareportingV3_2::UserDefinedVariableConfiguration, decorator: Google::Apis::DfareportingV3_2::UserDefinedVariableConfiguration::Representation + + end + end + + class FloodlightConfigurationsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :floodlight_configurations, as: 'floodlightConfigurations', class: Google::Apis::DfareportingV3_2::FloodlightConfiguration, decorator: Google::Apis::DfareportingV3_2::FloodlightConfiguration::Representation + + property :kind, as: 'kind' + end + end + + class FloodlightReportCompatibleFields + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + collection :dimensions, as: 'dimensions', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + property :kind, as: 'kind' + collection :metrics, as: 'metrics', class: Google::Apis::DfareportingV3_2::Metric, decorator: Google::Apis::DfareportingV3_2::Metric::Representation + + end + end + + class FrequencyCap + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, :numeric_string => true, as: 'duration' + property :impressions, :numeric_string => true, as: 'impressions' + end + end + + class FsCommand + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :left, as: 'left' + property :position_option, as: 'positionOption' + property :top, as: 'top' + property :window_height, as: 'windowHeight' + property :window_width, as: 'windowWidth' + end + end + + class GeoTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cities, as: 'cities', class: Google::Apis::DfareportingV3_2::City, decorator: Google::Apis::DfareportingV3_2::City::Representation + + collection :countries, as: 'countries', class: Google::Apis::DfareportingV3_2::Country, decorator: Google::Apis::DfareportingV3_2::Country::Representation + + property :exclude_countries, as: 'excludeCountries' + collection :metros, as: 'metros', class: Google::Apis::DfareportingV3_2::Metro, decorator: Google::Apis::DfareportingV3_2::Metro::Representation + + collection :postal_codes, as: 'postalCodes', class: Google::Apis::DfareportingV3_2::PostalCode, decorator: Google::Apis::DfareportingV3_2::PostalCode::Representation + + collection :regions, as: 'regions', class: Google::Apis::DfareportingV3_2::Region, decorator: Google::Apis::DfareportingV3_2::Region::Representation + + end + end + + class InventoryItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + collection :ad_slots, as: 'adSlots', class: Google::Apis::DfareportingV3_2::AdSlot, decorator: Google::Apis::DfareportingV3_2::AdSlot::Representation + + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :content_category_id, :numeric_string => true, as: 'contentCategoryId' + property :estimated_click_through_rate, :numeric_string => true, as: 'estimatedClickThroughRate' + property :estimated_conversion_rate, :numeric_string => true, as: 'estimatedConversionRate' + property :id, :numeric_string => true, as: 'id' + property :in_plan, as: 'inPlan' + property :kind, as: 'kind' + property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :name, as: 'name' + property :negotiation_channel_id, :numeric_string => true, as: 'negotiationChannelId' + property :order_id, :numeric_string => true, as: 'orderId' + property :placement_strategy_id, :numeric_string => true, as: 'placementStrategyId' + property :pricing, as: 'pricing', class: Google::Apis::DfareportingV3_2::Pricing, decorator: Google::Apis::DfareportingV3_2::Pricing::Representation + + property :project_id, :numeric_string => true, as: 'projectId' + property :rfp_id, :numeric_string => true, as: 'rfpId' + property :site_id, :numeric_string => true, as: 'siteId' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :type, as: 'type' + end + end + + class InventoryItemsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :inventory_items, as: 'inventoryItems', class: Google::Apis::DfareportingV3_2::InventoryItem, decorator: Google::Apis::DfareportingV3_2::InventoryItem::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class KeyValueTargetingExpression + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :expression, as: 'expression' + end + end + + class LandingPage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :archived, as: 'archived' + collection :deep_links, as: 'deepLinks', class: Google::Apis::DfareportingV3_2::DeepLink, decorator: Google::Apis::DfareportingV3_2::DeepLink::Representation + + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :url, as: 'url' + end + end + + class Language + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :language_code, as: 'languageCode' + property :name, as: 'name' + end + end + + class LanguageTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :languages, as: 'languages', class: Google::Apis::DfareportingV3_2::Language, decorator: Google::Apis::DfareportingV3_2::Language::Representation + + end + end + + class LanguagesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :languages, as: 'languages', class: Google::Apis::DfareportingV3_2::Language, decorator: Google::Apis::DfareportingV3_2::Language::Representation + + end + end + + class LastModifiedInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :time, :numeric_string => true, as: 'time' + end + end + + class ListPopulationClause + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :terms, as: 'terms', class: Google::Apis::DfareportingV3_2::ListPopulationTerm, decorator: Google::Apis::DfareportingV3_2::ListPopulationTerm::Representation + + end + end + + class ListPopulationRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :floodlight_activity_id, :numeric_string => true, as: 'floodlightActivityId' + property :floodlight_activity_name, as: 'floodlightActivityName' + collection :list_population_clauses, as: 'listPopulationClauses', class: Google::Apis::DfareportingV3_2::ListPopulationClause, decorator: Google::Apis::DfareportingV3_2::ListPopulationClause::Representation + + end + end + + class ListPopulationTerm + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :contains, as: 'contains' + property :negation, as: 'negation' + property :operator, as: 'operator' + property :remarketing_list_id, :numeric_string => true, as: 'remarketingListId' + property :type, as: 'type' + property :value, as: 'value' + property :variable_friendly_name, as: 'variableFriendlyName' + property :variable_name, as: 'variableName' + end + end + + class ListTargetingExpression + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :expression, as: 'expression' + end + end + + class LookbackConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :click_duration, as: 'clickDuration' + property :post_impression_activities_duration, as: 'postImpressionActivitiesDuration' + end + end + + class Metric + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class Metro + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country_code, as: 'countryCode' + property :country_dart_id, :numeric_string => true, as: 'countryDartId' + property :dart_id, :numeric_string => true, as: 'dartId' + property :dma_id, :numeric_string => true, as: 'dmaId' + property :kind, as: 'kind' + property :metro_code, as: 'metroCode' + property :name, as: 'name' + end + end + + class MetrosListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :metros, as: 'metros', class: Google::Apis::DfareportingV3_2::Metro, decorator: Google::Apis::DfareportingV3_2::Metro::Representation + + end + end + + class MobileApp + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :directory, as: 'directory' + property :id, as: 'id' + property :kind, as: 'kind' + property :publisher_name, as: 'publisherName' + property :title, as: 'title' + end + end + + class MobileAppsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :mobile_apps, as: 'mobileApps', class: Google::Apis::DfareportingV3_2::MobileApp, decorator: Google::Apis::DfareportingV3_2::MobileApp::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class MobileCarrier + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country_code, as: 'countryCode' + property :country_dart_id, :numeric_string => true, as: 'countryDartId' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class MobileCarriersListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :mobile_carriers, as: 'mobileCarriers', class: Google::Apis::DfareportingV3_2::MobileCarrier, decorator: Google::Apis::DfareportingV3_2::MobileCarrier::Representation + + end + end + + class ObjectFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :object_ids, as: 'objectIds' + property :status, as: 'status' + end + end + + class OffsetPosition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :left, as: 'left' + property :top, as: 'top' + end + end + + class OmnitureSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :omniture_cost_data_enabled, as: 'omnitureCostDataEnabled' + property :omniture_integration_enabled, as: 'omnitureIntegrationEnabled' + end + end + + class OperatingSystem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dart_id, :numeric_string => true, as: 'dartId' + property :desktop, as: 'desktop' + property :kind, as: 'kind' + property :mobile, as: 'mobile' + property :name, as: 'name' + end + end + + class OperatingSystemVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :major_version, as: 'majorVersion' + property :minor_version, as: 'minorVersion' + property :name, as: 'name' + property :operating_system, as: 'operatingSystem', class: Google::Apis::DfareportingV3_2::OperatingSystem, decorator: Google::Apis::DfareportingV3_2::OperatingSystem::Representation + + end + end + + class OperatingSystemVersionsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :operating_system_versions, as: 'operatingSystemVersions', class: Google::Apis::DfareportingV3_2::OperatingSystemVersion, decorator: Google::Apis::DfareportingV3_2::OperatingSystemVersion::Representation + + end + end + + class OperatingSystemsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :operating_systems, as: 'operatingSystems', class: Google::Apis::DfareportingV3_2::OperatingSystem, decorator: Google::Apis::DfareportingV3_2::OperatingSystem::Representation + + end + end + + class OptimizationActivity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :floodlight_activity_id, :numeric_string => true, as: 'floodlightActivityId' + property :floodlight_activity_id_dimension_value, as: 'floodlightActivityIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :weight, as: 'weight' + end + end + + class Order + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + collection :approver_user_profile_ids, as: 'approverUserProfileIds' + property :buyer_invoice_id, as: 'buyerInvoiceId' + property :buyer_organization_name, as: 'buyerOrganizationName' + property :comments, as: 'comments' + collection :contacts, as: 'contacts', class: Google::Apis::DfareportingV3_2::OrderContact, decorator: Google::Apis::DfareportingV3_2::OrderContact::Representation + + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :name, as: 'name' + property :notes, as: 'notes' + property :planning_term_id, :numeric_string => true, as: 'planningTermId' + property :project_id, :numeric_string => true, as: 'projectId' + property :seller_order_id, as: 'sellerOrderId' + property :seller_organization_name, as: 'sellerOrganizationName' + collection :site_id, as: 'siteId' + collection :site_names, as: 'siteNames' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :terms_and_conditions, as: 'termsAndConditions' + end + end + + class OrderContact + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :contact_info, as: 'contactInfo' + property :contact_name, as: 'contactName' + property :contact_title, as: 'contactTitle' + property :contact_type, as: 'contactType' + property :signature_user_profile_id, :numeric_string => true, as: 'signatureUserProfileId' + end + end + + class OrderDocument + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :amended_order_document_id, :numeric_string => true, as: 'amendedOrderDocumentId' + collection :approved_by_user_profile_ids, as: 'approvedByUserProfileIds' + property :cancelled, as: 'cancelled' + property :created_info, as: 'createdInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :effective_date, as: 'effectiveDate', type: Date + + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + collection :last_sent_recipients, as: 'lastSentRecipients' + property :last_sent_time, as: 'lastSentTime', type: DateTime + + property :order_id, :numeric_string => true, as: 'orderId' + property :project_id, :numeric_string => true, as: 'projectId' + property :signed, as: 'signed' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :title, as: 'title' + property :type, as: 'type' + end + end + + class OrderDocumentsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :order_documents, as: 'orderDocuments', class: Google::Apis::DfareportingV3_2::OrderDocument, decorator: Google::Apis::DfareportingV3_2::OrderDocument::Representation + + end + end + + class OrdersListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :orders, as: 'orders', class: Google::Apis::DfareportingV3_2::Order, decorator: Google::Apis::DfareportingV3_2::Order::Representation + + end + end + + class PathToConversionReportCompatibleFields + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :conversion_dimensions, as: 'conversionDimensions', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + collection :custom_floodlight_variables, as: 'customFloodlightVariables', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + property :kind, as: 'kind' + collection :metrics, as: 'metrics', class: Google::Apis::DfareportingV3_2::Metric, decorator: Google::Apis::DfareportingV3_2::Metric::Representation + + collection :per_interaction_dimensions, as: 'perInteractionDimensions', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + end + end + + class Placement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :ad_blocking_opt_out, as: 'adBlockingOptOut' + collection :additional_sizes, as: 'additionalSizes', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :archived, as: 'archived' + property :campaign_id, :numeric_string => true, as: 'campaignId' + property :campaign_id_dimension_value, as: 'campaignIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :comment, as: 'comment' + property :compatibility, as: 'compatibility' + property :content_category_id, :numeric_string => true, as: 'contentCategoryId' + property :create_info, as: 'createInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :directory_site_id, :numeric_string => true, as: 'directorySiteId' + property :directory_site_id_dimension_value, as: 'directorySiteIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :external_id, as: 'externalId' + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :key_name, as: 'keyName' + property :kind, as: 'kind' + property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :lookback_configuration, as: 'lookbackConfiguration', class: Google::Apis::DfareportingV3_2::LookbackConfiguration, decorator: Google::Apis::DfareportingV3_2::LookbackConfiguration::Representation + + property :name, as: 'name' + property :payment_approved, as: 'paymentApproved' + property :payment_source, as: 'paymentSource' + property :placement_group_id, :numeric_string => true, as: 'placementGroupId' + property :placement_group_id_dimension_value, as: 'placementGroupIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :placement_strategy_id, :numeric_string => true, as: 'placementStrategyId' + property :pricing_schedule, as: 'pricingSchedule', class: Google::Apis::DfareportingV3_2::PricingSchedule, decorator: Google::Apis::DfareportingV3_2::PricingSchedule::Representation + + property :primary, as: 'primary' + property :publisher_update_info, as: 'publisherUpdateInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :site_id, :numeric_string => true, as: 'siteId' + property :site_id_dimension_value, as: 'siteIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :size, as: 'size', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :ssl_required, as: 'sslRequired' + property :status, as: 'status' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + collection :tag_formats, as: 'tagFormats' + property :tag_setting, as: 'tagSetting', class: Google::Apis::DfareportingV3_2::TagSetting, decorator: Google::Apis::DfareportingV3_2::TagSetting::Representation + + property :video_active_view_opt_out, as: 'videoActiveViewOptOut' + property :video_settings, as: 'videoSettings', class: Google::Apis::DfareportingV3_2::VideoSettings, decorator: Google::Apis::DfareportingV3_2::VideoSettings::Representation + + property :vpaid_adapter_choice, as: 'vpaidAdapterChoice' + end + end + + class PlacementAssignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active, as: 'active' + property :placement_id, :numeric_string => true, as: 'placementId' + property :placement_id_dimension_value, as: 'placementIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :ssl_required, as: 'sslRequired' + end + end + + class PlacementGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :archived, as: 'archived' + property :campaign_id, :numeric_string => true, as: 'campaignId' + property :campaign_id_dimension_value, as: 'campaignIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + collection :child_placement_ids, as: 'childPlacementIds' + property :comment, as: 'comment' + property :content_category_id, :numeric_string => true, as: 'contentCategoryId' + property :create_info, as: 'createInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :directory_site_id, :numeric_string => true, as: 'directorySiteId' + property :directory_site_id_dimension_value, as: 'directorySiteIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :external_id, as: 'externalId' + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :kind, as: 'kind' + property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :name, as: 'name' + property :placement_group_type, as: 'placementGroupType' + property :placement_strategy_id, :numeric_string => true, as: 'placementStrategyId' + property :pricing_schedule, as: 'pricingSchedule', class: Google::Apis::DfareportingV3_2::PricingSchedule, decorator: Google::Apis::DfareportingV3_2::PricingSchedule::Representation + + property :primary_placement_id, :numeric_string => true, as: 'primaryPlacementId' + property :primary_placement_id_dimension_value, as: 'primaryPlacementIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :site_id, :numeric_string => true, as: 'siteId' + property :site_id_dimension_value, as: 'siteIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + end + end + + class PlacementGroupsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :placement_groups, as: 'placementGroups', class: Google::Apis::DfareportingV3_2::PlacementGroup, decorator: Google::Apis::DfareportingV3_2::PlacementGroup::Representation + + end + end + + class PlacementStrategiesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :placement_strategies, as: 'placementStrategies', class: Google::Apis::DfareportingV3_2::PlacementStrategy, decorator: Google::Apis::DfareportingV3_2::PlacementStrategy::Representation + + end + end + + class PlacementStrategy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class PlacementTag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :placement_id, :numeric_string => true, as: 'placementId' + collection :tag_datas, as: 'tagDatas', class: Google::Apis::DfareportingV3_2::TagData, decorator: Google::Apis::DfareportingV3_2::TagData::Representation + + end + end + + class PlacementsGenerateTagsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :placement_tags, as: 'placementTags', class: Google::Apis::DfareportingV3_2::PlacementTag, decorator: Google::Apis::DfareportingV3_2::PlacementTag::Representation + + end + end + + class PlacementsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :placements, as: 'placements', class: Google::Apis::DfareportingV3_2::Placement, decorator: Google::Apis::DfareportingV3_2::Placement::Representation + + end + end + + class PlatformType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class PlatformTypesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :platform_types, as: 'platformTypes', class: Google::Apis::DfareportingV3_2::PlatformType, decorator: Google::Apis::DfareportingV3_2::PlatformType::Representation + + end + end + + class PopupWindowProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dimension, as: 'dimension', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :offset, as: 'offset', class: Google::Apis::DfareportingV3_2::OffsetPosition, decorator: Google::Apis::DfareportingV3_2::OffsetPosition::Representation + + property :position_type, as: 'positionType' + property :show_address_bar, as: 'showAddressBar' + property :show_menu_bar, as: 'showMenuBar' + property :show_scroll_bar, as: 'showScrollBar' + property :show_status_bar, as: 'showStatusBar' + property :show_tool_bar, as: 'showToolBar' + property :title, as: 'title' + end + end + + class PostalCode + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :country_code, as: 'countryCode' + property :country_dart_id, :numeric_string => true, as: 'countryDartId' + property :id, as: 'id' + property :kind, as: 'kind' + end + end + + class PostalCodesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :postal_codes, as: 'postalCodes', class: Google::Apis::DfareportingV3_2::PostalCode, decorator: Google::Apis::DfareportingV3_2::PostalCode::Representation + + end + end + + class Pricing + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cap_cost_type, as: 'capCostType' + property :end_date, as: 'endDate', type: Date + + collection :flights, as: 'flights', class: Google::Apis::DfareportingV3_2::Flight, decorator: Google::Apis::DfareportingV3_2::Flight::Representation + + property :group_type, as: 'groupType' + property :pricing_type, as: 'pricingType' + property :start_date, as: 'startDate', type: Date + + end + end + + class PricingSchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cap_cost_option, as: 'capCostOption' + property :disregard_overdelivery, as: 'disregardOverdelivery' + property :end_date, as: 'endDate', type: Date + + property :flighted, as: 'flighted' + property :floodlight_activity_id, :numeric_string => true, as: 'floodlightActivityId' + collection :pricing_periods, as: 'pricingPeriods', class: Google::Apis::DfareportingV3_2::PricingSchedulePricingPeriod, decorator: Google::Apis::DfareportingV3_2::PricingSchedulePricingPeriod::Representation + + property :pricing_type, as: 'pricingType' + property :start_date, as: 'startDate', type: Date + + property :testing_start_date, as: 'testingStartDate', type: Date + + end + end + + class PricingSchedulePricingPeriod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_date, as: 'endDate', type: Date + + property :pricing_comment, as: 'pricingComment' + property :rate_or_cost_nanos, :numeric_string => true, as: 'rateOrCostNanos' + property :start_date, as: 'startDate', type: Date + + property :units, :numeric_string => true, as: 'units' + end + end + + class Project + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :audience_age_group, as: 'audienceAgeGroup' + property :audience_gender, as: 'audienceGender' + property :budget, :numeric_string => true, as: 'budget' + property :client_billing_code, as: 'clientBillingCode' + property :client_name, as: 'clientName' + property :end_date, as: 'endDate', type: Date + + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV3_2::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_2::LastModifiedInfo::Representation + + property :name, as: 'name' + property :overview, as: 'overview' + property :start_date, as: 'startDate', type: Date + + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :target_clicks, :numeric_string => true, as: 'targetClicks' + property :target_conversions, :numeric_string => true, as: 'targetConversions' + property :target_cpa_nanos, :numeric_string => true, as: 'targetCpaNanos' + property :target_cpc_nanos, :numeric_string => true, as: 'targetCpcNanos' + property :target_cpm_active_view_nanos, :numeric_string => true, as: 'targetCpmActiveViewNanos' + property :target_cpm_nanos, :numeric_string => true, as: 'targetCpmNanos' + property :target_impressions, :numeric_string => true, as: 'targetImpressions' + end + end + + class ProjectsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :projects, as: 'projects', class: Google::Apis::DfareportingV3_2::Project, decorator: Google::Apis::DfareportingV3_2::Project::Representation + + end + end + + class ReachReportCompatibleFields + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + collection :dimensions, as: 'dimensions', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + property :kind, as: 'kind' + collection :metrics, as: 'metrics', class: Google::Apis::DfareportingV3_2::Metric, decorator: Google::Apis::DfareportingV3_2::Metric::Representation + + collection :pivoted_activity_metrics, as: 'pivotedActivityMetrics', class: Google::Apis::DfareportingV3_2::Metric, decorator: Google::Apis::DfareportingV3_2::Metric::Representation + + collection :reach_by_frequency_metrics, as: 'reachByFrequencyMetrics', class: Google::Apis::DfareportingV3_2::Metric, decorator: Google::Apis::DfareportingV3_2::Metric::Representation + + end + end + + class Recipient + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :delivery_type, as: 'deliveryType' + property :email, as: 'email' + property :kind, as: 'kind' + end + end + + class Region + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country_code, as: 'countryCode' + property :country_dart_id, :numeric_string => true, as: 'countryDartId' + property :dart_id, :numeric_string => true, as: 'dartId' + property :kind, as: 'kind' + property :name, as: 'name' + property :region_code, as: 'regionCode' + end + end + + class RegionsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :regions, as: 'regions', class: Google::Apis::DfareportingV3_2::Region, decorator: Google::Apis::DfareportingV3_2::Region::Representation + + end + end + + class RemarketingList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :active, as: 'active' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :life_span, :numeric_string => true, as: 'lifeSpan' + property :list_population_rule, as: 'listPopulationRule', class: Google::Apis::DfareportingV3_2::ListPopulationRule, decorator: Google::Apis::DfareportingV3_2::ListPopulationRule::Representation + + property :list_size, :numeric_string => true, as: 'listSize' + property :list_source, as: 'listSource' + property :name, as: 'name' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + end + end + + class RemarketingListShare + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :remarketing_list_id, :numeric_string => true, as: 'remarketingListId' + collection :shared_account_ids, as: 'sharedAccountIds' + collection :shared_advertiser_ids, as: 'sharedAdvertiserIds' + end + end + + class RemarketingListsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :remarketing_lists, as: 'remarketingLists', class: Google::Apis::DfareportingV3_2::RemarketingList, decorator: Google::Apis::DfareportingV3_2::RemarketingList::Representation + + end + end + + class Report + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :criteria, as: 'criteria', class: Google::Apis::DfareportingV3_2::Report::Criteria, decorator: Google::Apis::DfareportingV3_2::Report::Criteria::Representation + + property :cross_dimension_reach_criteria, as: 'crossDimensionReachCriteria', class: Google::Apis::DfareportingV3_2::Report::CrossDimensionReachCriteria, decorator: Google::Apis::DfareportingV3_2::Report::CrossDimensionReachCriteria::Representation + + property :delivery, as: 'delivery', class: Google::Apis::DfareportingV3_2::Report::Delivery, decorator: Google::Apis::DfareportingV3_2::Report::Delivery::Representation + + property :etag, as: 'etag' + property :file_name, as: 'fileName' + property :floodlight_criteria, as: 'floodlightCriteria', class: Google::Apis::DfareportingV3_2::Report::FloodlightCriteria, decorator: Google::Apis::DfareportingV3_2::Report::FloodlightCriteria::Representation + + property :format, as: 'format' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime' + property :name, as: 'name' + property :owner_profile_id, :numeric_string => true, as: 'ownerProfileId' + property :path_to_conversion_criteria, as: 'pathToConversionCriteria', class: Google::Apis::DfareportingV3_2::Report::PathToConversionCriteria, decorator: Google::Apis::DfareportingV3_2::Report::PathToConversionCriteria::Representation + + property :reach_criteria, as: 'reachCriteria', class: Google::Apis::DfareportingV3_2::Report::ReachCriteria, decorator: Google::Apis::DfareportingV3_2::Report::ReachCriteria::Representation + + property :schedule, as: 'schedule', class: Google::Apis::DfareportingV3_2::Report::Schedule, decorator: Google::Apis::DfareportingV3_2::Report::Schedule::Representation + + property :sub_account_id, :numeric_string => true, as: 'subAccountId' + property :type, as: 'type' + end + + class Criteria + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :activities, as: 'activities', class: Google::Apis::DfareportingV3_2::Activities, decorator: Google::Apis::DfareportingV3_2::Activities::Representation + + property :custom_rich_media_events, as: 'customRichMediaEvents', class: Google::Apis::DfareportingV3_2::CustomRichMediaEvents, decorator: Google::Apis::DfareportingV3_2::CustomRichMediaEvents::Representation + + property :date_range, as: 'dateRange', class: Google::Apis::DfareportingV3_2::DateRange, decorator: Google::Apis::DfareportingV3_2::DateRange::Representation + + collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + collection :dimensions, as: 'dimensions', class: Google::Apis::DfareportingV3_2::SortedDimension, decorator: Google::Apis::DfareportingV3_2::SortedDimension::Representation + + collection :metric_names, as: 'metricNames' + end + end + + class CrossDimensionReachCriteria + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :breakdown, as: 'breakdown', class: Google::Apis::DfareportingV3_2::SortedDimension, decorator: Google::Apis::DfareportingV3_2::SortedDimension::Representation + + property :date_range, as: 'dateRange', class: Google::Apis::DfareportingV3_2::DateRange, decorator: Google::Apis::DfareportingV3_2::DateRange::Representation + + property :dimension, as: 'dimension' + collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + collection :metric_names, as: 'metricNames' + collection :overlap_metric_names, as: 'overlapMetricNames' + property :pivoted, as: 'pivoted' + end + end + + class Delivery + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email_owner, as: 'emailOwner' + property :email_owner_delivery_type, as: 'emailOwnerDeliveryType' + property :message, as: 'message' + collection :recipients, as: 'recipients', class: Google::Apis::DfareportingV3_2::Recipient, decorator: Google::Apis::DfareportingV3_2::Recipient::Representation + + end + end + + class FloodlightCriteria + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :custom_rich_media_events, as: 'customRichMediaEvents', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :date_range, as: 'dateRange', class: Google::Apis::DfareportingV3_2::DateRange, decorator: Google::Apis::DfareportingV3_2::DateRange::Representation + + collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + collection :dimensions, as: 'dimensions', class: Google::Apis::DfareportingV3_2::SortedDimension, decorator: Google::Apis::DfareportingV3_2::SortedDimension::Representation + + property :floodlight_config_id, as: 'floodlightConfigId', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + collection :metric_names, as: 'metricNames' + property :report_properties, as: 'reportProperties', class: Google::Apis::DfareportingV3_2::Report::FloodlightCriteria::ReportProperties, decorator: Google::Apis::DfareportingV3_2::Report::FloodlightCriteria::ReportProperties::Representation + + end + + class ReportProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :include_attributed_ip_conversions, as: 'includeAttributedIPConversions' + property :include_unattributed_cookie_conversions, as: 'includeUnattributedCookieConversions' + property :include_unattributed_ip_conversions, as: 'includeUnattributedIPConversions' + end + end + end + + class PathToConversionCriteria + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :activity_filters, as: 'activityFilters', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + collection :conversion_dimensions, as: 'conversionDimensions', class: Google::Apis::DfareportingV3_2::SortedDimension, decorator: Google::Apis::DfareportingV3_2::SortedDimension::Representation + + collection :custom_floodlight_variables, as: 'customFloodlightVariables', class: Google::Apis::DfareportingV3_2::SortedDimension, decorator: Google::Apis::DfareportingV3_2::SortedDimension::Representation + + collection :custom_rich_media_events, as: 'customRichMediaEvents', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :date_range, as: 'dateRange', class: Google::Apis::DfareportingV3_2::DateRange, decorator: Google::Apis::DfareportingV3_2::DateRange::Representation + + property :floodlight_config_id, as: 'floodlightConfigId', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + collection :metric_names, as: 'metricNames' + collection :per_interaction_dimensions, as: 'perInteractionDimensions', class: Google::Apis::DfareportingV3_2::SortedDimension, decorator: Google::Apis::DfareportingV3_2::SortedDimension::Representation + + property :report_properties, as: 'reportProperties', class: Google::Apis::DfareportingV3_2::Report::PathToConversionCriteria::ReportProperties, decorator: Google::Apis::DfareportingV3_2::Report::PathToConversionCriteria::ReportProperties::Representation + + end + + class ReportProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :clicks_lookback_window, as: 'clicksLookbackWindow' + property :impressions_lookback_window, as: 'impressionsLookbackWindow' + property :include_attributed_ip_conversions, as: 'includeAttributedIPConversions' + property :include_unattributed_cookie_conversions, as: 'includeUnattributedCookieConversions' + property :include_unattributed_ip_conversions, as: 'includeUnattributedIPConversions' + property :maximum_click_interactions, as: 'maximumClickInteractions' + property :maximum_impression_interactions, as: 'maximumImpressionInteractions' + property :maximum_interaction_gap, as: 'maximumInteractionGap' + property :pivot_on_interaction_path, as: 'pivotOnInteractionPath' + end + end + end + + class ReachCriteria + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :activities, as: 'activities', class: Google::Apis::DfareportingV3_2::Activities, decorator: Google::Apis::DfareportingV3_2::Activities::Representation + + property :custom_rich_media_events, as: 'customRichMediaEvents', class: Google::Apis::DfareportingV3_2::CustomRichMediaEvents, decorator: Google::Apis::DfareportingV3_2::CustomRichMediaEvents::Representation + + property :date_range, as: 'dateRange', class: Google::Apis::DfareportingV3_2::DateRange, decorator: Google::Apis::DfareportingV3_2::DateRange::Representation + + collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + collection :dimensions, as: 'dimensions', class: Google::Apis::DfareportingV3_2::SortedDimension, decorator: Google::Apis::DfareportingV3_2::SortedDimension::Representation + + property :enable_all_dimension_combinations, as: 'enableAllDimensionCombinations' + collection :metric_names, as: 'metricNames' + collection :reach_by_frequency_metric_names, as: 'reachByFrequencyMetricNames' + end + end + + class Schedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active, as: 'active' + property :every, as: 'every' + property :expiration_date, as: 'expirationDate', type: Date + + property :repeats, as: 'repeats' + collection :repeats_on_week_days, as: 'repeatsOnWeekDays' + property :runs_on_day_of_month, as: 'runsOnDayOfMonth' + property :start_date, as: 'startDate', type: Date + + end + end + end + + class ReportCompatibleFields + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + collection :dimensions, as: 'dimensions', class: Google::Apis::DfareportingV3_2::Dimension, decorator: Google::Apis::DfareportingV3_2::Dimension::Representation + + property :kind, as: 'kind' + collection :metrics, as: 'metrics', class: Google::Apis::DfareportingV3_2::Metric, decorator: Google::Apis::DfareportingV3_2::Metric::Representation + + collection :pivoted_activity_metrics, as: 'pivotedActivityMetrics', class: Google::Apis::DfareportingV3_2::Metric, decorator: Google::Apis::DfareportingV3_2::Metric::Representation + + end + end + + class ReportList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + collection :items, as: 'items', class: Google::Apis::DfareportingV3_2::Report, decorator: Google::Apis::DfareportingV3_2::Report::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class ReportsConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :exposure_to_conversion_enabled, as: 'exposureToConversionEnabled' + property :lookback_configuration, as: 'lookbackConfiguration', class: Google::Apis::DfareportingV3_2::LookbackConfiguration, decorator: Google::Apis::DfareportingV3_2::LookbackConfiguration::Representation + + property :report_generation_time_zone_id, :numeric_string => true, as: 'reportGenerationTimeZoneId' + end + end + + class RichMediaExitOverride + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :click_through_url, as: 'clickThroughUrl', class: Google::Apis::DfareportingV3_2::ClickThroughUrl, decorator: Google::Apis::DfareportingV3_2::ClickThroughUrl::Representation + + property :enabled, as: 'enabled' + property :exit_id, :numeric_string => true, as: 'exitId' + end + end + + class Rule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset_id, :numeric_string => true, as: 'assetId' + property :name, as: 'name' + property :targeting_template_id, :numeric_string => true, as: 'targetingTemplateId' + end + end + + class Site + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :approved, as: 'approved' + property :directory_site_id, :numeric_string => true, as: 'directorySiteId' + property :directory_site_id_dimension_value, as: 'directorySiteIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :id, :numeric_string => true, as: 'id' + property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :key_name, as: 'keyName' + property :kind, as: 'kind' + property :name, as: 'name' + collection :site_contacts, as: 'siteContacts', class: Google::Apis::DfareportingV3_2::SiteContact, decorator: Google::Apis::DfareportingV3_2::SiteContact::Representation + + property :site_settings, as: 'siteSettings', class: Google::Apis::DfareportingV3_2::SiteSettings, decorator: Google::Apis::DfareportingV3_2::SiteSettings::Representation + + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + end + end + + class SiteContact + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address' + property :contact_type, as: 'contactType' + property :email, as: 'email' + property :first_name, as: 'firstName' + property :id, :numeric_string => true, as: 'id' + property :last_name, as: 'lastName' + property :phone, as: 'phone' + property :title, as: 'title' + end + end + + class SiteSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active_view_opt_out, as: 'activeViewOptOut' + property :ad_blocking_opt_out, as: 'adBlockingOptOut' + property :creative_settings, as: 'creativeSettings', class: Google::Apis::DfareportingV3_2::CreativeSettings, decorator: Google::Apis::DfareportingV3_2::CreativeSettings::Representation + + property :disable_new_cookie, as: 'disableNewCookie' + property :lookback_configuration, as: 'lookbackConfiguration', class: Google::Apis::DfareportingV3_2::LookbackConfiguration, decorator: Google::Apis::DfareportingV3_2::LookbackConfiguration::Representation + + property :tag_setting, as: 'tagSetting', class: Google::Apis::DfareportingV3_2::TagSetting, decorator: Google::Apis::DfareportingV3_2::TagSetting::Representation + + property :video_active_view_opt_out_template, as: 'videoActiveViewOptOutTemplate' + property :vpaid_adapter_choice_template, as: 'vpaidAdapterChoiceTemplate' + end + end + + class SitesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :sites, as: 'sites', class: Google::Apis::DfareportingV3_2::Site, decorator: Google::Apis::DfareportingV3_2::Site::Representation + + end + end + + class Size + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :iab, as: 'iab' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :width, as: 'width' + end + end + + class SizesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :sizes, as: 'sizes', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + end + end + + class SkippableSetting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :progress_offset, as: 'progressOffset', class: Google::Apis::DfareportingV3_2::VideoOffset, decorator: Google::Apis::DfareportingV3_2::VideoOffset::Representation + + property :skip_offset, as: 'skipOffset', class: Google::Apis::DfareportingV3_2::VideoOffset, decorator: Google::Apis::DfareportingV3_2::VideoOffset::Representation + + property :skippable, as: 'skippable' + end + end + + class SortedDimension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :name, as: 'name' + property :sort_order, as: 'sortOrder' + end + end + + class Subaccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + collection :available_permission_ids, as: 'availablePermissionIds' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class SubaccountsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :subaccounts, as: 'subaccounts', class: Google::Apis::DfareportingV3_2::Subaccount, decorator: Google::Apis::DfareportingV3_2::Subaccount::Representation + + end + end + + class TagData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_id, :numeric_string => true, as: 'adId' + property :click_tag, as: 'clickTag' + property :creative_id, :numeric_string => true, as: 'creativeId' + property :format, as: 'format' + property :impression_tag, as: 'impressionTag' + end + end + + class TagSetting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :additional_key_values, as: 'additionalKeyValues' + property :include_click_through_urls, as: 'includeClickThroughUrls' + property :include_click_tracking, as: 'includeClickTracking' + property :keyword_option, as: 'keywordOption' + end + end + + class TagSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dynamic_tag_enabled, as: 'dynamicTagEnabled' + property :image_tag_enabled, as: 'imageTagEnabled' + end + end + + class TargetWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :custom_html, as: 'customHtml' + property :target_window_option, as: 'targetWindowOption' + end + end + + class TargetableRemarketingList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :active, as: 'active' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :life_span, :numeric_string => true, as: 'lifeSpan' + property :list_size, :numeric_string => true, as: 'listSize' + property :list_source, as: 'listSource' + property :name, as: 'name' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + end + end + + class TargetableRemarketingListsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :targetable_remarketing_lists, as: 'targetableRemarketingLists', class: Google::Apis::DfareportingV3_2::TargetableRemarketingList, decorator: Google::Apis::DfareportingV3_2::TargetableRemarketingList::Representation + + end + end + + class TargetingTemplate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :advertiser_id, :numeric_string => true, as: 'advertiserId' + property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_2::DimensionValue, decorator: Google::Apis::DfareportingV3_2::DimensionValue::Representation + + property :day_part_targeting, as: 'dayPartTargeting', class: Google::Apis::DfareportingV3_2::DayPartTargeting, decorator: Google::Apis::DfareportingV3_2::DayPartTargeting::Representation + + property :geo_targeting, as: 'geoTargeting', class: Google::Apis::DfareportingV3_2::GeoTargeting, decorator: Google::Apis::DfareportingV3_2::GeoTargeting::Representation + + property :id, :numeric_string => true, as: 'id' + property :key_value_targeting_expression, as: 'keyValueTargetingExpression', class: Google::Apis::DfareportingV3_2::KeyValueTargetingExpression, decorator: Google::Apis::DfareportingV3_2::KeyValueTargetingExpression::Representation + + property :kind, as: 'kind' + property :language_targeting, as: 'languageTargeting', class: Google::Apis::DfareportingV3_2::LanguageTargeting, decorator: Google::Apis::DfareportingV3_2::LanguageTargeting::Representation + + property :list_targeting_expression, as: 'listTargetingExpression', class: Google::Apis::DfareportingV3_2::ListTargetingExpression, decorator: Google::Apis::DfareportingV3_2::ListTargetingExpression::Representation + + property :name, as: 'name' + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + property :technology_targeting, as: 'technologyTargeting', class: Google::Apis::DfareportingV3_2::TechnologyTargeting, decorator: Google::Apis::DfareportingV3_2::TechnologyTargeting::Representation + + end + end + + class TargetingTemplatesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :targeting_templates, as: 'targetingTemplates', class: Google::Apis::DfareportingV3_2::TargetingTemplate, decorator: Google::Apis::DfareportingV3_2::TargetingTemplate::Representation + + end + end + + class TechnologyTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :browsers, as: 'browsers', class: Google::Apis::DfareportingV3_2::Browser, decorator: Google::Apis::DfareportingV3_2::Browser::Representation + + collection :connection_types, as: 'connectionTypes', class: Google::Apis::DfareportingV3_2::ConnectionType, decorator: Google::Apis::DfareportingV3_2::ConnectionType::Representation + + collection :mobile_carriers, as: 'mobileCarriers', class: Google::Apis::DfareportingV3_2::MobileCarrier, decorator: Google::Apis::DfareportingV3_2::MobileCarrier::Representation + + collection :operating_system_versions, as: 'operatingSystemVersions', class: Google::Apis::DfareportingV3_2::OperatingSystemVersion, decorator: Google::Apis::DfareportingV3_2::OperatingSystemVersion::Representation + + collection :operating_systems, as: 'operatingSystems', class: Google::Apis::DfareportingV3_2::OperatingSystem, decorator: Google::Apis::DfareportingV3_2::OperatingSystem::Representation + + collection :platform_types, as: 'platformTypes', class: Google::Apis::DfareportingV3_2::PlatformType, decorator: Google::Apis::DfareportingV3_2::PlatformType::Representation + + end + end + + class ThirdPartyAuthenticationToken + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :value, as: 'value' + end + end + + class ThirdPartyTrackingUrl + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :third_party_url_type, as: 'thirdPartyUrlType' + property :url, as: 'url' + end + end + + class TranscodeSetting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :enabled_video_formats, as: 'enabledVideoFormats' + property :kind, as: 'kind' + end + end + + class UniversalAdId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :registry, as: 'registry' + property :value, as: 'value' + end + end + + class UserDefinedVariableConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_type, as: 'dataType' + property :report_name, as: 'reportName' + property :variable_type, as: 'variableType' + end + end + + class UserProfile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :account_name, as: 'accountName' + property :etag, as: 'etag' + property :kind, as: 'kind' + property :profile_id, :numeric_string => true, as: 'profileId' + property :sub_account_id, :numeric_string => true, as: 'subAccountId' + property :sub_account_name, as: 'subAccountName' + property :user_name, as: 'userName' + end + end + + class UserProfileList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + collection :items, as: 'items', class: Google::Apis::DfareportingV3_2::UserProfile, decorator: Google::Apis::DfareportingV3_2::UserProfile::Representation + + property :kind, as: 'kind' + end + end + + class UserRole + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :default_user_role, as: 'defaultUserRole' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :parent_user_role_id, :numeric_string => true, as: 'parentUserRoleId' + collection :permissions, as: 'permissions', class: Google::Apis::DfareportingV3_2::UserRolePermission, decorator: Google::Apis::DfareportingV3_2::UserRolePermission::Representation + + property :subaccount_id, :numeric_string => true, as: 'subaccountId' + end + end + + class UserRolePermission + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :availability, as: 'availability' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :permission_group_id, :numeric_string => true, as: 'permissionGroupId' + end + end + + class UserRolePermissionGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class UserRolePermissionGroupsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :user_role_permission_groups, as: 'userRolePermissionGroups', class: Google::Apis::DfareportingV3_2::UserRolePermissionGroup, decorator: Google::Apis::DfareportingV3_2::UserRolePermissionGroup::Representation + + end + end + + class UserRolePermissionsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :user_role_permissions, as: 'userRolePermissions', class: Google::Apis::DfareportingV3_2::UserRolePermission, decorator: Google::Apis::DfareportingV3_2::UserRolePermission::Representation + + end + end + + class UserRolesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :user_roles, as: 'userRoles', class: Google::Apis::DfareportingV3_2::UserRole, decorator: Google::Apis::DfareportingV3_2::UserRole::Representation + + end + end + + class VideoFormat + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file_type, as: 'fileType' + property :id, as: 'id' + property :kind, as: 'kind' + property :resolution, as: 'resolution', class: Google::Apis::DfareportingV3_2::Size, decorator: Google::Apis::DfareportingV3_2::Size::Representation + + property :target_bit_rate, as: 'targetBitRate' + end + end + + class VideoFormatsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :video_formats, as: 'videoFormats', class: Google::Apis::DfareportingV3_2::VideoFormat, decorator: Google::Apis::DfareportingV3_2::VideoFormat::Representation + + end + end + + class VideoOffset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :offset_percentage, as: 'offsetPercentage' + property :offset_seconds, as: 'offsetSeconds' + end + end + + class VideoSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :companion_settings, as: 'companionSettings', class: Google::Apis::DfareportingV3_2::CompanionSetting, decorator: Google::Apis::DfareportingV3_2::CompanionSetting::Representation + + property :kind, as: 'kind' + property :orientation, as: 'orientation' + property :skippable_settings, as: 'skippableSettings', class: Google::Apis::DfareportingV3_2::SkippableSetting, decorator: Google::Apis::DfareportingV3_2::SkippableSetting::Representation + + property :transcode_settings, as: 'transcodeSettings', class: Google::Apis::DfareportingV3_2::TranscodeSetting, decorator: Google::Apis::DfareportingV3_2::TranscodeSetting::Representation + + end + end + end + end +end diff --git a/generated/google/apis/dfareporting_v3_2/service.rb b/generated/google/apis/dfareporting_v3_2/service.rb new file mode 100644 index 000000000..cd62f3279 --- /dev/null +++ b/generated/google/apis/dfareporting_v3_2/service.rb @@ -0,0 +1,8790 @@ +# 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 DfareportingV3_2 + # DCM/DFA Reporting And Trafficking API + # + # Manages your DoubleClick Campaign Manager ad campaigns and reports. + # + # @example + # require 'google/apis/dfareporting_v3_2' + # + # Dfareporting = Google::Apis::DfareportingV3_2 # Alias the module + # service = Dfareporting::DfareportingService.new + # + # @see https://developers.google.com/doubleclick-advertisers/ + class DfareportingService < 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] + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + attr_accessor :quota_user + + # @return [String] + # Deprecated. Please use quotaUser instead. + attr_accessor :user_ip + + def initialize + super('https://www.googleapis.com/', 'dfareporting/v3.2/') + @batch_path = 'batch/dfareporting/v3.2' + end + + # Gets the account's active ad summary by account ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] summary_account_id + # Account ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountActiveAdSummary] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountActiveAdSummary] + # + # @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_account_active_ad_summary(profile_id, summary_account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}', options) + command.response_representation = Google::Apis::DfareportingV3_2::AccountActiveAdSummary::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountActiveAdSummary + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['summaryAccountId'] = summary_account_id unless summary_account_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one account permission group by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Account permission group ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountPermissionGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountPermissionGroup] + # + # @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_account_permission_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountPermissionGroups/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::AccountPermissionGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountPermissionGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of account permission groups. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountPermissionGroupsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountPermissionGroupsListResponse] + # + # @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_account_permission_groups(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountPermissionGroups', options) + command.response_representation = Google::Apis::DfareportingV3_2::AccountPermissionGroupsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountPermissionGroupsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one account permission by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Account permission ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountPermission] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountPermission] + # + # @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_account_permission(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountPermissions/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::AccountPermission::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountPermission + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of account permissions. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountPermissionsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountPermissionsListResponse] + # + # @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_account_permissions(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountPermissions', options) + command.response_representation = Google::Apis::DfareportingV3_2::AccountPermissionsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountPermissionsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one account user profile by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # User profile ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountUserProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountUserProfile] + # + # @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_account_user_profile(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountUserProfiles/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::AccountUserProfile::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountUserProfile + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new account user profile. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::AccountUserProfile] account_user_profile_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountUserProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountUserProfile] + # + # @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 insert_account_user_profile(profile_id, account_user_profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/accountUserProfiles', options) + command.request_representation = Google::Apis::DfareportingV3_2::AccountUserProfile::Representation + command.request_object = account_user_profile_object + command.response_representation = Google::Apis::DfareportingV3_2::AccountUserProfile::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountUserProfile + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of account user profiles, possibly filtered. This method + # supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Boolean] active + # Select only active user profiles. + # @param [Array, Fixnum] ids + # Select only user profiles with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name, ID or email. Wildcards (*) are allowed. + # For example, "user profile*2015" will return objects with names like "user + # profile June 2015", "user profile April 2015", or simply "user profile 2015". + # Most of the searches also add wildcards implicitly at the start and the end of + # the search string. For example, a search string of "user profile" will match + # objects with name "my user profile", "user profile 2015", or simply "user + # profile". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [Fixnum] subaccount_id + # Select only user profiles with the specified subaccount ID. + # @param [Fixnum] user_role_id + # Select only user profiles with the specified user role ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountUserProfilesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountUserProfilesListResponse] + # + # @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_account_user_profiles(profile_id, active: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, user_role_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountUserProfiles', options) + command.response_representation = Google::Apis::DfareportingV3_2::AccountUserProfilesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountUserProfilesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['active'] = active unless active.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['subaccountId'] = subaccount_id unless subaccount_id.nil? + command.query['userRoleId'] = user_role_id unless user_role_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing account user profile. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # User profile ID. + # @param [Google::Apis::DfareportingV3_2::AccountUserProfile] account_user_profile_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountUserProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountUserProfile] + # + # @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_account_user_profile(profile_id, id, account_user_profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/accountUserProfiles', options) + command.request_representation = Google::Apis::DfareportingV3_2::AccountUserProfile::Representation + command.request_object = account_user_profile_object + command.response_representation = Google::Apis::DfareportingV3_2::AccountUserProfile::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountUserProfile + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing account user profile. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::AccountUserProfile] account_user_profile_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountUserProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountUserProfile] + # + # @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 update_account_user_profile(profile_id, account_user_profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/accountUserProfiles', options) + command.request_representation = Google::Apis::DfareportingV3_2::AccountUserProfile::Representation + command.request_object = account_user_profile_object + command.response_representation = Google::Apis::DfareportingV3_2::AccountUserProfile::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountUserProfile + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one account by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Account ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Account] + # + # @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_account(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/accounts/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Account::Representation + command.response_class = Google::Apis::DfareportingV3_2::Account + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of accounts, possibly filtered. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Boolean] active + # Select only active accounts. Don't set this field to select both active and + # non-active accounts. + # @param [Array, Fixnum] ids + # Select only accounts with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "account*2015" will return objects with names like "account June 2015" + # , "account April 2015", or simply "account 2015". Most of the searches also + # add wildcards implicitly at the start and the end of the search string. For + # example, a search string of "account" will match objects with name "my account" + # , "account 2015", or simply "account". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AccountsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AccountsListResponse] + # + # @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_accounts(profile_id, active: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/accounts', options) + command.response_representation = Google::Apis::DfareportingV3_2::AccountsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::AccountsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['active'] = active unless active.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing account. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Account ID. + # @param [Google::Apis::DfareportingV3_2::Account] account_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Account] + # + # @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_account(profile_id, id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/accounts', options) + command.request_representation = Google::Apis::DfareportingV3_2::Account::Representation + command.request_object = account_object + command.response_representation = Google::Apis::DfareportingV3_2::Account::Representation + command.response_class = Google::Apis::DfareportingV3_2::Account + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing account. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Account] account_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Account] + # + # @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 update_account(profile_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/accounts', options) + command.request_representation = Google::Apis::DfareportingV3_2::Account::Representation + command.request_object = account_object + command.response_representation = Google::Apis::DfareportingV3_2::Account::Representation + command.response_class = Google::Apis::DfareportingV3_2::Account + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one ad by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Ad ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Ad] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Ad] + # + # @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_ad(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/ads/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Ad::Representation + command.response_class = Google::Apis::DfareportingV3_2::Ad + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new ad. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Ad] ad_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Ad] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Ad] + # + # @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 insert_ad(profile_id, ad_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/ads', options) + command.request_representation = Google::Apis::DfareportingV3_2::Ad::Representation + command.request_object = ad_object + command.response_representation = Google::Apis::DfareportingV3_2::Ad::Representation + command.response_class = Google::Apis::DfareportingV3_2::Ad + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of ads, possibly filtered. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Boolean] active + # Select only active ads. + # @param [Fixnum] advertiser_id + # Select only ads with this advertiser ID. + # @param [Boolean] archived + # Select only archived ads. + # @param [Array, Fixnum] audience_segment_ids + # Select only ads with these audience segment IDs. + # @param [Array, Fixnum] campaign_ids + # Select only ads with these campaign IDs. + # @param [String] compatibility + # Select default ads with the specified compatibility. Applicable when type is + # AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering + # either on desktop or on mobile devices for regular or interstitial ads, + # respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. + # IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the + # VAST standard. + # @param [Array, Fixnum] creative_ids + # Select only ads with these creative IDs assigned. + # @param [Array, Fixnum] creative_optimization_configuration_ids + # Select only ads with these creative optimization configuration IDs. + # @param [Boolean] dynamic_click_tracker + # Select only dynamic click trackers. Applicable when type is + # AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, + # select static click trackers. Leave unset to select both. + # @param [Array, Fixnum] ids + # Select only ads with these IDs. + # @param [Array, Fixnum] landing_page_ids + # Select only ads with these landing page IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [Fixnum] overridden_event_tag_id + # Select only ads with this event tag override ID. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [Array, Fixnum] placement_ids + # Select only ads with these placement IDs assigned. + # @param [Array, Fixnum] remarketing_list_ids + # Select only ads whose list targeting expression use these remarketing list IDs. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "ad*2015" will return objects with names like "ad June 2015", "ad + # April 2015", or simply "ad 2015". Most of the searches also add wildcards + # implicitly at the start and the end of the search string. For example, a + # search string of "ad" will match objects with name "my ad", "ad 2015", or + # simply "ad". + # @param [Array, Fixnum] size_ids + # Select only ads with these size IDs. + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [Boolean] ssl_compliant + # Select only ads that are SSL-compliant. + # @param [Boolean] ssl_required + # Select only ads that require SSL. + # @param [Array, String] type + # Select only ads with these types. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AdsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AdsListResponse] + # + # @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_ads(profile_id, active: nil, advertiser_id: nil, archived: nil, audience_segment_ids: nil, campaign_ids: nil, compatibility: nil, creative_ids: nil, creative_optimization_configuration_ids: nil, dynamic_click_tracker: nil, ids: nil, landing_page_ids: nil, max_results: nil, overridden_event_tag_id: nil, page_token: nil, placement_ids: nil, remarketing_list_ids: nil, search_string: nil, size_ids: nil, sort_field: nil, sort_order: nil, ssl_compliant: nil, ssl_required: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/ads', options) + command.response_representation = Google::Apis::DfareportingV3_2::AdsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::AdsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['active'] = active unless active.nil? + command.query['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['archived'] = archived unless archived.nil? + command.query['audienceSegmentIds'] = audience_segment_ids unless audience_segment_ids.nil? + command.query['campaignIds'] = campaign_ids unless campaign_ids.nil? + command.query['compatibility'] = compatibility unless compatibility.nil? + command.query['creativeIds'] = creative_ids unless creative_ids.nil? + command.query['creativeOptimizationConfigurationIds'] = creative_optimization_configuration_ids unless creative_optimization_configuration_ids.nil? + command.query['dynamicClickTracker'] = dynamic_click_tracker unless dynamic_click_tracker.nil? + command.query['ids'] = ids unless ids.nil? + command.query['landingPageIds'] = landing_page_ids unless landing_page_ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['overriddenEventTagId'] = overridden_event_tag_id unless overridden_event_tag_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['placementIds'] = placement_ids unless placement_ids.nil? + command.query['remarketingListIds'] = remarketing_list_ids unless remarketing_list_ids.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sizeIds'] = size_ids unless size_ids.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['sslCompliant'] = ssl_compliant unless ssl_compliant.nil? + command.query['sslRequired'] = ssl_required unless ssl_required.nil? + command.query['type'] = type unless type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing ad. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Ad ID. + # @param [Google::Apis::DfareportingV3_2::Ad] ad_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Ad] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Ad] + # + # @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_ad(profile_id, id, ad_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/ads', options) + command.request_representation = Google::Apis::DfareportingV3_2::Ad::Representation + command.request_object = ad_object + command.response_representation = Google::Apis::DfareportingV3_2::Ad::Representation + command.response_class = Google::Apis::DfareportingV3_2::Ad + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing ad. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Ad] ad_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Ad] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Ad] + # + # @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 update_ad(profile_id, ad_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/ads', options) + command.request_representation = Google::Apis::DfareportingV3_2::Ad::Representation + command.request_object = ad_object + command.response_representation = Google::Apis::DfareportingV3_2::Ad::Representation + command.response_class = Google::Apis::DfareportingV3_2::Ad + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing advertiser group. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Advertiser group ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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_advertiser_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'userprofiles/{profileId}/advertiserGroups/{id}', options) + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one advertiser group by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Advertiser group ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AdvertiserGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AdvertiserGroup] + # + # @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_advertiser_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/advertiserGroups/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::AdvertiserGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::AdvertiserGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new advertiser group. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::AdvertiserGroup] advertiser_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AdvertiserGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AdvertiserGroup] + # + # @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 insert_advertiser_group(profile_id, advertiser_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/advertiserGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::AdvertiserGroup::Representation + command.request_object = advertiser_group_object + command.response_representation = Google::Apis::DfareportingV3_2::AdvertiserGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::AdvertiserGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of advertiser groups, possibly filtered. This method supports + # paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] ids + # Select only advertiser groups with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "advertiser*2015" will return objects with names like "advertiser + # group June 2015", "advertiser group April 2015", or simply "advertiser group + # 2015". Most of the searches also add wildcards implicitly at the start and the + # end of the search string. For example, a search string of "advertisergroup" + # will match objects with name "my advertisergroup", "advertisergroup 2015", or + # simply "advertisergroup". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AdvertiserGroupsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AdvertiserGroupsListResponse] + # + # @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_advertiser_groups(profile_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/advertiserGroups', options) + command.response_representation = Google::Apis::DfareportingV3_2::AdvertiserGroupsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::AdvertiserGroupsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing advertiser group. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Advertiser group ID. + # @param [Google::Apis::DfareportingV3_2::AdvertiserGroup] advertiser_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AdvertiserGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AdvertiserGroup] + # + # @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_advertiser_group(profile_id, id, advertiser_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/advertiserGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::AdvertiserGroup::Representation + command.request_object = advertiser_group_object + command.response_representation = Google::Apis::DfareportingV3_2::AdvertiserGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::AdvertiserGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing advertiser group. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::AdvertiserGroup] advertiser_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AdvertiserGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AdvertiserGroup] + # + # @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 update_advertiser_group(profile_id, advertiser_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/advertiserGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::AdvertiserGroup::Representation + command.request_object = advertiser_group_object + command.response_representation = Google::Apis::DfareportingV3_2::AdvertiserGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::AdvertiserGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one landing page by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Landing page ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::LandingPage] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::LandingPage] + # + # @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_advertiser_landing_page(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/advertiserLandingPages/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::LandingPage::Representation + command.response_class = Google::Apis::DfareportingV3_2::LandingPage + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new landing page. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::LandingPage] landing_page_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::LandingPage] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::LandingPage] + # + # @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 insert_advertiser_landing_page(profile_id, landing_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/advertiserLandingPages', options) + command.request_representation = Google::Apis::DfareportingV3_2::LandingPage::Representation + command.request_object = landing_page_object + command.response_representation = Google::Apis::DfareportingV3_2::LandingPage::Representation + command.response_class = Google::Apis::DfareportingV3_2::LandingPage + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of landing pages. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] advertiser_ids + # Select only landing pages that belong to these advertisers. + # @param [Boolean] archived + # Select only archived landing pages. Don't set this field to select both + # archived and non-archived landing pages. + # @param [Array, Fixnum] ids + # Select only landing pages with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for landing pages by name or ID. Wildcards (*) are allowed. + # For example, "landingpage*2017" will return landing pages with names like " + # landingpage July 2017", "landingpage March 2017", or simply "landingpage 2017". + # Most of the searches also add wildcards implicitly at the start and the end + # of the search string. For example, a search string of "landingpage" will match + # campaigns with name "my landingpage", "landingpage 2015", or simply " + # landingpage". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [Fixnum] subaccount_id + # Select only landing pages that belong to this subaccount. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AdvertiserLandingPagesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AdvertiserLandingPagesListResponse] + # + # @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_advertiser_landing_pages(profile_id, advertiser_ids: nil, archived: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/advertiserLandingPages', options) + command.response_representation = Google::Apis::DfareportingV3_2::AdvertiserLandingPagesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::AdvertiserLandingPagesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserIds'] = advertiser_ids unless advertiser_ids.nil? + command.query['archived'] = archived unless archived.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['subaccountId'] = subaccount_id unless subaccount_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing landing page. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Landing page ID. + # @param [Google::Apis::DfareportingV3_2::LandingPage] landing_page_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::LandingPage] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::LandingPage] + # + # @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_advertiser_landing_page(profile_id, id, landing_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/advertiserLandingPages', options) + command.request_representation = Google::Apis::DfareportingV3_2::LandingPage::Representation + command.request_object = landing_page_object + command.response_representation = Google::Apis::DfareportingV3_2::LandingPage::Representation + command.response_class = Google::Apis::DfareportingV3_2::LandingPage + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing landing page. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::LandingPage] landing_page_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::LandingPage] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::LandingPage] + # + # @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 update_advertiser_landing_page(profile_id, landing_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/advertiserLandingPages', options) + command.request_representation = Google::Apis::DfareportingV3_2::LandingPage::Representation + command.request_object = landing_page_object + command.response_representation = Google::Apis::DfareportingV3_2::LandingPage::Representation + command.response_class = Google::Apis::DfareportingV3_2::LandingPage + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one advertiser by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Advertiser ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Advertiser] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Advertiser] + # + # @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_advertiser(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/advertisers/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Advertiser::Representation + command.response_class = Google::Apis::DfareportingV3_2::Advertiser + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new advertiser. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Advertiser] advertiser_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Advertiser] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Advertiser] + # + # @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 insert_advertiser(profile_id, advertiser_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/advertisers', options) + command.request_representation = Google::Apis::DfareportingV3_2::Advertiser::Representation + command.request_object = advertiser_object + command.response_representation = Google::Apis::DfareportingV3_2::Advertiser::Representation + command.response_class = Google::Apis::DfareportingV3_2::Advertiser + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of advertisers, possibly filtered. This method supports + # paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] advertiser_group_ids + # Select only advertisers with these advertiser group IDs. + # @param [Array, Fixnum] floodlight_configuration_ids + # Select only advertisers with these floodlight configuration IDs. + # @param [Array, Fixnum] ids + # Select only advertisers with these IDs. + # @param [Boolean] include_advertisers_without_groups_only + # Select only advertisers which do not belong to any advertiser group. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [Boolean] only_parent + # Select only advertisers which use another advertiser's floodlight + # configuration. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "advertiser*2015" will return objects with names like "advertiser + # June 2015", "advertiser April 2015", or simply "advertiser 2015". Most of the + # searches also add wildcards implicitly at the start and the end of the search + # string. For example, a search string of "advertiser" will match objects with + # name "my advertiser", "advertiser 2015", or simply "advertiser". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] status + # Select only advertisers with the specified status. + # @param [Fixnum] subaccount_id + # Select only advertisers with these subaccount IDs. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::AdvertisersListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::AdvertisersListResponse] + # + # @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_advertisers(profile_id, advertiser_group_ids: nil, floodlight_configuration_ids: nil, ids: nil, include_advertisers_without_groups_only: nil, max_results: nil, only_parent: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, status: nil, subaccount_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/advertisers', options) + command.response_representation = Google::Apis::DfareportingV3_2::AdvertisersListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::AdvertisersListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserGroupIds'] = advertiser_group_ids unless advertiser_group_ids.nil? + command.query['floodlightConfigurationIds'] = floodlight_configuration_ids unless floodlight_configuration_ids.nil? + command.query['ids'] = ids unless ids.nil? + command.query['includeAdvertisersWithoutGroupsOnly'] = include_advertisers_without_groups_only unless include_advertisers_without_groups_only.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['onlyParent'] = only_parent unless only_parent.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['status'] = status unless status.nil? + command.query['subaccountId'] = subaccount_id unless subaccount_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing advertiser. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Advertiser ID. + # @param [Google::Apis::DfareportingV3_2::Advertiser] advertiser_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Advertiser] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Advertiser] + # + # @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_advertiser(profile_id, id, advertiser_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/advertisers', options) + command.request_representation = Google::Apis::DfareportingV3_2::Advertiser::Representation + command.request_object = advertiser_object + command.response_representation = Google::Apis::DfareportingV3_2::Advertiser::Representation + command.response_class = Google::Apis::DfareportingV3_2::Advertiser + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing advertiser. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Advertiser] advertiser_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Advertiser] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Advertiser] + # + # @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 update_advertiser(profile_id, advertiser_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/advertisers', options) + command.request_representation = Google::Apis::DfareportingV3_2::Advertiser::Representation + command.request_object = advertiser_object + command.response_representation = Google::Apis::DfareportingV3_2::Advertiser::Representation + command.response_class = Google::Apis::DfareportingV3_2::Advertiser + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of browsers. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::BrowsersListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::BrowsersListResponse] + # + # @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_browsers(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/browsers', options) + command.response_representation = Google::Apis::DfareportingV3_2::BrowsersListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::BrowsersListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Associates a creative with the specified campaign. This method creates a + # default ad with dimensions matching the creative in the campaign if such a + # default ad does not exist already. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] campaign_id + # Campaign ID in this association. + # @param [Google::Apis::DfareportingV3_2::CampaignCreativeAssociation] campaign_creative_association_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CampaignCreativeAssociation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CampaignCreativeAssociation] + # + # @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 insert_campaign_creative_association(profile_id, campaign_id, campaign_creative_association_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', options) + command.request_representation = Google::Apis::DfareportingV3_2::CampaignCreativeAssociation::Representation + command.request_object = campaign_creative_association_object + command.response_representation = Google::Apis::DfareportingV3_2::CampaignCreativeAssociation::Representation + command.response_class = Google::Apis::DfareportingV3_2::CampaignCreativeAssociation + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['campaignId'] = campaign_id unless campaign_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of creative IDs associated with the specified campaign. + # This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] campaign_id + # Campaign ID in this association. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CampaignCreativeAssociationsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CampaignCreativeAssociationsListResponse] + # + # @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_campaign_creative_associations(profile_id, campaign_id, max_results: nil, page_token: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', options) + command.response_representation = Google::Apis::DfareportingV3_2::CampaignCreativeAssociationsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::CampaignCreativeAssociationsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['campaignId'] = campaign_id unless campaign_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one campaign by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Campaign ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Campaign] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Campaign] + # + # @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_campaign(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/campaigns/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Campaign::Representation + command.response_class = Google::Apis::DfareportingV3_2::Campaign + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new campaign. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Campaign] campaign_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Campaign] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Campaign] + # + # @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 insert_campaign(profile_id, campaign_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/campaigns', options) + command.request_representation = Google::Apis::DfareportingV3_2::Campaign::Representation + command.request_object = campaign_object + command.response_representation = Google::Apis::DfareportingV3_2::Campaign::Representation + command.response_class = Google::Apis::DfareportingV3_2::Campaign + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of campaigns, possibly filtered. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] advertiser_group_ids + # Select only campaigns whose advertisers belong to these advertiser groups. + # @param [Array, Fixnum] advertiser_ids + # Select only campaigns that belong to these advertisers. + # @param [Boolean] archived + # Select only archived campaigns. Don't set this field to select both archived + # and non-archived campaigns. + # @param [Boolean] at_least_one_optimization_activity + # Select only campaigns that have at least one optimization activity. + # @param [Array, Fixnum] excluded_ids + # Exclude campaigns with these IDs. + # @param [Array, Fixnum] ids + # Select only campaigns with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [Fixnum] overridden_event_tag_id + # Select only campaigns that have overridden this event tag ID. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For + # example, "campaign*2015" will return campaigns with names like "campaign June + # 2015", "campaign April 2015", or simply "campaign 2015". Most of the searches + # also add wildcards implicitly at the start and the end of the search string. + # For example, a search string of "campaign" will match campaigns with name "my + # campaign", "campaign 2015", or simply "campaign". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [Fixnum] subaccount_id + # Select only campaigns that belong to this subaccount. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CampaignsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CampaignsListResponse] + # + # @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_campaigns(profile_id, advertiser_group_ids: nil, advertiser_ids: nil, archived: nil, at_least_one_optimization_activity: nil, excluded_ids: nil, ids: nil, max_results: nil, overridden_event_tag_id: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/campaigns', options) + command.response_representation = Google::Apis::DfareportingV3_2::CampaignsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::CampaignsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserGroupIds'] = advertiser_group_ids unless advertiser_group_ids.nil? + command.query['advertiserIds'] = advertiser_ids unless advertiser_ids.nil? + command.query['archived'] = archived unless archived.nil? + command.query['atLeastOneOptimizationActivity'] = at_least_one_optimization_activity unless at_least_one_optimization_activity.nil? + command.query['excludedIds'] = excluded_ids unless excluded_ids.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['overriddenEventTagId'] = overridden_event_tag_id unless overridden_event_tag_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['subaccountId'] = subaccount_id unless subaccount_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing campaign. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Campaign ID. + # @param [Google::Apis::DfareportingV3_2::Campaign] campaign_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Campaign] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Campaign] + # + # @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_campaign(profile_id, id, campaign_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/campaigns', options) + command.request_representation = Google::Apis::DfareportingV3_2::Campaign::Representation + command.request_object = campaign_object + command.response_representation = Google::Apis::DfareportingV3_2::Campaign::Representation + command.response_class = Google::Apis::DfareportingV3_2::Campaign + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing campaign. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Campaign] campaign_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Campaign] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Campaign] + # + # @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 update_campaign(profile_id, campaign_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/campaigns', options) + command.request_representation = Google::Apis::DfareportingV3_2::Campaign::Representation + command.request_object = campaign_object + command.response_representation = Google::Apis::DfareportingV3_2::Campaign::Representation + command.response_class = Google::Apis::DfareportingV3_2::Campaign + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one change log by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Change log ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ChangeLog] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ChangeLog] + # + # @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_change_log(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/changeLogs/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::ChangeLog::Representation + command.response_class = Google::Apis::DfareportingV3_2::ChangeLog + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of change logs. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] action + # Select only change logs with the specified action. + # @param [Array, Fixnum] ids + # Select only change logs with these IDs. + # @param [String] max_change_time + # Select only change logs whose change time is before the specified + # maxChangeTime.The time should be formatted as an RFC3339 date/time string. For + # example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, + # the format is "2015-07-18T22:54:00-04:00". In other words, the year, month, + # day, the letter T, the hour (24-hour clock system), minute, second, and then + # the time zone offset. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] min_change_time + # Select only change logs whose change time is before the specified + # minChangeTime.The time should be formatted as an RFC3339 date/time string. For + # example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, + # the format is "2015-07-18T22:54:00-04:00". In other words, the year, month, + # day, the letter T, the hour (24-hour clock system), minute, second, and then + # the time zone offset. + # @param [Array, Fixnum] object_ids + # Select only change logs with these object IDs. + # @param [String] object_type + # Select only change logs with the specified object type. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Select only change logs whose object ID, user name, old or new values match + # the search string. + # @param [Array, Fixnum] user_profile_ids + # Select only change logs with these user profile IDs. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ChangeLogsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ChangeLogsListResponse] + # + # @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_change_logs(profile_id, action: nil, ids: nil, max_change_time: nil, max_results: nil, min_change_time: nil, object_ids: nil, object_type: nil, page_token: nil, search_string: nil, user_profile_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/changeLogs', options) + command.response_representation = Google::Apis::DfareportingV3_2::ChangeLogsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::ChangeLogsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['action'] = action unless action.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxChangeTime'] = max_change_time unless max_change_time.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['minChangeTime'] = min_change_time unless min_change_time.nil? + command.query['objectIds'] = object_ids unless object_ids.nil? + command.query['objectType'] = object_type unless object_type.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['userProfileIds'] = user_profile_ids unless user_profile_ids.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of cities, possibly filtered. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] country_dart_ids + # Select only cities from these countries. + # @param [Array, Fixnum] dart_ids + # Select only cities with these DART IDs. + # @param [String] name_prefix + # Select only cities with names starting with this prefix. + # @param [Array, Fixnum] region_dart_ids + # Select only cities from these regions. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CitiesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CitiesListResponse] + # + # @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_cities(profile_id, country_dart_ids: nil, dart_ids: nil, name_prefix: nil, region_dart_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/cities', options) + command.response_representation = Google::Apis::DfareportingV3_2::CitiesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::CitiesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['countryDartIds'] = country_dart_ids unless country_dart_ids.nil? + command.query['dartIds'] = dart_ids unless dart_ids.nil? + command.query['namePrefix'] = name_prefix unless name_prefix.nil? + command.query['regionDartIds'] = region_dart_ids unless region_dart_ids.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one connection type by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Connection type ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ConnectionType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ConnectionType] + # + # @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_connection_type(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/connectionTypes/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::ConnectionType::Representation + command.response_class = Google::Apis::DfareportingV3_2::ConnectionType + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of connection types. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ConnectionTypesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ConnectionTypesListResponse] + # + # @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_connection_types(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/connectionTypes', options) + command.response_representation = Google::Apis::DfareportingV3_2::ConnectionTypesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::ConnectionTypesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing content category. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Content category ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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_content_category(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'userprofiles/{profileId}/contentCategories/{id}', options) + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one content category by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Content category ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ContentCategory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ContentCategory] + # + # @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_content_category(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/contentCategories/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::ContentCategory::Representation + command.response_class = Google::Apis::DfareportingV3_2::ContentCategory + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new content category. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::ContentCategory] content_category_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ContentCategory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ContentCategory] + # + # @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 insert_content_category(profile_id, content_category_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/contentCategories', options) + command.request_representation = Google::Apis::DfareportingV3_2::ContentCategory::Representation + command.request_object = content_category_object + command.response_representation = Google::Apis::DfareportingV3_2::ContentCategory::Representation + command.response_class = Google::Apis::DfareportingV3_2::ContentCategory + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of content categories, possibly filtered. This method + # supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] ids + # Select only content categories with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "contentcategory*2015" will return objects with names like " + # contentcategory June 2015", "contentcategory April 2015", or simply " + # contentcategory 2015". Most of the searches also add wildcards implicitly at + # the start and the end of the search string. For example, a search string of " + # contentcategory" will match objects with name "my contentcategory", " + # contentcategory 2015", or simply "contentcategory". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ContentCategoriesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ContentCategoriesListResponse] + # + # @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_content_categories(profile_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/contentCategories', options) + command.response_representation = Google::Apis::DfareportingV3_2::ContentCategoriesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::ContentCategoriesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing content category. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Content category ID. + # @param [Google::Apis::DfareportingV3_2::ContentCategory] content_category_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ContentCategory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ContentCategory] + # + # @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_content_category(profile_id, id, content_category_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/contentCategories', options) + command.request_representation = Google::Apis::DfareportingV3_2::ContentCategory::Representation + command.request_object = content_category_object + command.response_representation = Google::Apis::DfareportingV3_2::ContentCategory::Representation + command.response_class = Google::Apis::DfareportingV3_2::ContentCategory + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing content category. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::ContentCategory] content_category_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ContentCategory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ContentCategory] + # + # @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 update_content_category(profile_id, content_category_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/contentCategories', options) + command.request_representation = Google::Apis::DfareportingV3_2::ContentCategory::Representation + command.request_object = content_category_object + command.response_representation = Google::Apis::DfareportingV3_2::ContentCategory::Representation + command.response_class = Google::Apis::DfareportingV3_2::ContentCategory + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts conversions. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::ConversionsBatchInsertRequest] conversions_batch_insert_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ConversionsBatchInsertResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ConversionsBatchInsertResponse] + # + # @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 batchinsert_conversion(profile_id, conversions_batch_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/conversions/batchinsert', options) + command.request_representation = Google::Apis::DfareportingV3_2::ConversionsBatchInsertRequest::Representation + command.request_object = conversions_batch_insert_request_object + command.response_representation = Google::Apis::DfareportingV3_2::ConversionsBatchInsertResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::ConversionsBatchInsertResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates existing conversions. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::ConversionsBatchUpdateRequest] conversions_batch_update_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ConversionsBatchUpdateResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ConversionsBatchUpdateResponse] + # + # @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 batchupdate_conversion(profile_id, conversions_batch_update_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/conversions/batchupdate', options) + command.request_representation = Google::Apis::DfareportingV3_2::ConversionsBatchUpdateRequest::Representation + command.request_object = conversions_batch_update_request_object + command.response_representation = Google::Apis::DfareportingV3_2::ConversionsBatchUpdateResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::ConversionsBatchUpdateResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one country by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] dart_id + # Country DART ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Country] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Country] + # + # @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_country(profile_id, dart_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/countries/{dartId}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Country::Representation + command.response_class = Google::Apis::DfareportingV3_2::Country + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['dartId'] = dart_id unless dart_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of countries. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CountriesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CountriesListResponse] + # + # @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_countries(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/countries', options) + command.response_representation = Google::Apis::DfareportingV3_2::CountriesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::CountriesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new creative asset. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] advertiser_id + # Advertiser ID of this creative. This is a required field. + # @param [Google::Apis::DfareportingV3_2::CreativeAssetMetadata] creative_asset_metadata_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [IO, String] upload_source + # IO stream or filename containing content to upload + # @param [String] content_type + # Content type of the uploaded content. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeAssetMetadata] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeAssetMetadata] + # + # @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 insert_creative_asset(profile_id, advertiser_id, creative_asset_metadata_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + if upload_source.nil? + command = make_simple_command(:post, 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', options) + else + command = make_upload_command(:post, 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', options) + command.upload_source = upload_source + command.upload_content_type = content_type + end + command.request_representation = Google::Apis::DfareportingV3_2::CreativeAssetMetadata::Representation + command.request_object = creative_asset_metadata_object + command.response_representation = Google::Apis::DfareportingV3_2::CreativeAssetMetadata::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeAssetMetadata + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing creative field value. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] creative_field_id + # Creative field ID for this creative field value. + # @param [Fixnum] id + # Creative Field Value ID + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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_creative_field_value(profile_id, creative_field_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', options) + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['creativeFieldId'] = creative_field_id unless creative_field_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one creative field value by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] creative_field_id + # Creative field ID for this creative field value. + # @param [Fixnum] id + # Creative Field Value ID + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeFieldValue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeFieldValue] + # + # @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_creative_field_value(profile_id, creative_field_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::CreativeFieldValue::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeFieldValue + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['creativeFieldId'] = creative_field_id unless creative_field_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new creative field value. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] creative_field_id + # Creative field ID for this creative field value. + # @param [Google::Apis::DfareportingV3_2::CreativeFieldValue] creative_field_value_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeFieldValue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeFieldValue] + # + # @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 insert_creative_field_value(profile_id, creative_field_id, creative_field_value_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options) + command.request_representation = Google::Apis::DfareportingV3_2::CreativeFieldValue::Representation + command.request_object = creative_field_value_object + command.response_representation = Google::Apis::DfareportingV3_2::CreativeFieldValue::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeFieldValue + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['creativeFieldId'] = creative_field_id unless creative_field_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of creative field values, possibly filtered. This method + # supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] creative_field_id + # Creative field ID for this creative field value. + # @param [Array, Fixnum] ids + # Select only creative field values with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for creative field values by their values. Wildcards (e.g. *) + # are not allowed. + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeFieldValuesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeFieldValuesListResponse] + # + # @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_creative_field_values(profile_id, creative_field_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options) + command.response_representation = Google::Apis::DfareportingV3_2::CreativeFieldValuesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeFieldValuesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['creativeFieldId'] = creative_field_id unless creative_field_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing creative field value. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] creative_field_id + # Creative field ID for this creative field value. + # @param [Fixnum] id + # Creative Field Value ID + # @param [Google::Apis::DfareportingV3_2::CreativeFieldValue] creative_field_value_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeFieldValue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeFieldValue] + # + # @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_creative_field_value(profile_id, creative_field_id, id, creative_field_value_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options) + command.request_representation = Google::Apis::DfareportingV3_2::CreativeFieldValue::Representation + command.request_object = creative_field_value_object + command.response_representation = Google::Apis::DfareportingV3_2::CreativeFieldValue::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeFieldValue + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['creativeFieldId'] = creative_field_id unless creative_field_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing creative field value. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] creative_field_id + # Creative field ID for this creative field value. + # @param [Google::Apis::DfareportingV3_2::CreativeFieldValue] creative_field_value_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeFieldValue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeFieldValue] + # + # @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 update_creative_field_value(profile_id, creative_field_id, creative_field_value_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options) + command.request_representation = Google::Apis::DfareportingV3_2::CreativeFieldValue::Representation + command.request_object = creative_field_value_object + command.response_representation = Google::Apis::DfareportingV3_2::CreativeFieldValue::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeFieldValue + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['creativeFieldId'] = creative_field_id unless creative_field_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing creative field. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Creative Field ID + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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_creative_field(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'userprofiles/{profileId}/creativeFields/{id}', options) + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one creative field by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Creative Field ID + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeField] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeField] + # + # @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_creative_field(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeFields/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::CreativeField::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeField + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new creative field. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::CreativeField] creative_field_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeField] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeField] + # + # @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 insert_creative_field(profile_id, creative_field_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/creativeFields', options) + command.request_representation = Google::Apis::DfareportingV3_2::CreativeField::Representation + command.request_object = creative_field_object + command.response_representation = Google::Apis::DfareportingV3_2::CreativeField::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeField + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of creative fields, possibly filtered. This method supports + # paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] advertiser_ids + # Select only creative fields that belong to these advertisers. + # @param [Array, Fixnum] ids + # Select only creative fields with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for creative fields by name or ID. Wildcards (*) are allowed. + # For example, "creativefield*2015" will return creative fields with names like " + # creativefield June 2015", "creativefield April 2015", or simply "creativefield + # 2015". Most of the searches also add wild-cards implicitly at the start and + # the end of the search string. For example, a search string of "creativefield" + # will match creative fields with the name "my creativefield", "creativefield + # 2015", or simply "creativefield". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeFieldsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeFieldsListResponse] + # + # @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_creative_fields(profile_id, advertiser_ids: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeFields', options) + command.response_representation = Google::Apis::DfareportingV3_2::CreativeFieldsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeFieldsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserIds'] = advertiser_ids unless advertiser_ids.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing creative field. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Creative Field ID + # @param [Google::Apis::DfareportingV3_2::CreativeField] creative_field_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeField] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeField] + # + # @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_creative_field(profile_id, id, creative_field_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeFields', options) + command.request_representation = Google::Apis::DfareportingV3_2::CreativeField::Representation + command.request_object = creative_field_object + command.response_representation = Google::Apis::DfareportingV3_2::CreativeField::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeField + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing creative field. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::CreativeField] creative_field_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeField] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeField] + # + # @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 update_creative_field(profile_id, creative_field_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/creativeFields', options) + command.request_representation = Google::Apis::DfareportingV3_2::CreativeField::Representation + command.request_object = creative_field_object + command.response_representation = Google::Apis::DfareportingV3_2::CreativeField::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeField + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one creative group by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Creative group ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeGroup] + # + # @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_creative_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeGroups/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::CreativeGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new creative group. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::CreativeGroup] creative_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeGroup] + # + # @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 insert_creative_group(profile_id, creative_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/creativeGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::CreativeGroup::Representation + command.request_object = creative_group_object + command.response_representation = Google::Apis::DfareportingV3_2::CreativeGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of creative groups, possibly filtered. This method supports + # paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] advertiser_ids + # Select only creative groups that belong to these advertisers. + # @param [Fixnum] group_number + # Select only creative groups that belong to this subgroup. + # @param [Array, Fixnum] ids + # Select only creative groups with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for creative groups by name or ID. Wildcards (*) are allowed. + # For example, "creativegroup*2015" will return creative groups with names like " + # creativegroup June 2015", "creativegroup April 2015", or simply "creativegroup + # 2015". Most of the searches also add wild-cards implicitly at the start and + # the end of the search string. For example, a search string of "creativegroup" + # will match creative groups with the name "my creativegroup", "creativegroup + # 2015", or simply "creativegroup". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeGroupsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeGroupsListResponse] + # + # @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_creative_groups(profile_id, advertiser_ids: nil, group_number: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeGroups', options) + command.response_representation = Google::Apis::DfareportingV3_2::CreativeGroupsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeGroupsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserIds'] = advertiser_ids unless advertiser_ids.nil? + command.query['groupNumber'] = group_number unless group_number.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing creative group. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Creative group ID. + # @param [Google::Apis::DfareportingV3_2::CreativeGroup] creative_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeGroup] + # + # @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_creative_group(profile_id, id, creative_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::CreativeGroup::Representation + command.request_object = creative_group_object + command.response_representation = Google::Apis::DfareportingV3_2::CreativeGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing creative group. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::CreativeGroup] creative_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativeGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativeGroup] + # + # @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 update_creative_group(profile_id, creative_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/creativeGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::CreativeGroup::Representation + command.request_object = creative_group_object + command.response_representation = Google::Apis::DfareportingV3_2::CreativeGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativeGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one creative by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Creative ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Creative] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Creative] + # + # @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_creative(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/creatives/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Creative::Representation + command.response_class = Google::Apis::DfareportingV3_2::Creative + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new creative. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Creative] creative_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Creative] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Creative] + # + # @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 insert_creative(profile_id, creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/creatives', options) + command.request_representation = Google::Apis::DfareportingV3_2::Creative::Representation + command.request_object = creative_object + command.response_representation = Google::Apis::DfareportingV3_2::Creative::Representation + command.response_class = Google::Apis::DfareportingV3_2::Creative + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of creatives, possibly filtered. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Boolean] active + # Select only active creatives. Leave blank to select active and inactive + # creatives. + # @param [Fixnum] advertiser_id + # Select only creatives with this advertiser ID. + # @param [Boolean] archived + # Select only archived creatives. Leave blank to select archived and unarchived + # creatives. + # @param [Fixnum] campaign_id + # Select only creatives with this campaign ID. + # @param [Array, Fixnum] companion_creative_ids + # Select only in-stream video creatives with these companion IDs. + # @param [Array, Fixnum] creative_field_ids + # Select only creatives with these creative field IDs. + # @param [Array, Fixnum] ids + # Select only creatives with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [Array, Fixnum] rendering_ids + # Select only creatives with these rendering IDs. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "creative*2015" will return objects with names like "creative June + # 2015", "creative April 2015", or simply "creative 2015". Most of the searches + # also add wildcards implicitly at the start and the end of the search string. + # For example, a search string of "creative" will match objects with name "my + # creative", "creative 2015", or simply "creative". + # @param [Array, Fixnum] size_ids + # Select only creatives with these size IDs. + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [Fixnum] studio_creative_id + # Select only creatives corresponding to this Studio creative ID. + # @param [Array, String] types + # Select only creatives with these creative types. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CreativesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CreativesListResponse] + # + # @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_creatives(profile_id, active: nil, advertiser_id: nil, archived: nil, campaign_id: nil, companion_creative_ids: nil, creative_field_ids: nil, ids: nil, max_results: nil, page_token: nil, rendering_ids: nil, search_string: nil, size_ids: nil, sort_field: nil, sort_order: nil, studio_creative_id: nil, types: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/creatives', options) + command.response_representation = Google::Apis::DfareportingV3_2::CreativesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::CreativesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['active'] = active unless active.nil? + command.query['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['archived'] = archived unless archived.nil? + command.query['campaignId'] = campaign_id unless campaign_id.nil? + command.query['companionCreativeIds'] = companion_creative_ids unless companion_creative_ids.nil? + command.query['creativeFieldIds'] = creative_field_ids unless creative_field_ids.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['renderingIds'] = rendering_ids unless rendering_ids.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sizeIds'] = size_ids unless size_ids.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['studioCreativeId'] = studio_creative_id unless studio_creative_id.nil? + command.query['types'] = types unless types.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing creative. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Creative ID. + # @param [Google::Apis::DfareportingV3_2::Creative] creative_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Creative] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Creative] + # + # @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_creative(profile_id, id, creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/creatives', options) + command.request_representation = Google::Apis::DfareportingV3_2::Creative::Representation + command.request_object = creative_object + command.response_representation = Google::Apis::DfareportingV3_2::Creative::Representation + command.response_class = Google::Apis::DfareportingV3_2::Creative + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing creative. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Creative] creative_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Creative] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Creative] + # + # @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 update_creative(profile_id, creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/creatives', options) + command.request_representation = Google::Apis::DfareportingV3_2::Creative::Representation + command.request_object = creative_object + command.response_representation = Google::Apis::DfareportingV3_2::Creative::Representation + command.response_class = Google::Apis::DfareportingV3_2::Creative + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves list of report dimension values for a list of filters. + # @param [Fixnum] profile_id + # The DFA user profile ID. + # @param [Google::Apis::DfareportingV3_2::DimensionValueRequest] dimension_value_request_object + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # The value of the nextToken from the previous result page. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::DimensionValueList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::DimensionValueList] + # + # @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_dimension_value(profile_id, dimension_value_request_object = nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/dimensionvalues/query', options) + command.request_representation = Google::Apis::DfareportingV3_2::DimensionValueRequest::Representation + command.request_object = dimension_value_request_object + command.response_representation = Google::Apis::DfareportingV3_2::DimensionValueList::Representation + command.response_class = Google::Apis::DfareportingV3_2::DimensionValueList + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one directory site contact by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Directory site contact ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::DirectorySiteContact] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::DirectorySiteContact] + # + # @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_directory_site_contact(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/directorySiteContacts/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::DirectorySiteContact::Representation + command.response_class = Google::Apis::DfareportingV3_2::DirectorySiteContact + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of directory site contacts, possibly filtered. This method + # supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] directory_site_ids + # Select only directory site contacts with these directory site IDs. This is a + # required field. + # @param [Array, Fixnum] ids + # Select only directory site contacts with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name, ID or email. Wildcards (*) are allowed. + # For example, "directory site contact*2015" will return objects with names like + # "directory site contact June 2015", "directory site contact April 2015", or + # simply "directory site contact 2015". Most of the searches also add wildcards + # implicitly at the start and the end of the search string. For example, a + # search string of "directory site contact" will match objects with name "my + # directory site contact", "directory site contact 2015", or simply "directory + # site contact". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::DirectorySiteContactsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::DirectorySiteContactsListResponse] + # + # @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_directory_site_contacts(profile_id, directory_site_ids: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/directorySiteContacts', options) + command.response_representation = Google::Apis::DfareportingV3_2::DirectorySiteContactsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::DirectorySiteContactsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['directorySiteIds'] = directory_site_ids unless directory_site_ids.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one directory site by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Directory site ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::DirectorySite] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::DirectorySite] + # + # @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_directory_site(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/directorySites/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::DirectorySite::Representation + command.response_class = Google::Apis::DfareportingV3_2::DirectorySite + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new directory site. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::DirectorySite] directory_site_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::DirectorySite] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::DirectorySite] + # + # @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 insert_directory_site(profile_id, directory_site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/directorySites', options) + command.request_representation = Google::Apis::DfareportingV3_2::DirectorySite::Representation + command.request_object = directory_site_object + command.response_representation = Google::Apis::DfareportingV3_2::DirectorySite::Representation + command.response_class = Google::Apis::DfareportingV3_2::DirectorySite + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of directory sites, possibly filtered. This method supports + # paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Boolean] accepts_in_stream_video_placements + # This search filter is no longer supported and will have no effect on the + # results returned. + # @param [Boolean] accepts_interstitial_placements + # This search filter is no longer supported and will have no effect on the + # results returned. + # @param [Boolean] accepts_publisher_paid_placements + # Select only directory sites that accept publisher paid placements. This field + # can be left blank. + # @param [Boolean] active + # Select only active directory sites. Leave blank to retrieve both active and + # inactive directory sites. + # @param [Fixnum] country_id + # Select only directory sites with this country ID. + # @param [String] dfp_network_code + # Select only directory sites with this DFP network code. + # @param [Array, Fixnum] ids + # Select only directory sites with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [Fixnum] parent_id + # Select only directory sites with this parent ID. + # @param [String] search_string + # Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. + # For example, "directory site*2015" will return objects with names like " + # directory site June 2015", "directory site April 2015", or simply "directory + # site 2015". Most of the searches also add wildcards implicitly at the start + # and the end of the search string. For example, a search string of "directory + # site" will match objects with name "my directory site", "directory site 2015" + # or simply, "directory site". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::DirectorySitesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::DirectorySitesListResponse] + # + # @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_directory_sites(profile_id, accepts_in_stream_video_placements: nil, accepts_interstitial_placements: nil, accepts_publisher_paid_placements: nil, active: nil, country_id: nil, dfp_network_code: nil, ids: nil, max_results: nil, page_token: nil, parent_id: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/directorySites', options) + command.response_representation = Google::Apis::DfareportingV3_2::DirectorySitesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::DirectorySitesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['acceptsInStreamVideoPlacements'] = accepts_in_stream_video_placements unless accepts_in_stream_video_placements.nil? + command.query['acceptsInterstitialPlacements'] = accepts_interstitial_placements unless accepts_interstitial_placements.nil? + command.query['acceptsPublisherPaidPlacements'] = accepts_publisher_paid_placements unless accepts_publisher_paid_placements.nil? + command.query['active'] = active unless active.nil? + command.query['countryId'] = country_id unless country_id.nil? + command.query['dfpNetworkCode'] = dfp_network_code unless dfp_network_code.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['parentId'] = parent_id unless parent_id.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing dynamic targeting key. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] object_id_ + # ID of the object of this dynamic targeting key. This is a required field. + # @param [String] name + # Name of this dynamic targeting key. This is a required field. Must be less + # than 256 characters long and cannot contain commas. All characters are + # converted to lowercase. + # @param [String] object_type + # Type of the object of this dynamic targeting key. This is a required field. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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_dynamic_targeting_key(profile_id, object_id_, name, object_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'userprofiles/{profileId}/dynamicTargetingKeys/{objectId}', options) + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['objectId'] = object_id_ unless object_id_.nil? + command.query['name'] = name unless name.nil? + command.query['objectType'] = object_type unless object_type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new dynamic targeting key. Keys must be created at the advertiser + # level before being assigned to the advertiser's ads, creatives, or placements. + # There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 + # keys can be assigned per ad, creative, or placement. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::DynamicTargetingKey] dynamic_targeting_key_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::DynamicTargetingKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::DynamicTargetingKey] + # + # @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 insert_dynamic_targeting_key(profile_id, dynamic_targeting_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/dynamicTargetingKeys', options) + command.request_representation = Google::Apis::DfareportingV3_2::DynamicTargetingKey::Representation + command.request_object = dynamic_targeting_key_object + command.response_representation = Google::Apis::DfareportingV3_2::DynamicTargetingKey::Representation + command.response_class = Google::Apis::DfareportingV3_2::DynamicTargetingKey + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of dynamic targeting keys. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] advertiser_id + # Select only dynamic targeting keys whose object has this advertiser ID. + # @param [Array, String] names + # Select only dynamic targeting keys exactly matching these names. + # @param [Fixnum] object_id_ + # Select only dynamic targeting keys with this object ID. + # @param [String] object_type + # Select only dynamic targeting keys with this object type. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::DynamicTargetingKeysListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::DynamicTargetingKeysListResponse] + # + # @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_dynamic_targeting_keys(profile_id, advertiser_id: nil, names: nil, object_id_: nil, object_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/dynamicTargetingKeys', options) + command.response_representation = Google::Apis::DfareportingV3_2::DynamicTargetingKeysListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::DynamicTargetingKeysListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['names'] = names unless names.nil? + command.query['objectId'] = object_id_ unless object_id_.nil? + command.query['objectType'] = object_type unless object_type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing event tag. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Event tag ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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_event_tag(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'userprofiles/{profileId}/eventTags/{id}', options) + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one event tag by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Event tag ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::EventTag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::EventTag] + # + # @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_event_tag(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/eventTags/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::EventTag::Representation + command.response_class = Google::Apis::DfareportingV3_2::EventTag + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new event tag. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::EventTag] event_tag_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::EventTag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::EventTag] + # + # @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 insert_event_tag(profile_id, event_tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/eventTags', options) + command.request_representation = Google::Apis::DfareportingV3_2::EventTag::Representation + command.request_object = event_tag_object + command.response_representation = Google::Apis::DfareportingV3_2::EventTag::Representation + command.response_class = Google::Apis::DfareportingV3_2::EventTag + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of event tags, possibly filtered. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] ad_id + # Select only event tags that belong to this ad. + # @param [Fixnum] advertiser_id + # Select only event tags that belong to this advertiser. + # @param [Fixnum] campaign_id + # Select only event tags that belong to this campaign. + # @param [Boolean] definitions_only + # Examine only the specified campaign or advertiser's event tags for matching + # selector criteria. When set to false, the parent advertiser and parent + # campaign of the specified ad or campaign is examined as well. In addition, + # when set to false, the status field is examined as well, along with the + # enabledByDefault field. This parameter can not be set to true when adId is + # specified as ads do not define their own even tags. + # @param [Boolean] enabled + # Select only enabled event tags. What is considered enabled or disabled depends + # on the definitionsOnly parameter. When definitionsOnly is set to true, only + # the specified advertiser or campaign's event tags' enabledByDefault field is + # examined. When definitionsOnly is set to false, the specified ad or specified + # campaign's parent advertiser's or parent campaign's event tags' + # enabledByDefault and status fields are examined as well. + # @param [Array, String] event_tag_types + # Select only event tags with the specified event tag types. Event tag types can + # be used to specify whether to use a third-party pixel, a third-party + # JavaScript URL, or a third-party click-through URL for either impression or + # click tracking. + # @param [Array, Fixnum] ids + # Select only event tags with these IDs. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "eventtag*2015" will return objects with names like "eventtag June + # 2015", "eventtag April 2015", or simply "eventtag 2015". Most of the searches + # also add wildcards implicitly at the start and the end of the search string. + # For example, a search string of "eventtag" will match objects with name "my + # eventtag", "eventtag 2015", or simply "eventtag". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::EventTagsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::EventTagsListResponse] + # + # @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_event_tags(profile_id, ad_id: nil, advertiser_id: nil, campaign_id: nil, definitions_only: nil, enabled: nil, event_tag_types: nil, ids: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/eventTags', options) + command.response_representation = Google::Apis::DfareportingV3_2::EventTagsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::EventTagsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['adId'] = ad_id unless ad_id.nil? + command.query['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['campaignId'] = campaign_id unless campaign_id.nil? + command.query['definitionsOnly'] = definitions_only unless definitions_only.nil? + command.query['enabled'] = enabled unless enabled.nil? + command.query['eventTagTypes'] = event_tag_types unless event_tag_types.nil? + command.query['ids'] = ids unless ids.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing event tag. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Event tag ID. + # @param [Google::Apis::DfareportingV3_2::EventTag] event_tag_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::EventTag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::EventTag] + # + # @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_event_tag(profile_id, id, event_tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/eventTags', options) + command.request_representation = Google::Apis::DfareportingV3_2::EventTag::Representation + command.request_object = event_tag_object + command.response_representation = Google::Apis::DfareportingV3_2::EventTag::Representation + command.response_class = Google::Apis::DfareportingV3_2::EventTag + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing event tag. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::EventTag] event_tag_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::EventTag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::EventTag] + # + # @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 update_event_tag(profile_id, event_tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/eventTags', options) + command.request_representation = Google::Apis::DfareportingV3_2::EventTag::Representation + command.request_object = event_tag_object + command.response_representation = Google::Apis::DfareportingV3_2::EventTag::Representation + command.response_class = Google::Apis::DfareportingV3_2::EventTag + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a report file by its report ID and file ID. This method supports + # media download. + # @param [Fixnum] report_id + # The ID of the report. + # @param [Fixnum] file_id + # The ID of the report file. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [IO, String] download_dest + # IO stream or filename to receive content download + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::File] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::File] + # + # @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_file(report_id, file_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) + if download_dest.nil? + command = make_simple_command(:get, 'reports/{reportId}/files/{fileId}', options) + else + command = make_download_command(:get, 'reports/{reportId}/files/{fileId}', options) + command.download_dest = download_dest + end + command.response_representation = Google::Apis::DfareportingV3_2::File::Representation + command.response_class = Google::Apis::DfareportingV3_2::File + command.params['reportId'] = report_id unless report_id.nil? + command.params['fileId'] = file_id unless file_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists files for a user profile. + # @param [Fixnum] profile_id + # The DFA profile ID. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # The value of the nextToken from the previous result page. + # @param [String] scope + # The scope that defines which results are returned. + # @param [String] sort_field + # The field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FileList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FileList] + # + # @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_files(profile_id, max_results: nil, page_token: nil, scope: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/files', options) + command.response_representation = Google::Apis::DfareportingV3_2::FileList::Representation + command.response_class = Google::Apis::DfareportingV3_2::FileList + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['scope'] = scope unless scope.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing floodlight activity. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Floodlight activity ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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_floodlight_activity(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'userprofiles/{profileId}/floodlightActivities/{id}', options) + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Generates a tag for a floodlight activity. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] floodlight_activity_id + # Floodlight activity ID for which we want to generate a tag. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivitiesGenerateTagResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivitiesGenerateTagResponse] + # + # @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 generatetag_floodlight_activity(profile_id, floodlight_activity_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/floodlightActivities/generatetag', options) + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivitiesGenerateTagResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivitiesGenerateTagResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['floodlightActivityId'] = floodlight_activity_id unless floodlight_activity_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one floodlight activity by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Floodlight activity ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivity] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivity] + # + # @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_floodlight_activity(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightActivities/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivity::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivity + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new floodlight activity. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::FloodlightActivity] floodlight_activity_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivity] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivity] + # + # @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 insert_floodlight_activity(profile_id, floodlight_activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/floodlightActivities', options) + command.request_representation = Google::Apis::DfareportingV3_2::FloodlightActivity::Representation + command.request_object = floodlight_activity_object + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivity::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivity + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of floodlight activities, possibly filtered. This method + # supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] advertiser_id + # Select only floodlight activities for the specified advertiser ID. Must + # specify either ids, advertiserId, or floodlightConfigurationId for a non-empty + # result. + # @param [Array, Fixnum] floodlight_activity_group_ids + # Select only floodlight activities with the specified floodlight activity group + # IDs. + # @param [String] floodlight_activity_group_name + # Select only floodlight activities with the specified floodlight activity group + # name. + # @param [String] floodlight_activity_group_tag_string + # Select only floodlight activities with the specified floodlight activity group + # tag string. + # @param [String] floodlight_activity_group_type + # Select only floodlight activities with the specified floodlight activity group + # type. + # @param [Fixnum] floodlight_configuration_id + # Select only floodlight activities for the specified floodlight configuration + # ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a + # non-empty result. + # @param [Array, Fixnum] ids + # Select only floodlight activities with the specified IDs. Must specify either + # ids, advertiserId, or floodlightConfigurationId for a non-empty result. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "floodlightactivity*2015" will return objects with names like " + # floodlightactivity June 2015", "floodlightactivity April 2015", or simply " + # floodlightactivity 2015". Most of the searches also add wildcards implicitly + # at the start and the end of the search string. For example, a search string of + # "floodlightactivity" will match objects with name "my floodlightactivity + # activity", "floodlightactivity 2015", or simply "floodlightactivity". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] tag_string + # Select only floodlight activities with the specified tag string. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivitiesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivitiesListResponse] + # + # @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_floodlight_activities(profile_id, advertiser_id: nil, floodlight_activity_group_ids: nil, floodlight_activity_group_name: nil, floodlight_activity_group_tag_string: nil, floodlight_activity_group_type: nil, floodlight_configuration_id: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, tag_string: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightActivities', options) + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivitiesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivitiesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['floodlightActivityGroupIds'] = floodlight_activity_group_ids unless floodlight_activity_group_ids.nil? + command.query['floodlightActivityGroupName'] = floodlight_activity_group_name unless floodlight_activity_group_name.nil? + command.query['floodlightActivityGroupTagString'] = floodlight_activity_group_tag_string unless floodlight_activity_group_tag_string.nil? + command.query['floodlightActivityGroupType'] = floodlight_activity_group_type unless floodlight_activity_group_type.nil? + command.query['floodlightConfigurationId'] = floodlight_configuration_id unless floodlight_configuration_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['tagString'] = tag_string unless tag_string.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing floodlight activity. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Floodlight activity ID. + # @param [Google::Apis::DfareportingV3_2::FloodlightActivity] floodlight_activity_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivity] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivity] + # + # @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_floodlight_activity(profile_id, id, floodlight_activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightActivities', options) + command.request_representation = Google::Apis::DfareportingV3_2::FloodlightActivity::Representation + command.request_object = floodlight_activity_object + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivity::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivity + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing floodlight activity. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::FloodlightActivity] floodlight_activity_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivity] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivity] + # + # @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 update_floodlight_activity(profile_id, floodlight_activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/floodlightActivities', options) + command.request_representation = Google::Apis::DfareportingV3_2::FloodlightActivity::Representation + command.request_object = floodlight_activity_object + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivity::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivity + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one floodlight activity group by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Floodlight activity Group ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] + # + # @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_floodlight_activity_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightActivityGroups/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivityGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivityGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new floodlight activity group. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] floodlight_activity_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] + # + # @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 insert_floodlight_activity_group(profile_id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/floodlightActivityGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::FloodlightActivityGroup::Representation + command.request_object = floodlight_activity_group_object + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivityGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivityGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of floodlight activity groups, possibly filtered. This method + # supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] advertiser_id + # Select only floodlight activity groups with the specified advertiser ID. Must + # specify either advertiserId or floodlightConfigurationId for a non-empty + # result. + # @param [Fixnum] floodlight_configuration_id + # Select only floodlight activity groups with the specified floodlight + # configuration ID. Must specify either advertiserId, or + # floodlightConfigurationId for a non-empty result. + # @param [Array, Fixnum] ids + # Select only floodlight activity groups with the specified IDs. Must specify + # either advertiserId or floodlightConfigurationId for a non-empty result. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "floodlightactivitygroup*2015" will return objects with names like " + # floodlightactivitygroup June 2015", "floodlightactivitygroup April 2015", or + # simply "floodlightactivitygroup 2015". Most of the searches also add wildcards + # implicitly at the start and the end of the search string. For example, a + # search string of "floodlightactivitygroup" will match objects with name "my + # floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply " + # floodlightactivitygroup". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] type + # Select only floodlight activity groups with the specified floodlight activity + # group type. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivityGroupsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivityGroupsListResponse] + # + # @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_floodlight_activity_groups(profile_id, advertiser_id: nil, floodlight_configuration_id: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightActivityGroups', options) + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivityGroupsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivityGroupsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['floodlightConfigurationId'] = floodlight_configuration_id unless floodlight_configuration_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['type'] = type unless type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing floodlight activity group. This method supports patch + # semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Floodlight activity Group ID. + # @param [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] floodlight_activity_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] + # + # @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_floodlight_activity_group(profile_id, id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightActivityGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::FloodlightActivityGroup::Representation + command.request_object = floodlight_activity_group_object + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivityGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivityGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing floodlight activity group. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] floodlight_activity_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightActivityGroup] + # + # @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 update_floodlight_activity_group(profile_id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/floodlightActivityGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::FloodlightActivityGroup::Representation + command.request_object = floodlight_activity_group_object + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightActivityGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightActivityGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one floodlight configuration by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Floodlight configuration ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightConfiguration] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightConfiguration] + # + # @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_floodlight_configuration(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightConfigurations/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightConfiguration::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightConfiguration + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of floodlight configurations, possibly filtered. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] ids + # Set of IDs of floodlight configurations to retrieve. Required field; otherwise + # an empty list will be returned. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightConfigurationsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightConfigurationsListResponse] + # + # @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_floodlight_configurations(profile_id, ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightConfigurations', options) + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightConfigurationsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightConfigurationsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing floodlight configuration. This method supports patch + # semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Floodlight configuration ID. + # @param [Google::Apis::DfareportingV3_2::FloodlightConfiguration] floodlight_configuration_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightConfiguration] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightConfiguration] + # + # @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_floodlight_configuration(profile_id, id, floodlight_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightConfigurations', options) + command.request_representation = Google::Apis::DfareportingV3_2::FloodlightConfiguration::Representation + command.request_object = floodlight_configuration_object + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightConfiguration::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightConfiguration + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing floodlight configuration. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::FloodlightConfiguration] floodlight_configuration_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FloodlightConfiguration] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FloodlightConfiguration] + # + # @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 update_floodlight_configuration(profile_id, floodlight_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/floodlightConfigurations', options) + command.request_representation = Google::Apis::DfareportingV3_2::FloodlightConfiguration::Representation + command.request_object = floodlight_configuration_object + command.response_representation = Google::Apis::DfareportingV3_2::FloodlightConfiguration::Representation + command.response_class = Google::Apis::DfareportingV3_2::FloodlightConfiguration + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one inventory item by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] project_id + # Project ID for order documents. + # @param [Fixnum] id + # Inventory item ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::InventoryItem] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::InventoryItem] + # + # @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_inventory_item(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::InventoryItem::Representation + command.response_class = Google::Apis::DfareportingV3_2::InventoryItem + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['projectId'] = project_id unless project_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of inventory items, possibly filtered. This method supports + # paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] project_id + # Project ID for order documents. + # @param [Array, Fixnum] ids + # Select only inventory items with these IDs. + # @param [Boolean] in_plan + # Select only inventory items that are in plan. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [Array, Fixnum] order_id + # Select only inventory items that belong to specified orders. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [Array, Fixnum] site_id + # Select only inventory items that are associated with these sites. + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] type + # Select only inventory items with this type. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::InventoryItemsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::InventoryItemsListResponse] + # + # @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_inventory_items(profile_id, project_id, ids: nil, in_plan: nil, max_results: nil, order_id: nil, page_token: nil, site_id: nil, sort_field: nil, sort_order: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/inventoryItems', options) + command.response_representation = Google::Apis::DfareportingV3_2::InventoryItemsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::InventoryItemsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['projectId'] = project_id unless project_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['inPlan'] = in_plan unless in_plan.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderId'] = order_id unless order_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['siteId'] = site_id unless site_id.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['type'] = type unless type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of languages. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::LanguagesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::LanguagesListResponse] + # + # @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_languages(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/languages', options) + command.response_representation = Google::Apis::DfareportingV3_2::LanguagesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::LanguagesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of metros. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::MetrosListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::MetrosListResponse] + # + # @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_metros(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/metros', options) + command.response_representation = Google::Apis::DfareportingV3_2::MetrosListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::MetrosListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one mobile app by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] id + # Mobile app ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::MobileApp] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::MobileApp] + # + # @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_mobile_app(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/mobileApps/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::MobileApp::Representation + command.response_class = Google::Apis::DfareportingV3_2::MobileApp + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves list of available mobile apps. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, String] directories + # Select only apps from these directories. + # @param [Array, String] ids + # Select only apps with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "app*2015" will return objects with names like "app Jan 2018", "app + # Jan 2018", or simply "app 2018". Most of the searches also add wildcards + # implicitly at the start and the end of the search string. For example, a + # search string of "app" will match objects with name "my app", "app 2018", or + # simply "app". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::MobileAppsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::MobileAppsListResponse] + # + # @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_mobile_apps(profile_id, directories: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/mobileApps', options) + command.response_representation = Google::Apis::DfareportingV3_2::MobileAppsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::MobileAppsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['directories'] = directories unless directories.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one mobile carrier by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Mobile carrier ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::MobileCarrier] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::MobileCarrier] + # + # @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_mobile_carrier(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/mobileCarriers/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::MobileCarrier::Representation + command.response_class = Google::Apis::DfareportingV3_2::MobileCarrier + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of mobile carriers. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::MobileCarriersListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::MobileCarriersListResponse] + # + # @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_mobile_carriers(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/mobileCarriers', options) + command.response_representation = Google::Apis::DfareportingV3_2::MobileCarriersListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::MobileCarriersListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one operating system version by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Operating system version ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::OperatingSystemVersion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::OperatingSystemVersion] + # + # @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_operating_system_version(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/operatingSystemVersions/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::OperatingSystemVersion::Representation + command.response_class = Google::Apis::DfareportingV3_2::OperatingSystemVersion + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of operating system versions. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::OperatingSystemVersionsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::OperatingSystemVersionsListResponse] + # + # @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_operating_system_versions(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/operatingSystemVersions', options) + command.response_representation = Google::Apis::DfareportingV3_2::OperatingSystemVersionsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::OperatingSystemVersionsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one operating system by DART ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] dart_id + # Operating system DART ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::OperatingSystem] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::OperatingSystem] + # + # @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_operating_system(profile_id, dart_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/operatingSystems/{dartId}', options) + command.response_representation = Google::Apis::DfareportingV3_2::OperatingSystem::Representation + command.response_class = Google::Apis::DfareportingV3_2::OperatingSystem + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['dartId'] = dart_id unless dart_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of operating systems. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::OperatingSystemsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::OperatingSystemsListResponse] + # + # @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_operating_systems(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/operatingSystems', options) + command.response_representation = Google::Apis::DfareportingV3_2::OperatingSystemsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::OperatingSystemsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one order document by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] project_id + # Project ID for order documents. + # @param [Fixnum] id + # Order document ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::OrderDocument] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::OrderDocument] + # + # @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_order_document(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::OrderDocument::Representation + command.response_class = Google::Apis::DfareportingV3_2::OrderDocument + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['projectId'] = project_id unless project_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of order documents, possibly filtered. This method supports + # paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] project_id + # Project ID for order documents. + # @param [Boolean] approved + # Select only order documents that have been approved by at least one user. + # @param [Array, Fixnum] ids + # Select only order documents with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [Array, Fixnum] order_id + # Select only order documents for specified orders. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for order documents by name or ID. Wildcards (*) are allowed. + # For example, "orderdocument*2015" will return order documents with names like " + # orderdocument June 2015", "orderdocument April 2015", or simply "orderdocument + # 2015". Most of the searches also add wildcards implicitly at the start and the + # end of the search string. For example, a search string of "orderdocument" will + # match order documents with name "my orderdocument", "orderdocument 2015", or + # simply "orderdocument". + # @param [Array, Fixnum] site_id + # Select only order documents that are associated with these sites. + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::OrderDocumentsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::OrderDocumentsListResponse] + # + # @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_order_documents(profile_id, project_id, approved: nil, ids: nil, max_results: nil, order_id: nil, page_token: nil, search_string: nil, site_id: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/orderDocuments', options) + command.response_representation = Google::Apis::DfareportingV3_2::OrderDocumentsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::OrderDocumentsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['projectId'] = project_id unless project_id.nil? + command.query['approved'] = approved unless approved.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderId'] = order_id unless order_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['siteId'] = site_id unless site_id.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one order by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] project_id + # Project ID for orders. + # @param [Fixnum] id + # Order ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Order] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Order] + # + # @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_order(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/orders/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Order::Representation + command.response_class = Google::Apis::DfareportingV3_2::Order + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['projectId'] = project_id unless project_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of orders, possibly filtered. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] project_id + # Project ID for orders. + # @param [Array, Fixnum] ids + # Select only orders with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for orders by name or ID. Wildcards (*) are allowed. For + # example, "order*2015" will return orders with names like "order June 2015", " + # order April 2015", or simply "order 2015". Most of the searches also add + # wildcards implicitly at the start and the end of the search string. For + # example, a search string of "order" will match orders with name "my order", " + # order 2015", or simply "order". + # @param [Array, Fixnum] site_id + # Select only orders that are associated with these site IDs. + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::OrdersListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::OrdersListResponse] + # + # @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_orders(profile_id, project_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, site_id: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/orders', options) + command.response_representation = Google::Apis::DfareportingV3_2::OrdersListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::OrdersListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['projectId'] = project_id unless project_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['siteId'] = site_id unless site_id.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one placement group by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Placement group ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementGroup] + # + # @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_placement_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/placementGroups/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::PlacementGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new placement group. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::PlacementGroup] placement_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementGroup] + # + # @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 insert_placement_group(profile_id, placement_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/placementGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::PlacementGroup::Representation + command.request_object = placement_group_object + command.response_representation = Google::Apis::DfareportingV3_2::PlacementGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of placement groups, possibly filtered. This method supports + # paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] advertiser_ids + # Select only placement groups that belong to these advertisers. + # @param [Boolean] archived + # Select only archived placements. Don't set this field to select both archived + # and non-archived placements. + # @param [Array, Fixnum] campaign_ids + # Select only placement groups that belong to these campaigns. + # @param [Array, Fixnum] content_category_ids + # Select only placement groups that are associated with these content categories. + # @param [Array, Fixnum] directory_site_ids + # Select only placement groups that are associated with these directory sites. + # @param [Array, Fixnum] ids + # Select only placement groups with these IDs. + # @param [String] max_end_date + # Select only placements or placement groups whose end date is on or before the + # specified maxEndDate. The date should be formatted as "yyyy-MM-dd". + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] max_start_date + # Select only placements or placement groups whose start date is on or before + # the specified maxStartDate. The date should be formatted as "yyyy-MM-dd". + # @param [String] min_end_date + # Select only placements or placement groups whose end date is on or after the + # specified minEndDate. The date should be formatted as "yyyy-MM-dd". + # @param [String] min_start_date + # Select only placements or placement groups whose start date is on or after the + # specified minStartDate. The date should be formatted as "yyyy-MM-dd". + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] placement_group_type + # Select only placement groups belonging with this group type. A package is a + # simple group of placements that acts as a single pricing point for a group of + # tags. A roadblock is a group of placements that not only acts as a single + # pricing point but also assumes that all the tags in it will be served at the + # same time. A roadblock requires one of its assigned placements to be marked as + # primary for reporting. + # @param [Array, Fixnum] placement_strategy_ids + # Select only placement groups that are associated with these placement + # strategies. + # @param [Array, String] pricing_types + # Select only placement groups with these pricing types. + # @param [String] search_string + # Allows searching for placement groups by name or ID. Wildcards (*) are allowed. + # For example, "placement*2015" will return placement groups with names like " + # placement group June 2015", "placement group May 2015", or simply "placements + # 2015". Most of the searches also add wildcards implicitly at the start and the + # end of the search string. For example, a search string of "placementgroup" + # will match placement groups with name "my placementgroup", "placementgroup + # 2015", or simply "placementgroup". + # @param [Array, Fixnum] site_ids + # Select only placement groups that are associated with these sites. + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementGroupsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementGroupsListResponse] + # + # @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_placement_groups(profile_id, advertiser_ids: nil, archived: nil, campaign_ids: nil, content_category_ids: nil, directory_site_ids: nil, ids: nil, max_end_date: nil, max_results: nil, max_start_date: nil, min_end_date: nil, min_start_date: nil, page_token: nil, placement_group_type: nil, placement_strategy_ids: nil, pricing_types: nil, search_string: nil, site_ids: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/placementGroups', options) + command.response_representation = Google::Apis::DfareportingV3_2::PlacementGroupsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementGroupsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserIds'] = advertiser_ids unless advertiser_ids.nil? + command.query['archived'] = archived unless archived.nil? + command.query['campaignIds'] = campaign_ids unless campaign_ids.nil? + command.query['contentCategoryIds'] = content_category_ids unless content_category_ids.nil? + command.query['directorySiteIds'] = directory_site_ids unless directory_site_ids.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxEndDate'] = max_end_date unless max_end_date.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['maxStartDate'] = max_start_date unless max_start_date.nil? + command.query['minEndDate'] = min_end_date unless min_end_date.nil? + command.query['minStartDate'] = min_start_date unless min_start_date.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['placementGroupType'] = placement_group_type unless placement_group_type.nil? + command.query['placementStrategyIds'] = placement_strategy_ids unless placement_strategy_ids.nil? + command.query['pricingTypes'] = pricing_types unless pricing_types.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['siteIds'] = site_ids unless site_ids.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing placement group. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Placement group ID. + # @param [Google::Apis::DfareportingV3_2::PlacementGroup] placement_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementGroup] + # + # @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_placement_group(profile_id, id, placement_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/placementGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::PlacementGroup::Representation + command.request_object = placement_group_object + command.response_representation = Google::Apis::DfareportingV3_2::PlacementGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing placement group. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::PlacementGroup] placement_group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementGroup] + # + # @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 update_placement_group(profile_id, placement_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/placementGroups', options) + command.request_representation = Google::Apis::DfareportingV3_2::PlacementGroup::Representation + command.request_object = placement_group_object + command.response_representation = Google::Apis::DfareportingV3_2::PlacementGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing placement strategy. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Placement strategy ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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_placement_strategy(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'userprofiles/{profileId}/placementStrategies/{id}', options) + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one placement strategy by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Placement strategy ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementStrategy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementStrategy] + # + # @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_placement_strategy(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/placementStrategies/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::PlacementStrategy::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementStrategy + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new placement strategy. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::PlacementStrategy] placement_strategy_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementStrategy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementStrategy] + # + # @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 insert_placement_strategy(profile_id, placement_strategy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/placementStrategies', options) + command.request_representation = Google::Apis::DfareportingV3_2::PlacementStrategy::Representation + command.request_object = placement_strategy_object + command.response_representation = Google::Apis::DfareportingV3_2::PlacementStrategy::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementStrategy + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of placement strategies, possibly filtered. This method + # supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] ids + # Select only placement strategies with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "placementstrategy*2015" will return objects with names like " + # placementstrategy June 2015", "placementstrategy April 2015", or simply " + # placementstrategy 2015". Most of the searches also add wildcards implicitly at + # the start and the end of the search string. For example, a search string of " + # placementstrategy" will match objects with name "my placementstrategy", " + # placementstrategy 2015", or simply "placementstrategy". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementStrategiesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementStrategiesListResponse] + # + # @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_placement_strategies(profile_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/placementStrategies', options) + command.response_representation = Google::Apis::DfareportingV3_2::PlacementStrategiesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementStrategiesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing placement strategy. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Placement strategy ID. + # @param [Google::Apis::DfareportingV3_2::PlacementStrategy] placement_strategy_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementStrategy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementStrategy] + # + # @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_placement_strategy(profile_id, id, placement_strategy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/placementStrategies', options) + command.request_representation = Google::Apis::DfareportingV3_2::PlacementStrategy::Representation + command.request_object = placement_strategy_object + command.response_representation = Google::Apis::DfareportingV3_2::PlacementStrategy::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementStrategy + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing placement strategy. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::PlacementStrategy] placement_strategy_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementStrategy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementStrategy] + # + # @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 update_placement_strategy(profile_id, placement_strategy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/placementStrategies', options) + command.request_representation = Google::Apis::DfareportingV3_2::PlacementStrategy::Representation + command.request_object = placement_strategy_object + command.response_representation = Google::Apis::DfareportingV3_2::PlacementStrategy::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementStrategy + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Generates tags for a placement. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] campaign_id + # Generate placements belonging to this campaign. This is a required field. + # @param [Array, Fixnum] placement_ids + # Generate tags for these placements. + # @param [Array, String] tag_formats + # Tag formats to generate for these placements. + # Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementsGenerateTagsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementsGenerateTagsResponse] + # + # @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 generatetags_placement(profile_id, campaign_id: nil, placement_ids: nil, tag_formats: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/placements/generatetags', options) + command.response_representation = Google::Apis::DfareportingV3_2::PlacementsGenerateTagsResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementsGenerateTagsResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['campaignId'] = campaign_id unless campaign_id.nil? + command.query['placementIds'] = placement_ids unless placement_ids.nil? + command.query['tagFormats'] = tag_formats unless tag_formats.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one placement by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Placement ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Placement] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Placement] + # + # @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_placement(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/placements/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Placement::Representation + command.response_class = Google::Apis::DfareportingV3_2::Placement + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new placement. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Placement] placement_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Placement] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Placement] + # + # @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 insert_placement(profile_id, placement_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/placements', options) + command.request_representation = Google::Apis::DfareportingV3_2::Placement::Representation + command.request_object = placement_object + command.response_representation = Google::Apis::DfareportingV3_2::Placement::Representation + command.response_class = Google::Apis::DfareportingV3_2::Placement + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of placements, possibly filtered. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] advertiser_ids + # Select only placements that belong to these advertisers. + # @param [Boolean] archived + # Select only archived placements. Don't set this field to select both archived + # and non-archived placements. + # @param [Array, Fixnum] campaign_ids + # Select only placements that belong to these campaigns. + # @param [Array, String] compatibilities + # Select only placements that are associated with these compatibilities. DISPLAY + # and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile + # devices for regular or interstitial ads respectively. APP and APP_INTERSTITIAL + # are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in- + # stream video ads developed with the VAST standard. + # @param [Array, Fixnum] content_category_ids + # Select only placements that are associated with these content categories. + # @param [Array, Fixnum] directory_site_ids + # Select only placements that are associated with these directory sites. + # @param [Array, Fixnum] group_ids + # Select only placements that belong to these placement groups. + # @param [Array, Fixnum] ids + # Select only placements with these IDs. + # @param [String] max_end_date + # Select only placements or placement groups whose end date is on or before the + # specified maxEndDate. The date should be formatted as "yyyy-MM-dd". + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] max_start_date + # Select only placements or placement groups whose start date is on or before + # the specified maxStartDate. The date should be formatted as "yyyy-MM-dd". + # @param [String] min_end_date + # Select only placements or placement groups whose end date is on or after the + # specified minEndDate. The date should be formatted as "yyyy-MM-dd". + # @param [String] min_start_date + # Select only placements or placement groups whose start date is on or after the + # specified minStartDate. The date should be formatted as "yyyy-MM-dd". + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] payment_source + # Select only placements with this payment source. + # @param [Array, Fixnum] placement_strategy_ids + # Select only placements that are associated with these placement strategies. + # @param [Array, String] pricing_types + # Select only placements with these pricing types. + # @param [String] search_string + # Allows searching for placements by name or ID. Wildcards (*) are allowed. For + # example, "placement*2015" will return placements with names like "placement + # June 2015", "placement May 2015", or simply "placements 2015". Most of the + # searches also add wildcards implicitly at the start and the end of the search + # string. For example, a search string of "placement" will match placements with + # name "my placement", "placement 2015", or simply "placement". + # @param [Array, Fixnum] site_ids + # Select only placements that are associated with these sites. + # @param [Array, Fixnum] size_ids + # Select only placements that are associated with these sizes. + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlacementsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlacementsListResponse] + # + # @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_placements(profile_id, advertiser_ids: nil, archived: nil, campaign_ids: nil, compatibilities: nil, content_category_ids: nil, directory_site_ids: nil, group_ids: nil, ids: nil, max_end_date: nil, max_results: nil, max_start_date: nil, min_end_date: nil, min_start_date: nil, page_token: nil, payment_source: nil, placement_strategy_ids: nil, pricing_types: nil, search_string: nil, site_ids: nil, size_ids: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/placements', options) + command.response_representation = Google::Apis::DfareportingV3_2::PlacementsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlacementsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserIds'] = advertiser_ids unless advertiser_ids.nil? + command.query['archived'] = archived unless archived.nil? + command.query['campaignIds'] = campaign_ids unless campaign_ids.nil? + command.query['compatibilities'] = compatibilities unless compatibilities.nil? + command.query['contentCategoryIds'] = content_category_ids unless content_category_ids.nil? + command.query['directorySiteIds'] = directory_site_ids unless directory_site_ids.nil? + command.query['groupIds'] = group_ids unless group_ids.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxEndDate'] = max_end_date unless max_end_date.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['maxStartDate'] = max_start_date unless max_start_date.nil? + command.query['minEndDate'] = min_end_date unless min_end_date.nil? + command.query['minStartDate'] = min_start_date unless min_start_date.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['paymentSource'] = payment_source unless payment_source.nil? + command.query['placementStrategyIds'] = placement_strategy_ids unless placement_strategy_ids.nil? + command.query['pricingTypes'] = pricing_types unless pricing_types.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['siteIds'] = site_ids unless site_ids.nil? + command.query['sizeIds'] = size_ids unless size_ids.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing placement. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Placement ID. + # @param [Google::Apis::DfareportingV3_2::Placement] placement_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Placement] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Placement] + # + # @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_placement(profile_id, id, placement_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/placements', options) + command.request_representation = Google::Apis::DfareportingV3_2::Placement::Representation + command.request_object = placement_object + command.response_representation = Google::Apis::DfareportingV3_2::Placement::Representation + command.response_class = Google::Apis::DfareportingV3_2::Placement + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing placement. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Placement] placement_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Placement] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Placement] + # + # @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 update_placement(profile_id, placement_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/placements', options) + command.request_representation = Google::Apis::DfareportingV3_2::Placement::Representation + command.request_object = placement_object + command.response_representation = Google::Apis::DfareportingV3_2::Placement::Representation + command.response_class = Google::Apis::DfareportingV3_2::Placement + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one platform type by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Platform type ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlatformType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlatformType] + # + # @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_platform_type(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/platformTypes/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::PlatformType::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlatformType + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of platform types. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PlatformTypesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PlatformTypesListResponse] + # + # @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_platform_types(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/platformTypes', options) + command.response_representation = Google::Apis::DfareportingV3_2::PlatformTypesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::PlatformTypesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one postal code by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] code + # Postal code ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PostalCode] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PostalCode] + # + # @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_postal_code(profile_id, code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/postalCodes/{code}', options) + command.response_representation = Google::Apis::DfareportingV3_2::PostalCode::Representation + command.response_class = Google::Apis::DfareportingV3_2::PostalCode + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['code'] = code unless code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of postal codes. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::PostalCodesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::PostalCodesListResponse] + # + # @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_postal_codes(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/postalCodes', options) + command.response_representation = Google::Apis::DfareportingV3_2::PostalCodesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::PostalCodesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one project by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Project ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Project] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Project] + # + # @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(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Project::Representation + command.response_class = Google::Apis::DfareportingV3_2::Project + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of projects, possibly filtered. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] advertiser_ids + # Select only projects with these advertiser IDs. + # @param [Array, Fixnum] ids + # Select only projects with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for projects by name or ID. Wildcards (*) are allowed. For + # example, "project*2015" will return projects with names like "project June + # 2015", "project April 2015", or simply "project 2015". Most of the searches + # also add wildcards implicitly at the start and the end of the search string. + # For example, a search string of "project" will match projects with name "my + # project", "project 2015", or simply "project". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ProjectsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ProjectsListResponse] + # + # @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_projects(profile_id, advertiser_ids: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects', options) + command.response_representation = Google::Apis::DfareportingV3_2::ProjectsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::ProjectsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserIds'] = advertiser_ids unless advertiser_ids.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of regions. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::RegionsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::RegionsListResponse] + # + # @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_regions(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/regions', options) + command.response_representation = Google::Apis::DfareportingV3_2::RegionsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::RegionsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one remarketing list share by remarketing list ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] remarketing_list_id + # Remarketing list ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::RemarketingListShare] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::RemarketingListShare] + # + # @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_remarketing_list_share(profile_id, remarketing_list_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/remarketingListShares/{remarketingListId}', options) + command.response_representation = Google::Apis::DfareportingV3_2::RemarketingListShare::Representation + command.response_class = Google::Apis::DfareportingV3_2::RemarketingListShare + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['remarketingListId'] = remarketing_list_id unless remarketing_list_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing remarketing list share. This method supports patch + # semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] remarketing_list_id + # Remarketing list ID. + # @param [Google::Apis::DfareportingV3_2::RemarketingListShare] remarketing_list_share_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::RemarketingListShare] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::RemarketingListShare] + # + # @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_remarketing_list_share(profile_id, remarketing_list_id, remarketing_list_share_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/remarketingListShares', options) + command.request_representation = Google::Apis::DfareportingV3_2::RemarketingListShare::Representation + command.request_object = remarketing_list_share_object + command.response_representation = Google::Apis::DfareportingV3_2::RemarketingListShare::Representation + command.response_class = Google::Apis::DfareportingV3_2::RemarketingListShare + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['remarketingListId'] = remarketing_list_id unless remarketing_list_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing remarketing list share. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::RemarketingListShare] remarketing_list_share_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::RemarketingListShare] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::RemarketingListShare] + # + # @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 update_remarketing_list_share(profile_id, remarketing_list_share_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/remarketingListShares', options) + command.request_representation = Google::Apis::DfareportingV3_2::RemarketingListShare::Representation + command.request_object = remarketing_list_share_object + command.response_representation = Google::Apis::DfareportingV3_2::RemarketingListShare::Representation + command.response_class = Google::Apis::DfareportingV3_2::RemarketingListShare + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one remarketing list by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Remarketing list ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::RemarketingList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::RemarketingList] + # + # @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_remarketing_list(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/remarketingLists/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::RemarketingList::Representation + command.response_class = Google::Apis::DfareportingV3_2::RemarketingList + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new remarketing list. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::RemarketingList] remarketing_list_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::RemarketingList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::RemarketingList] + # + # @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 insert_remarketing_list(profile_id, remarketing_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/remarketingLists', options) + command.request_representation = Google::Apis::DfareportingV3_2::RemarketingList::Representation + command.request_object = remarketing_list_object + command.response_representation = Google::Apis::DfareportingV3_2::RemarketingList::Representation + command.response_class = Google::Apis::DfareportingV3_2::RemarketingList + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of remarketing lists, possibly filtered. This method supports + # paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] advertiser_id + # Select only remarketing lists owned by this advertiser. + # @param [Boolean] active + # Select only active or only inactive remarketing lists. + # @param [Fixnum] floodlight_activity_id + # Select only remarketing lists that have this floodlight activity ID. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] name + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "remarketing list*2015" will return objects with names like " + # remarketing list June 2015", "remarketing list April 2015", or simply " + # remarketing list 2015". Most of the searches also add wildcards implicitly at + # the start and the end of the search string. For example, a search string of " + # remarketing list" will match objects with name "my remarketing list", " + # remarketing list 2015", or simply "remarketing list". + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::RemarketingListsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::RemarketingListsListResponse] + # + # @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_remarketing_lists(profile_id, advertiser_id, active: nil, floodlight_activity_id: nil, max_results: nil, name: nil, page_token: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/remarketingLists', options) + command.response_representation = Google::Apis::DfareportingV3_2::RemarketingListsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::RemarketingListsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['active'] = active unless active.nil? + command.query['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['floodlightActivityId'] = floodlight_activity_id unless floodlight_activity_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['name'] = name unless name.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing remarketing list. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Remarketing list ID. + # @param [Google::Apis::DfareportingV3_2::RemarketingList] remarketing_list_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::RemarketingList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::RemarketingList] + # + # @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_remarketing_list(profile_id, id, remarketing_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/remarketingLists', options) + command.request_representation = Google::Apis::DfareportingV3_2::RemarketingList::Representation + command.request_object = remarketing_list_object + command.response_representation = Google::Apis::DfareportingV3_2::RemarketingList::Representation + command.response_class = Google::Apis::DfareportingV3_2::RemarketingList + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing remarketing list. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::RemarketingList] remarketing_list_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::RemarketingList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::RemarketingList] + # + # @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 update_remarketing_list(profile_id, remarketing_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/remarketingLists', options) + command.request_representation = Google::Apis::DfareportingV3_2::RemarketingList::Representation + command.request_object = remarketing_list_object + command.response_representation = Google::Apis::DfareportingV3_2::RemarketingList::Representation + command.response_class = Google::Apis::DfareportingV3_2::RemarketingList + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a report by its ID. + # @param [Fixnum] profile_id + # The DFA user profile ID. + # @param [Fixnum] report_id + # The ID of the report. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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_report(profile_id, report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'userprofiles/{profileId}/reports/{reportId}', options) + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['reportId'] = report_id unless report_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a report by its ID. + # @param [Fixnum] profile_id + # The DFA user profile ID. + # @param [Fixnum] report_id + # The ID of the report. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Report] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Report] + # + # @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_report(profile_id, report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/reports/{reportId}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Report::Representation + command.response_class = Google::Apis::DfareportingV3_2::Report + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['reportId'] = report_id unless report_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a report. + # @param [Fixnum] profile_id + # The DFA user profile ID. + # @param [Google::Apis::DfareportingV3_2::Report] report_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Report] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Report] + # + # @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 insert_report(profile_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/reports', options) + command.request_representation = Google::Apis::DfareportingV3_2::Report::Representation + command.request_object = report_object + command.response_representation = Google::Apis::DfareportingV3_2::Report::Representation + command.response_class = Google::Apis::DfareportingV3_2::Report + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves list of reports. + # @param [Fixnum] profile_id + # The DFA user profile ID. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # The value of the nextToken from the previous result page. + # @param [String] scope + # The scope that defines which results are returned. + # @param [String] sort_field + # The field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::ReportList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::ReportList] + # + # @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_reports(profile_id, max_results: nil, page_token: nil, scope: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/reports', options) + command.response_representation = Google::Apis::DfareportingV3_2::ReportList::Representation + command.response_class = Google::Apis::DfareportingV3_2::ReportList + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['scope'] = scope unless scope.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a report. This method supports patch semantics. + # @param [Fixnum] profile_id + # The DFA user profile ID. + # @param [Fixnum] report_id + # The ID of the report. + # @param [Google::Apis::DfareportingV3_2::Report] report_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Report] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Report] + # + # @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_report(profile_id, report_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/reports/{reportId}', options) + command.request_representation = Google::Apis::DfareportingV3_2::Report::Representation + command.request_object = report_object + command.response_representation = Google::Apis::DfareportingV3_2::Report::Representation + command.response_class = Google::Apis::DfareportingV3_2::Report + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['reportId'] = report_id unless report_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Runs a report. + # @param [Fixnum] profile_id + # The DFA profile ID. + # @param [Fixnum] report_id + # The ID of the report. + # @param [Boolean] synchronous + # If set and true, tries to run the report synchronously. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::File] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::File] + # + # @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 run_report(profile_id, report_id, synchronous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/reports/{reportId}/run', options) + command.response_representation = Google::Apis::DfareportingV3_2::File::Representation + command.response_class = Google::Apis::DfareportingV3_2::File + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['reportId'] = report_id unless report_id.nil? + command.query['synchronous'] = synchronous unless synchronous.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a report. + # @param [Fixnum] profile_id + # The DFA user profile ID. + # @param [Fixnum] report_id + # The ID of the report. + # @param [Google::Apis::DfareportingV3_2::Report] report_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Report] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Report] + # + # @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 update_report(profile_id, report_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/reports/{reportId}', options) + command.request_representation = Google::Apis::DfareportingV3_2::Report::Representation + command.request_object = report_object + command.response_representation = Google::Apis::DfareportingV3_2::Report::Representation + command.response_class = Google::Apis::DfareportingV3_2::Report + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['reportId'] = report_id unless report_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the fields that are compatible to be selected in the respective + # sections of a report criteria, given the fields already selected in the input + # report and user permissions. + # @param [Fixnum] profile_id + # The DFA user profile ID. + # @param [Google::Apis::DfareportingV3_2::Report] report_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::CompatibleFields] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::CompatibleFields] + # + # @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_report_compatible_field(profile_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/reports/compatiblefields/query', options) + command.request_representation = Google::Apis::DfareportingV3_2::Report::Representation + command.request_object = report_object + command.response_representation = Google::Apis::DfareportingV3_2::CompatibleFields::Representation + command.response_class = Google::Apis::DfareportingV3_2::CompatibleFields + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a report file. This method supports media download. + # @param [Fixnum] profile_id + # The DFA profile ID. + # @param [Fixnum] report_id + # The ID of the report. + # @param [Fixnum] file_id + # The ID of the report file. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [IO, String] download_dest + # IO stream or filename to receive content download + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::File] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::File] + # + # @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_report_file(profile_id, report_id, file_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) + if download_dest.nil? + command = make_simple_command(:get, 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', options) + else + command = make_download_command(:get, 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', options) + command.download_dest = download_dest + end + command.response_representation = Google::Apis::DfareportingV3_2::File::Representation + command.response_class = Google::Apis::DfareportingV3_2::File + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['reportId'] = report_id unless report_id.nil? + command.params['fileId'] = file_id unless file_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists files for a report. + # @param [Fixnum] profile_id + # The DFA profile ID. + # @param [Fixnum] report_id + # The ID of the parent report. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # The value of the nextToken from the previous result page. + # @param [String] sort_field + # The field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::FileList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::FileList] + # + # @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_report_files(profile_id, report_id, max_results: nil, page_token: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/reports/{reportId}/files', options) + command.response_representation = Google::Apis::DfareportingV3_2::FileList::Representation + command.response_class = Google::Apis::DfareportingV3_2::FileList + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['reportId'] = report_id unless report_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one site by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Site ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Site] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Site] + # + # @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_site(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/sites/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Site::Representation + command.response_class = Google::Apis::DfareportingV3_2::Site + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new site. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Site] site_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Site] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Site] + # + # @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 insert_site(profile_id, site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/sites', options) + command.request_representation = Google::Apis::DfareportingV3_2::Site::Representation + command.request_object = site_object + command.response_representation = Google::Apis::DfareportingV3_2::Site::Representation + command.response_class = Google::Apis::DfareportingV3_2::Site + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of sites, possibly filtered. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Boolean] accepts_in_stream_video_placements + # This search filter is no longer supported and will have no effect on the + # results returned. + # @param [Boolean] accepts_interstitial_placements + # This search filter is no longer supported and will have no effect on the + # results returned. + # @param [Boolean] accepts_publisher_paid_placements + # Select only sites that accept publisher paid placements. + # @param [Boolean] ad_words_site + # Select only AdWords sites. + # @param [Boolean] approved + # Select only approved sites. + # @param [Array, Fixnum] campaign_ids + # Select only sites with these campaign IDs. + # @param [Array, Fixnum] directory_site_ids + # Select only sites with these directory site IDs. + # @param [Array, Fixnum] ids + # Select only sites with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. + # For example, "site*2015" will return objects with names like "site June 2015", + # "site April 2015", or simply "site 2015". Most of the searches also add + # wildcards implicitly at the start and the end of the search string. For + # example, a search string of "site" will match objects with name "my site", " + # site 2015", or simply "site". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [Fixnum] subaccount_id + # Select only sites with this subaccount ID. + # @param [Boolean] unmapped_site + # Select only sites that have not been mapped to a directory site. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::SitesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::SitesListResponse] + # + # @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_sites(profile_id, accepts_in_stream_video_placements: nil, accepts_interstitial_placements: nil, accepts_publisher_paid_placements: nil, ad_words_site: nil, approved: nil, campaign_ids: nil, directory_site_ids: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, unmapped_site: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/sites', options) + command.response_representation = Google::Apis::DfareportingV3_2::SitesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::SitesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['acceptsInStreamVideoPlacements'] = accepts_in_stream_video_placements unless accepts_in_stream_video_placements.nil? + command.query['acceptsInterstitialPlacements'] = accepts_interstitial_placements unless accepts_interstitial_placements.nil? + command.query['acceptsPublisherPaidPlacements'] = accepts_publisher_paid_placements unless accepts_publisher_paid_placements.nil? + command.query['adWordsSite'] = ad_words_site unless ad_words_site.nil? + command.query['approved'] = approved unless approved.nil? + command.query['campaignIds'] = campaign_ids unless campaign_ids.nil? + command.query['directorySiteIds'] = directory_site_ids unless directory_site_ids.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['subaccountId'] = subaccount_id unless subaccount_id.nil? + command.query['unmappedSite'] = unmapped_site unless unmapped_site.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing site. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Site ID. + # @param [Google::Apis::DfareportingV3_2::Site] site_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Site] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Site] + # + # @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_site(profile_id, id, site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/sites', options) + command.request_representation = Google::Apis::DfareportingV3_2::Site::Representation + command.request_object = site_object + command.response_representation = Google::Apis::DfareportingV3_2::Site::Representation + command.response_class = Google::Apis::DfareportingV3_2::Site + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing site. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Site] site_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Site] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Site] + # + # @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 update_site(profile_id, site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/sites', options) + command.request_representation = Google::Apis::DfareportingV3_2::Site::Representation + command.request_object = site_object + command.response_representation = Google::Apis::DfareportingV3_2::Site::Representation + command.response_class = Google::Apis::DfareportingV3_2::Site + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one size by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Size ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Size] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Size] + # + # @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_size(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/sizes/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Size::Representation + command.response_class = Google::Apis::DfareportingV3_2::Size + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new size. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Size] size_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Size] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Size] + # + # @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 insert_size(profile_id, size_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/sizes', options) + command.request_representation = Google::Apis::DfareportingV3_2::Size::Representation + command.request_object = size_object + command.response_representation = Google::Apis::DfareportingV3_2::Size::Representation + command.response_class = Google::Apis::DfareportingV3_2::Size + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally + # unique and may include values not currently in use by your account. Due to + # this, the list of sizes returned by this method may differ from the list seen + # in the Trafficking UI. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] height + # Select only sizes with this height. + # @param [Boolean] iab_standard + # Select only IAB standard sizes. + # @param [Array, Fixnum] ids + # Select only sizes with these IDs. + # @param [Fixnum] width + # Select only sizes with this width. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::SizesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::SizesListResponse] + # + # @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_sizes(profile_id, height: nil, iab_standard: nil, ids: nil, width: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/sizes', options) + command.response_representation = Google::Apis::DfareportingV3_2::SizesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::SizesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['height'] = height unless height.nil? + command.query['iabStandard'] = iab_standard unless iab_standard.nil? + command.query['ids'] = ids unless ids.nil? + command.query['width'] = width unless width.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one subaccount by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Subaccount ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Subaccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Subaccount] + # + # @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_subaccount(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/subaccounts/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::Subaccount::Representation + command.response_class = Google::Apis::DfareportingV3_2::Subaccount + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new subaccount. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Subaccount] subaccount_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Subaccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Subaccount] + # + # @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 insert_subaccount(profile_id, subaccount_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/subaccounts', options) + command.request_representation = Google::Apis::DfareportingV3_2::Subaccount::Representation + command.request_object = subaccount_object + command.response_representation = Google::Apis::DfareportingV3_2::Subaccount::Representation + command.response_class = Google::Apis::DfareportingV3_2::Subaccount + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets a list of subaccounts, possibly filtered. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] ids + # Select only subaccounts with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "subaccount*2015" will return objects with names like "subaccount + # June 2015", "subaccount April 2015", or simply "subaccount 2015". Most of the + # searches also add wildcards implicitly at the start and the end of the search + # string. For example, a search string of "subaccount" will match objects with + # name "my subaccount", "subaccount 2015", or simply "subaccount". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::SubaccountsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::SubaccountsListResponse] + # + # @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_subaccounts(profile_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/subaccounts', options) + command.response_representation = Google::Apis::DfareportingV3_2::SubaccountsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::SubaccountsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing subaccount. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Subaccount ID. + # @param [Google::Apis::DfareportingV3_2::Subaccount] subaccount_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Subaccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Subaccount] + # + # @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_subaccount(profile_id, id, subaccount_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/subaccounts', options) + command.request_representation = Google::Apis::DfareportingV3_2::Subaccount::Representation + command.request_object = subaccount_object + command.response_representation = Google::Apis::DfareportingV3_2::Subaccount::Representation + command.response_class = Google::Apis::DfareportingV3_2::Subaccount + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing subaccount. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::Subaccount] subaccount_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::Subaccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::Subaccount] + # + # @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 update_subaccount(profile_id, subaccount_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/subaccounts', options) + command.request_representation = Google::Apis::DfareportingV3_2::Subaccount::Representation + command.request_object = subaccount_object + command.response_representation = Google::Apis::DfareportingV3_2::Subaccount::Representation + command.response_class = Google::Apis::DfareportingV3_2::Subaccount + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one remarketing list by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Remarketing list ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::TargetableRemarketingList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::TargetableRemarketingList] + # + # @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_targetable_remarketing_list(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/targetableRemarketingLists/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::TargetableRemarketingList::Representation + command.response_class = Google::Apis::DfareportingV3_2::TargetableRemarketingList + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of targetable remarketing lists, possibly filtered. This + # method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] advertiser_id + # Select only targetable remarketing lists targetable by these advertisers. + # @param [Boolean] active + # Select only active or only inactive targetable remarketing lists. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] name + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "remarketing list*2015" will return objects with names like " + # remarketing list June 2015", "remarketing list April 2015", or simply " + # remarketing list 2015". Most of the searches also add wildcards implicitly at + # the start and the end of the search string. For example, a search string of " + # remarketing list" will match objects with name "my remarketing list", " + # remarketing list 2015", or simply "remarketing list". + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::TargetableRemarketingListsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::TargetableRemarketingListsListResponse] + # + # @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_targetable_remarketing_lists(profile_id, advertiser_id, active: nil, max_results: nil, name: nil, page_token: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/targetableRemarketingLists', options) + command.response_representation = Google::Apis::DfareportingV3_2::TargetableRemarketingListsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::TargetableRemarketingListsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['active'] = active unless active.nil? + command.query['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['name'] = name unless name.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one targeting template by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Targeting template ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::TargetingTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::TargetingTemplate] + # + # @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_targeting_template(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/targetingTemplates/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::TargetingTemplate::Representation + command.response_class = Google::Apis::DfareportingV3_2::TargetingTemplate + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new targeting template. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::TargetingTemplate] targeting_template_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::TargetingTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::TargetingTemplate] + # + # @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 insert_targeting_template(profile_id, targeting_template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/targetingTemplates', options) + command.request_representation = Google::Apis::DfareportingV3_2::TargetingTemplate::Representation + command.request_object = targeting_template_object + command.response_representation = Google::Apis::DfareportingV3_2::TargetingTemplate::Representation + command.response_class = Google::Apis::DfareportingV3_2::TargetingTemplate + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of targeting templates, optionally filtered. This method + # supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] advertiser_id + # Select only targeting templates with this advertiser ID. + # @param [Array, Fixnum] ids + # Select only targeting templates with these IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "template*2015" will return objects with names like "template June + # 2015", "template April 2015", or simply "template 2015". Most of the searches + # also add wildcards implicitly at the start and the end of the search string. + # For example, a search string of "template" will match objects with name "my + # template", "template 2015", or simply "template". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::TargetingTemplatesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::TargetingTemplatesListResponse] + # + # @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_targeting_templates(profile_id, advertiser_id: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/targetingTemplates', options) + command.response_representation = Google::Apis::DfareportingV3_2::TargetingTemplatesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::TargetingTemplatesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing targeting template. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Targeting template ID. + # @param [Google::Apis::DfareportingV3_2::TargetingTemplate] targeting_template_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::TargetingTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::TargetingTemplate] + # + # @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_targeting_template(profile_id, id, targeting_template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/targetingTemplates', options) + command.request_representation = Google::Apis::DfareportingV3_2::TargetingTemplate::Representation + command.request_object = targeting_template_object + command.response_representation = Google::Apis::DfareportingV3_2::TargetingTemplate::Representation + command.response_class = Google::Apis::DfareportingV3_2::TargetingTemplate + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing targeting template. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::TargetingTemplate] targeting_template_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::TargetingTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::TargetingTemplate] + # + # @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 update_targeting_template(profile_id, targeting_template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/targetingTemplates', options) + command.request_representation = Google::Apis::DfareportingV3_2::TargetingTemplate::Representation + command.request_object = targeting_template_object + command.response_representation = Google::Apis::DfareportingV3_2::TargetingTemplate::Representation + command.response_class = Google::Apis::DfareportingV3_2::TargetingTemplate + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one user profile by ID. + # @param [Fixnum] profile_id + # The user profile ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserProfile] + # + # @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_user_profile(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}', options) + command.response_representation = Google::Apis::DfareportingV3_2::UserProfile::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserProfile + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves list of user profiles for a user. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserProfileList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserProfileList] + # + # @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_user_profiles(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles', options) + command.response_representation = Google::Apis::DfareportingV3_2::UserProfileList::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserProfileList + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one user role permission group by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # User role permission group ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserRolePermissionGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserRolePermissionGroup] + # + # @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_user_role_permission_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRolePermissionGroups/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::UserRolePermissionGroup::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserRolePermissionGroup + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets a list of all supported user role permission groups. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserRolePermissionGroupsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserRolePermissionGroupsListResponse] + # + # @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_user_role_permission_groups(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRolePermissionGroups', options) + command.response_representation = Google::Apis::DfareportingV3_2::UserRolePermissionGroupsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserRolePermissionGroupsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one user role permission by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # User role permission ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserRolePermission] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserRolePermission] + # + # @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_user_role_permission(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRolePermissions/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::UserRolePermission::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserRolePermission + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets a list of user role permissions, possibly filtered. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Array, Fixnum] ids + # Select only user role permissions with these IDs. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserRolePermissionsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserRolePermissionsListResponse] + # + # @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_user_role_permissions(profile_id, ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRolePermissions', options) + command.response_representation = Google::Apis::DfareportingV3_2::UserRolePermissionsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserRolePermissionsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['ids'] = ids unless ids.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing user role. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # User role ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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_user_role(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'userprofiles/{profileId}/userRoles/{id}', options) + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one user role by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # User role ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserRole] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserRole] + # + # @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_user_role(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRoles/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::UserRole::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserRole + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a new user role. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::UserRole] user_role_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserRole] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserRole] + # + # @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 insert_user_role(profile_id, user_role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'userprofiles/{profileId}/userRoles', options) + command.request_representation = Google::Apis::DfareportingV3_2::UserRole::Representation + command.request_object = user_role_object + command.response_representation = Google::Apis::DfareportingV3_2::UserRole::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserRole + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of user roles, possibly filtered. This method supports paging. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Boolean] account_user_role_only + # Select only account level user roles not associated with any specific + # subaccount. + # @param [Array, Fixnum] ids + # Select only user roles with the specified IDs. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Value of the nextPageToken from the previous result page. + # @param [String] search_string + # Allows searching for objects by name or ID. Wildcards (*) are allowed. For + # example, "userrole*2015" will return objects with names like "userrole June + # 2015", "userrole April 2015", or simply "userrole 2015". Most of the searches + # also add wildcards implicitly at the start and the end of the search string. + # For example, a search string of "userrole" will match objects with name "my + # userrole", "userrole 2015", or simply "userrole". + # @param [String] sort_field + # Field by which to sort the list. + # @param [String] sort_order + # Order of sorted results. + # @param [Fixnum] subaccount_id + # Select only user roles that belong to this subaccount. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserRolesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserRolesListResponse] + # + # @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_user_roles(profile_id, account_user_role_only: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRoles', options) + command.response_representation = Google::Apis::DfareportingV3_2::UserRolesListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserRolesListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['accountUserRoleOnly'] = account_user_role_only unless account_user_role_only.nil? + command.query['ids'] = ids unless ids.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['searchString'] = search_string unless search_string.nil? + command.query['sortField'] = sort_field unless sort_field.nil? + command.query['sortOrder'] = sort_order unless sort_order.nil? + command.query['subaccountId'] = subaccount_id unless subaccount_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing user role. This method supports patch semantics. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # User role ID. + # @param [Google::Apis::DfareportingV3_2::UserRole] user_role_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserRole] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserRole] + # + # @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_user_role(profile_id, id, user_role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/userRoles', options) + command.request_representation = Google::Apis::DfareportingV3_2::UserRole::Representation + command.request_object = user_role_object + command.response_representation = Google::Apis::DfareportingV3_2::UserRole::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserRole + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing user role. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Google::Apis::DfareportingV3_2::UserRole] user_role_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::UserRole] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::UserRole] + # + # @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 update_user_role(profile_id, user_role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'userprofiles/{profileId}/userRoles', options) + command.request_representation = Google::Apis::DfareportingV3_2::UserRole::Representation + command.request_object = user_role_object + command.response_representation = Google::Apis::DfareportingV3_2::UserRole::Representation + command.response_class = Google::Apis::DfareportingV3_2::UserRole + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets one video format by ID. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [Fixnum] id + # Video format ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::VideoFormat] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::VideoFormat] + # + # @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_video_format(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/videoFormats/{id}', options) + command.response_representation = Google::Apis::DfareportingV3_2::VideoFormat::Representation + command.response_class = Google::Apis::DfareportingV3_2::VideoFormat + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists available video formats. + # @param [Fixnum] profile_id + # User profile ID associated with this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV3_2::VideoFormatsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_2::VideoFormatsListResponse] + # + # @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_video_formats(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'userprofiles/{profileId}/videoFormats', options) + command.response_representation = Google::Apis::DfareportingV3_2::VideoFormatsListResponse::Representation + command.response_class = Google::Apis::DfareportingV3_2::VideoFormatsListResponse + command.params['profileId'] = profile_id unless profile_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.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? + command.query['userIp'] = user_ip unless user_ip.nil? + end + end + end + end +end diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 9385bccda..01a94c97b 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-enterprise/ module DialogflowV2 VERSION = 'V2' - REVISION = '20180702' + REVISION = '20180814' # 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 675240756..84a9f1ae6 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -693,7 +693,8 @@ module Google # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent: # export'\ # -X POST \ - # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Authorization: Bearer '$(gcloud auth application-default + # print-access-token) \ # -H 'Accept: application/json' \ # -H 'Content-Type: application/json' \ # --compressed \ @@ -732,7 +733,8 @@ module Google # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent: # import\ # -X POST \ - # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Authorization: Bearer '$(gcloud auth application-default + # print-access-token) \ # -H 'Accept: application/json' \ # -H 'Content-Type: application/json' \ # --compressed \ @@ -819,6 +821,7 @@ module Google include Google::Apis::Core::Hashable # Optional. The name of the action associated with the intent. + # Note: The action name must not contain whitespaces. # Corresponds to the JSON property `action` # @return [String] attr_accessor :action @@ -931,7 +934,7 @@ module Google # @return [Array] attr_accessor :training_phrases - # Required. Indicates whether webhooks are enabled for the intent. + # Optional. Indicates whether webhooks are enabled for the intent. # Corresponds to the JSON property `webhookState` # @return [String] attr_accessor :webhook_state @@ -1670,7 +1673,7 @@ module Google class GoogleCloudDialogflowV2IntentTrainingPhrase include Google::Apis::Core::Hashable - # Required. The unique identifier of this training phrase. + # Output only. The unique identifier of this training phrase. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1864,8 +1867,18 @@ module Google class GoogleCloudDialogflowV2OriginalDetectIntentRequest include Google::Apis::Core::Hashable - # Optional. This field is set to the value of `QueryParameters.payload` field - # passed in the request. + # Optional. This field is set to the value of the `QueryParameters.payload` + # field passed in the request. Some integrations that query a Dialogflow + # agent may provide additional information in the payload. + # In particular for the Telephony Gateway this field has the form: + #
`
+        # "telephony": `
+        # "caller_id": "+18558363987"
+        # `
+        # `
+ # Note: The caller ID field (`caller_id`) will be redacted for Standard + # Edition agents and populated with the caller ID in [E.164 + # format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. # Corresponds to the JSON property `payload` # @return [Hash] attr_accessor :payload @@ -2133,7 +2146,8 @@ module Google # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent: # restore\ # -X POST \ - # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Authorization: Bearer '$(gcloud auth application-default + # print-access-token) \ # -H 'Accept: application/json' \ # -H 'Content-Type: application/json' \ # --compressed \ @@ -2596,7 +2610,8 @@ module Google # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/ # agent:export'\ # -X POST \ - # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Authorization: Bearer '$(gcloud auth application-default + # print-access-token) \ # -H 'Accept: application/json' \ # -H 'Content-Type: application/json' \ # --compressed \ @@ -2632,6 +2647,7 @@ module Google include Google::Apis::Core::Hashable # Optional. The name of the action associated with the intent. + # Note: The action name must not contain whitespaces. # Corresponds to the JSON property `action` # @return [String] attr_accessor :action @@ -2647,6 +2663,14 @@ module Google # @return [String] attr_accessor :display_name + # Optional. Indicates that this intent ends an interaction. Some integrations + # (e.g., Actions on Google or Dialogflow phone gateway) use this information + # to close interaction with an end user. Default is false. + # Corresponds to the JSON property `endInteraction` + # @return [Boolean] + attr_accessor :end_interaction + alias_method :end_interaction?, :end_interaction + # Optional. The collection of event names that trigger the intent. # If the collection of input contexts is not empty, all of the contexts must # be present in the active user session for an event to trigger this intent. @@ -2760,7 +2784,7 @@ module Google # @return [Array] attr_accessor :training_phrases - # Required. Indicates whether webhooks are enabled for the intent. + # Optional. Indicates whether webhooks are enabled for the intent. # Corresponds to the JSON property `webhookState` # @return [String] attr_accessor :webhook_state @@ -2774,6 +2798,7 @@ module Google @action = args[:action] if args.key?(:action) @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms) @display_name = args[:display_name] if args.key?(:display_name) + @end_interaction = args[:end_interaction] if args.key?(:end_interaction) @events = args[:events] if args.key?(:events) @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info) @input_context_names = args[:input_context_names] if args.key?(:input_context_names) @@ -2885,6 +2910,25 @@ module Google # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions] attr_accessor :suggestions + # Plays audio from a file in Telephony Gateway. + # Corresponds to the JSON property `telephonyPlayAudio` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio] + attr_accessor :telephony_play_audio + + # Synthesizes speech and plays back the synthesized audio to the caller in + # Telephony Gateway. + # Telephony Gateway takes the synthesizer settings from + # `DetectIntentResponse.output_audio_config` which can either be set + # at request-level or can come from the agent-level synthesizer config. + # Corresponds to the JSON property `telephonySynthesizeSpeech` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech] + attr_accessor :telephony_synthesize_speech + + # Transfers the call in Telephony Gateway. + # Corresponds to the JSON property `telephonyTransferCall` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall] + attr_accessor :telephony_transfer_call + # The text response message. # Corresponds to the JSON property `text` # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageText] @@ -2907,6 +2951,9 @@ module Google @quick_replies = args[:quick_replies] if args.key?(:quick_replies) @simple_responses = args[:simple_responses] if args.key?(:simple_responses) @suggestions = args[:suggestions] if args.key?(:suggestions) + @telephony_play_audio = args[:telephony_play_audio] if args.key?(:telephony_play_audio) + @telephony_synthesize_speech = args[:telephony_synthesize_speech] if args.key?(:telephony_synthesize_speech) + @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call) @text = args[:text] if args.key?(:text) end end @@ -3382,6 +3429,86 @@ module Google end end + # Plays audio from a file in Telephony Gateway. + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio + include Google::Apis::Core::Hashable + + # Required. URI to a Google Cloud Storage object containing the audio to + # play, e.g., "gs://bucket/object". The object must contain a single + # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + # This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + # where is the number of the Telephony Gateway project + # (usually the same as the Dialogflow agent project). If the Google Cloud + # Storage bucket is in the Telephony Gateway project, this permission is + # added by default when enabling the Dialogflow V2 API. + # For audio from other sources, consider using the + # `TelephonySynthesizeSpeech` message with SSML. + # Corresponds to the JSON property `audioUri` + # @return [String] + attr_accessor :audio_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_uri = args[:audio_uri] if args.key?(:audio_uri) + end + end + + # Synthesizes speech and plays back the synthesized audio to the caller in + # Telephony Gateway. + # Telephony Gateway takes the synthesizer settings from + # `DetectIntentResponse.output_audio_config` which can either be set + # at request-level or can come from the agent-level synthesizer config. + class GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech + include Google::Apis::Core::Hashable + + # The SSML to be synthesized. For more information, see + # [SSML](https://developers.google.com/actions/reference/ssml). + # Corresponds to the JSON property `ssml` + # @return [String] + attr_accessor :ssml + + # The raw text to be synthesized. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ssml = args[:ssml] if args.key?(:ssml) + @text = args[:text] if args.key?(:text) + end + end + + # Transfers the call in Telephony Gateway. + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall + include Google::Apis::Core::Hashable + + # Required. The phone number to transfer the call to + # in [E.164 format](https://en.wikipedia.org/wiki/E.164). + # We currently only allow transferring to US numbers (+1xxxyyyzzzz). + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + # The text response message. class GoogleCloudDialogflowV2beta1IntentMessageText include Google::Apis::Core::Hashable @@ -3481,7 +3608,7 @@ module Google class GoogleCloudDialogflowV2beta1IntentTrainingPhrase include Google::Apis::Core::Hashable - # Required. The unique identifier of this training phrase. + # Output only. The unique identifier of this training phrase. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -3562,6 +3689,84 @@ module Google end end + # Represents the result of querying a Knowledge base. + class GoogleCloudDialogflowV2beta1KnowledgeAnswers + include Google::Apis::Core::Hashable + + # A list of answers from Knowledge Connector. + # Corresponds to the JSON property `answers` + # @return [Array] + attr_accessor :answers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @answers = args[:answers] if args.key?(:answers) + end + end + + # An answer from Knowledge Connector. + class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer + include Google::Apis::Core::Hashable + + # The piece of text from the `source` knowledge base document that answers + # this conversational query. + # Corresponds to the JSON property `answer` + # @return [String] + attr_accessor :answer + + # The corresponding FAQ question if the answer was extracted from a FAQ + # Document, empty otherwise. + # Corresponds to the JSON property `faqQuestion` + # @return [String] + attr_accessor :faq_question + + # The system's confidence score that this Knowledge answer is a good match + # for this converstational query, range from 0.0 (completely uncertain) + # to 1.0 (completely certain). + # Note: The confidence score is likely to vary somewhat (possibly even for + # identical requests), as the underlying model is under constant + # improvement, we may deprecate it in the future. We recommend using + # `match_confidence_level` which should be generally more stable. + # Corresponds to the JSON property `matchConfidence` + # @return [Float] + attr_accessor :match_confidence + + # The system's confidence level that this knowledge answer is a good match + # for this conversational query. + # NOTE: The confidence level for a given `` pair may change + # without notice, as it depends on models that are constantly being + # improved. However, it will change less frequently than the confidence + # score below, and should be preferred for referencing the quality of an + # answer. + # Corresponds to the JSON property `matchConfidenceLevel` + # @return [String] + attr_accessor :match_confidence_level + + # Indicates which Knowledge Document this answer was extracted from. + # Format: `projects//knowledgeBases//documents/`. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @answer = args[:answer] if args.key?(:answer) + @faq_question = args[:faq_question] if args.key?(:faq_question) + @match_confidence = args[:match_confidence] if args.key?(:match_confidence) + @match_confidence_level = args[:match_confidence_level] if args.key?(:match_confidence_level) + @source = args[:source] if args.key?(:source) + end + end + # Metadata in google::longrunning::Operation for Knowledge operations. class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata include Google::Apis::Core::Hashable @@ -3586,8 +3791,18 @@ module Google class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest include Google::Apis::Core::Hashable - # Optional. This field is set to the value of `QueryParameters.payload` field - # passed in the request. + # Optional. This field is set to the value of the `QueryParameters.payload` + # field passed in the request. Some integrations that query a Dialogflow + # agent may provide additional information in the payload. + # In particular for the Telephony Gateway this field has the form: + #
`
+        # "telephony": `
+        # "caller_id": "+18558363987"
+        # `
+        # `
+ # Note: The caller ID field (`caller_id`) will be redacted for Standard + # Edition agents and populated with the caller ID in [E.164 + # format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. # Corresponds to the JSON property `payload` # @return [Hash] attr_accessor :payload @@ -3666,6 +3881,11 @@ module Google # @return [Float] attr_accessor :intent_detection_confidence + # Represents the result of querying a Knowledge base. + # Corresponds to the JSON property `knowledgeAnswers` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAnswers] + attr_accessor :knowledge_answers + # The language that was triggered during intent detection. # See [Language Support](https://dialogflow.com/docs/reference/language) # for a list of the currently supported language codes. @@ -3697,6 +3917,12 @@ module Google # @return [String] attr_accessor :query_text + # The result of sentiment analysis as configured by + # `sentiment_analysis_request_config`. + # Corresponds to the JSON property `sentimentAnalysisResult` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SentimentAnalysisResult] + attr_accessor :sentiment_analysis_result + # The Speech recognition confidence between 0.0 and 1.0. A higher number # indicates an estimated greater likelihood that the recognized words are # correct. The default of 0.0 is a sentinel value indicating that confidence @@ -3734,20 +3960,76 @@ module Google @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) @intent = args[:intent] if args.key?(:intent) @intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence) + @knowledge_answers = args[:knowledge_answers] if args.key?(:knowledge_answers) @language_code = args[:language_code] if args.key?(:language_code) @output_contexts = args[:output_contexts] if args.key?(:output_contexts) @parameters = args[:parameters] if args.key?(:parameters) @query_text = args[:query_text] if args.key?(:query_text) + @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result) @speech_recognition_confidence = args[:speech_recognition_confidence] if args.key?(:speech_recognition_confidence) @webhook_payload = args[:webhook_payload] if args.key?(:webhook_payload) @webhook_source = args[:webhook_source] if args.key?(:webhook_source) end end + # The sentiment, such as positive/negative feeling or association, for a unit + # of analysis, such as the query text. + class GoogleCloudDialogflowV2beta1Sentiment + 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 + + # The result of sentiment analysis as configured by + # `sentiment_analysis_request_config`. + class GoogleCloudDialogflowV2beta1SentimentAnalysisResult + include Google::Apis::Core::Hashable + + # The sentiment, such as positive/negative feeling or association, for a unit + # of analysis, such as the query text. + # Corresponds to the JSON property `queryTextSentiment` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Sentiment] + attr_accessor :query_text_sentiment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @query_text_sentiment = args[:query_text_sentiment] if args.key?(:query_text_sentiment) + end + end + # The request message for a webhook call. class GoogleCloudDialogflowV2beta1WebhookRequest include Google::Apis::Core::Hashable + # Alternative query results from KnowledgeService. + # Corresponds to the JSON property `alternativeQueryResults` + # @return [Array] + attr_accessor :alternative_query_results + # Represents the contents of the original request that was passed to # the `[Streaming]DetectIntent` call. # Corresponds to the JSON property `originalDetectIntentRequest` @@ -3778,6 +4060,7 @@ module Google # Update properties of this object def update!(**args) + @alternative_query_results = args[:alternative_query_results] if args.key?(:alternative_query_results) @original_detect_intent_request = args[:original_detect_intent_request] if args.key?(:original_detect_intent_request) @query_result = args[:query_result] if args.key?(:query_result) @response_id = args[:response_id] if args.key?(:response_id) @@ -3789,6 +4072,14 @@ module Google class GoogleCloudDialogflowV2beta1WebhookResponse include Google::Apis::Core::Hashable + # Optional. Indicates that this intent ends an interaction. Some integrations + # (e.g., Actions on Google or Dialogflow phone gateway) use this information + # to close interaction with an end user. Default is false. + # Corresponds to the JSON property `endInteraction` + # @return [Boolean] + attr_accessor :end_interaction + alias_method :end_interaction?, :end_interaction + # Events allow for matching intents by event name instead of the natural # language input. For instance, input `` can trigger a personalized welcome response. @@ -3853,6 +4144,7 @@ module Google # Update properties of this object def update!(**args) + @end_interaction = args[:end_interaction] if args.key?(:end_interaction) @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input) @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages) @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 167b0372a..edda85ac4 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -550,6 +550,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageText class Representation < Google::Apis::Core::JsonRepresentation; end @@ -574,6 +592,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1KnowledgeAnswers + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -592,6 +622,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1Sentiment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1SentimentAnalysisResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1WebhookRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1325,6 +1367,7 @@ module Google property :action, as: 'action' collection :default_response_platforms, as: 'defaultResponsePlatforms' property :display_name, as: 'displayName' + property :end_interaction, as: 'endInteraction' collection :events, as: 'events' collection :followup_intent_info, as: 'followupIntentInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo::Representation @@ -1380,6 +1423,12 @@ module Google property :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions::Representation + property :telephony_play_audio, as: 'telephonyPlayAudio', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio::Representation + + property :telephony_synthesize_speech, as: 'telephonySynthesizeSpeech', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech::Representation + + property :telephony_transfer_call, as: 'telephonyTransferCall', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall::Representation + property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageText, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageText::Representation end @@ -1538,6 +1587,28 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_uri, as: 'audioUri' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ssml, as: 'ssml' + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :phone_number, as: 'phoneNumber' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageText # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1580,6 +1651,25 @@ module Google end end + class GoogleCloudDialogflowV2beta1KnowledgeAnswers + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :answers, as: 'answers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer::Representation + + end + end + + class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :answer, as: 'answer' + property :faq_question, as: 'faqQuestion' + property :match_confidence, as: 'matchConfidence' + property :match_confidence_level, as: 'matchConfidenceLevel' + property :source, as: 'source' + end + end + class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1608,20 +1698,42 @@ module Google property :intent, as: 'intent', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent::Representation property :intent_detection_confidence, as: 'intentDetectionConfidence' + property :knowledge_answers, as: 'knowledgeAnswers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAnswers, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAnswers::Representation + property :language_code, as: 'languageCode' collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context::Representation hash :parameters, as: 'parameters' property :query_text, as: 'queryText' + property :sentiment_analysis_result, as: 'sentimentAnalysisResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SentimentAnalysisResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SentimentAnalysisResult::Representation + property :speech_recognition_confidence, as: 'speechRecognitionConfidence' hash :webhook_payload, as: 'webhookPayload' property :webhook_source, as: 'webhookSource' end end + class GoogleCloudDialogflowV2beta1Sentiment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :magnitude, as: 'magnitude' + property :score, as: 'score' + end + end + + class GoogleCloudDialogflowV2beta1SentimentAnalysisResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :query_text_sentiment, as: 'queryTextSentiment', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Sentiment, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Sentiment::Representation + + end + end + class GoogleCloudDialogflowV2beta1WebhookRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :alternative_query_results, as: 'alternativeQueryResults', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult::Representation + property :original_detect_intent_request, as: 'originalDetectIntentRequest', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest::Representation property :query_result, as: 'queryResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult::Representation @@ -1634,6 +1746,7 @@ module Google class GoogleCloudDialogflowV2beta1WebhookResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :end_interaction, as: 'endInteraction' property :followup_event_input, as: 'followupEventInput', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EventInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EventInput::Representation collection :fulfillment_messages, as: 'fulfillmentMessages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage::Representation diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 68f03cb29..fb3551723 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-enterprise/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20180710' + REVISION = '20180814' # 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 ebcc586f4..862a3c79b 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -225,7 +225,8 @@ module Google # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent: # export'\ # -X POST \ - # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Authorization: Bearer '$(gcloud auth application-default + # print-access-token) \ # -H 'Accept: application/json' \ # -H 'Content-Type: application/json' \ # --compressed \ @@ -261,6 +262,7 @@ module Google include Google::Apis::Core::Hashable # Optional. The name of the action associated with the intent. + # Note: The action name must not contain whitespaces. # Corresponds to the JSON property `action` # @return [String] attr_accessor :action @@ -373,7 +375,7 @@ module Google # @return [Array] attr_accessor :training_phrases - # Required. Indicates whether webhooks are enabled for the intent. + # Optional. Indicates whether webhooks are enabled for the intent. # Corresponds to the JSON property `webhookState` # @return [String] attr_accessor :webhook_state @@ -1093,7 +1095,7 @@ module Google class GoogleCloudDialogflowV2IntentTrainingPhrase include Google::Apis::Core::Hashable - # Required. The unique identifier of this training phrase. + # Output only. The unique identifier of this training phrase. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1179,19 +1181,18 @@ module Google class GoogleCloudDialogflowV2OriginalDetectIntentRequest include Google::Apis::Core::Hashable - # Optional. This field is set to the value of `QueryParameters.payload` field - # passed in the request. - # This field is used for the telephony gateway. It should have a - # structure similar to this JSON message: + # Optional. This field is set to the value of the `QueryParameters.payload` + # field passed in the request. Some integrations that query a Dialogflow + # agent may provide additional information in the payload. + # In particular for the Telephony Gateway this field has the form: #
`
         # "telephony": `
         # "caller_id": "+18558363987"
+        # `
         # `
- # Note: The caller ID field (`caller_id`) will be in - # [E.164 format](https://en.wikipedia.org/wiki/E.164) and is not supported - # for standard tier agents. When the telephony gateway is used with a - # standard tier agent the `caller_id` field above will have a value of - # `REDACTED_IN_STANDARD_TIER_AGENT`. + # Note: The caller ID field (`caller_id`) will be redacted for Standard + # Edition agents and populated with the caller ID in [E.164 + # format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. # Corresponds to the JSON property `payload` # @return [Hash] attr_accessor :payload @@ -1876,6 +1877,11 @@ module Google # @return [String] attr_accessor :input_audio + # Instructs the speech synthesizer how to generate the output audio content. + # Corresponds to the JSON property `outputAudioConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig] + attr_accessor :output_audio_config + # Represents the query input. It can contain either: # 1. An audio config which # instructs the speech recognizer how to process the speech audio. @@ -1897,6 +1903,7 @@ module Google # Update properties of this object def update!(**args) @input_audio = args[:input_audio] if args.key?(:input_audio) + @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config) @query_input = args[:query_input] if args.key?(:query_input) @query_params = args[:query_params] if args.key?(:query_params) end @@ -1906,6 +1913,29 @@ module Google class GoogleCloudDialogflowV2beta1DetectIntentResponse include Google::Apis::Core::Hashable + # If Knowledge Connectors are enabled, there could be more than one result + # returned for a given query or event, and this field will contain all + # results except for the top one, which is captured in query_result. The + # alternative results are ordered by decreasing + # `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + # disabled, this field will be empty until multiple responses for regular + # intents are supported, at which point those additional results will be + # surfaced here. + # Corresponds to the JSON property `alternativeQueryResults` + # @return [Array] + attr_accessor :alternative_query_results + + # The audio data bytes encoded as specified in the request. + # Corresponds to the JSON property `outputAudio` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :output_audio + + # Instructs the speech synthesizer how to generate the output audio content. + # Corresponds to the JSON property `outputAudioConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig] + attr_accessor :output_audio_config + # Represents the result of conversational query or event processing. # Corresponds to the JSON property `queryResult` # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult] @@ -1966,12 +1996,85 @@ module Google # Update properties of this object def update!(**args) + @alternative_query_results = args[:alternative_query_results] if args.key?(:alternative_query_results) + @output_audio = args[:output_audio] if args.key?(:output_audio) + @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config) @query_result = args[:query_result] if args.key?(:query_result) @response_id = args[:response_id] if args.key?(:response_id) @webhook_status = args[:webhook_status] if args.key?(:webhook_status) end end + # A document resource. + class GoogleCloudDialogflowV2beta1Document + include Google::Apis::Core::Hashable + + # The raw content of the document. This field is only permitted for + # EXTRACTIVE_QA and FAQ knowledge types. + # Note: This field is in the process of being deprecated, please use + # raw_content instead. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # The URI where the file content is located. + # For documents stored in Google Cloud Storage, these URIs must have + # the form `gs:///`. + # NOTE: External URLs must correspond to public webpages, i.e., they must + # be indexed by Google Search. In particular, URLs for showing documents in + # Google Cloud Storage (i.e. the URL in your browser) are not supported. + # Instead use the `gs://` format URI described above. + # Corresponds to the JSON property `contentUri` + # @return [String] + attr_accessor :content_uri + + # Required. The display name of the document. The name must be 1024 bytes or + # less; otherwise, the creation request fails. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Required. The knowledge type of document content. + # Corresponds to the JSON property `knowledgeTypes` + # @return [Array] + attr_accessor :knowledge_types + + # Required. The MIME type of this document. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # The document resource name. + # The name must be empty when creating a document. + # Format: `projects//knowledgeBases//documents/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The raw content of the document. This field is only permitted for + # EXTRACTIVE_QA and FAQ knowledge types. + # Corresponds to the JSON property `rawContent` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :raw_content + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @content_uri = args[:content_uri] if args.key?(:content_uri) + @display_name = args[:display_name] if args.key?(:display_name) + @knowledge_types = args[:knowledge_types] if args.key?(:knowledge_types) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @name = args[:name] if args.key?(:name) + @raw_content = args[:raw_content] if args.key?(:raw_content) + end + end + # Represents an entity type. # Entity types serve as a tool for extracting parameter values from natural # language queries. @@ -2142,7 +2245,8 @@ module Google # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/ # agent:export'\ # -X POST \ - # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Authorization: Bearer '$(gcloud auth application-default + # print-access-token) \ # -H 'Accept: application/json' \ # -H 'Content-Type: application/json' \ # --compressed \ @@ -2181,7 +2285,8 @@ module Google # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/ # agent:import\ # -X POST \ - # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Authorization: Bearer '$(gcloud auth application-default + # print-access-token) \ # -H 'Accept: application/json' \ # -H 'Content-Type: application/json' \ # --compressed \ @@ -2228,6 +2333,22 @@ module Google # @return [String] attr_accessor :language_code + # Optional. Which Speech model to select for the given request. Select the + # model best suited to your domain to get best results. If a model is not + # explicitly specified, then we auto-select a model based on the parameters + # in the InputAudioConfig. + # If enhanced speech model is enabled for the agent and an enhanced + # version of the specified model for the language does not exist, then the + # speech is recognized using the standard version of the specified model. + # Refer to + # [Cloud Speech API + # documentation](https://cloud.google.com/speech-to-text/docs/basics#select- + # model) + # for more details. + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + # Optional. The collection of phrase hints which are used to boost accuracy # of speech recognition. # Refer to @@ -2256,6 +2377,7 @@ module Google def update!(**args) @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding) @language_code = args[:language_code] if args.key?(:language_code) + @model = args[:model] if args.key?(:model) @phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints) @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) end @@ -2268,6 +2390,7 @@ module Google include Google::Apis::Core::Hashable # Optional. The name of the action associated with the intent. + # Note: The action name must not contain whitespaces. # Corresponds to the JSON property `action` # @return [String] attr_accessor :action @@ -2283,6 +2406,14 @@ module Google # @return [String] attr_accessor :display_name + # Optional. Indicates that this intent ends an interaction. Some integrations + # (e.g., Actions on Google or Dialogflow phone gateway) use this information + # to close interaction with an end user. Default is false. + # Corresponds to the JSON property `endInteraction` + # @return [Boolean] + attr_accessor :end_interaction + alias_method :end_interaction?, :end_interaction + # Optional. The collection of event names that trigger the intent. # If the collection of input contexts is not empty, all of the contexts must # be present in the active user session for an event to trigger this intent. @@ -2396,7 +2527,7 @@ module Google # @return [Array] attr_accessor :training_phrases - # Required. Indicates whether webhooks are enabled for the intent. + # Optional. Indicates whether webhooks are enabled for the intent. # Corresponds to the JSON property `webhookState` # @return [String] attr_accessor :webhook_state @@ -2410,6 +2541,7 @@ module Google @action = args[:action] if args.key?(:action) @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms) @display_name = args[:display_name] if args.key?(:display_name) + @end_interaction = args[:end_interaction] if args.key?(:end_interaction) @events = args[:events] if args.key?(:events) @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info) @input_context_names = args[:input_context_names] if args.key?(:input_context_names) @@ -2540,6 +2672,25 @@ module Google # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSuggestions] attr_accessor :suggestions + # Plays audio from a file in Telephony Gateway. + # Corresponds to the JSON property `telephonyPlayAudio` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio] + attr_accessor :telephony_play_audio + + # Synthesizes speech and plays back the synthesized audio to the caller in + # Telephony Gateway. + # Telephony Gateway takes the synthesizer settings from + # `DetectIntentResponse.output_audio_config` which can either be set + # at request-level or can come from the agent-level synthesizer config. + # Corresponds to the JSON property `telephonySynthesizeSpeech` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech] + attr_accessor :telephony_synthesize_speech + + # Transfers the call in Telephony Gateway. + # Corresponds to the JSON property `telephonyTransferCall` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall] + attr_accessor :telephony_transfer_call + # The text response message. # Corresponds to the JSON property `text` # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageText] @@ -2562,6 +2713,9 @@ module Google @quick_replies = args[:quick_replies] if args.key?(:quick_replies) @simple_responses = args[:simple_responses] if args.key?(:simple_responses) @suggestions = args[:suggestions] if args.key?(:suggestions) + @telephony_play_audio = args[:telephony_play_audio] if args.key?(:telephony_play_audio) + @telephony_synthesize_speech = args[:telephony_synthesize_speech] if args.key?(:telephony_synthesize_speech) + @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call) @text = args[:text] if args.key?(:text) end end @@ -3037,6 +3191,86 @@ module Google end end + # Plays audio from a file in Telephony Gateway. + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio + include Google::Apis::Core::Hashable + + # Required. URI to a Google Cloud Storage object containing the audio to + # play, e.g., "gs://bucket/object". The object must contain a single + # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + # This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + # where is the number of the Telephony Gateway project + # (usually the same as the Dialogflow agent project). If the Google Cloud + # Storage bucket is in the Telephony Gateway project, this permission is + # added by default when enabling the Dialogflow V2 API. + # For audio from other sources, consider using the + # `TelephonySynthesizeSpeech` message with SSML. + # Corresponds to the JSON property `audioUri` + # @return [String] + attr_accessor :audio_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_uri = args[:audio_uri] if args.key?(:audio_uri) + end + end + + # Synthesizes speech and plays back the synthesized audio to the caller in + # Telephony Gateway. + # Telephony Gateway takes the synthesizer settings from + # `DetectIntentResponse.output_audio_config` which can either be set + # at request-level or can come from the agent-level synthesizer config. + class GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech + include Google::Apis::Core::Hashable + + # The SSML to be synthesized. For more information, see + # [SSML](https://developers.google.com/actions/reference/ssml). + # Corresponds to the JSON property `ssml` + # @return [String] + attr_accessor :ssml + + # The raw text to be synthesized. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ssml = args[:ssml] if args.key?(:ssml) + @text = args[:text] if args.key?(:text) + end + end + + # Transfers the call in Telephony Gateway. + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall + include Google::Apis::Core::Hashable + + # Required. The phone number to transfer the call to + # in [E.164 format](https://en.wikipedia.org/wiki/E.164). + # We currently only allow transferring to US numbers (+1xxxyyyzzzz). + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + # The text response message. class GoogleCloudDialogflowV2beta1IntentMessageText include Google::Apis::Core::Hashable @@ -3136,7 +3370,7 @@ module Google class GoogleCloudDialogflowV2beta1IntentTrainingPhrase include Google::Apis::Core::Hashable - # Required. The unique identifier of this training phrase. + # Output only. The unique identifier of this training phrase. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -3217,6 +3451,112 @@ module Google end end + # Represents the result of querying a Knowledge base. + class GoogleCloudDialogflowV2beta1KnowledgeAnswers + include Google::Apis::Core::Hashable + + # A list of answers from Knowledge Connector. + # Corresponds to the JSON property `answers` + # @return [Array] + attr_accessor :answers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @answers = args[:answers] if args.key?(:answers) + end + end + + # An answer from Knowledge Connector. + class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer + include Google::Apis::Core::Hashable + + # The piece of text from the `source` knowledge base document that answers + # this conversational query. + # Corresponds to the JSON property `answer` + # @return [String] + attr_accessor :answer + + # The corresponding FAQ question if the answer was extracted from a FAQ + # Document, empty otherwise. + # Corresponds to the JSON property `faqQuestion` + # @return [String] + attr_accessor :faq_question + + # The system's confidence score that this Knowledge answer is a good match + # for this converstational query, range from 0.0 (completely uncertain) + # to 1.0 (completely certain). + # Note: The confidence score is likely to vary somewhat (possibly even for + # identical requests), as the underlying model is under constant + # improvement, we may deprecate it in the future. We recommend using + # `match_confidence_level` which should be generally more stable. + # Corresponds to the JSON property `matchConfidence` + # @return [Float] + attr_accessor :match_confidence + + # The system's confidence level that this knowledge answer is a good match + # for this conversational query. + # NOTE: The confidence level for a given `` pair may change + # without notice, as it depends on models that are constantly being + # improved. However, it will change less frequently than the confidence + # score below, and should be preferred for referencing the quality of an + # answer. + # Corresponds to the JSON property `matchConfidenceLevel` + # @return [String] + attr_accessor :match_confidence_level + + # Indicates which Knowledge Document this answer was extracted from. + # Format: `projects//knowledgeBases//documents/`. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @answer = args[:answer] if args.key?(:answer) + @faq_question = args[:faq_question] if args.key?(:faq_question) + @match_confidence = args[:match_confidence] if args.key?(:match_confidence) + @match_confidence_level = args[:match_confidence_level] if args.key?(:match_confidence_level) + @source = args[:source] if args.key?(:source) + end + end + + # Represents knowledge base resource. + class GoogleCloudDialogflowV2beta1KnowledgeBase + include Google::Apis::Core::Hashable + + # Required. The display name of the knowledge base. The name must be 1024 + # bytes or less; otherwise, the creation request fails. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The knowledge base resource name. + # The name must be empty when creating a knowledge base. + # Format: `projects//knowledgeBases/`. + # 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) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + # Metadata in google::longrunning::Operation for Knowledge operations. class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata include Google::Apis::Core::Hashable @@ -3263,6 +3603,32 @@ module Google end end + # Response message for Documents.ListDocuments. + class GoogleCloudDialogflowV2beta1ListDocumentsResponse + include Google::Apis::Core::Hashable + + # The list of documents. + # Corresponds to the JSON property `documents` + # @return [Array] + attr_accessor :documents + + # 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) + @documents = args[:documents] if args.key?(:documents) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for EntityTypes.ListEntityTypes. class GoogleCloudDialogflowV2beta1ListEntityTypesResponse include Google::Apis::Core::Hashable @@ -3317,6 +3683,32 @@ module Google end end + # Response message for KnowledgeBases.ListKnowledgeBases. + class GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse + include Google::Apis::Core::Hashable + + # The list of knowledge bases. + # Corresponds to the JSON property `knowledgeBases` + # @return [Array] + attr_accessor :knowledge_bases + + # 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) + @knowledge_bases = args[:knowledge_bases] if args.key?(:knowledge_bases) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for SessionEntityTypes.ListSessionEntityTypes. class GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse include Google::Apis::Core::Hashable @@ -3349,19 +3741,18 @@ module Google class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest include Google::Apis::Core::Hashable - # Optional. This field is set to the value of `QueryParameters.payload` field - # passed in the request. - # This field is used for the telephony gateway. It should have a - # structure similar to this JSON message: + # Optional. This field is set to the value of the `QueryParameters.payload` + # field passed in the request. Some integrations that query a Dialogflow + # agent may provide additional information in the payload. + # In particular for the Telephony Gateway this field has the form: #
`
         # "telephony": `
         # "caller_id": "+18558363987"
+        # `
         # `
- # Note: The caller ID field (`caller_id`) will be in - # [E.164 format](https://en.wikipedia.org/wiki/E.164) and is not supported - # for standard tier agents. When the telephony gateway is used with a - # standard tier agent the `caller_id` field above will have a value of - # `REDACTED_IN_STANDARD_TIER_AGENT`. + # Note: The caller ID field (`caller_id`) will be redacted for Standard + # Edition agents and populated with the caller ID in [E.164 + # format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. # Corresponds to the JSON property `payload` # @return [Hash] attr_accessor :payload @@ -3390,6 +3781,41 @@ module Google end end + # Instructs the speech synthesizer how to generate the output audio content. + class GoogleCloudDialogflowV2beta1OutputAudioConfig + include Google::Apis::Core::Hashable + + # Required. Audio encoding of the synthesized audio content. + # Corresponds to the JSON property `audioEncoding` + # @return [String] + attr_accessor :audio_encoding + + # Optional. The synthesis sample rate (in hertz) for this audio. If not + # provided, then the synthesizer will use the default sample rate based on + # the audio encoding. If this is different from the voice's natural sample + # rate, then the synthesizer will honor this request by converting to the + # desired sample rate (which might result in worse audio quality). + # Corresponds to the JSON property `sampleRateHertz` + # @return [Fixnum] + attr_accessor :sample_rate_hertz + + # Configuration of how speech should be synthesized. + # Corresponds to the JSON property `synthesizeSpeechConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig] + attr_accessor :synthesize_speech_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding) + @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) + @synthesize_speech_config = args[:synthesize_speech_config] if args.key?(:synthesize_speech_config) + end + end + # Represents the query input. It can contain either: # 1. An audio config which # instructs the speech recognizer how to process the speech audio. @@ -3448,6 +3874,16 @@ module Google # @return [Google::Apis::DialogflowV2beta1::GoogleTypeLatLng] attr_accessor :geo_location + # Optional. KnowledgeBases to get alternative results from. If not set, the + # KnowledgeBases enabled in the agent (through UI) will be used. + # Format: `projects//knowledgeBases/`. + # Note: This field is `repeated` for forward compatibility, currently only + # the first one is supported, we may return an error if multiple + # KnowledgeBases are specified. + # Corresponds to the JSON property `knowledgeBaseNames` + # @return [Array] + attr_accessor :knowledge_base_names + # Optional. This field can be used to pass custom data into the webhook # associated with the agent. Arbitrary JSON objects are supported. # Corresponds to the JSON property `payload` @@ -3461,6 +3897,11 @@ module Google attr_accessor :reset_contexts alias_method :reset_contexts?, :reset_contexts + # Configures the types of sentiment analysis to perform. + # Corresponds to the JSON property `sentimentAnalysisRequestConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig] + attr_accessor :sentiment_analysis_request_config + # Optional. The collection of session entity types to replace or extend # developer entities with for this query only. The entity synonyms apply # to all languages. @@ -3484,8 +3925,10 @@ module Google def update!(**args) @contexts = args[:contexts] if args.key?(:contexts) @geo_location = args[:geo_location] if args.key?(:geo_location) + @knowledge_base_names = args[:knowledge_base_names] if args.key?(:knowledge_base_names) @payload = args[:payload] if args.key?(:payload) @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts) + @sentiment_analysis_request_config = args[:sentiment_analysis_request_config] if args.key?(:sentiment_analysis_request_config) @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) @time_zone = args[:time_zone] if args.key?(:time_zone) end @@ -3541,6 +3984,11 @@ module Google # @return [Float] attr_accessor :intent_detection_confidence + # Represents the result of querying a Knowledge base. + # Corresponds to the JSON property `knowledgeAnswers` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAnswers] + attr_accessor :knowledge_answers + # The language that was triggered during intent detection. # See [Language Support](https://dialogflow.com/docs/reference/language) # for a list of the currently supported language codes. @@ -3572,6 +4020,12 @@ module Google # @return [String] attr_accessor :query_text + # The result of sentiment analysis as configured by + # `sentiment_analysis_request_config`. + # Corresponds to the JSON property `sentimentAnalysisResult` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisResult] + attr_accessor :sentiment_analysis_result + # The Speech recognition confidence between 0.0 and 1.0. A higher number # indicates an estimated greater likelihood that the recognized words are # correct. The default of 0.0 is a sentinel value indicating that confidence @@ -3609,10 +4063,12 @@ module Google @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) @intent = args[:intent] if args.key?(:intent) @intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence) + @knowledge_answers = args[:knowledge_answers] if args.key?(:knowledge_answers) @language_code = args[:language_code] if args.key?(:language_code) @output_contexts = args[:output_contexts] if args.key?(:output_contexts) @parameters = args[:parameters] if args.key?(:parameters) @query_text = args[:query_text] if args.key?(:query_text) + @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result) @speech_recognition_confidence = args[:speech_recognition_confidence] if args.key?(:speech_recognition_confidence) @webhook_payload = args[:webhook_payload] if args.key?(:webhook_payload) @webhook_source = args[:webhook_source] if args.key?(:webhook_source) @@ -3629,7 +4085,8 @@ module Google # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/ # agent:restore\ # -X POST \ - # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Authorization: Bearer '$(gcloud auth application-default + # print-access-token) \ # -H 'Accept: application/json' \ # -H 'Content-Type: application/json' \ # --compressed \ @@ -3685,6 +4142,77 @@ module Google end end + # The sentiment, such as positive/negative feeling or association, for a unit + # of analysis, such as the query text. + class GoogleCloudDialogflowV2beta1Sentiment + 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 + + # Configures the types of sentiment analysis to perform. + class GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig + include Google::Apis::Core::Hashable + + # Optional. Instructs the service to perform sentiment analysis on + # `query_text`. If not provided, sentiment analysis is not performed on + # `query_text`. + # Corresponds to the JSON property `analyzeQueryTextSentiment` + # @return [Boolean] + attr_accessor :analyze_query_text_sentiment + alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment) + end + end + + # The result of sentiment analysis as configured by + # `sentiment_analysis_request_config`. + class GoogleCloudDialogflowV2beta1SentimentAnalysisResult + include Google::Apis::Core::Hashable + + # The sentiment, such as positive/negative feeling or association, for a unit + # of analysis, such as the query text. + # Corresponds to the JSON property `queryTextSentiment` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Sentiment] + attr_accessor :query_text_sentiment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @query_text_sentiment = args[:query_text_sentiment] if args.key?(:query_text_sentiment) + end + end + # Represents a session entity type. # Extends or replaces a developer entity type at the user session level (we # refer to the entity types defined at the agent level as "developer entity @@ -3728,6 +4256,63 @@ module Google end end + # Configuration of how speech should be synthesized. + class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig + include Google::Apis::Core::Hashable + + # Optional. An identifier which selects 'audio effects' profiles that are + # applied on (post synthesized) text to speech. Effects are applied on top of + # each other in the order they are given. + # Corresponds to the JSON property `effectsProfileId` + # @return [Array] + attr_accessor :effects_profile_id + + # Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + # semitones from the original pitch. -20 means decrease 20 semitones from the + # original pitch. + # Corresponds to the JSON property `pitch` + # @return [Float] + attr_accessor :pitch + + # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + # native speed supported by the specific voice. 2.0 is twice as fast, and + # 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + # other values < 0.25 or > 4.0 will return an error. + # Corresponds to the JSON property `speakingRate` + # @return [Float] + attr_accessor :speaking_rate + + # Description of which voice to use for speech synthesis. + # Corresponds to the JSON property `voice` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1VoiceSelectionParams] + attr_accessor :voice + + # Optional. Volume gain (in dB) of the normal native volume supported by the + # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + # 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + # will play at approximately half the amplitude of the normal native signal + # amplitude. A value of +6.0 (dB) will play at approximately twice the + # amplitude of the normal native signal amplitude. We strongly recommend not + # to exceed +10 (dB) as there's usually no effective increase in loudness for + # any value greater than that. + # Corresponds to the JSON property `volumeGainDb` + # @return [Float] + attr_accessor :volume_gain_db + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @effects_profile_id = args[:effects_profile_id] if args.key?(:effects_profile_id) + @pitch = args[:pitch] if args.key?(:pitch) + @speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate) + @voice = args[:voice] if args.key?(:voice) + @volume_gain_db = args[:volume_gain_db] if args.key?(:volume_gain_db) + end + end + # Represents the natural language text to be processed. class GoogleCloudDialogflowV2beta1TextInput include Google::Apis::Core::Hashable @@ -3770,10 +4355,45 @@ module Google end end + # Description of which voice to use for speech synthesis. + class GoogleCloudDialogflowV2beta1VoiceSelectionParams + include Google::Apis::Core::Hashable + + # Optional. The name of the voice. If not set, the service will choose a + # voice based on the other parameters such as language_code and gender. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The preferred gender of the voice. If not set, the service will + # choose a voice based on the other parameters such as language_code and + # name. Note that this is only a preference, not requirement. If a + # voice of the appropriate gender is not available, the synthesizer should + # substitute a voice with a different gender rather than failing the request. + # Corresponds to the JSON property `ssmlGender` + # @return [String] + attr_accessor :ssml_gender + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender) + end + end + # The request message for a webhook call. class GoogleCloudDialogflowV2beta1WebhookRequest include Google::Apis::Core::Hashable + # Alternative query results from KnowledgeService. + # Corresponds to the JSON property `alternativeQueryResults` + # @return [Array] + attr_accessor :alternative_query_results + # Represents the contents of the original request that was passed to # the `[Streaming]DetectIntent` call. # Corresponds to the JSON property `originalDetectIntentRequest` @@ -3804,6 +4424,7 @@ module Google # Update properties of this object def update!(**args) + @alternative_query_results = args[:alternative_query_results] if args.key?(:alternative_query_results) @original_detect_intent_request = args[:original_detect_intent_request] if args.key?(:original_detect_intent_request) @query_result = args[:query_result] if args.key?(:query_result) @response_id = args[:response_id] if args.key?(:response_id) @@ -3815,6 +4436,14 @@ module Google class GoogleCloudDialogflowV2beta1WebhookResponse include Google::Apis::Core::Hashable + # Optional. Indicates that this intent ends an interaction. Some integrations + # (e.g., Actions on Google or Dialogflow phone gateway) use this information + # to close interaction with an end user. Default is false. + # Corresponds to the JSON property `endInteraction` + # @return [Boolean] + attr_accessor :end_interaction + alias_method :end_interaction?, :end_interaction + # Events allow for matching intents by event name instead of the natural # language input. For instance, input `` can trigger a personalized welcome response. @@ -3879,6 +4508,7 @@ module Google # Update properties of this object def update!(**args) + @end_interaction = args[:end_interaction] if args.key?(:end_interaction) @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input) @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages) @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 2cb97f246..5af1a7d08 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -310,6 +310,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1Document + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1EntityType class Representation < Google::Apis::Core::JsonRepresentation; end @@ -484,6 +490,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageText class Representation < Google::Apis::Core::JsonRepresentation; end @@ -508,6 +532,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1KnowledgeAnswers + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1KnowledgeBase + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -520,6 +562,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ListDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1ListEntityTypesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -532,6 +580,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -544,6 +598,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1OutputAudioConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1QueryInput class Representation < Google::Apis::Core::JsonRepresentation; end @@ -574,12 +634,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1Sentiment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1SentimentAnalysisResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1SessionEntityType class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1TextInput class Representation < Google::Apis::Core::JsonRepresentation; end @@ -592,6 +676,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1VoiceSelectionParams + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1WebhookRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1119,6 +1209,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :input_audio, :base64 => true, as: 'inputAudio' + property :output_audio_config, as: 'outputAudioConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig::Representation + property :query_input, as: 'queryInput', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput::Representation property :query_params, as: 'queryParams', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters::Representation @@ -1129,6 +1221,11 @@ module Google class GoogleCloudDialogflowV2beta1DetectIntentResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :alternative_query_results, as: 'alternativeQueryResults', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult::Representation + + property :output_audio, :base64 => true, as: 'outputAudio' + property :output_audio_config, as: 'outputAudioConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig::Representation + property :query_result, as: 'queryResult', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult::Representation property :response_id, as: 'responseId' @@ -1137,6 +1234,19 @@ module Google end end + class GoogleCloudDialogflowV2beta1Document + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :content_uri, as: 'contentUri' + property :display_name, as: 'displayName' + collection :knowledge_types, as: 'knowledgeTypes' + property :mime_type, as: 'mimeType' + property :name, as: 'name' + property :raw_content, :base64 => true, as: 'rawContent' + end + end + class GoogleCloudDialogflowV2beta1EntityType # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1202,6 +1312,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :audio_encoding, as: 'audioEncoding' property :language_code, as: 'languageCode' + property :model, as: 'model' collection :phrase_hints, as: 'phraseHints' property :sample_rate_hertz, as: 'sampleRateHertz' end @@ -1213,6 +1324,7 @@ module Google property :action, as: 'action' collection :default_response_platforms, as: 'defaultResponsePlatforms' property :display_name, as: 'displayName' + property :end_interaction, as: 'endInteraction' collection :events, as: 'events' collection :followup_intent_info, as: 'followupIntentInfo', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo::Representation @@ -1276,6 +1388,12 @@ module Google property :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSuggestions, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSuggestions::Representation + property :telephony_play_audio, as: 'telephonyPlayAudio', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio::Representation + + property :telephony_synthesize_speech, as: 'telephonySynthesizeSpeech', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech::Representation + + property :telephony_transfer_call, as: 'telephonyTransferCall', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall::Representation + property :text, as: 'text', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageText, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageText::Representation end @@ -1434,6 +1552,28 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_uri, as: 'audioUri' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ssml, as: 'ssml' + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :phone_number, as: 'phoneNumber' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageText # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1476,6 +1616,33 @@ module Google end end + class GoogleCloudDialogflowV2beta1KnowledgeAnswers + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :answers, as: 'answers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer::Representation + + end + end + + class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :answer, as: 'answer' + property :faq_question, as: 'faqQuestion' + property :match_confidence, as: 'matchConfidence' + property :match_confidence_level, as: 'matchConfidenceLevel' + property :source, as: 'source' + end + end + + class GoogleCloudDialogflowV2beta1KnowledgeBase + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1492,6 +1659,15 @@ module Google end end + class GoogleCloudDialogflowV2beta1ListDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :documents, as: 'documents', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class GoogleCloudDialogflowV2beta1ListEntityTypesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1510,6 +1686,15 @@ module Google end end + class GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :knowledge_bases, as: 'knowledgeBases', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1528,6 +1713,16 @@ module Google end end + class GoogleCloudDialogflowV2beta1OutputAudioConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_encoding, as: 'audioEncoding' + property :sample_rate_hertz, as: 'sampleRateHertz' + property :synthesize_speech_config, as: 'synthesizeSpeechConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig::Representation + + end + end + class GoogleCloudDialogflowV2beta1QueryInput # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1547,8 +1742,11 @@ module Google property :geo_location, as: 'geoLocation', class: Google::Apis::DialogflowV2beta1::GoogleTypeLatLng, decorator: Google::Apis::DialogflowV2beta1::GoogleTypeLatLng::Representation + collection :knowledge_base_names, as: 'knowledgeBaseNames' hash :payload, as: 'payload' property :reset_contexts, as: 'resetContexts' + property :sentiment_analysis_request_config, as: 'sentimentAnalysisRequestConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig::Representation + collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation property :time_zone, as: 'timeZone' @@ -1567,11 +1765,15 @@ module Google property :intent, as: 'intent', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent::Representation property :intent_detection_confidence, as: 'intentDetectionConfidence' + property :knowledge_answers, as: 'knowledgeAnswers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAnswers, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAnswers::Representation + property :language_code, as: 'languageCode' collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation hash :parameters, as: 'parameters' property :query_text, as: 'queryText' + property :sentiment_analysis_result, as: 'sentimentAnalysisResult', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisResult::Representation + property :speech_recognition_confidence, as: 'speechRecognitionConfidence' hash :webhook_payload, as: 'webhookPayload' property :webhook_source, as: 'webhookSource' @@ -1595,6 +1797,29 @@ module Google end end + class GoogleCloudDialogflowV2beta1Sentiment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :magnitude, as: 'magnitude' + property :score, as: 'score' + end + end + + class GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :analyze_query_text_sentiment, as: 'analyzeQueryTextSentiment' + end + end + + class GoogleCloudDialogflowV2beta1SentimentAnalysisResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :query_text_sentiment, as: 'queryTextSentiment', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Sentiment, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Sentiment::Representation + + end + end + class GoogleCloudDialogflowV2beta1SessionEntityType # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1605,6 +1830,18 @@ module Google end end + class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :effects_profile_id, as: 'effectsProfileId' + property :pitch, as: 'pitch' + property :speaking_rate, as: 'speakingRate' + property :voice, as: 'voice', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1VoiceSelectionParams, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1VoiceSelectionParams::Representation + + property :volume_gain_db, as: 'volumeGainDb' + end + end + class GoogleCloudDialogflowV2beta1TextInput # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1619,9 +1856,19 @@ module Google end end + class GoogleCloudDialogflowV2beta1VoiceSelectionParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :ssml_gender, as: 'ssmlGender' + end + end + class GoogleCloudDialogflowV2beta1WebhookRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :alternative_query_results, as: 'alternativeQueryResults', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult::Representation + property :original_detect_intent_request, as: 'originalDetectIntentRequest', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest::Representation property :query_result, as: 'queryResult', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult::Representation @@ -1634,6 +1881,7 @@ module Google class GoogleCloudDialogflowV2beta1WebhookResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :end_interaction, as: 'endInteraction' property :followup_event_input, as: 'followupEventInput', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput::Representation collection :fulfillment_messages, as: 'fulfillmentMessages', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage::Representation diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index d74c7cd7b..de7a83e7b 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -1399,6 +1399,284 @@ module Google execute_or_queue_command(command, &block) end + # Creates a knowledge base. + # @param [String] parent + # Required. The project to create a knowledge base for. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] google_cloud_dialogflow_v2beta1_knowledge_base_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] + # + # @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_agent_knowledge_basis(parent, google_cloud_dialogflow_v2beta1_knowledge_base_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/knowledgeBases', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + command.request_object = google_cloud_dialogflow_v2beta1_knowledge_base_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase + 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 knowledge base. + # @param [String] name + # Required. The name of the knowledge base to delete. + # Format: `projects//knowledgeBases/`. + # @param [Boolean] force + # Optional. Force deletes the knowledge base. When set to true, any documents + # in the knowledge base are also deleted. + # @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::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] + # + # @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_agent_knowledge_basis(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified knowledge base. + # @param [String] name + # Required. The name of the knowledge base to retrieve. + # Format `projects//knowledgeBases/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] + # + # @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_agent_knowledge_basis(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase + 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 + + # Returns the list of all knowledge bases of the specified agent. + # @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. + # @param [String] page_token + # Optional. 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 + # 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse] + # + # @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_agent_knowledge_bases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/knowledgeBases', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse + 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 + + # Creates a new document. + # Operation + # @param [String] parent + # Required. The knoweldge base to create a document for. + # Format: `projects//knowledgeBases/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] google_cloud_dialogflow_v2beta1_document_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::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] + # + # @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_agent_knowledge_basis_document(parent, google_cloud_dialogflow_v2beta1_document_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/documents', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document::Representation + command.request_object = google_cloud_dialogflow_v2beta1_document_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation + 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 document. + # Operation + # @param [String] name + # The name of the document to delete. + # Format: `projects//knowledgeBases//documents/`. + # @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::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] + # + # @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_agent_knowledge_basis_document(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation + 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 + + # Retrieves the specified document. + # @param [String] name + # Required. The name of the document to retrieve. + # Format `projects//knowledgeBases//documents/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] + # + # @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_agent_knowledge_basis_document(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document + 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 + + # Returns the list of all documents of the knowledge base. + # @param [String] parent + # Required. The knowledge base to list all documents for. + # Format: `projects//knowledgeBases/`. + # @param [Fixnum] page_size + # Optional. 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. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse] + # + # @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_agent_knowledge_basis_documents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/documents', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse + 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 + # Deletes all active contexts in the specified session. # @param [String] parent # Required. The name of the session to delete all contexts from. Format: @@ -1861,6 +2139,284 @@ module Google execute_or_queue_command(command, &block) end + # Creates a knowledge base. + # @param [String] parent + # Required. The project to create a knowledge base for. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] google_cloud_dialogflow_v2beta1_knowledge_base_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] + # + # @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_knowledge_basis(parent, google_cloud_dialogflow_v2beta1_knowledge_base_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/knowledgeBases', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + command.request_object = google_cloud_dialogflow_v2beta1_knowledge_base_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase + 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 knowledge base. + # @param [String] name + # Required. The name of the knowledge base to delete. + # Format: `projects//knowledgeBases/`. + # @param [Boolean] force + # Optional. Force deletes the knowledge base. When set to true, any documents + # in the knowledge base are also deleted. + # @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::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] + # + # @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_knowledge_basis(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified knowledge base. + # @param [String] name + # Required. The name of the knowledge base to retrieve. + # Format `projects//knowledgeBases/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] + # + # @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_knowledge_basis(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase + 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 + + # Returns the list of all knowledge bases of the specified agent. + # @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. + # @param [String] page_token + # Optional. 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 + # 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse] + # + # @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_knowledge_bases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/knowledgeBases', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse + 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 + + # Creates a new document. + # Operation + # @param [String] parent + # Required. The knoweldge base to create a document for. + # Format: `projects//knowledgeBases/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] google_cloud_dialogflow_v2beta1_document_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::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] + # + # @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_knowledge_basis_document(parent, google_cloud_dialogflow_v2beta1_document_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/documents', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document::Representation + command.request_object = google_cloud_dialogflow_v2beta1_document_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation + 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 document. + # Operation + # @param [String] name + # The name of the document to delete. + # Format: `projects//knowledgeBases//documents/`. + # @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::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] + # + # @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_knowledge_basis_document(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation + 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 + + # Retrieves the specified document. + # @param [String] name + # Required. The name of the document to retrieve. + # Format `projects//knowledgeBases//documents/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] + # + # @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_knowledge_basis_document(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document + 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 + + # Returns the list of all documents of the knowledge base. + # @param [String] parent + # Required. The knowledge base to list all documents for. + # Format: `projects//knowledgeBases/`. + # @param [Fixnum] page_size + # Optional. 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. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse] + # + # @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_knowledge_basis_documents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/documents', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse + 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 + # Gets the latest state of a long-running operation. Clients can use this # method to poll the operation result at intervals as recommended by the API # service. diff --git a/generated/google/apis/discovery_v1.rb b/generated/google/apis/discovery_v1.rb index 626ca9d5a..a911ef97d 100644 --- a/generated/google/apis/discovery_v1.rb +++ b/generated/google/apis/discovery_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/discovery/ module DiscoveryV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180813' end end end diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index 03533852f..096f97758 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 = '20180619' + REVISION = '20180814' # 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 cb5e23602..521f9b3d8 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -175,6 +175,35 @@ module Google end end + # Message defining a field of a BigQuery table. + class GooglePrivacyDlpV2BigQueryField + include Google::Apis::Core::Hashable + + # General identifier of a data field in a storage service. + # Corresponds to the JSON property `field` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId] + attr_accessor :field + + # Message defining the location of a BigQuery table. A table is uniquely + # identified by its project_id, dataset_id, and table_name. Within a query + # a table is often referenced with a string in the format of: + # `:.` or + # `..`. + # Corresponds to the JSON property `table` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable] + attr_accessor :table + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @field = args[:field] if args.key?(:field) + @table = args[:table] if args.key?(:table) + end + end + # Row key for identifying a record in BigQuery table. class GooglePrivacyDlpV2BigQueryKey include Google::Apis::Core::Hashable @@ -217,11 +246,21 @@ module Google # Max number of rows to scan. If the table has more rows than this value, the # rest of the rows are omitted. If not set, or if set to 0, all rows will be - # scanned. Cannot be used in conjunction with TimespanConfig. + # scanned. Only one of rows_limit and rows_limit_percent can be specified. + # Cannot be used in conjunction with TimespanConfig. # Corresponds to the JSON property `rowsLimit` # @return [Fixnum] attr_accessor :rows_limit + # Max percentage of rows to scan. The rest are omitted. The number of rows + # scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and + # 100 means no limit. Defaults to 0. Only one of rows_limit and + # rows_limit_percent can be specified. Cannot be used in conjunction with + # TimespanConfig. + # Corresponds to the JSON property `rowsLimitPercent` + # @return [Fixnum] + attr_accessor :rows_limit_percent + # # Corresponds to the JSON property `sampleMethod` # @return [String] @@ -244,6 +283,7 @@ module Google def update!(**args) @identifying_fields = args[:identifying_fields] if args.key?(:identifying_fields) @rows_limit = args[:rows_limit] if args.key?(:rows_limit) + @rows_limit_percent = args[:rows_limit_percent] if args.key?(:rows_limit_percent) @sample_method = args[:sample_method] if args.key?(:sample_method) @table_reference = args[:table_reference] if args.key?(:table_reference) end @@ -596,17 +636,46 @@ module Google end end + # Message representing a set of files in Cloud Storage. + class GooglePrivacyDlpV2CloudStorageFileSet + include Google::Apis::Core::Hashable + + # The url, in the format `gs:///`. Trailing wildcard in the + # path is allowed. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url = args[:url] if args.key?(:url) + end + end + # Options defining a file or a set of files (path ending with *) within # a Google Cloud Storage bucket. class GooglePrivacyDlpV2CloudStorageOptions include Google::Apis::Core::Hashable # Max number of bytes to scan from a file. If a scanned file's size is bigger - # than this value then the rest of the bytes are omitted. + # than this value then the rest of the bytes are omitted. Only one + # of bytes_limit_per_file and bytes_limit_per_file_percent can be specified. # Corresponds to the JSON property `bytesLimitPerFile` # @return [Fixnum] attr_accessor :bytes_limit_per_file + # Max percentage of bytes to scan from a file. The rest are omitted. The + # number of bytes scanned is rounded down. Must be between 0 and 100, + # inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one + # of bytes_limit_per_file and bytes_limit_per_file_percent can be specified. + # Corresponds to the JSON property `bytesLimitPerFilePercent` + # @return [Fixnum] + attr_accessor :bytes_limit_per_file_percent + # Set of files to scan. # Corresponds to the JSON property `fileSet` # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet] @@ -638,6 +707,7 @@ module Google # Update properties of this object def update!(**args) @bytes_limit_per_file = args[:bytes_limit_per_file] if args.key?(:bytes_limit_per_file) + @bytes_limit_per_file_percent = args[:bytes_limit_per_file_percent] if args.key?(:bytes_limit_per_file_percent) @file_set = args[:file_set] if args.key?(:file_set) @file_types = args[:file_types] if args.key?(:file_types) @files_limit_percent = args[:files_limit_percent] if args.key?(:files_limit_percent) @@ -980,6 +1050,34 @@ module Google end end + # Request message for CreateStoredInfoType. + class GooglePrivacyDlpV2CreateStoredInfoTypeRequest + include Google::Apis::Core::Hashable + + # Configuration for a StoredInfoType. + # Corresponds to the JSON property `config` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig] + attr_accessor :config + + # The storedInfoType ID can contain uppercase and lowercase letters, + # numbers, and hyphens; that is, it must match the regular + # expression: `[a-zA-Z\\d-]+`. The maximum length is 100 + # characters. Can be empty to allow the system to generate one. + # Corresponds to the JSON property `storedInfoTypeId` + # @return [String] + attr_accessor :stored_info_type_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config = args[:config] if args.key?(:config) + @stored_info_type_id = args[:stored_info_type_id] if args.key?(:stored_info_type_id) + end + end + # Pseudonymization method that generates surrogates via cryptographic hashing. # Uses SHA-256. # The key size must be either 32 or 64 bytes. @@ -1145,7 +1243,11 @@ module Google # matches for "jennifer". # Dictionary words containing a large number of characters that are not # letters or digits may result in unexpected findings because such characters - # are treated as whitespace. + # are treated as whitespace. The + # [limits](https://cloud.google.com/dlp/limits) page contains details about + # the size limits of dictionaries. For dictionaries that do not fit within + # these constraints, consider using `LargeCustomDictionaryConfig` in the + # `StoredInfoType` API. # Corresponds to the JSON property `dictionary` # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Dictionary] attr_accessor :dictionary @@ -1167,6 +1269,11 @@ module Google # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Regex] attr_accessor :regex + # A reference to a StoredInfoType to use with scanning. + # Corresponds to the JSON property `storedType` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredType] + attr_accessor :stored_type + # Message for detecting output from deidentification transformations # such as # [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations. @@ -1191,6 +1298,7 @@ module Google @info_type = args[:info_type] if args.key?(:info_type) @likelihood = args[:likelihood] if args.key?(:likelihood) @regex = args[:regex] if args.key?(:regex) + @stored_type = args[:stored_type] if args.key?(:stored_type) @surrogate_type = args[:surrogate_type] if args.key?(:surrogate_type) end end @@ -1688,7 +1796,11 @@ module Google # matches for "jennifer". # Dictionary words containing a large number of characters that are not # letters or digits may result in unexpected findings because such characters - # are treated as whitespace. + # are treated as whitespace. The + # [limits](https://cloud.google.com/dlp/limits) page contains details about + # the size limits of dictionaries. For dictionaries that do not fit within + # these constraints, consider using `LargeCustomDictionaryConfig` in the + # `StoredInfoType` API. class GooglePrivacyDlpV2Dictionary include Google::Apis::Core::Hashable @@ -2423,6 +2535,10 @@ module Google # When no InfoTypes or CustomInfoTypes are specified in a request, the # system may automatically choose what detectors to run. By default this may # be all types, but may change over time as detectors are updated. + # The special InfoType name "ALL_BASIC" can be used to trigger all detectors, + # but may change over time as new InfoTypes are added. If you need precise + # control and predictability as to what detectors are run you should specify + # specific InfoTypes listed in the reference. # Corresponds to the JSON property `infoTypes` # @return [Array] attr_accessor :info_types @@ -3233,6 +3349,42 @@ module Google end end + # Configuration for a custom dictionary created from a data source of any size + # up to the maximum size defined in the + # [limits](https://cloud.google.com/dlp/limits) page. The artifacts of + # dictionary creation are stored in the specified Google Cloud Storage + # location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries + # that satisfy the size requirements. + class GooglePrivacyDlpV2LargeCustomDictionaryConfig + include Google::Apis::Core::Hashable + + # Message defining a field of a BigQuery table. + # Corresponds to the JSON property `bigQueryField` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryField] + attr_accessor :big_query_field + + # Message representing a set of files in Cloud Storage. + # Corresponds to the JSON property `cloudStorageFileSet` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageFileSet] + attr_accessor :cloud_storage_file_set + + # Message representing a single file or path in Cloud Storage. + # Corresponds to the JSON property `outputPath` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStoragePath] + attr_accessor :output_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @big_query_field = args[:big_query_field] if args.key?(:big_query_field) + @cloud_storage_file_set = args[:cloud_storage_file_set] if args.key?(:cloud_storage_file_set) + @output_path = args[:output_path] if args.key?(:output_path) + end + end + # Message for specifying an adjustment to the likelihood of a finding as # part of a detection rule. class GooglePrivacyDlpV2LikelihoodAdjustment @@ -3389,6 +3541,32 @@ module Google end end + # Response message for ListStoredInfoTypes. + class GooglePrivacyDlpV2ListStoredInfoTypesResponse + include Google::Apis::Core::Hashable + + # If the next page is available then the next page token to be used + # in following ListStoredInfoTypes request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. + # Corresponds to the JSON property `storedInfoTypes` + # @return [Array] + attr_accessor :stored_info_types + + 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) + @stored_info_types = args[:stored_info_types] if args.key?(:stored_info_types) + end + end + # Specifies the location of the finding. class GooglePrivacyDlpV2Location include Google::Apis::Core::Hashable @@ -4568,6 +4746,154 @@ module Google end end + # StoredInfoType resource message that contains information about the current + # version and any pending updates. + class GooglePrivacyDlpV2StoredInfoType + include Google::Apis::Core::Hashable + + # Version of a StoredInfoType, including the configuration used to build it, + # create timestamp, and current state. + # Corresponds to the JSON property `currentVersion` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion] + attr_accessor :current_version + + # Resource name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Pending versions of the stored info type. Empty if no versions are + # pending. + # Corresponds to the JSON property `pendingVersions` + # @return [Array] + attr_accessor :pending_versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_version = args[:current_version] if args.key?(:current_version) + @name = args[:name] if args.key?(:name) + @pending_versions = args[:pending_versions] if args.key?(:pending_versions) + end + end + + # Configuration for a StoredInfoType. + class GooglePrivacyDlpV2StoredInfoTypeConfig + include Google::Apis::Core::Hashable + + # Description of the StoredInfoType (max 256 characters). + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Display name of the StoredInfoType (max 256 characters). + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Configuration for a custom dictionary created from a data source of any size + # up to the maximum size defined in the + # [limits](https://cloud.google.com/dlp/limits) page. The artifacts of + # dictionary creation are stored in the specified Google Cloud Storage + # location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries + # that satisfy the size requirements. + # Corresponds to the JSON property `largeCustomDictionary` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2LargeCustomDictionaryConfig] + attr_accessor :large_custom_dictionary + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @large_custom_dictionary = args[:large_custom_dictionary] if args.key?(:large_custom_dictionary) + end + end + + # Version of a StoredInfoType, including the configuration used to build it, + # create timestamp, and current state. + class GooglePrivacyDlpV2StoredInfoTypeVersion + include Google::Apis::Core::Hashable + + # Configuration for a StoredInfoType. + # Corresponds to the JSON property `config` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig] + attr_accessor :config + + # Create timestamp of the version. Read-only, determined by the system + # when the version is created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Errors that occurred when creating this storedInfoType version, or + # anomalies detected in the storedInfoType data that render it unusable. Only + # the five most recent errors will be displayed, with the most recent error + # appearing first. + #

For example, some of the data for stored custom dictionaries is put in + # the user's Google Cloud Storage bucket, and if this data is modified or + # deleted by the user or another system, the dictionary becomes invalid. + #

If any errors occur, fix the problem indicated by the error message and + # use the UpdateStoredInfoType API method to create another version of the + # storedInfoType to continue using it, reusing the same `config` if it was + # not the source of the error. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + # Stored info type version state. Read-only, updated by the system + # during dictionary creation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config = args[:config] if args.key?(:config) + @create_time = args[:create_time] if args.key?(:create_time) + @errors = args[:errors] if args.key?(:errors) + @state = args[:state] if args.key?(:state) + end + end + + # A reference to a StoredInfoType to use with scanning. + class GooglePrivacyDlpV2StoredType + include Google::Apis::Core::Hashable + + # Timestamp indicating when the version of the `StoredInfoType` used for + # inspection was created. Output-only field, populated by the system. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Resource name of the requested `StoredInfoType`, for example + # `organizations/433245324/storedInfoTypes/432452342` or + # `projects/project-id/storedInfoTypes/432452342`. + # 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) + @create_time = args[:create_time] if args.key?(:create_time) + @name = args[:name] if args.key?(:name) + end + end + # A collection that informs the user the number of times a particular # `TransformationResultCode` and error details occurred. class GooglePrivacyDlpV2SummaryResult @@ -4767,13 +5093,13 @@ module Google attr_accessor :enable_auto_population_of_timespan_config alias_method :enable_auto_population_of_timespan_config?, :enable_auto_population_of_timespan_config - # Exclude files newer than this value. + # Exclude files or rows newer than this value. # If set to zero, no upper time limit is applied. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time - # Exclude files older than this value. + # Exclude files or rows older than this value. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time @@ -5026,6 +5352,31 @@ module Google end end + # Request message for UpdateStoredInfoType. + class GooglePrivacyDlpV2UpdateStoredInfoTypeRequest + include Google::Apis::Core::Hashable + + # Configuration for a StoredInfoType. + # Corresponds to the JSON property `config` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig] + attr_accessor :config + + # Mask to control which fields get updated. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config = args[:config] if args.key?(:config) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + # Set of primitive values supported by the system. # Note that for the purposes of inspection or transformation, the number # of bytes considered to comprise a 'Value' is based on its representation diff --git a/generated/google/apis/dlp_v2/representations.rb b/generated/google/apis/dlp_v2/representations.rb index e653bb7b1..ee437be07 100644 --- a/generated/google/apis/dlp_v2/representations.rb +++ b/generated/google/apis/dlp_v2/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2BigQueryField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2BigQueryKey class Representation < Google::Apis::Core::JsonRepresentation; end @@ -118,6 +124,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2CloudStorageFileSet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2CloudStorageOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -184,6 +196,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2CreateStoredInfoTypeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2CryptoHashConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -550,6 +568,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2LargeCustomDictionaryConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2LikelihoodAdjustment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -586,6 +610,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2ListStoredInfoTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2Location class Representation < Google::Apis::Core::JsonRepresentation; end @@ -808,6 +838,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2StoredInfoType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GooglePrivacyDlpV2StoredInfoTypeConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GooglePrivacyDlpV2StoredInfoTypeVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GooglePrivacyDlpV2StoredType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2SummaryResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -904,6 +958,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2UpdateStoredInfoTypeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2Value class Representation < Google::Apis::Core::JsonRepresentation; end @@ -992,6 +1052,16 @@ module Google end end + class GooglePrivacyDlpV2BigQueryField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :field, as: 'field', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId::Representation + + property :table, as: 'table', class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable::Representation + + end + end + class GooglePrivacyDlpV2BigQueryKey # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1007,6 +1077,7 @@ module Google collection :identifying_fields, as: 'identifyingFields', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId::Representation property :rows_limit, :numeric_string => true, as: 'rowsLimit' + property :rows_limit_percent, as: 'rowsLimitPercent' property :sample_method, as: 'sampleMethod' property :table_reference, as: 'tableReference', class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable::Representation @@ -1113,10 +1184,18 @@ module Google end end + class GooglePrivacyDlpV2CloudStorageFileSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + end + end + class GooglePrivacyDlpV2CloudStorageOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :bytes_limit_per_file, :numeric_string => true, as: 'bytesLimitPerFile' + property :bytes_limit_per_file_percent, as: 'bytesLimitPerFilePercent' property :file_set, as: 'fileSet', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet::Representation collection :file_types, as: 'fileTypes' @@ -1224,6 +1303,15 @@ module Google end end + class GooglePrivacyDlpV2CreateStoredInfoTypeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :config, as: 'config', class: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig::Representation + + property :stored_info_type_id, as: 'storedInfoTypeId' + end + end + class GooglePrivacyDlpV2CryptoHashConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1271,6 +1359,8 @@ module Google property :likelihood, as: 'likelihood' property :regex, as: 'regex', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Regex, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Regex::Representation + property :stored_type, as: 'storedType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredType::Representation + property :surrogate_type, as: 'surrogateType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SurrogateType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SurrogateType::Representation end @@ -1868,6 +1958,18 @@ module Google end end + class GooglePrivacyDlpV2LargeCustomDictionaryConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :big_query_field, as: 'bigQueryField', class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryField, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryField::Representation + + property :cloud_storage_file_set, as: 'cloudStorageFileSet', class: Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageFileSet, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageFileSet::Representation + + property :output_path, as: 'outputPath', class: Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStoragePath, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStoragePath::Representation + + end + end + class GooglePrivacyDlpV2LikelihoodAdjustment # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1920,6 +2022,15 @@ module Google end end + class GooglePrivacyDlpV2ListStoredInfoTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :stored_info_types, as: 'storedInfoTypes', class: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation + + end + end + class GooglePrivacyDlpV2Location # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2293,6 +2404,47 @@ module Google end end + class GooglePrivacyDlpV2StoredInfoType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_version, as: 'currentVersion', class: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion::Representation + + property :name, as: 'name' + collection :pending_versions, as: 'pendingVersions', class: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion::Representation + + end + end + + class GooglePrivacyDlpV2StoredInfoTypeConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :large_custom_dictionary, as: 'largeCustomDictionary', class: Google::Apis::DlpV2::GooglePrivacyDlpV2LargeCustomDictionaryConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2LargeCustomDictionaryConfig::Representation + + end + end + + class GooglePrivacyDlpV2StoredInfoTypeVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :config, as: 'config', class: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig::Representation + + property :create_time, as: 'createTime' + collection :errors, as: 'errors', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Error, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Error::Representation + + property :state, as: 'state' + end + end + + class GooglePrivacyDlpV2StoredType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :name, as: 'name' + end + end + class GooglePrivacyDlpV2SummaryResult # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2440,6 +2592,15 @@ module Google end end + class GooglePrivacyDlpV2UpdateStoredInfoTypeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :config, as: 'config', class: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig::Representation + + property :update_mask, as: 'updateMask' + end + end + class GooglePrivacyDlpV2Value # @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 a504d2d2d..4a29ba680 100644 --- a/generated/google/apis/dlp_v2/service.rb +++ b/generated/google/apis/dlp_v2/service.rb @@ -448,6 +448,189 @@ module Google execute_or_queue_command(command, &block) end + # Creates a pre-built stored infoType to be used for inspection. + # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + # learn more. + # @param [String] parent + # The parent resource name, for example projects/my-project-id or + # organizations/my-org-id. + # @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. + # @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::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] + # + # @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_organization_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options) + command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation + command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType + 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 a stored infoType. + # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + # learn more. + # @param [String] name + # Resource name of the organization and storedInfoType to be deleted, for + # example `organizations/433245324/storedInfoTypes/432452342` or + # projects/project-id/storedInfoTypes/432452342. + # @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::DlpV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GoogleProtobufEmpty] + # + # @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_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty + 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 stored infoType. + # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + # learn more. + # @param [String] name + # Resource name of the organization and storedInfoType to be read, for + # example `organizations/433245324/storedInfoTypes/432452342` or + # projects/project-id/storedInfoTypes/432452342. + # @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::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] + # + # @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_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType + 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 stored infoTypes. + # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + # learn more. + # @param [String] parent + # The parent resource name, for example projects/my-project-id or + # organizations/my-org-id. + # @param [Fixnum] page_size + # Optional size of the page, can be limited by server. If zero server returns + # a page of max size 100. + # @param [String] page_token + # Optional page token to continue retrieval. Comes from previous call + # to `ListStoredInfoTypes`. + # @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::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] + # + # @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_organization_stored_info_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options) + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse + 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 + + # Updates the stored infoType by creating a new version. The existing version + # will continue to be used until the new version is ready. + # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + # learn more. + # @param [String] name + # Resource name of organization and storedInfoType to be updated, for + # example `organizations/433245324/storedInfoTypes/432452342` or + # projects/project-id/storedInfoTypes/432452342. + # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_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::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] + # + # @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_organization_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation + command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType + 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 + # De-identifies potentially sensitive info from a ContentItem. # This method has limits on input size and output size. # See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to @@ -1348,6 +1531,189 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Creates a pre-built stored infoType to be used for inspection. + # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + # learn more. + # @param [String] parent + # The parent resource name, for example projects/my-project-id or + # organizations/my-org-id. + # @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. + # @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::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] + # + # @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_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options) + command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation + command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType + 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 a stored infoType. + # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + # learn more. + # @param [String] name + # Resource name of the organization and storedInfoType to be deleted, for + # example `organizations/433245324/storedInfoTypes/432452342` or + # projects/project-id/storedInfoTypes/432452342. + # @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::DlpV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GoogleProtobufEmpty] + # + # @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_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty + 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 stored infoType. + # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + # learn more. + # @param [String] name + # Resource name of the organization and storedInfoType to be read, for + # example `organizations/433245324/storedInfoTypes/432452342` or + # projects/project-id/storedInfoTypes/432452342. + # @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::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] + # + # @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_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType + 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 stored infoTypes. + # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + # learn more. + # @param [String] parent + # The parent resource name, for example projects/my-project-id or + # organizations/my-org-id. + # @param [Fixnum] page_size + # Optional size of the page, can be limited by server. If zero server returns + # a page of max size 100. + # @param [String] page_token + # Optional page token to continue retrieval. Comes from previous call + # to `ListStoredInfoTypes`. + # @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::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] + # + # @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_stored_info_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options) + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse + 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 + + # Updates the stored infoType by creating a new version. The existing version + # will continue to be used until the new version is ready. + # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + # learn more. + # @param [String] name + # Resource name of organization and storedInfoType to be updated, for + # example `organizations/433245324/storedInfoTypes/432452342` or + # projects/project-id/storedInfoTypes/432452342. + # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_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::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] + # + # @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_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation + command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType + 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 protected diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index 786dc01e3..74aad02b3 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180813' # 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/dns_v1/classes.rb b/generated/google/apis/dns_v1/classes.rb index 4dd6ee671..c6b0d0049 100644 --- a/generated/google/apis/dns_v1/classes.rb +++ b/generated/google/apis/dns_v1/classes.rb @@ -717,12 +717,6 @@ module Google class Quota include Google::Apis::Core::Hashable - # Whether a black hole zone should suppress system zones for this project. - # Corresponds to the JSON property `blackHoleHidesSystemZones` - # @return [Boolean] - attr_accessor :black_hole_hides_system_zones - alias_method :black_hole_hides_system_zones?, :black_hole_hides_system_zones - # Maximum allowed number of DnsKeys per ManagedZone. # Corresponds to the JSON property `dnsKeysPerManagedZone` # @return [Fixnum] @@ -775,7 +769,6 @@ module Google # Update properties of this object def update!(**args) - @black_hole_hides_system_zones = args[:black_hole_hides_system_zones] if args.key?(:black_hole_hides_system_zones) @dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone) @kind = args[:kind] if args.key?(:kind) @managed_zones = args[:managed_zones] if args.key?(:managed_zones) diff --git a/generated/google/apis/dns_v1/representations.rb b/generated/google/apis/dns_v1/representations.rb index 60dee9458..d3c062f76 100644 --- a/generated/google/apis/dns_v1/representations.rb +++ b/generated/google/apis/dns_v1/representations.rb @@ -307,7 +307,6 @@ module Google class Quota # @private class Representation < Google::Apis::Core::JsonRepresentation - property :black_hole_hides_system_zones, as: 'blackHoleHidesSystemZones' property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone' property :kind, as: 'kind' property :managed_zones, as: 'managedZones' diff --git a/generated/google/apis/dns_v1beta2.rb b/generated/google/apis/dns_v1beta2.rb index 6d82bf787..a90fef262 100644 --- a/generated/google/apis/dns_v1beta2.rb +++ b/generated/google/apis/dns_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1beta2 VERSION = 'V1beta2' - REVISION = '' + REVISION = '20180813' # 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/dns_v1beta2/classes.rb b/generated/google/apis/dns_v1beta2/classes.rb index d576e22d0..391ea83d1 100644 --- a/generated/google/apis/dns_v1beta2/classes.rb +++ b/generated/google/apis/dns_v1beta2/classes.rb @@ -717,12 +717,6 @@ module Google class Quota include Google::Apis::Core::Hashable - # Whether a black hole zone should suppress system zones for this project. - # Corresponds to the JSON property `blackHoleHidesSystemZones` - # @return [Boolean] - attr_accessor :black_hole_hides_system_zones - alias_method :black_hole_hides_system_zones?, :black_hole_hides_system_zones - # Maximum allowed number of DnsKeys per ManagedZone. # Corresponds to the JSON property `dnsKeysPerManagedZone` # @return [Fixnum] @@ -775,7 +769,6 @@ module Google # Update properties of this object def update!(**args) - @black_hole_hides_system_zones = args[:black_hole_hides_system_zones] if args.key?(:black_hole_hides_system_zones) @dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone) @kind = args[:kind] if args.key?(:kind) @managed_zones = args[:managed_zones] if args.key?(:managed_zones) diff --git a/generated/google/apis/dns_v1beta2/representations.rb b/generated/google/apis/dns_v1beta2/representations.rb index f0413c0bf..6abe474d4 100644 --- a/generated/google/apis/dns_v1beta2/representations.rb +++ b/generated/google/apis/dns_v1beta2/representations.rb @@ -307,7 +307,6 @@ module Google class Quota # @private class Representation < Google::Apis::Core::JsonRepresentation - property :black_hole_hides_system_zones, as: 'blackHoleHidesSystemZones' property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone' property :kind, as: 'kind' property :managed_zones, as: 'managedZones' diff --git a/generated/google/apis/dns_v2beta1.rb b/generated/google/apis/dns_v2beta1.rb index 13251098a..076d27c39 100644 --- a/generated/google/apis/dns_v2beta1.rb +++ b/generated/google/apis/dns_v2beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV2beta1 VERSION = 'V2beta1' - REVISION = '' + REVISION = '20180813' # 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/dns_v2beta1/classes.rb b/generated/google/apis/dns_v2beta1/classes.rb index 668916861..a4bf38b1e 100644 --- a/generated/google/apis/dns_v2beta1/classes.rb +++ b/generated/google/apis/dns_v2beta1/classes.rb @@ -717,12 +717,6 @@ module Google class Quota include Google::Apis::Core::Hashable - # Whether a black hole zone should suppress system zones for this project. - # Corresponds to the JSON property `blackHoleHidesSystemZones` - # @return [Boolean] - attr_accessor :black_hole_hides_system_zones - alias_method :black_hole_hides_system_zones?, :black_hole_hides_system_zones - # Maximum allowed number of DnsKeys per ManagedZone. # Corresponds to the JSON property `dnsKeysPerManagedZone` # @return [Fixnum] @@ -775,7 +769,6 @@ module Google # Update properties of this object def update!(**args) - @black_hole_hides_system_zones = args[:black_hole_hides_system_zones] if args.key?(:black_hole_hides_system_zones) @dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone) @kind = args[:kind] if args.key?(:kind) @managed_zones = args[:managed_zones] if args.key?(:managed_zones) diff --git a/generated/google/apis/dns_v2beta1/representations.rb b/generated/google/apis/dns_v2beta1/representations.rb index d5541715f..7f26b2d91 100644 --- a/generated/google/apis/dns_v2beta1/representations.rb +++ b/generated/google/apis/dns_v2beta1/representations.rb @@ -307,7 +307,6 @@ module Google class Quota # @private class Representation < Google::Apis::Core::JsonRepresentation - property :black_hole_hides_system_zones, as: 'blackHoleHidesSystemZones' property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone' property :kind, as: 'kind' property :managed_zones, as: 'managedZones' diff --git a/generated/google/apis/doubleclickbidmanager_v1.rb b/generated/google/apis/doubleclickbidmanager_v1.rb index 9bdc87fd0..586efc786 100644 --- a/generated/google/apis/doubleclickbidmanager_v1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180215' # View and manage your reports in DoubleClick Bid Manager AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' diff --git a/generated/google/apis/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index 081df8c7b..f020467a8 100644 --- a/generated/google/apis/doubleclicksearch_v2.rb +++ b/generated/google/apis/doubleclicksearch_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/doubleclick-search/ module DoubleclicksearchV2 VERSION = 'V2' - REVISION = '' + REVISION = '20180802' # View and manage your advertising data in DoubleClick Search AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index b7fac933a..8468a177a 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '' + REVISION = '20180809' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index eed8a2386..dd0972329 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -2981,8 +2981,9 @@ module Google # The ID of the Team Drive # @param [Google::Apis::DriveV2::TeamDrive] team_drive_object # @param [Boolean] use_domain_admin_access - # Issue the request as a domain administrator; if set to true, then all Team - # Drives of the domain in which the requester is an administrator are returned. + # Issue the request as a domain administrator; if set to true, then the + # requester will be granted access if they are an administrator of the domain to + # which the Team Drive belongs. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index 130294567..4e0fc3bac 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '' + REVISION = '20180805' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/firestore_v1.rb b/generated/google/apis/firestore_v1.rb new file mode 100644 index 000000000..09ea6dcb2 --- /dev/null +++ b/generated/google/apis/firestore_v1.rb @@ -0,0 +1,37 @@ +# 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/firestore_v1/service.rb' +require 'google/apis/firestore_v1/classes.rb' +require 'google/apis/firestore_v1/representations.rb' + +module Google + module Apis + # Cloud Firestore API + # + # + # + # @see https://cloud.google.com/firestore + module FirestoreV1 + VERSION = 'V1' + REVISION = '20180725' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View and manage your Google Cloud Datastore data + AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore' + end + end +end diff --git a/generated/google/apis/firestore_v1/classes.rb b/generated/google/apis/firestore_v1/classes.rb new file mode 100644 index 000000000..b1a3c89d4 --- /dev/null +++ b/generated/google/apis/firestore_v1/classes.rb @@ -0,0 +1,324 @@ +# 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 FirestoreV1 + + # 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.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The request message for Operations.CancelOperation. + class GoogleLongrunningCancelOperationRequest + 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 Operations.ListOperations. + class GoogleLongrunningListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + 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) + @operations = args[:operations] if args.key?(:operations) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class GoogleLongrunningOperation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::FirestoreV1::Status] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # The response message for Locations.ListLocations. + class ListLocationsResponse + include Google::Apis::Core::Hashable + + # A list of locations that matches the specified filter in the request. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # The standard List next-page token. + # 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) + @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A resource that represents Google Cloud Platform location. + class Location + include Google::Apis::Core::Hashable + + # The friendly name for this location, typically a nearby city name. + # For example, "Tokyo". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Cross-service attributes for the location. For example + # `"cloud.googleapis.com/region": "us-east1"` + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The canonical id for this location. For example: `"us-east1"`. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Service-specific metadata. For example the available capacity at the given + # location. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Resource name for the location, which may vary between implementations. + # For example: `"projects/example-project/locations/us-east1"` + # 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) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @location_id = args[:location_id] if args.key?(:location_id) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + end + end +end diff --git a/generated/google/apis/firestore_v1/representations.rb b/generated/google/apis/firestore_v1/representations.rb new file mode 100644 index 000000000..c4015f34e --- /dev/null +++ b/generated/google/apis/firestore_v1/representations.rb @@ -0,0 +1,130 @@ +# 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 FirestoreV1 + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningCancelOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListLocationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Location + 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 Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleLongrunningCancelOperationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleLongrunningListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::FirestoreV1::GoogleLongrunningOperation, decorator: Google::Apis::FirestoreV1::GoogleLongrunningOperation::Representation + + end + end + + class GoogleLongrunningOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::FirestoreV1::Status, decorator: Google::Apis::FirestoreV1::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class ListLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::FirestoreV1::Location, decorator: Google::Apis::FirestoreV1::Location::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Location + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + hash :labels, as: 'labels' + property :location_id, as: 'locationId' + hash :metadata, as: 'metadata' + property :name, as: 'name' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + end + end +end diff --git a/generated/google/apis/firestore_v1/service.rb b/generated/google/apis/firestore_v1/service.rb new file mode 100644 index 000000000..b8c8a5aea --- /dev/null +++ b/generated/google/apis/firestore_v1/service.rb @@ -0,0 +1,282 @@ +# 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 FirestoreV1 + # Cloud Firestore API + # + # + # + # @example + # require 'google/apis/firestore_v1' + # + # Firestore = Google::Apis::FirestoreV1 # Alias the module + # service = Firestore::FirestoreService.new + # + # @see https://cloud.google.com/firestore + class FirestoreService < 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://firestore.googleapis.com/', '') + @batch_path = 'batch' + end + + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an Operation.error value with a google.rpc.Status.code of 1, + # corresponding to `Code.CANCELLED`. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::FirestoreV1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_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::FirestoreV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1::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 cancel_project_database_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.request_representation = Google::Apis::FirestoreV1::GoogleLongrunningCancelOperationRequest::Representation + command.request_object = google_longrunning_cancel_operation_request_object + command.response_representation = Google::Apis::FirestoreV1::Empty::Representation + command.response_class = Google::Apis::FirestoreV1::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 a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @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::FirestoreV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1::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_database_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::FirestoreV1::Empty::Representation + command.response_class = Google::Apis::FirestoreV1::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 latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @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::FirestoreV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1::GoogleLongrunningOperation] + # + # @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_database_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::FirestoreV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::FirestoreV1::GoogleLongrunningOperation + 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 operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/`name=users/*`/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @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::FirestoreV1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1::GoogleLongrunningListOperationsResponse] + # + # @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_database_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/operations', options) + command.response_representation = Google::Apis::FirestoreV1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::FirestoreV1::GoogleLongrunningListOperationsResponse + 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 + + # Gets information about a location. + # @param [String] name + # Resource name for the location. + # @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::FirestoreV1::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1::Location] + # + # @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(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::FirestoreV1::Location::Representation + command.response_class = Google::Apis::FirestoreV1::Location + 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 information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @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::FirestoreV1::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1::ListLocationsResponse] + # + # @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_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/locations', options) + command.response_representation = Google::Apis::FirestoreV1::ListLocationsResponse::Representation + command.response_class = Google::Apis::FirestoreV1::ListLocationsResponse + 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 + + 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/firestore_v1beta1.rb b/generated/google/apis/firestore_v1beta1.rb index 745934efe..1db186e75 100644 --- a/generated/google/apis/firestore_v1beta1.rb +++ b/generated/google/apis/firestore_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1beta1 VERSION = 'V1beta1' - REVISION = '20180626' + REVISION = '20180725' # 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/firestore_v1beta1/classes.rb b/generated/google/apis/firestore_v1beta1/classes.rb index 9058d97cd..230d54eeb 100644 --- a/generated/google/apis/firestore_v1beta1/classes.rb +++ b/generated/google/apis/firestore_v1beta1/classes.rb @@ -725,6 +725,201 @@ module Google end end + # Metadata for ExportDocuments operations. + class GoogleFirestoreAdminV1beta1ExportDocumentsMetadata + include Google::Apis::Core::Hashable + + # Which collection ids are being exported. + # Corresponds to the JSON property `collectionIds` + # @return [Array] + attr_accessor :collection_ids + + # The time the operation ended, either successfully or otherwise. Unset if + # the operation is still active. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The state of the export operation. + # Corresponds to the JSON property `operationState` + # @return [String] + attr_accessor :operation_state + + # Where the entities are being exported to. + # Corresponds to the JSON property `outputUriPrefix` + # @return [String] + attr_accessor :output_uri_prefix + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress] + attr_accessor :progress_bytes + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressDocuments` + # @return [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress] + attr_accessor :progress_documents + + # The time that work began on the operation. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collection_ids = args[:collection_ids] if args.key?(:collection_ids) + @end_time = args[:end_time] if args.key?(:end_time) + @operation_state = args[:operation_state] if args.key?(:operation_state) + @output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_documents = args[:progress_documents] if args.key?(:progress_documents) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # The request for FirestoreAdmin.ExportDocuments. + class GoogleFirestoreAdminV1beta1ExportDocumentsRequest + include Google::Apis::Core::Hashable + + # Which collection ids to export. Unspecified means all collections. + # Corresponds to the JSON property `collectionIds` + # @return [Array] + attr_accessor :collection_ids + + # The output URI. Currently only supports Google Cloud Storage URIs of the + # form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + # of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + # Google Cloud Storage namespace path. When + # choosing a name, be sure to consider Google Cloud Storage naming + # guidelines: https://cloud.google.com/storage/docs/naming. + # If the URI is a bucket (without a namespace path), a prefix will be + # generated based on the start time. + # Corresponds to the JSON property `outputUriPrefix` + # @return [String] + attr_accessor :output_uri_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collection_ids = args[:collection_ids] if args.key?(:collection_ids) + @output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix) + end + end + + # Returned in the google.longrunning.Operation response field. + class GoogleFirestoreAdminV1beta1ExportDocumentsResponse + include Google::Apis::Core::Hashable + + # Location of the output files. This can be used to begin an import + # into Cloud Firestore (this project or another project) after the operation + # completes successfully. + # Corresponds to the JSON property `outputUriPrefix` + # @return [String] + attr_accessor :output_uri_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix) + end + end + + # Metadata for ImportDocuments operations. + class GoogleFirestoreAdminV1beta1ImportDocumentsMetadata + include Google::Apis::Core::Hashable + + # Which collection ids are being imported. + # Corresponds to the JSON property `collectionIds` + # @return [Array] + attr_accessor :collection_ids + + # The time the operation ended, either successfully or otherwise. Unset if + # the operation is still active. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The location of the documents being imported. + # Corresponds to the JSON property `inputUriPrefix` + # @return [String] + attr_accessor :input_uri_prefix + + # The state of the import operation. + # Corresponds to the JSON property `operationState` + # @return [String] + attr_accessor :operation_state + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress] + attr_accessor :progress_bytes + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressDocuments` + # @return [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress] + attr_accessor :progress_documents + + # The time that work began on the operation. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collection_ids = args[:collection_ids] if args.key?(:collection_ids) + @end_time = args[:end_time] if args.key?(:end_time) + @input_uri_prefix = args[:input_uri_prefix] if args.key?(:input_uri_prefix) + @operation_state = args[:operation_state] if args.key?(:operation_state) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_documents = args[:progress_documents] if args.key?(:progress_documents) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # The request for FirestoreAdmin.ImportDocuments. + class GoogleFirestoreAdminV1beta1ImportDocumentsRequest + include Google::Apis::Core::Hashable + + # Which collection ids to import. Unspecified means all collections included + # in the import. + # Corresponds to the JSON property `collectionIds` + # @return [Array] + attr_accessor :collection_ids + + # Location of the exported files. + # This must match the output_uri_prefix of an ExportDocumentsResponse from + # an export that has completed successfully. + # See: + # google.firestore.admin.v1beta1.ExportDocumentsResponse.output_uri_prefix. + # Corresponds to the JSON property `inputUriPrefix` + # @return [String] + attr_accessor :input_uri_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collection_ids = args[:collection_ids] if args.key?(:collection_ids) + @input_uri_prefix = args[:input_uri_prefix] if args.key?(:input_uri_prefix) + end + end + # An index definition. class GoogleFirestoreAdminV1beta1Index include Google::Apis::Core::Hashable @@ -792,6 +987,61 @@ module Google end end + # Metadata for index operations. This metadata populates + # the metadata field of google.longrunning.Operation. + class GoogleFirestoreAdminV1beta1IndexOperationMetadata + include Google::Apis::Core::Hashable + + # True if the [google.longrunning.Operation] was cancelled. If the + # cancellation is in progress, cancelled will be true but + # google.longrunning.Operation.done will be false. + # Corresponds to the JSON property `cancelled` + # @return [Boolean] + attr_accessor :cancelled + alias_method :cancelled?, :cancelled + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `documentProgress` + # @return [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress] + attr_accessor :document_progress + + # The time the operation ended, either successfully or otherwise. Unset if + # the operation is still active. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The index resource that this operation is acting on. For example: + # `projects/`project_id`/databases/`database_id`/indexes/`index_id`` + # Corresponds to the JSON property `index` + # @return [String] + attr_accessor :index + + # The type of index operation. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The time that work began on the operation. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cancelled = args[:cancelled] if args.key?(:cancelled) + @document_progress = args[:document_progress] if args.key?(:document_progress) + @end_time = args[:end_time] if args.key?(:end_time) + @index = args[:index] if args.key?(:index) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + # The response for FirestoreAdmin.ListIndexes. class GoogleFirestoreAdminV1beta1ListIndexesResponse include Google::Apis::Core::Hashable @@ -817,6 +1067,46 @@ module Google end end + # The metadata message for google.cloud.location.Location.metadata. + class GoogleFirestoreAdminV1beta1LocationMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Measures the progress of a particular metric. + class GoogleFirestoreAdminV1beta1Progress + include Google::Apis::Core::Hashable + + # An estimate of how much work has been completed. Note that this may be + # greater than `work_estimated`. + # Corresponds to the JSON property `workCompleted` + # @return [Fixnum] + attr_accessor :work_completed + + # An estimate of how much work needs to be performed. Zero if the + # work estimate is unavailable. May change as work progresses. + # Corresponds to the JSON property `workEstimated` + # @return [Fixnum] + attr_accessor :work_estimated + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @work_completed = args[:work_completed] if args.key?(:work_completed) + @work_estimated = args[:work_estimated] if args.key?(:work_estimated) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class GoogleLongrunningOperation diff --git a/generated/google/apis/firestore_v1beta1/representations.rb b/generated/google/apis/firestore_v1beta1/representations.rb index 43e8616e9..dc2236940 100644 --- a/generated/google/apis/firestore_v1beta1/representations.rb +++ b/generated/google/apis/firestore_v1beta1/representations.rb @@ -160,6 +160,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleFirestoreAdminV1beta1ExportDocumentsMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta1ExportDocumentsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta1ExportDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta1ImportDocumentsMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta1ImportDocumentsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleFirestoreAdminV1beta1Index class Representation < Google::Apis::Core::JsonRepresentation; end @@ -172,12 +202,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleFirestoreAdminV1beta1IndexOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleFirestoreAdminV1beta1ListIndexesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleFirestoreAdminV1beta1LocationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta1Progress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleLongrunningOperation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -555,6 +603,59 @@ module Google end end + class GoogleFirestoreAdminV1beta1ExportDocumentsMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :collection_ids, as: 'collectionIds' + property :end_time, as: 'endTime' + property :operation_state, as: 'operationState' + property :output_uri_prefix, as: 'outputUriPrefix' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress::Representation + + property :progress_documents, as: 'progressDocuments', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress::Representation + + property :start_time, as: 'startTime' + end + end + + class GoogleFirestoreAdminV1beta1ExportDocumentsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :collection_ids, as: 'collectionIds' + property :output_uri_prefix, as: 'outputUriPrefix' + end + end + + class GoogleFirestoreAdminV1beta1ExportDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_uri_prefix, as: 'outputUriPrefix' + end + end + + class GoogleFirestoreAdminV1beta1ImportDocumentsMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :collection_ids, as: 'collectionIds' + property :end_time, as: 'endTime' + property :input_uri_prefix, as: 'inputUriPrefix' + property :operation_state, as: 'operationState' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress::Representation + + property :progress_documents, as: 'progressDocuments', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress::Representation + + property :start_time, as: 'startTime' + end + end + + class GoogleFirestoreAdminV1beta1ImportDocumentsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :collection_ids, as: 'collectionIds' + property :input_uri_prefix, as: 'inputUriPrefix' + end + end + class GoogleFirestoreAdminV1beta1Index # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -574,6 +675,19 @@ module Google end end + class GoogleFirestoreAdminV1beta1IndexOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cancelled, as: 'cancelled' + property :document_progress, as: 'documentProgress', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress::Representation + + property :end_time, as: 'endTime' + property :index, as: 'index' + property :operation_type, as: 'operationType' + property :start_time, as: 'startTime' + end + end + class GoogleFirestoreAdminV1beta1ListIndexesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -583,6 +697,20 @@ module Google end end + class GoogleFirestoreAdminV1beta1LocationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleFirestoreAdminV1beta1Progress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :work_completed, :numeric_string => true, as: 'workCompleted' + property :work_estimated, :numeric_string => true, as: 'workEstimated' + end + end + class GoogleLongrunningOperation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/firestore_v1beta1/service.rb b/generated/google/apis/firestore_v1beta1/service.rb index 69d362b6f..05769cc07 100644 --- a/generated/google/apis/firestore_v1beta1/service.rb +++ b/generated/google/apis/firestore_v1beta1/service.rb @@ -47,6 +47,85 @@ module Google @batch_path = 'batch' end + # Exports a copy of all or a subset of documents from Google Cloud Firestore + # to another storage system, such as Google Cloud Storage. Recent updates to + # documents may not be reflected in the export. The export occurs in the + # background and its progress can be monitored and managed via the + # Operation resource that is created. The output of an export may only be + # used once the associated operation is done. If an export operation is + # cancelled before completion it may leave partial data behind in Google + # Cloud Storage. + # @param [String] name + # Database to export. Should be of the form: + # `projects/`project_id`/databases/`database_id``. + # @param [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ExportDocumentsRequest] google_firestore_admin_v1beta1_export_documents_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::FirestoreV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation] + # + # @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 export_project_database_documents(name, google_firestore_admin_v1beta1_export_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:exportDocuments', options) + command.request_representation = Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ExportDocumentsRequest::Representation + command.request_object = google_firestore_admin_v1beta1_export_documents_request_object + command.response_representation = Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation + 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 + + # Imports documents into Google Cloud Firestore. Existing documents with the + # same name are overwritten. The import occurs in the background and its + # progress can be monitored and managed via the Operation resource that is + # created. If an ImportDocuments operation is cancelled, it is possible + # that a subset of the data has already been imported to Cloud Firestore. + # @param [String] name + # Database to import into. Should be of the form: + # `projects/`project_id`/databases/`database_id``. + # @param [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ImportDocumentsRequest] google_firestore_admin_v1beta1_import_documents_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::FirestoreV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation] + # + # @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 import_project_database_documents(name, google_firestore_admin_v1beta1_import_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:importDocuments', options) + command.request_representation = Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ImportDocumentsRequest::Representation + command.request_object = google_firestore_admin_v1beta1_import_documents_request_object + command.response_representation = Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation + 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 multiple documents. # Documents returned by this method are not guaranteed to be returned in the # same order that they were requested. diff --git a/generated/google/apis/firestore_v1beta2.rb b/generated/google/apis/firestore_v1beta2.rb new file mode 100644 index 000000000..ea4d7b332 --- /dev/null +++ b/generated/google/apis/firestore_v1beta2.rb @@ -0,0 +1,37 @@ +# 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/firestore_v1beta2/service.rb' +require 'google/apis/firestore_v1beta2/classes.rb' +require 'google/apis/firestore_v1beta2/representations.rb' + +module Google + module Apis + # Cloud Firestore API + # + # + # + # @see https://cloud.google.com/firestore + module FirestoreV1beta2 + VERSION = 'V1beta2' + REVISION = '20180806' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View and manage your Google Cloud Datastore data + AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore' + end + end +end diff --git a/generated/google/apis/firestore_v1beta2/classes.rb b/generated/google/apis/firestore_v1beta2/classes.rb new file mode 100644 index 000000000..28570e3bc --- /dev/null +++ b/generated/google/apis/firestore_v1beta2/classes.rb @@ -0,0 +1,531 @@ +# 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 FirestoreV1beta2 + + # Represents a single field in the database. + # Fields are grouped by their "Collection Group", which represent all + # collections in the database with the same id. + class GoogleFirestoreAdminV1beta2Field + include Google::Apis::Core::Hashable + + # The index configuration for this field. + # Corresponds to the JSON property `indexConfig` + # @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexConfig] + attr_accessor :index_config + + # A field name of the form + # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` + # /fields/`field_path`` + # A field path may be a simple field name, e.g. `address` or a path to fields + # within map_value , e.g. `address.city`, + # or a special field path. The only valid special field is `*`, which + # represents any field. + # Field paths may be quoted using ` (backtick). The only character that needs + # to be escaped within a quoted field path is the backtick character itself, + # escaped using a backslash. Special characters in field paths that + # must be quoted include: `*`, `.`, + # ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + # Examples: + # (Note: Comments here are written in markdown syntax, so there is an + # additional layer of backticks to represent a code block) + # `\`address.city\`` represents a field named `address.city`, not the map key + # `city` in the field `address`. + # `\`*\`` represents a field named `*`, not any field. + # A special `Field` contains the default indexing settings for all fields. + # This field's resource name is: + # `projects/`project_id`/databases/`database_id`/collectionGroups/__default__/ + # fields/*` + # Indexes defined on this `Field` will be applied to all fields which do not + # have their own `Field` index configuration. + # 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) + @index_config = args[:index_config] if args.key?(:index_config) + @name = args[:name] if args.key?(:name) + end + end + + # Metadata for google.longrunning.Operation results from + # FirestoreAdmin.UpdateField. + class GoogleFirestoreAdminV1beta2FieldOperationMetadata + include Google::Apis::Core::Hashable + + # Describes the progress of the operation. + # Unit of work is generic and must be interpreted based on where Progress + # is used. + # Corresponds to the JSON property `bytesProgress` + # @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress] + attr_accessor :bytes_progress + + # Describes the progress of the operation. + # Unit of work is generic and must be interpreted based on where Progress + # is used. + # Corresponds to the JSON property `documentProgress` + # @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress] + attr_accessor :document_progress + + # The time this operation completed. Will be unset if operation still in + # progress. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The field resource that this operation is acting on. For example: + # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` + # /fields/`field_path`` + # Corresponds to the JSON property `field` + # @return [String] + attr_accessor :field + + # A list of IndexConfigDelta, which describe the intent of this + # operation. + # Corresponds to the JSON property `indexConfigDeltas` + # @return [Array] + attr_accessor :index_config_deltas + + # The time this operation started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The state of the operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bytes_progress = args[:bytes_progress] if args.key?(:bytes_progress) + @document_progress = args[:document_progress] if args.key?(:document_progress) + @end_time = args[:end_time] if args.key?(:end_time) + @field = args[:field] if args.key?(:field) + @index_config_deltas = args[:index_config_deltas] if args.key?(:index_config_deltas) + @start_time = args[:start_time] if args.key?(:start_time) + @state = args[:state] if args.key?(:state) + end + end + + # Cloud Firestore indexes enable simple and complex queries against + # documents in a database. + class GoogleFirestoreAdminV1beta2Index + include Google::Apis::Core::Hashable + + # The fields supported by this index. + # For composite indexes, this is always 2 or more fields. + # The last field entry is always for the field path `__name__`. If, on + # creation, `__name__` was not specified as the last field, it will be added + # automatically with the same direction as that of the last field defined. If + # the final field in a composite index is not directional, the `__name__` + # will be ordered ASCENDING (unless explicitly specified). + # For single field indexes, this will always be exactly one entry with a + # field path equal to the field path of the associated field. + # Corresponds to the JSON property `fields` + # @return [Array] + attr_accessor :fields + + # Output only. + # A server defined name for this index. + # The form of this name for composite indexes will be: + # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` + # /indexes/`composite_index_id`` + # For single field indexes, this field will be empty. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Indexes with a collection query scope specified allow queries + # against a collection that is the child of a specific document, specified at + # query time, and that has the same collection id. + # Indexes with a collection group query scope specified allow queries against + # all collections descended from a specific document, specified at query + # time, and that have the same collection id as this index. + # Corresponds to the JSON property `queryScope` + # @return [String] + attr_accessor :query_scope + + # Output only. + # The serving state of the index. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fields = args[:fields] if args.key?(:fields) + @name = args[:name] if args.key?(:name) + @query_scope = args[:query_scope] if args.key?(:query_scope) + @state = args[:state] if args.key?(:state) + end + end + + # The index configuration for this field. + class GoogleFirestoreAdminV1beta2IndexConfig + include Google::Apis::Core::Hashable + + # Output only. + # Specifies the resource name of the `Field` from which this field's + # index configuration is set (when `uses_ancestor_config` is true), + # or from which it *would* be set if this field had no index configuration + # (when `uses_ancestor_config` is false). + # Corresponds to the JSON property `ancestorField` + # @return [String] + attr_accessor :ancestor_field + + # The indexes supported for this field. + # Corresponds to the JSON property `indexes` + # @return [Array] + attr_accessor :indexes + + # Output only + # When true, the `Field`'s index configuration is in the process of being + # reverted. Once complete, the index config will transition to the same + # state as the field specified by `ancestor_field`, at which point + # `uses_ancestor_config` will be `true` and `reverting` will be `false`. + # Corresponds to the JSON property `reverting` + # @return [Boolean] + attr_accessor :reverting + alias_method :reverting?, :reverting + + # Output only. + # When true, the `Field`'s index configuration is set from the + # configuration specified by the `ancestor_field`. + # When false, the `Field`'s index configuration is defined explicitly. + # Corresponds to the JSON property `usesAncestorConfig` + # @return [Boolean] + attr_accessor :uses_ancestor_config + alias_method :uses_ancestor_config?, :uses_ancestor_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ancestor_field = args[:ancestor_field] if args.key?(:ancestor_field) + @indexes = args[:indexes] if args.key?(:indexes) + @reverting = args[:reverting] if args.key?(:reverting) + @uses_ancestor_config = args[:uses_ancestor_config] if args.key?(:uses_ancestor_config) + end + end + + # Information about an index configuration change. + class GoogleFirestoreAdminV1beta2IndexConfigDelta + include Google::Apis::Core::Hashable + + # Specifies how the index is changing. + # Corresponds to the JSON property `changeType` + # @return [String] + attr_accessor :change_type + + # Cloud Firestore indexes enable simple and complex queries against + # documents in a database. + # Corresponds to the JSON property `index` + # @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index] + attr_accessor :index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @change_type = args[:change_type] if args.key?(:change_type) + @index = args[:index] if args.key?(:index) + end + end + + # A field in an index. + # The field_path describes which field is indexed, the value_mode describes + # how the field value is indexed. + class GoogleFirestoreAdminV1beta2IndexField + include Google::Apis::Core::Hashable + + # Indicates that this field supports operations on `array_value`s. + # Corresponds to the JSON property `arrayConfig` + # @return [String] + attr_accessor :array_config + + # Can be __name__. + # For single field indexes, this must match the name of the field or may + # be omitted. + # Corresponds to the JSON property `fieldPath` + # @return [String] + attr_accessor :field_path + + # Indicates that this field supports ordering by the specified order or + # comparing using =, <, <=, >, >=. + # Corresponds to the JSON property `order` + # @return [String] + attr_accessor :order + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @array_config = args[:array_config] if args.key?(:array_config) + @field_path = args[:field_path] if args.key?(:field_path) + @order = args[:order] if args.key?(:order) + end + end + + # The response for FirestoreAdmin.ListFields. + class GoogleFirestoreAdminV1beta2ListFieldsResponse + include Google::Apis::Core::Hashable + + # The requested fields. + # Corresponds to the JSON property `fields` + # @return [Array] + attr_accessor :fields + + # A page token that may be used to request another page of results. If blank, + # this is the last page. + # 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) + @fields = args[:fields] if args.key?(:fields) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Describes the progress of the operation. + # Unit of work is generic and must be interpreted based on where Progress + # is used. + class GoogleFirestoreAdminV1beta2Progress + include Google::Apis::Core::Hashable + + # The amount of work completed. + # Corresponds to the JSON property `completedWork` + # @return [Fixnum] + attr_accessor :completed_work + + # The amount of work estimated. + # Corresponds to the JSON property `estimatedWork` + # @return [Fixnum] + attr_accessor :estimated_work + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @completed_work = args[:completed_work] if args.key?(:completed_work) + @estimated_work = args[:estimated_work] if args.key?(:estimated_work) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class GoogleLongrunningOperation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::FirestoreV1beta2::Status] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + end + end +end diff --git a/generated/google/apis/firestore_v1beta2/representations.rb b/generated/google/apis/firestore_v1beta2/representations.rb new file mode 100644 index 000000000..7a37ec000 --- /dev/null +++ b/generated/google/apis/firestore_v1beta2/representations.rb @@ -0,0 +1,189 @@ +# 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 FirestoreV1beta2 + + class GoogleFirestoreAdminV1beta2Field + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta2FieldOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta2Index + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta2IndexConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta2IndexConfigDelta + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta2IndexField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta2ListFieldsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta2Progress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningOperation + 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 GoogleFirestoreAdminV1beta2Field + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :index_config, as: 'indexConfig', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexConfig, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexConfig::Representation + + property :name, as: 'name' + end + end + + class GoogleFirestoreAdminV1beta2FieldOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bytes_progress, as: 'bytesProgress', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress::Representation + + property :document_progress, as: 'documentProgress', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress::Representation + + property :end_time, as: 'endTime' + property :field, as: 'field' + collection :index_config_deltas, as: 'indexConfigDeltas', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexConfigDelta, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexConfigDelta::Representation + + property :start_time, as: 'startTime' + property :state, as: 'state' + end + end + + class GoogleFirestoreAdminV1beta2Index + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :fields, as: 'fields', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexField, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexField::Representation + + property :name, as: 'name' + property :query_scope, as: 'queryScope' + property :state, as: 'state' + end + end + + class GoogleFirestoreAdminV1beta2IndexConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ancestor_field, as: 'ancestorField' + collection :indexes, as: 'indexes', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index::Representation + + property :reverting, as: 'reverting' + property :uses_ancestor_config, as: 'usesAncestorConfig' + end + end + + class GoogleFirestoreAdminV1beta2IndexConfigDelta + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :change_type, as: 'changeType' + property :index, as: 'index', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index::Representation + + end + end + + class GoogleFirestoreAdminV1beta2IndexField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :array_config, as: 'arrayConfig' + property :field_path, as: 'fieldPath' + property :order, as: 'order' + end + end + + class GoogleFirestoreAdminV1beta2ListFieldsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :fields, as: 'fields', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Field, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Field::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleFirestoreAdminV1beta2Progress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :completed_work, :numeric_string => true, as: 'completedWork' + property :estimated_work, :numeric_string => true, as: 'estimatedWork' + end + end + + class GoogleLongrunningOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::FirestoreV1beta2::Status, decorator: Google::Apis::FirestoreV1beta2::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + end + end +end diff --git a/generated/google/apis/firestore_v1beta2/service.rb b/generated/google/apis/firestore_v1beta2/service.rb new file mode 100644 index 000000000..08dd6933b --- /dev/null +++ b/generated/google/apis/firestore_v1beta2/service.rb @@ -0,0 +1,213 @@ +# 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 FirestoreV1beta2 + # Cloud Firestore API + # + # + # + # @example + # require 'google/apis/firestore_v1beta2' + # + # Firestore = Google::Apis::FirestoreV1beta2 # Alias the module + # service = Firestore::FirestoreService.new + # + # @see https://cloud.google.com/firestore + class FirestoreService < 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://firestore.googleapis.com/', '') + @batch_path = 'batch' + end + + # Gets the metadata and configuration for a Field. + # @param [String] name + # A name of the form + # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` + # /fields/`field_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::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Field] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Field] + # + # @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_database_collection_group_field(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Field::Representation + command.response_class = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Field + 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 field configuration and metadata for this database. + # Currently, FirestoreAdmin.ListFields only supports listing fields + # that have been explicitly overridden. To issue this query, call + # FirestoreAdmin.ListFields with the filter set to + # `indexConfig.usesAncestorConfig:false`. + # @param [String] parent + # A parent name of the form + # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` + # ` + # @param [String] filter + # The filter to apply to list results. Currently, + # FirestoreAdmin.ListFields only supports listing fields + # that have been explicitly overridden. To issue this query, call + # FirestoreAdmin.ListFields with the filter set to + # `indexConfig.usesAncestorConfig:false`. + # @param [Fixnum] page_size + # The number of results to return. + # @param [String] page_token + # A page token, returned from a previous call to + # FirestoreAdmin.ListFields, that may be used to get the next + # page of results. + # @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::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ListFieldsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ListFieldsResponse] + # + # @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_database_collection_group_fields(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+parent}/fields', options) + command.response_representation = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ListFieldsResponse::Representation + command.response_class = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ListFieldsResponse + 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 a field configuration. Currently, field updates apply only to + # single field index configuration. However, calls to + # FirestoreAdmin.UpdateField should provide a field mask to avoid + # changing any configuration that the caller isn't aware of. The field mask + # should be specified as: `` paths: "index_config" ``. + # This call returns a google.longrunning.Operation which may be used to + # track the status of the field update. The metadata for + # the operation will be the type FieldOperationMetadata. + # To configure the default field settings for the database, use + # the special `Field` with resource name: + # `projects/`project_id`/databases/`database_id`/collectionGroups/__default__/ + # fields/*`. + # @param [String] name + # A field name of the form + # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` + # /fields/`field_path`` + # A field path may be a simple field name, e.g. `address` or a path to fields + # within map_value , e.g. `address.city`, + # or a special field path. The only valid special field is `*`, which + # represents any field. + # Field paths may be quoted using ` (backtick). The only character that needs + # to be escaped within a quoted field path is the backtick character itself, + # escaped using a backslash. Special characters in field paths that + # must be quoted include: `*`, `.`, + # ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + # Examples: + # (Note: Comments here are written in markdown syntax, so there is an + # additional layer of backticks to represent a code block) + # `\`address.city\`` represents a field named `address.city`, not the map key + # `city` in the field `address`. + # `\`*\`` represents a field named `*`, not any field. + # A special `Field` contains the default indexing settings for all fields. + # This field's resource name is: + # `projects/`project_id`/databases/`database_id`/collectionGroups/__default__/ + # fields/*` + # Indexes defined on this `Field` will be applied to all fields which do not + # have their own `Field` index configuration. + # @param [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Field] google_firestore_admin_v1beta2_field_object + # @param [String] update_mask + # A mask, relative to the field. If specified, only configuration specified + # by this field_mask will be updated in the field. + # @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::FirestoreV1beta2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation] + # + # @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_database_collection_group_field(name, google_firestore_admin_v1beta2_field_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Field::Representation + command.request_object = google_firestore_admin_v1beta2_field_object + command.response_representation = Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation + 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 + + 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/fitness_v1.rb b/generated/google/apis/fitness_v1.rb index 9f58fff0b..b6aa7b634 100644 --- a/generated/google/apis/fitness_v1.rb +++ b/generated/google/apis/fitness_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fit/rest/ module FitnessV1 VERSION = 'V1' - REVISION = '' + REVISION = '20170922' # View your activity information in Google Fit AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read' diff --git a/generated/google/apis/fusiontables_v1.rb b/generated/google/apis/fusiontables_v1.rb index 2533e3721..eced8b3c4 100644 --- a/generated/google/apis/fusiontables_v1.rb +++ b/generated/google/apis/fusiontables_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fusiontables module FusiontablesV1 VERSION = 'V1' - REVISION = '' + REVISION = '20171117' # Manage your Fusion Tables AUTH_FUSIONTABLES = 'https://www.googleapis.com/auth/fusiontables' diff --git a/generated/google/apis/fusiontables_v2.rb b/generated/google/apis/fusiontables_v2.rb index 8130692ac..065393f5a 100644 --- a/generated/google/apis/fusiontables_v2.rb +++ b/generated/google/apis/fusiontables_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fusiontables module FusiontablesV2 VERSION = 'V2' - REVISION = '' + REVISION = '20171117' # Manage your Fusion Tables AUTH_FUSIONTABLES = 'https://www.googleapis.com/auth/fusiontables' diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index 531d862eb..267adaf6d 100644 --- a/generated/google/apis/games_configuration_v1configuration.rb +++ b/generated/google/apis/games_configuration_v1configuration.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesConfigurationV1configuration VERSION = 'V1configuration' - REVISION = '' + REVISION = '20180816' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb index 2f156c0b6..8b42149b0 100644 --- a/generated/google/apis/games_management_v1management.rb +++ b/generated/google/apis/games_management_v1management.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesManagementV1management VERSION = 'V1management' - REVISION = '' + REVISION = '20180802' # Share your Google+ profile information and view and manage your game activity AUTH_GAMES = 'https://www.googleapis.com/auth/games' diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index 6ffcdc083..a2b7f7114 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180802' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 46ba88874..e2f071bd6 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1 VERSION = 'V1' - REVISION = '20180702' + REVISION = '20180807' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index 42f4a7ac9..7ba7379c9 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -238,6 +238,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::GenomicsV1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -268,6 +276,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -482,7 +491,28 @@ module Google end end - # This event is generated when a container starts. + # An event generated when a container is forcibly terminated by the + # worker. Currently, this only occurs when the container outlives the + # timeout specified by the user. + class ContainerKilledEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started the container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + end + end + + # An event generated when a container starts. class ContainerStartedEvent include Google::Apis::Core::Hashable @@ -491,17 +521,17 @@ module Google # @return [Fixnum] attr_accessor :action_id - # The public IP address that can be used to connect to the container. This - # field is only populated when at least one port mapping is present. If the - # instance was created with a private address this field will be empty even + # The public IP address that can be used to connect to the container. This + # field is only populated when at least one port mapping is present. If the + # instance was created with a private address, this field will be empty even # if port mappings exist. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address - # The container to host port mappings installed for this container. This - # set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as - # well as any specified in the Action definition. + # The container-to-host port mappings installed for this container. This + # set will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag + # as well as any specified in the `Action` definition. # Corresponds to the JSON property `portMappings` # @return [Hash] attr_accessor :port_mappings @@ -518,7 +548,7 @@ module Google end end - # This event is generated when a container exits. + # An event generated when a container exits. class ContainerStoppedEvent include Google::Apis::Core::Hashable @@ -533,12 +563,12 @@ module Google attr_accessor :exit_status # The tail end of any content written to standard error by the container. - # To prevent this from being recorded if the action is known to emit - # large amounts of debugging noise or sensitive information, set the - # DISABLE_STANDARD_ERROR_CAPTURE flag. + # If the content emits large amounts of debugging noise or contains + # sensitive information, you can prevent the content from being printed by + # setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. # Note that only a small amount of the end of the stream is captured here. - # The entire stream is stored in the /google/logs directory mounted into - # each action, and may be copied off the machine as described elsewhere. + # The entire stream is stored in the `/google/logs` directory mounted into + # each action, and can be copied off the machine as described elsewhere. # Corresponds to the JSON property `stderr` # @return [String] attr_accessor :stderr @@ -619,13 +649,13 @@ module Google end end - # This event is generated whenever a resource limitation or transient error + # An event generated whenever a resource limitation or transient error # delays execution of a pipeline that was otherwise ready to run. class DelayedEvent include Google::Apis::Core::Hashable - # A textual description of the cause of the delay. The string may change - # without notice since it is often generated by another service (such as + # A textual description of the cause of the delay. The string can change + # without notice because it is often generated by another service (such as # Compute Engine). # Corresponds to the JSON property `cause` # @return [String] @@ -633,8 +663,8 @@ module Google # If the delay was caused by a resource shortage, this field lists the # Compute Engine metrics that are preventing this operation from running - # (for example, CPUS or INSTANCES). If the particular metric is not known, - # a single UNKNOWN metric will be present. + # (for example, `CPUS` or `INSTANCES`). If the particular metric is not + # known, a single `UNKNOWN` metric will be present. # Corresponds to the JSON property `metrics` # @return [Array] attr_accessor :metrics @@ -737,23 +767,23 @@ module Google end end - # Event carries information about events that occur during pipeline execution. + # Carries information about events that occur during pipeline execution. class Event include Google::Apis::Core::Hashable - # A human readable description of the event. Note that these strings may - # change at any time without notice. Any application logic must use the - # information in the details field. + # A human-readable description of the event. Note that these strings can + # change at any time without notice. Any application logic must use the + # information in the `details` field. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Machine readable details about the event. + # Machine-readable details about the event. # Corresponds to the JSON property `details` # @return [Hash] attr_accessor :details - # The time that the event occurred. + # The time at which the event occurred. # Corresponds to the JSON property `timestamp` # @return [String] attr_accessor :timestamp @@ -944,6 +974,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # class ExternalId include Google::Apis::Core::Hashable @@ -969,12 +1046,12 @@ module Google end end - # This event is generated when the execution of a pipeline has failed. Note - # that other events may continue to occur after this event. + # An event generated when the execution of a pipeline has failed. Note + # that other events can continue to occur after this event. class FailedEvent include Google::Apis::Core::Hashable - # The human readable description of the cause of the failure. + # The human-readable description of the cause of the failure. # Corresponds to the JSON property `cause` # @return [String] attr_accessor :cause @@ -1703,7 +1780,7 @@ module Google end end - # This event is generated when the worker starts pulling an image. + # An event generated when the worker starts pulling an image. class PullStartedEvent include Google::Apis::Core::Hashable @@ -1722,7 +1799,7 @@ module Google end end - # This event is generated when the worker stops pulling an image. + # An event generated when the worker stops pulling an image. class PullStoppedEvent include Google::Apis::Core::Hashable @@ -3308,10 +3385,10 @@ module Google end end - # This event is generated when the execution of a container results in a - # non-zero exit status that was not otherwise ignored. Execution will - # continue, but only actions that are flagged as ALWAYS_RUN will be executed: - # other actions will be skipped. + # An event generated when the execution of a container results in a + # non-zero exit status that was not otherwise ignored. Execution will + # continue, but only actions that are flagged as `ALWAYS_RUN` will be + # executed. Other actions will be skipped. class UnexpectedExitStatusEvent include Google::Apis::Core::Hashable @@ -3708,7 +3785,7 @@ module Google end end - # This event is generated once a worker VM has been assigned to run the + # An event generated after a worker VM has been assigned to run the # pipeline. class WorkerAssignedEvent include Google::Apis::Core::Hashable @@ -3734,8 +3811,8 @@ module Google end end - # This event is generated when the worker VM that was assigned to the pipeline - # has been released (i.e., deleted). + # An event generated when the worker VM that was assigned to the pipeline + # has been released (deleted). class WorkerReleasedEvent include Google::Apis::Core::Hashable diff --git a/generated/google/apis/genomics_v1/representations.rb b/generated/google/apis/genomics_v1/representations.rb index 3814d827a..53edc1ea8 100644 --- a/generated/google/apis/genomics_v1/representations.rb +++ b/generated/google/apis/genomics_v1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ContainerKilledEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ContainerStartedEvent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -160,6 +166,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ExternalId class Representation < Google::Apis::Core::JsonRepresentation; end @@ -587,6 +599,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::GenomicsV1::Expr, decorator: Google::Apis::GenomicsV1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -652,6 +666,13 @@ module Google end end + class ContainerKilledEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + end + end + class ContainerStartedEvent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -761,6 +782,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class ExternalId # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index 2a95a72ff..4546b0e77 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -1009,6 +1009,8 @@ module Google # * error: If the pipeline is running, this value is NULL. Once the # pipeline finishes, the value is the standard Google error code. # * labels.key or labels."key with space" where key is a label key. + # * done: If the pipeline is running, this value is false. Once the + # pipeline finishes, the value is true. # In v1 and v1alpha2, the following filter fields are supported: # * projectId: Required. Corresponds to # OperationMetadata.projectId. diff --git a/generated/google/apis/genomics_v1alpha2.rb b/generated/google/apis/genomics_v1alpha2.rb index f4c7ce035..ac32ab888 100644 --- a/generated/google/apis/genomics_v1alpha2.rb +++ b/generated/google/apis/genomics_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1alpha2 VERSION = 'V1alpha2' - REVISION = '20180607' + REVISION = '20180807' # 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/genomics_v1alpha2/classes.rb b/generated/google/apis/genomics_v1alpha2/classes.rb index 4a4c5f832..daf33f6da 100644 --- a/generated/google/apis/genomics_v1alpha2/classes.rb +++ b/generated/google/apis/genomics_v1alpha2/classes.rb @@ -73,7 +73,28 @@ module Google end end - # This event is generated when a container starts. + # An event generated when a container is forcibly terminated by the + # worker. Currently, this only occurs when the container outlives the + # timeout specified by the user. + class ContainerKilledEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started the container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + end + end + + # An event generated when a container starts. class ContainerStartedEvent include Google::Apis::Core::Hashable @@ -82,17 +103,17 @@ module Google # @return [Fixnum] attr_accessor :action_id - # The public IP address that can be used to connect to the container. This - # field is only populated when at least one port mapping is present. If the - # instance was created with a private address this field will be empty even + # The public IP address that can be used to connect to the container. This + # field is only populated when at least one port mapping is present. If the + # instance was created with a private address, this field will be empty even # if port mappings exist. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address - # The container to host port mappings installed for this container. This - # set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as - # well as any specified in the Action definition. + # The container-to-host port mappings installed for this container. This + # set will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag + # as well as any specified in the `Action` definition. # Corresponds to the JSON property `portMappings` # @return [Hash] attr_accessor :port_mappings @@ -109,7 +130,7 @@ module Google end end - # This event is generated when a container exits. + # An event generated when a container exits. class ContainerStoppedEvent include Google::Apis::Core::Hashable @@ -124,12 +145,12 @@ module Google attr_accessor :exit_status # The tail end of any content written to standard error by the container. - # To prevent this from being recorded if the action is known to emit - # large amounts of debugging noise or sensitive information, set the - # DISABLE_STANDARD_ERROR_CAPTURE flag. + # If the content emits large amounts of debugging noise or contains + # sensitive information, you can prevent the content from being printed by + # setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. # Note that only a small amount of the end of the stream is captured here. - # The entire stream is stored in the /google/logs directory mounted into - # each action, and may be copied off the machine as described elsewhere. + # The entire stream is stored in the `/google/logs` directory mounted into + # each action, and can be copied off the machine as described elsewhere. # Corresponds to the JSON property `stderr` # @return [String] attr_accessor :stderr @@ -209,13 +230,13 @@ module Google end end - # This event is generated whenever a resource limitation or transient error + # An event generated whenever a resource limitation or transient error # delays execution of a pipeline that was otherwise ready to run. class DelayedEvent include Google::Apis::Core::Hashable - # A textual description of the cause of the delay. The string may change - # without notice since it is often generated by another service (such as + # A textual description of the cause of the delay. The string can change + # without notice because it is often generated by another service (such as # Compute Engine). # Corresponds to the JSON property `cause` # @return [String] @@ -223,8 +244,8 @@ module Google # If the delay was caused by a resource shortage, this field lists the # Compute Engine metrics that are preventing this operation from running - # (for example, CPUS or INSTANCES). If the particular metric is not known, - # a single UNKNOWN metric will be present. + # (for example, `CPUS` or `INSTANCES`). If the particular metric is not + # known, a single `UNKNOWN` metric will be present. # Corresponds to the JSON property `metrics` # @return [Array] attr_accessor :metrics @@ -364,23 +385,23 @@ module Google end end - # Event carries information about events that occur during pipeline execution. + # Carries information about events that occur during pipeline execution. class Event include Google::Apis::Core::Hashable - # A human readable description of the event. Note that these strings may - # change at any time without notice. Any application logic must use the - # information in the details field. + # A human-readable description of the event. Note that these strings can + # change at any time without notice. Any application logic must use the + # information in the `details` field. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Machine readable details about the event. + # Machine-readable details about the event. # Corresponds to the JSON property `details` # @return [Hash] attr_accessor :details - # The time that the event occurred. + # The time at which the event occurred. # Corresponds to the JSON property `timestamp` # @return [String] attr_accessor :timestamp @@ -397,12 +418,12 @@ module Google end end - # This event is generated when the execution of a pipeline has failed. Note - # that other events may continue to occur after this event. + # An event generated when the execution of a pipeline has failed. Note + # that other events can continue to occur after this event. class FailedEvent include Google::Apis::Core::Hashable - # The human readable description of the cause of the failure. + # The human-readable description of the cause of the failure. # Corresponds to the JSON property `cause` # @return [String] attr_accessor :cause @@ -1042,7 +1063,7 @@ module Google end end - # This event is generated when the worker starts pulling an image. + # An event generated when the worker starts pulling an image. class PullStartedEvent include Google::Apis::Core::Hashable @@ -1061,7 +1082,7 @@ module Google end end - # This event is generated when the worker stops pulling an image. + # An event generated when the worker stops pulling an image. class PullStoppedEvent include Google::Apis::Core::Hashable @@ -1425,10 +1446,10 @@ module Google end end - # This event is generated when the execution of a container results in a - # non-zero exit status that was not otherwise ignored. Execution will - # continue, but only actions that are flagged as ALWAYS_RUN will be executed: - # other actions will be skipped. + # An event generated when the execution of a container results in a + # non-zero exit status that was not otherwise ignored. Execution will + # continue, but only actions that are flagged as `ALWAYS_RUN` will be + # executed. Other actions will be skipped. class UnexpectedExitStatusEvent include Google::Apis::Core::Hashable @@ -1453,7 +1474,7 @@ module Google end end - # This event is generated once a worker VM has been assigned to run the + # An event generated after a worker VM has been assigned to run the # pipeline. class WorkerAssignedEvent include Google::Apis::Core::Hashable @@ -1479,8 +1500,8 @@ module Google end end - # This event is generated when the worker VM that was assigned to the pipeline - # has been released (i.e., deleted). + # An event generated when the worker VM that was assigned to the pipeline + # has been released (deleted). class WorkerReleasedEvent include Google::Apis::Core::Hashable diff --git a/generated/google/apis/genomics_v1alpha2/representations.rb b/generated/google/apis/genomics_v1alpha2/representations.rb index dbb4d4f68..f4e57ba9a 100644 --- a/generated/google/apis/genomics_v1alpha2/representations.rb +++ b/generated/google/apis/genomics_v1alpha2/representations.rb @@ -34,6 +34,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ContainerKilledEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ContainerStartedEvent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -254,6 +260,13 @@ module Google end end + class ContainerKilledEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + end + end + class ContainerStartedEvent # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/genomics_v1alpha2/service.rb b/generated/google/apis/genomics_v1alpha2/service.rb index f030b286e..0bb55c384 100644 --- a/generated/google/apis/genomics_v1alpha2/service.rb +++ b/generated/google/apis/genomics_v1alpha2/service.rb @@ -128,6 +128,8 @@ module Google # * error: If the pipeline is running, this value is NULL. Once the # pipeline finishes, the value is the standard Google error code. # * labels.key or labels."key with space" where key is a label key. + # * done: If the pipeline is running, this value is false. Once the + # pipeline finishes, the value is true. # In v1 and v1alpha2, the following filter fields are supported: # * projectId: Required. Corresponds to # OperationMetadata.projectId. diff --git a/generated/google/apis/genomics_v2alpha1.rb b/generated/google/apis/genomics_v2alpha1.rb index 0e469ce54..008085831 100644 --- a/generated/google/apis/genomics_v2alpha1.rb +++ b/generated/google/apis/genomics_v2alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV2alpha1 VERSION = 'V2alpha1' - REVISION = '20180623' + REVISION = '20180807' # 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/genomics_v2alpha1/classes.rb b/generated/google/apis/genomics_v2alpha1/classes.rb index 8e8e322ef..b31907874 100644 --- a/generated/google/apis/genomics_v2alpha1/classes.rb +++ b/generated/google/apis/genomics_v2alpha1/classes.rb @@ -31,12 +31,12 @@ module Google # @return [Fixnum] attr_accessor :count - # The accelerator type string (eg nvidia-tesla-k80). - # Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is + # The accelerator type string (for example, "nvidia-tesla-k80"). + # Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is # attached, the required runtime libraries will be made available to all - # containers under `/usr/local/nvidia`. The driver version to install must + # containers under `/usr/local/nvidia`. The driver version to install must # be specified using the NVIDIA driver version parameter on the virtual - # machine specification. Note that attaching a GPU increases the worker VM + # machine specification. Note that attaching a GPU increases the worker VM # startup time by a few minutes. # Corresponds to the JSON property `type` # @return [String] @@ -53,41 +53,41 @@ module Google end end - # Action specifies a single action that runs a docker container. + # Specifies a single action that runs a Docker container. class Action include Google::Apis::Core::Hashable - # If specified, overrides the CMD specified in the container. If the - # container also has an ENTRYPOINT the values are used as entrypoint - # arguments. Otherwise, they are used as a command and arguments to run + # If specified, overrides the `CMD` specified in the container. If the + # container also has an `ENTRYPOINT` the values are used as entrypoint + # arguments. Otherwise, they are used as a command and arguments to run # inside the container. # Corresponds to the JSON property `commands` # @return [Array] attr_accessor :commands - # Secret holds encrypted information that is only decrypted and stored in RAM + # Holds encrypted information that is only decrypted and stored in RAM # by the worker VM when running the pipeline. # Corresponds to the JSON property `credentials` # @return [Google::Apis::GenomicsV2alpha1::Secret] attr_accessor :credentials - # If specified, overrides the ENTRYPOINT specified in the container. + # If specified, overrides the `ENTRYPOINT` specified in the container. # Corresponds to the JSON property `entrypoint` # @return [String] attr_accessor :entrypoint - # The environment to pass into the container. This environment is merged - # with any values specified in the Pipeline message. These values overwrite - # any in the Pipeline message. + # The environment to pass into the container. This environment is merged + # with any values specified in the `Pipeline` message. These values + # overwrite any in the `Pipeline` message. # In addition to the values passed here, a few other values are - # automatically injected into the environment. These cannot be hidden or + # automatically injected into the environment. These cannot be hidden or # overwritten. - # `GOOGLE_PIPELINE_FAILED` will be set to "1" if the pipeline has failed + # `GOOGLE_PIPELINE_FAILED` will be set to "1" if the pipeline failed # because an action has exited with a non-zero status (and did not have the - # IGNORE_EXIT_STATUS flag set). This can be used to determine if additional + # `IGNORE_EXIT_STATUS` flag set). This can be used to determine if additional # debug or logging actions should execute. # `GOOGLE_LAST_EXIT_STATUS` will be set to the exit status of the last - # non-background action that executed. This can be used by workflow engine + # non-background action that executed. This can be used by workflow engine # authors to determine whether an individual action has succeeded or failed. # Corresponds to the JSON property `environment` # @return [Hash] @@ -98,65 +98,73 @@ module Google # @return [Array] attr_accessor :flags - # The URI to pull the container image from. Note that all images referenced - # by actions in the pipeline are pulled before the first action runs. If + # The URI to pull the container image from. Note that all images referenced + # by actions in the pipeline are pulled before the first action runs. If # multiple actions reference the same image, it is only pulled once, # ensuring that the same image is used for all actions in a single pipeline. # Corresponds to the JSON property `imageUri` # @return [String] attr_accessor :image_uri - # Labels to associate with the action. This field is provided to assist + # Labels to associate with the action. This field is provided to assist # workflow engine authors in identifying actions (for example, to indicate - # what sort of action they perform: eg. localization, debugging, etc). They - # are returned in the operation metadata but are otherwise ignored. + # what sort of action they perform, such as localization or debugging). + # They are returned in the operation metadata, but are otherwise ignored. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels # A list of mounts to make available to the action. # In addition to the values specified here, every action has a special - # virtual disk mounted under /google that contains log files and other + # virtual disk mounted under `/google` that contains log files and other # operational components. #

    - #
  • /google/logs: all logs written during the pipeline - # execution are stored here.
  • - #
  • /google/logs/output: the combined standard output and + #
  • /google/logs All logs written during the pipeline + # execution.
  • + #
  • /google/logs/output The combined standard output and # standard error of all actions run as part of the pipeline # execution.
  • - #
  • /google/logs/action/*/stdout: the complete contents of - # each individual action's standard output
  • - #
  • /google/logs/action/*/stderr: the complete contents of - # each individual action's standard error output
  • + #
  • /google/logs/action/*/stdout The complete contents of + # each individual action's standard output.
  • + #
  • /google/logs/action/*/stderr The complete contents of + # each individual action's standard error output.
  • #
# Corresponds to the JSON property `mounts` # @return [Array] attr_accessor :mounts - # An optional name for the container. The container hostname will be set to - # this name, making it useful for inter-container communication. The name + # An optional name for the container. The container hostname will be set to + # this name, making it useful for inter-container communication. The name # must contain only upper and lowercase alphanumeric characters and hypens # and cannot start with a hypen. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The PID namespace to run the action inside. If unspecified, a separate + # The PID namespace to run the action inside. If unspecified, a separate # isolated namespace is used. # Corresponds to the JSON property `pidNamespace` # @return [String] attr_accessor :pid_namespace - # A map of container to host port mappings for this container. Note that if - # the container already specifies exposed ports, the PUBLISH_EXPOSED_PORTS - # flag should be used instead. - # The host port number must be less than 65536. If it is zero, an unused - # random port is assigned. To determine the resulting port number, consult - # the ContainerStartedEvent in the operation metadata. + # A map of containers to host port mappings for this container. If the + # container already specifies exposed ports, use the + # `PUBLISH_EXPOSED_PORTS` flag instead. + # The host port number must be less than 65536. If it is zero, an unused + # random port is assigned. To determine the resulting port number, consult + # the `ContainerStartedEvent` in the operation metadata. # Corresponds to the JSON property `portMappings` # @return [Hash] attr_accessor :port_mappings + # The maximum amount of time to give the action to complete. If the action + # fails to complete before the timeout, it will be terminated and the exit + # status will be non-zero. The pipeline will continue or terminate based + # on the rules defined by the `ALWAYS_RUN` and `IGNORE_EXIT_STATUS` flags. + # Corresponds to the JSON property `timeout` + # @return [String] + attr_accessor :timeout + def initialize(**args) update!(**args) end @@ -174,6 +182,7 @@ module Google @name = args[:name] if args.key?(:name) @pid_namespace = args[:pid_namespace] if args.key?(:pid_namespace) @port_mappings = args[:port_mappings] if args.key?(:port_mappings) + @timeout = args[:timeout] if args.key?(:timeout) end end @@ -253,6 +262,11 @@ module Google # @return [Google::Apis::GenomicsV2alpha1::Status] attr_accessor :result + # The status of the worker VM. + # Corresponds to the JSON property `workerStatus` + # @return [Google::Apis::GenomicsV2alpha1::WorkerStatus] + attr_accessor :worker_status + def initialize(**args) update!(**args) end @@ -262,6 +276,7 @@ module Google @deadline_expired = args[:deadline_expired] if args.key?(:deadline_expired) @event = args[:event] if args.key?(:event) @result = args[:result] if args.key?(:result) + @worker_status = args[:worker_status] if args.key?(:worker_status) end end @@ -330,7 +345,28 @@ module Google end end - # This event is generated when a container starts. + # An event generated when a container is forcibly terminated by the + # worker. Currently, this only occurs when the container outlives the + # timeout specified by the user. + class ContainerKilledEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started the container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + end + end + + # An event generated when a container starts. class ContainerStartedEvent include Google::Apis::Core::Hashable @@ -339,17 +375,17 @@ module Google # @return [Fixnum] attr_accessor :action_id - # The public IP address that can be used to connect to the container. This - # field is only populated when at least one port mapping is present. If the - # instance was created with a private address this field will be empty even + # The public IP address that can be used to connect to the container. This + # field is only populated when at least one port mapping is present. If the + # instance was created with a private address, this field will be empty even # if port mappings exist. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address - # The container to host port mappings installed for this container. This - # set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as - # well as any specified in the Action definition. + # The container-to-host port mappings installed for this container. This + # set will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag + # as well as any specified in the `Action` definition. # Corresponds to the JSON property `portMappings` # @return [Hash] attr_accessor :port_mappings @@ -366,7 +402,7 @@ module Google end end - # This event is generated when a container exits. + # An event generated when a container exits. class ContainerStoppedEvent include Google::Apis::Core::Hashable @@ -381,12 +417,12 @@ module Google attr_accessor :exit_status # The tail end of any content written to standard error by the container. - # To prevent this from being recorded if the action is known to emit - # large amounts of debugging noise or sensitive information, set the - # DISABLE_STANDARD_ERROR_CAPTURE flag. + # If the content emits large amounts of debugging noise or contains + # sensitive information, you can prevent the content from being printed by + # setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. # Note that only a small amount of the end of the stream is captured here. - # The entire stream is stored in the /google/logs directory mounted into - # each action, and may be copied off the machine as described elsewhere. + # The entire stream is stored in the `/google/logs` directory mounted into + # each action, and can be copied off the machine as described elsewhere. # Corresponds to the JSON property `stderr` # @return [String] attr_accessor :stderr @@ -403,13 +439,13 @@ module Google end end - # This event is generated whenever a resource limitation or transient error + # An event generated whenever a resource limitation or transient error # delays execution of a pipeline that was otherwise ready to run. class DelayedEvent include Google::Apis::Core::Hashable - # A textual description of the cause of the delay. The string may change - # without notice since it is often generated by another service (such as + # A textual description of the cause of the delay. The string can change + # without notice because it is often generated by another service (such as # Compute Engine). # Corresponds to the JSON property `cause` # @return [String] @@ -417,8 +453,8 @@ module Google # If the delay was caused by a resource shortage, this field lists the # Compute Engine metrics that are preventing this operation from running - # (for example, CPUS or INSTANCES). If the particular metric is not known, - # a single UNKNOWN metric will be present. + # (for example, `CPUS` or `INSTANCES`). If the particular metric is not + # known, a single `UNKNOWN` metric will be present. # Corresponds to the JSON property `metrics` # @return [Array] attr_accessor :metrics @@ -435,20 +471,24 @@ module Google end # Carries information about a disk that can be attached to a VM. + # See https://cloud.google.com/compute/docs/disks/performance for more + # information about disk type, size, and performance considerations. class Disk include Google::Apis::Core::Hashable - # A user supplied name for the disk, used when mounting it into actions. - # The name must contain only upper and lowercase alphanumeric characters and - # hypens and cannot start with a hypen. + # A user-supplied name for the disk. Used when mounting the disk into + # actions. The name must contain only upper and lowercase alphanumeric + # characters and hypens and cannot start with a hypen. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The size, in gigabytes, of the disk to attach. Note that this value is - # not configurable for some disk types such as local-ssd. If the size is - # not specified, a size of at least 500gb is used to ensure reasonable I/O - # performance. + # The size, in GB, of the disk to attach. If the size is not + # specified, a default is chosen to ensure reasonable I/O performance. + # If the disk type is specified as `local-ssd`, multiple local drives are + # automatically combined to provide the requested size. Note, however, that + # each physical SSD is 375GB in size, and no more than 8 drives can be + # attached to a single instance. # Corresponds to the JSON property `sizeGb` # @return [Fixnum] attr_accessor :size_gb @@ -458,7 +498,7 @@ module Google # @return [String] attr_accessor :source_image - # The Compute Engine disk type. If unspecified, 'pd-standard' is used. + # The Compute Engine disk type. If unspecified, `pd-standard` is used. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -476,6 +516,31 @@ module Google end end + # The status of a disk on a VM. + class DiskStatus + include Google::Apis::Core::Hashable + + # Free disk space. + # Corresponds to the JSON property `freeSpaceBytes` + # @return [Fixnum] + attr_accessor :free_space_bytes + + # Total disk space. + # Corresponds to the JSON property `totalSpaceBytes` + # @return [Fixnum] + attr_accessor :total_space_bytes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @free_space_bytes = args[:free_space_bytes] if args.key?(:free_space_bytes) + @total_space_bytes = args[:total_space_bytes] if args.key?(:total_space_bytes) + 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: @@ -495,23 +560,23 @@ module Google end end - # Event carries information about events that occur during pipeline execution. + # Carries information about events that occur during pipeline execution. class Event include Google::Apis::Core::Hashable - # A human readable description of the event. Note that these strings may - # change at any time without notice. Any application logic must use the - # information in the details field. + # A human-readable description of the event. Note that these strings can + # change at any time without notice. Any application logic must use the + # information in the `details` field. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Machine readable details about the event. + # Machine-readable details about the event. # Corresponds to the JSON property `details` # @return [Hash] attr_accessor :details - # The time that the event occurred. + # The time at which the event occurred. # Corresponds to the JSON property `timestamp` # @return [String] attr_accessor :timestamp @@ -528,12 +593,12 @@ module Google end end - # This event is generated when the execution of a pipeline has failed. Note - # that other events may continue to occur after this event. + # An event generated when the execution of a pipeline has failed. Note + # that other events can continue to occur after this event. class FailedEvent include Google::Apis::Core::Hashable - # The human readable description of the cause of the failure. + # The human-readable description of the cause of the failure. # Corresponds to the JSON property `cause` # @return [String] attr_accessor :cause @@ -617,12 +682,12 @@ module Google end end - # Metadata carries information about the pipeline execution that is returned + # Carries information about the pipeline execution that is returned # in the long running operation's metadata field. class Metadata include Google::Apis::Core::Hashable - # The time that the operation was created by the API. + # The time at which the operation was created by the API. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time @@ -638,13 +703,12 @@ module Google # @return [Array] attr_accessor :events - # The user defined labels associated with this operation. + # The user-defined labels associated with this operation. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # The Pipeline object describes a series of actions to execute, expressed as - # docker containers. + # Specifies a series of actions to execute, expressed as Docker containers. # Corresponds to the JSON property `pipeline` # @return [Google::Apis::GenomicsV2alpha1::Pipeline] attr_accessor :pipeline @@ -669,7 +733,7 @@ module Google end end - # Mount carries information about a particular disk mount inside a container. + # Carries information about a particular disk mount inside a container. class Mount include Google::Apis::Core::Hashable @@ -678,12 +742,12 @@ module Google # @return [String] attr_accessor :disk - # The path to mount the disk at inside the container. + # The path to mount the disk inside the container. # Corresponds to the JSON property `path` # @return [String] attr_accessor :path - # If true, the disk is mounted read only inside the container. + # If true, the disk is mounted read-only inside the container. # Corresponds to the JSON property `readOnly` # @return [Boolean] attr_accessor :read_only @@ -705,9 +769,9 @@ module Google class Network include Google::Apis::Core::Hashable - # The network name to attach the VM's network interface to. The value will - # be prefixed with "global/networks/" unless it contains a "/" in which case - # it is assumed to be a fully specified network resource URL. + # The network name to attach the VM's network interface to. The value will + # be prefixed with `global/networks/` unless it contains a `/`, in which + # case it is assumed to be a fully specified network resource URL. # If unspecified, the global default network is used. # Corresponds to the JSON property `name` # @return [String] @@ -715,17 +779,17 @@ module Google # If the specified network is configured for custom subnet creation, the # name of the subnetwork to attach the instance to must be specified here. - # The value is prefixed with "regions/*/subnetworks/" unless it contains a - # "/" in which case it is assumed to be a full specified subnetwork resource - # URL. - # If the '*' character appears in the value, it is replaced with the region + # The value is prefixed with `regions/*/subnetworks/` unless it contains a + # `/`, in which case it is assumed to be a fully specified subnetwork + # resource URL. + # If the `*` character appears in the value, it is replaced with the region # that the virtual machine has been allocated in. # Corresponds to the JSON property `subnetwork` # @return [String] attr_accessor :subnetwork - # If set to true, do not attach a public IP address to the VM. Note that - # without an public IP address, additional configuration is required to + # If set to true, do not attach a public IP address to the VM. Note that + # without a public IP address, additional configuration is required to # allow the VM to access Google services. # See https://cloud.google.com/vpc/docs/configure-private-google-access # for more information. @@ -941,8 +1005,7 @@ module Google end end - # The Pipeline object describes a series of actions to execute, expressed as - # docker containers. + # Specifies a series of actions to execute, expressed as Docker containers. class Pipeline include Google::Apis::Core::Hashable @@ -951,9 +1014,9 @@ module Google # @return [Array] attr_accessor :actions - # The environment to pass into every action. Each action may also specify + # The environment to pass into every action. Each action can also specify # additional environment variables but cannot delete an entry from this map - # (though they may overwrite it with a different value). + # (though they can overwrite it with a different value). # Corresponds to the JSON property `environment` # @return [Hash] attr_accessor :environment @@ -964,6 +1027,15 @@ module Google # @return [Google::Apis::GenomicsV2alpha1::Resources] attr_accessor :resources + # The maximum amount of time to give the pipeline to complete. This includes + # the time spent waiting for a worker to be allocated. If the pipeline fails + # to complete before the timeout, it will be cancelled and the error code + # will be set to DEADLINE_EXCEEDED. + # If unspecified, it will default to 7 days. + # Corresponds to the JSON property `timeout` + # @return [String] + attr_accessor :timeout + def initialize(**args) update!(**args) end @@ -973,10 +1045,11 @@ module Google @actions = args[:actions] if args.key?(:actions) @environment = args[:environment] if args.key?(:environment) @resources = args[:resources] if args.key?(:resources) + @timeout = args[:timeout] if args.key?(:timeout) end end - # This event is generated when the worker starts pulling an image. + # An event generated when the worker starts pulling an image. class PullStartedEvent include Google::Apis::Core::Hashable @@ -995,7 +1068,7 @@ module Google end end - # This event is generated when the worker stops pulling an image. + # An event generated when the worker stops pulling an image. class PullStoppedEvent include Google::Apis::Core::Hashable @@ -1019,12 +1092,12 @@ module Google class Resources include Google::Apis::Core::Hashable - # The customer project ID to allocate resources in. + # The project ID to allocate resources in. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The list of regions allowed for VM allocation. If set, the zones field + # The list of regions allowed for VM allocation. If set, the `zones` field # must not be set. # Corresponds to the JSON property `regions` # @return [Array] @@ -1035,7 +1108,7 @@ module Google # @return [Google::Apis::GenomicsV2alpha1::VirtualMachine] attr_accessor :virtual_machine - # The list of zones allowed for VM allocation. If set, the regions field + # The list of zones allowed for VM allocation. If set, the `regions` field # must not be set. # Corresponds to the JSON property `zones` # @return [Array] @@ -1054,23 +1127,22 @@ module Google end end - # The arguments to the RunPipeline method. The requesting user must have - # the iam.serviceAccounts.actAs permission for the Google Genomics Service - # Account or the request will fail. + # The arguments to the `RunPipeline` method. The requesting user must have + # the `iam.serviceAccounts.actAs` permission for the Cloud Genomics service + # account or the request will fail. class RunPipelineRequest include Google::Apis::Core::Hashable - # User defined labels to associate with the returned operation. These + # User-defined labels to associate with the returned operation. These # labels are not propagated to any Google Cloud Platform resources used by - # the operation, and may be modified at any time. + # the operation, and can be modified at any time. # To associate labels with resources created while executing the operation, - # see the appropriate resource message (i.e., VirtualMachine). + # see the appropriate resource message (for example, `VirtualMachine`). # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # The Pipeline object describes a series of actions to execute, expressed as - # docker containers. + # Specifies a series of actions to execute, expressed as Docker containers. # Corresponds to the JSON property `pipeline` # @return [Google::Apis::GenomicsV2alpha1::Pipeline] attr_accessor :pipeline @@ -1108,7 +1180,7 @@ module Google end end - # Secret holds encrypted information that is only decrypted and stored in RAM + # Holds encrypted information that is only decrypted and stored in RAM # by the worker VM when running the pipeline. class Secret include Google::Apis::Core::Hashable @@ -1119,7 +1191,7 @@ module Google attr_accessor :cipher_text # The name of the Cloud KMS key that will be used to decrypt the secret - # value. The VM service account must have the required permissions and + # value. The VM service account must have the required permissions and # authentication scopes to invoke the `decrypt` method on the specified key. # Corresponds to the JSON property `keyName` # @return [String] @@ -1136,18 +1208,18 @@ module Google end end - # Carries information about a Google Cloud Service Account. + # Carries information about a Google Cloud service account. class ServiceAccount include Google::Apis::Core::Hashable - # Email address of the service account. If not specified, the default - # compute engine service account for the project will be used. + # Email address of the service account. If not specified, the default + # Compute Engine service account for the project will be used. # Corresponds to the JSON property `email` # @return [String] attr_accessor :email # List of scopes to be enabled for this service account on the VM, in - # addition to the Google Genomics API scope. + # addition to the Cloud Genomics API scope. # Corresponds to the JSON property `scopes` # @return [Array] attr_accessor :scopes @@ -1235,10 +1307,10 @@ module Google end end - # This event is generated when the execution of a container results in a - # non-zero exit status that was not otherwise ignored. Execution will - # continue, but only actions that are flagged as ALWAYS_RUN will be executed: - # other actions will be skipped. + # An event generated when the execution of a container results in a + # non-zero exit status that was not otherwise ignored. Execution will + # continue, but only actions that are flagged as `ALWAYS_RUN` will be + # executed. Other actions will be skipped. class UnexpectedExitStatusEvent include Google::Apis::Core::Hashable @@ -1272,8 +1344,8 @@ module Google # @return [Array] attr_accessor :accelerators - # The size of the boot disk, in gigabytes. The boot disk must be large - # enough to accommodate all of the docker images from each action in the + # The size of the boot disk, in GB. The boot disk must be large + # enough to accommodate all of the Docker images from each action in the # pipeline at the same time. If not specified, a small but reasonable # default value is used. # Corresponds to the JSON property `bootDiskSizeGb` @@ -1281,24 +1353,24 @@ module Google attr_accessor :boot_disk_size_gb # The host operating system image to use. - # At present, only Container Optimized OS images may be used. - # The default value is "projects/cos-cloud/global/images/family/cos-stable" - # which selects the latest stable release of Container Optimized OS. + # Currently, only Container-Optimized OS images can be used. + # The default value is `projects/cos-cloud/global/images/family/cos-stable`, + # which selects the latest stable release of Container-Optimized OS. # This option is provided to allow testing against the beta release of the # operating system to ensure that the new version does not interact # negatively with production pipelines. - # To test a pipeline against the beta release of COS, use the value - # "projects/cos-cloud/global/images/family/cos-beta". + # To test a pipeline against the beta release of Container-Optimized OS, + # use the value `projects/cos-cloud/global/images/family/cos-beta`. # Corresponds to the JSON property `bootImage` # @return [String] attr_accessor :boot_image - # The CPU platform to request. An instance based on a newer platform may be - # allocated but never one with less capabilities. The value of this + # The CPU platform to request. An instance based on a newer platform can be + # allocated, but never one with fewer capabilities. The value of this # parameter must be a valid Compute Engine CPU platform name (such as "Intel - # Skylake"). This parameter is only useful for carefully optimized work + # Skylake"). This parameter is only useful for carefully optimized work # loads where the CPU platform has a significant impact. - # For more information about the effect of this parameter, please visit + # For more information about the effect of this parameter, see # https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. # Corresponds to the JSON property `cpuPlatform` # @return [String] @@ -1312,13 +1384,13 @@ module Google # Optional set of labels to apply to the VM and any attached disk resources. # These labels must adhere to the name and value restrictions on VM labels # imposed by Compute Engine. - # These labels are applied at creation time to the VM and are applied on a - # best-effort basis to attached disk resources shortly after VM creation. + # Labels applied at creation time to the VM. Applied on a best-effort basis + # to attached disk resources shortly after VM creation. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # The machine type of the virtual machine to create. Must be the short name + # The machine type of the virtual machine to create. Must be the short name # of a standard machine type (such as "n1-standard-1") or a custom machine # type (such as "custom-1-4096"). # Corresponds to the JSON property `machineType` @@ -1333,7 +1405,7 @@ module Google # The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. # The version specified here must be compatible with the GPU libraries # contained in the container being executed, and must be one of the drivers - # hosted in the 'nvidia-drivers-us-public' bucket on Google Cloud Storage. + # hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage. # Corresponds to the JSON property `nvidiaDriverVersion` # @return [String] attr_accessor :nvidia_driver_version @@ -1344,7 +1416,7 @@ module Google attr_accessor :preemptible alias_method :preemptible?, :preemptible - # Carries information about a Google Cloud Service Account. + # Carries information about a Google Cloud service account. # Corresponds to the JSON property `serviceAccount` # @return [Google::Apis::GenomicsV2alpha1::ServiceAccount] attr_accessor :service_account @@ -1369,7 +1441,7 @@ module Google end end - # This event is generated once a worker VM has been assigned to run the + # An event generated after a worker VM has been assigned to run the # pipeline. class WorkerAssignedEvent include Google::Apis::Core::Hashable @@ -1395,8 +1467,8 @@ module Google end end - # This event is generated when the worker VM that was assigned to the pipeline - # has been released (i.e., deleted). + # An event generated when the worker VM that was assigned to the pipeline + # has been released (deleted). class WorkerReleasedEvent include Google::Apis::Core::Hashable @@ -1420,6 +1492,49 @@ module Google @zone = args[:zone] if args.key?(:zone) end end + + # The status of the worker VM. + class WorkerStatus + include Google::Apis::Core::Hashable + + # Status of attached disks. + # Corresponds to the JSON property `attachedDisks` + # @return [Hash] + attr_accessor :attached_disks + + # The status of a disk on a VM. + # Corresponds to the JSON property `bootDisk` + # @return [Google::Apis::GenomicsV2alpha1::DiskStatus] + attr_accessor :boot_disk + + # Free RAM. + # Corresponds to the JSON property `freeRamBytes` + # @return [Fixnum] + attr_accessor :free_ram_bytes + + # Total RAM. + # Corresponds to the JSON property `totalRamBytes` + # @return [Fixnum] + attr_accessor :total_ram_bytes + + # System uptime. + # Corresponds to the JSON property `uptimeSeconds` + # @return [Fixnum] + attr_accessor :uptime_seconds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attached_disks = args[:attached_disks] if args.key?(:attached_disks) + @boot_disk = args[:boot_disk] if args.key?(:boot_disk) + @free_ram_bytes = args[:free_ram_bytes] if args.key?(:free_ram_bytes) + @total_ram_bytes = args[:total_ram_bytes] if args.key?(:total_ram_bytes) + @uptime_seconds = args[:uptime_seconds] if args.key?(:uptime_seconds) + end + end end end end diff --git a/generated/google/apis/genomics_v2alpha1/representations.rb b/generated/google/apis/genomics_v2alpha1/representations.rb index 875a79814..538c33491 100644 --- a/generated/google/apis/genomics_v2alpha1/representations.rb +++ b/generated/google/apis/genomics_v2alpha1/representations.rb @@ -58,6 +58,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ContainerKilledEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ContainerStartedEvent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DiskStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -232,6 +244,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class WorkerStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Accelerator # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -256,6 +274,7 @@ module Google property :name, as: 'name' property :pid_namespace, as: 'pidNamespace' hash :port_mappings, as: 'portMappings' + property :timeout, as: 'timeout' end end @@ -273,6 +292,8 @@ module Google hash :event, as: 'event' property :result, as: 'result', class: Google::Apis::GenomicsV2alpha1::Status, decorator: Google::Apis::GenomicsV2alpha1::Status::Representation + property :worker_status, as: 'workerStatus', class: Google::Apis::GenomicsV2alpha1::WorkerStatus, decorator: Google::Apis::GenomicsV2alpha1::WorkerStatus::Representation + end end @@ -294,6 +315,13 @@ module Google end end + class ContainerKilledEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + end + end + class ContainerStartedEvent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -330,6 +358,14 @@ module Google end end + class DiskStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :free_space_bytes, :numeric_string => true, as: 'freeSpaceBytes' + property :total_space_bytes, :numeric_string => true, as: 'totalSpaceBytes' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -453,6 +489,7 @@ module Google hash :environment, as: 'environment' property :resources, as: 'resources', class: Google::Apis::GenomicsV2alpha1::Resources, decorator: Google::Apis::GenomicsV2alpha1::Resources::Representation + property :timeout, as: 'timeout' end end @@ -567,6 +604,19 @@ module Google property :zone, as: 'zone' end end + + class WorkerStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :attached_disks, as: 'attachedDisks', class: Google::Apis::GenomicsV2alpha1::DiskStatus, decorator: Google::Apis::GenomicsV2alpha1::DiskStatus::Representation + + property :boot_disk, as: 'bootDisk', class: Google::Apis::GenomicsV2alpha1::DiskStatus, decorator: Google::Apis::GenomicsV2alpha1::DiskStatus::Representation + + property :free_ram_bytes, :numeric_string => true, as: 'freeRamBytes' + property :total_ram_bytes, :numeric_string => true, as: 'totalRamBytes' + property :uptime_seconds, :numeric_string => true, as: 'uptimeSeconds' + end + end end end end diff --git a/generated/google/apis/genomics_v2alpha1/service.rb b/generated/google/apis/genomics_v2alpha1/service.rb index 46e6cc749..c449bc522 100644 --- a/generated/google/apis/genomics_v2alpha1/service.rb +++ b/generated/google/apis/genomics_v2alpha1/service.rb @@ -48,11 +48,11 @@ module Google end # Runs a pipeline. - # **Note:** In order to use this method, the Genomics Service Agent - # must have access to your project. This is done automatically when the - # Genomics API is first enabled, but if you delete this permission, or if - # you have already enabled the Genomics API prior to the launch of the - # v2alpha1 API, you must disable and re-enable the API to grant the Genomics + # **Note:** Before you can use this method, the Genomics Service Agent + # must have access to your project. This is done automatically when the + # Cloud Genomics API is first enabled, but if you delete this permission, + # or if you enabled the Cloud Genomics API before the v2alpha1 API + # launch, you must disable and re-enable the API to grant the Genomics # Service Agent the required permissions. # [1]: /genomics/gsa # @param [Google::Apis::GenomicsV2alpha1::RunPipelineRequest] run_pipeline_request_object @@ -165,6 +165,8 @@ module Google # * error: If the pipeline is running, this value is NULL. Once the # pipeline finishes, the value is the standard Google error code. # * labels.key or labels."key with space" where key is a label key. + # * done: If the pipeline is running, this value is false. Once the + # pipeline finishes, the value is true. # In v1 and v1alpha2, the following filter fields are supported: # * projectId: Required. Corresponds to # OperationMetadata.projectId. diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index 66f6315bf..a11a90568 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180724' # Read, send, delete, and manage your email AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/groupsmigration_v1.rb b/generated/google/apis/groupsmigration_v1.rb index 830422c6a..5aa2ead2e 100644 --- a/generated/google/apis/groupsmigration_v1.rb +++ b/generated/google/apis/groupsmigration_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/groups-migration/ module GroupsmigrationV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180803' # Manage messages in groups on your domain AUTH_APPS_GROUPS_MIGRATION = 'https://www.googleapis.com/auth/apps.groups.migration' diff --git a/generated/google/apis/groupssettings_v1.rb b/generated/google/apis/groupssettings_v1.rb index 7f0a072d1..3eb41caf1 100644 --- a/generated/google/apis/groupssettings_v1.rb +++ b/generated/google/apis/groupssettings_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/groups-settings/get_started module GroupssettingsV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180615' # View and manage the settings of a G Suite group AUTH_APPS_GROUPS_SETTINGS = 'https://www.googleapis.com/auth/apps.groups.settings' diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index 997d24caf..dec4225a2 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20180705' + REVISION = '20180809' # 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/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index 12fed9ef7..22cc08e5f 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -183,6 +183,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::IamV1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -213,6 +221,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -229,6 +238,14 @@ module Google # @return [String] attr_accessor :action + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::IamV1::Expr] + attr_accessor :condition + # A single identity requesting access for a Cloud Platform resource. # Follows the same format of Binding.members. # Required @@ -250,6 +267,7 @@ module Google # Update properties of this object def update!(**args) @action = args[:action] if args.key?(:action) + @condition = args[:condition] if args.key?(:condition) @member = args[:member] if args.key?(:member) @role = args[:role] if args.key?(:role) end @@ -368,6 +386,243 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # The request to lint a Cloud IAM policy object. LintPolicy is currently + # functional only for `lint_object` of type `condition`. + class LintPolicyRequest + include Google::Apis::Core::Hashable + + # Associates `members` with a `role`. + # Corresponds to the JSON property `binding` + # @return [Google::Apis::IamV1::Binding] + attr_accessor :binding + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::IamV1::Expr] + attr_accessor :condition + + # `context` contains additional *permission-controlled* data that any + # lint unit may depend on, in form of ``key: value`` pairs. Currently, this + # field is non-operational and it will not be used during the lint operation. + # Corresponds to the JSON property `context` + # @return [Hash] + attr_accessor :context + + # The full resource name of the policy this lint request is about. + # The name follows the Google Cloud Platform (GCP) resource format. + # For example, a GCP project with ID `my-project` will be named + # `//cloudresourcemanager.googleapis.com/projects/my-project`. + # The resource name is not used to read the policy instance from the Cloud + # IAM database. The candidate policy for lint has to be provided in the same + # request object. + # Corresponds to the JSON property `fullResourceName` + # @return [String] + attr_accessor :full_resource_name + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::IamV1::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @binding = args[:binding] if args.key?(:binding) + @condition = args[:condition] if args.key?(:condition) + @context = args[:context] if args.key?(:context) + @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) + @policy = args[:policy] if args.key?(:policy) + end + end + + # The response of a lint operation. An empty response indicates + # the operation was able to fully execute and no lint issue was found. + class LintPolicyResponse + include Google::Apis::Core::Hashable + + # List of lint results sorted by a composite key, + # descending order of severity and ascending order of binding_ordinal. + # There is no certain order among the same keys. + # For cross-binding results (only if the input object to lint is + # instance of google.iam.v1.Policy), there will be a + # google.iam.admin.v1.LintResult for each of the involved bindings, + # and the associated debug_message may enumerate the other involved + # binding ordinal number(s). + # Corresponds to the JSON property `lintResults` + # @return [Array] + attr_accessor :lint_results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @lint_results = args[:lint_results] if args.key?(:lint_results) + end + end + + # Structured response of a single validation unit. + class LintResult + include Google::Apis::Core::Hashable + + # 0-based index ordinality of the binding in the input object associated + # with this result. + # This field is populated only if the input object to lint is of type + # google.iam.v1.Policy, which can comprise more than one binding. + # It is set to -1 if the result is not associated with any particular + # binding and only targets the policy as a whole, such as results about + # policy size violations. + # Corresponds to the JSON property `bindingOrdinal` + # @return [Fixnum] + attr_accessor :binding_ordinal + + # Human readable debug message associated with the issue. + # Corresponds to the JSON property `debugMessage` + # @return [String] + attr_accessor :debug_message + + # The name of the field for which this lint result is about, relative to the + # input object to lint in the request. + # For nested messages, `field_name` consists of names of the embedded fields + # separated by period character. For instance, if the lint request is on a + # google.iam.v1.Policy and this lint result is about a condition + # expression of one of the input policy bindings, the field would be + # populated as `bindings.condition.expression`. + # This field does not identify the ordinality of the repetitive fields (for + # instance bindings in a policy). + # Corresponds to the JSON property `fieldName` + # @return [String] + attr_accessor :field_name + + # The validation unit level. + # Corresponds to the JSON property `level` + # @return [String] + attr_accessor :level + + # 0-based character position of problematic construct within the object + # identified by `field_name`. Currently, this is populated only for condition + # expression. + # Corresponds to the JSON property `locationOffset` + # @return [Fixnum] + attr_accessor :location_offset + + # The validation unit severity. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # The validation unit name, for instance + # “lintValidationUnits/ConditionComplexityCheck”. + # Corresponds to the JSON property `validationUnitName` + # @return [String] + attr_accessor :validation_unit_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @binding_ordinal = args[:binding_ordinal] if args.key?(:binding_ordinal) + @debug_message = args[:debug_message] if args.key?(:debug_message) + @field_name = args[:field_name] if args.key?(:field_name) + @level = args[:level] if args.key?(:level) + @location_offset = args[:location_offset] if args.key?(:location_offset) + @severity = args[:severity] if args.key?(:severity) + @validation_unit_name = args[:validation_unit_name] if args.key?(:validation_unit_name) + end + end + # The response containing the roles defined under a resource. class ListRolesResponse include Google::Apis::Core::Hashable @@ -849,8 +1104,8 @@ module Google class ServiceAccount include Google::Apis::Core::Hashable - # Optional. A user-specified description of the service account. Must be - # fewer than 100 UTF-8 bytes. + # Optional. A user-specified name for the service account. Must be + # less than or equal to 100 UTF-8 bytes. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name @@ -860,7 +1115,7 @@ module Google # @return [String] attr_accessor :email - # Used to perform a consistent read-modify-write. + # Optional. Not currently used. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] diff --git a/generated/google/apis/iam_v1/representations.rb b/generated/google/apis/iam_v1/representations.rb index 5912328e2..222a46c19 100644 --- a/generated/google/apis/iam_v1/representations.rb +++ b/generated/google/apis/iam_v1/representations.rb @@ -82,6 +82,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LintPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LintPolicyResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LintResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListRolesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -255,6 +279,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::IamV1::Expr, decorator: Google::Apis::IamV1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -264,6 +290,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :action, as: 'action' + property :condition, as: 'condition', class: Google::Apis::IamV1::Expr, decorator: Google::Apis::IamV1::Expr::Representation + property :member, as: 'member' property :role, as: 'role' end @@ -301,6 +329,51 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class LintPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :binding, as: 'binding', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation + + property :condition, as: 'condition', class: Google::Apis::IamV1::Expr, decorator: Google::Apis::IamV1::Expr::Representation + + hash :context, as: 'context' + property :full_resource_name, as: 'fullResourceName' + property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation + + end + end + + class LintPolicyResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :lint_results, as: 'lintResults', class: Google::Apis::IamV1::LintResult, decorator: Google::Apis::IamV1::LintResult::Representation + + end + end + + class LintResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :binding_ordinal, as: 'bindingOrdinal' + property :debug_message, as: 'debugMessage' + property :field_name, as: 'fieldName' + property :level, as: 'level' + property :location_offset, as: 'locationOffset' + property :severity, as: 'severity' + property :validation_unit_name, as: 'validationUnitName' + end + end + class ListRolesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/iam_v1/service.rb b/generated/google/apis/iam_v1/service.rb index 55077f7fe..3cac01d93 100644 --- a/generated/google/apis/iam_v1/service.rb +++ b/generated/google/apis/iam_v1/service.rb @@ -49,6 +49,55 @@ module Google @batch_path = 'batch' end + # Lints a Cloud IAM policy object or its sub fields. Currently supports + # google.iam.v1.Policy, google.iam.v1.Binding and + # google.iam.v1.Binding.condition. + # Each lint operation consists of multiple lint validation units. + # Validation units have the following properties: + # - Each unit inspects the input object in regard to a particular + # linting aspect and issues a google.iam.admin.v1.LintResult + # disclosing the result. + # - Domain of discourse of each unit can be either + # google.iam.v1.Policy, google.iam.v1.Binding, or + # google.iam.v1.Binding.condition depending on the purpose of the + # validation. + # - A unit may require additional data (like the list of all possible + # enumerable values of a particular attribute used in the policy instance) + # which shall be provided by the caller. Refer to the comments of + # google.iam.admin.v1.LintPolicyRequest.context for more details. + # The set of applicable validation units is determined by the Cloud IAM + # server and is not configurable. + # Regardless of any lint issues or their severities, successful calls to + # `lintPolicy` return an HTTP 200 OK status code. + # @param [Google::Apis::IamV1::LintPolicyRequest] lint_policy_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::IamV1::LintPolicyResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::LintPolicyResponse] + # + # @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 lint_iam_policy_policy(lint_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/iamPolicies:lintPolicy', options) + command.request_representation = Google::Apis::IamV1::LintPolicyRequest::Representation + command.request_object = lint_policy_request_object + command.response_representation = Google::Apis::IamV1::LintPolicyResponse::Representation + command.response_class = Google::Apis::IamV1::LintPolicyResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Returns a list of services that support service level audit logging # configuration for the given resource. # @param [Google::Apis::IamV1::QueryAuditableServicesRequest] query_auditable_services_request_object @@ -892,8 +941,7 @@ module Google # Updates a ServiceAccount. # Currently, only the following fields are updatable: - # `display_name` . - # The `etag` is mandatory. + # `display_name`, `description`. # @param [String] name # The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. diff --git a/generated/google/apis/iamcredentials_v1.rb b/generated/google/apis/iamcredentials_v1.rb index 0ef0b9061..8ec34955a 100644 --- a/generated/google/apis/iamcredentials_v1.rb +++ b/generated/google/apis/iamcredentials_v1.rb @@ -22,10 +22,10 @@ module Google # # IAM Service Account Credentials API # - # @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount + # @see https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials module IamcredentialsV1 VERSION = 'V1' - REVISION = '20180627' + REVISION = '20180727' # 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/iamcredentials_v1/classes.rb b/generated/google/apis/iamcredentials_v1/classes.rb index 3332071aa..a1cebfe16 100644 --- a/generated/google/apis/iamcredentials_v1/classes.rb +++ b/generated/google/apis/iamcredentials_v1/classes.rb @@ -46,8 +46,7 @@ module Google # @return [String] attr_accessor :lifetime - # Code to identify ApiScope (OAuth scope to be precise) to be included in the - # OAuth token. + # Code to identify the scopes to be included in the OAuth 2.0 access token. # See https://developers.google.com/identity/protocols/googlescopes for more # information. # At least one value required. @@ -77,6 +76,7 @@ module Google attr_accessor :access_token # Token expiration time. + # The expiration time is always set. # Corresponds to the JSON property `expireTime` # @return [String] attr_accessor :expire_time diff --git a/generated/google/apis/iamcredentials_v1/service.rb b/generated/google/apis/iamcredentials_v1/service.rb index 09b477163..d5cb9e4aa 100644 --- a/generated/google/apis/iamcredentials_v1/service.rb +++ b/generated/google/apis/iamcredentials_v1/service.rb @@ -30,7 +30,7 @@ module Google # Iamcredentials = Google::Apis::IamcredentialsV1 # Alias the module # service = Iamcredentials::IAMCredentialsService.new # - # @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount + # @see https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials class IAMCredentialsService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, diff --git a/generated/google/apis/iap_v1beta1.rb b/generated/google/apis/iap_v1beta1.rb new file mode 100644 index 000000000..7e1c1cd2b --- /dev/null +++ b/generated/google/apis/iap_v1beta1.rb @@ -0,0 +1,34 @@ +# 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/iap_v1beta1/service.rb' +require 'google/apis/iap_v1beta1/classes.rb' +require 'google/apis/iap_v1beta1/representations.rb' + +module Google + module Apis + # Cloud Identity-Aware Proxy API + # + # Controls access to cloud applications running on Google Cloud Platform. + # + # @see https://cloud.google.com/iap + module IapV1beta1 + VERSION = 'V1beta1' + REVISION = '20180806' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/iap_v1beta1/classes.rb b/generated/google/apis/iap_v1beta1/classes.rb new file mode 100644 index 000000000..defec6684 --- /dev/null +++ b/generated/google/apis/iap_v1beta1/classes.rb @@ -0,0 +1,440 @@ +# 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 IapV1beta1 + + # 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 are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditLogConfig are exempted. + # Example Policy with multiple AuditConfigs: + # ` + # "audit_configs": [ + # ` + # "service": "allServices" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:foo@gmail.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # `, + # ` + # "log_type": "ADMIN_READ", + # ` + # ] + # `, + # ` + # "service": "fooservice.googleapis.com" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # `, + # ` + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:bar@gmail.com" + # ] + # ` + # ] + # ` + # ] + # ` + # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts foo@gmail.com from DATA_READ logging, and + # bar@gmail.com from DATA_WRITE logging. + class AuditConfig + include Google::Apis::Core::Hashable + + # The configuration for logging of each type of permission. + # Corresponds to the JSON property `auditLogConfigs` + # @return [Array] + attr_accessor :audit_log_configs + + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) + @service = args[:service] if args.key?(:service) + end + end + + # Provides the configuration for logging a type of permissions. + # Example: + # ` + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:foo@gmail.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # ` + # ] + # ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + # foo@gmail.com from DATA_READ logging. + class AuditLogConfig + include Google::Apis::Core::Hashable + + # Specifies the identities that do not cause logging for this type of + # permission. + # Follows the same format of Binding.members. + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + + # The log type that this config enables. + # Corresponds to the JSON property `logType` + # @return [String] + attr_accessor :log_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @log_type = args[:log_type] if args.key?(:log_type) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::IapV1beta1::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@gmail.com` . + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: A Google Apps domain name that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # 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) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + class Policy + include Google::Apis::Core::Hashable + + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + + # Associates a list of `members` to a `role`. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # If no `etag` is provided in the call to `setIamPolicy`, then the existing + # policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Deprecated. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_configs = args[:audit_configs] if args.key?(:audit_configs) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::IapV1beta1::Policy] + attr_accessor :policy + + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # paths: "bindings, etag" + # This field is only used by Cloud IAM. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + end + end +end diff --git a/generated/google/apis/iap_v1beta1/representations.rb b/generated/google/apis/iap_v1beta1/representations.rb new file mode 100644 index 000000000..92c6fcc6a --- /dev/null +++ b/generated/google/apis/iap_v1beta1/representations.rb @@ -0,0 +1,158 @@ +# 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 IapV1beta1 + + class AuditConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::IapV1beta1::AuditLogConfig, decorator: Google::Apis::IapV1beta1::AuditLogConfig::Representation + + property :service, as: 'service' + end + end + + class AuditLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' + property :log_type, as: 'logType' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::IapV1beta1::Expr, decorator: Google::Apis::IapV1beta1::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class GetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::IapV1beta1::AuditConfig, decorator: Google::Apis::IapV1beta1::AuditConfig::Representation + + collection :bindings, as: 'bindings', class: Google::Apis::IapV1beta1::Binding, decorator: Google::Apis::IapV1beta1::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::IapV1beta1::Policy, decorator: Google::Apis::IapV1beta1::Policy::Representation + + property :update_mask, as: 'updateMask' + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + end + end +end diff --git a/generated/google/apis/iap_v1beta1/service.rb b/generated/google/apis/iap_v1beta1/service.rb new file mode 100644 index 000000000..6a243cbd6 --- /dev/null +++ b/generated/google/apis/iap_v1beta1/service.rb @@ -0,0 +1,398 @@ +# 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 IapV1beta1 + # Cloud Identity-Aware Proxy API + # + # Controls access to cloud applications running on Google Cloud Platform. + # + # @example + # require 'google/apis/iap_v1beta1' + # + # Iap = Google::Apis::IapV1beta1 # Alias the module + # service = Iap::CloudIAPService.new + # + # @see https://cloud.google.com/iap + class CloudIAPService < 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://iap.googleapis.com/', '') + @batch_path = 'batch' + end + + # Gets the access control policy for an Identity-Aware Proxy protected + # resource. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_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::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @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_iap_web_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.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 for an Identity-Aware Proxy protected + # resource. Replaces any existing policy. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_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::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @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 set_iap_web_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the Identity-Aware Proxy protected + # resource. If the resource does not exist or the caller does not have + # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED] + # will be returned. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_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::IapV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse] + # + # @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 test_iap_web_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.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 an Identity-Aware Proxy protected + # resource. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_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::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @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_service_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.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 for an Identity-Aware Proxy protected + # resource. Replaces any existing policy. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_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::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @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 set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the Identity-Aware Proxy protected + # resource. If the resource does not exist or the caller does not have + # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED] + # will be returned. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_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::IapV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse] + # + # @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 test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.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 an Identity-Aware Proxy protected + # resource. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_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::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @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_version_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.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 for an Identity-Aware Proxy protected + # resource. Replaces any existing policy. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_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::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @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 set_version_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the Identity-Aware Proxy protected + # resource. If the resource does not exist or the caller does not have + # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED] + # will be returned. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_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::IapV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse] + # + # @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 test_version_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.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/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index 4f51d36b0..656107c46 100644 --- a/generated/google/apis/identitytoolkit_v3.rb +++ b/generated/google/apis/identitytoolkit_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/identity-toolkit/v3/ module IdentitytoolkitV3 VERSION = 'V3' - REVISION = '' + REVISION = '20180723' # 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/jobs_v2.rb b/generated/google/apis/jobs_v2.rb index 3050af01e..2314f06c8 100644 --- a/generated/google/apis/jobs_v2.rb +++ b/generated/google/apis/jobs_v2.rb @@ -18,15 +18,15 @@ require 'google/apis/jobs_v2/representations.rb' module Google module Apis - # Cloud Job Discovery + # Cloud Talent Solution API # - # Cloud Job Discovery provides the capability to create, read, update, and + # Cloud Talent Solution provides the capability to create, read, update, and # delete job postings, as well as search jobs based on keywords and filters. # # @see https://cloud.google.com/job-discovery/docs module JobsV2 VERSION = 'V2' - REVISION = '20180627' + REVISION = '20180726' # 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/jobs_v2/classes.rb b/generated/google/apis/jobs_v2/classes.rb index 23603f3cc..8c24ea795 100644 --- a/generated/google/apis/jobs_v2/classes.rb +++ b/generated/google/apis/jobs_v2/classes.rb @@ -745,7 +745,10 @@ module Google class CreateJobRequest include Google::Apis::Core::Hashable - # If set to `true`, the service will not attempt to resolve a + # Deprecated. Please use processing_options. This flag is ignored if + # processing_options is set. + # Optional. + # If set to `true`, the service does not attempt to resolve a # more precise address for the job. # Corresponds to the JSON property `disableStreetAddressResolution` # @return [Boolean] @@ -759,6 +762,12 @@ module Google # @return [Google::Apis::JobsV2::Job] attr_accessor :job + # Input only. + # Options for job processing. + # Corresponds to the JSON property `processingOptions` + # @return [Google::Apis::JobsV2::JobProcessingOptions] + attr_accessor :processing_options + def initialize(**args) update!(**args) end @@ -767,6 +776,7 @@ module Google def update!(**args) @disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution) @job = args[:job] if args.key?(:job) + @processing_options = args[:processing_options] if args.key?(:processing_options) end end @@ -1378,7 +1388,7 @@ module Google # against and returned. # Histogram response times can be slow, and counts # can be approximations. This call may be temporarily or permanently removed - # prior to the production release of Cloud Job Discovery. + # prior to the production release of Cloud Talent Solution. # Corresponds to the JSON property `searchTypes` # @return [Array] attr_accessor :search_types @@ -1750,8 +1760,7 @@ module Google # structured rather than custom fields is recommended. # Data stored in these custom fields fields are indexed and # searched against by keyword searches (see - # SearchJobsRequest.custom_field_filters][]). To list jobs by - # custom fields, see ListCustomFieldsRequest.field_id. + # SearchJobsRequest.custom_field_filters][]). # The map key must be a number between 1-20. If an invalid key is # provided on job create or update, an error is returned. # Corresponds to the JSON property `filterableCustomFields` @@ -2229,6 +2238,43 @@ module Google end end + # Input only. + # Options for job processing. + class JobProcessingOptions + include Google::Apis::Core::Hashable + + # Optional. + # If set to `true`, the service does not attempt to resolve a + # more precise address for the job. + # Corresponds to the JSON property `disableStreetAddressResolution` + # @return [Boolean] + attr_accessor :disable_street_address_resolution + alias_method :disable_street_address_resolution?, :disable_street_address_resolution + + # Optional. + # Option for job HTML content sanitization. Applied fields are: + # * description + # * applicationInstruction + # * incentives + # * qualifications + # * responsibilities + # HTML tags in these fields may be stripped if sanitiazation is not disabled. + # Defaults to HtmlSanitization.SIMPLE_FORMATTING_ONLY. + # Corresponds to the JSON property `htmlSanitization` + # @return [String] + attr_accessor :html_sanitization + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution) + @html_sanitization = args[:html_sanitization] if args.key?(:html_sanitization) + end + end + # Input only. # The query required to perform a search query or histogram. class JobQuery @@ -3309,7 +3355,10 @@ module Google class UpdateJobRequest include Google::Apis::Core::Hashable - # If set to `true`, the service will not attempt resolve a more precise + # Deprecated. Please use processing_options. This flag is ignored if + # processing_options is set. + # Optional. + # If set to `true`, the service does not attempt resolve a more precise # address for the job. # Corresponds to the JSON property `disableStreetAddressResolution` # @return [Boolean] @@ -3323,6 +3372,12 @@ module Google # @return [Google::Apis::JobsV2::Job] attr_accessor :job + # Input only. + # Options for job processing. + # Corresponds to the JSON property `processingOptions` + # @return [Google::Apis::JobsV2::JobProcessingOptions] + attr_accessor :processing_options + # Optional but strongly recommended to be provided for the best service # experience. # If update_job_fields is provided, only the specified fields in @@ -3367,6 +3422,7 @@ module Google def update!(**args) @disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution) @job = args[:job] if args.key?(:job) + @processing_options = args[:processing_options] if args.key?(:processing_options) @update_job_fields = args[:update_job_fields] if args.key?(:update_job_fields) end end diff --git a/generated/google/apis/jobs_v2/representations.rb b/generated/google/apis/jobs_v2/representations.rb index 16decec58..5680204c5 100644 --- a/generated/google/apis/jobs_v2/representations.rb +++ b/generated/google/apis/jobs_v2/representations.rb @@ -256,6 +256,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class JobProcessingOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class JobQuery class Representation < Google::Apis::Core::JsonRepresentation; end @@ -543,6 +549,8 @@ module Google property :disable_street_address_resolution, as: 'disableStreetAddressResolution' property :job, as: 'job', class: Google::Apis::JobsV2::Job, decorator: Google::Apis::JobsV2::Job::Representation + property :processing_options, as: 'processingOptions', class: Google::Apis::JobsV2::JobProcessingOptions, decorator: Google::Apis::JobsV2::JobProcessingOptions::Representation + end end @@ -838,6 +846,14 @@ module Google end end + class JobProcessingOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disable_street_address_resolution, as: 'disableStreetAddressResolution' + property :html_sanitization, as: 'htmlSanitization' + end + end + class JobQuery # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1058,6 +1074,8 @@ module Google property :disable_street_address_resolution, as: 'disableStreetAddressResolution' property :job, as: 'job', class: Google::Apis::JobsV2::Job, decorator: Google::Apis::JobsV2::Job::Representation + property :processing_options, as: 'processingOptions', class: Google::Apis::JobsV2::JobProcessingOptions, decorator: Google::Apis::JobsV2::JobProcessingOptions::Representation + property :update_job_fields, as: 'updateJobFields' end end diff --git a/generated/google/apis/jobs_v2/service.rb b/generated/google/apis/jobs_v2/service.rb index c04330bb4..9a4c8c91d 100644 --- a/generated/google/apis/jobs_v2/service.rb +++ b/generated/google/apis/jobs_v2/service.rb @@ -20,9 +20,9 @@ require 'google/apis/errors' module Google module Apis module JobsV2 - # Cloud Job Discovery + # Cloud Talent Solution API # - # Cloud Job Discovery provides the capability to create, read, update, and + # Cloud Talent Solution provides the capability to create, read, update, and # delete job postings, as well as search jobs based on keywords and filters. # # @example @@ -142,7 +142,7 @@ module Google execute_or_queue_command(command, &block) end - # Lists all companies associated with a Cloud Job Discovery account. + # Lists all companies associated with a Cloud Talent Solution account. # @param [Boolean] must_have_open_jobs # Optional. # Set to true if the companies request must have open jobs. diff --git a/generated/google/apis/licensing_v1.rb b/generated/google/apis/licensing_v1.rb index bada8f103..a942672af 100644 --- a/generated/google/apis/licensing_v1.rb +++ b/generated/google/apis/licensing_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/licensing/ module LicensingV1 VERSION = 'V1' - REVISION = '' + REVISION = '20170213' # View and manage G Suite licenses for your domain AUTH_APPS_LICENSING = 'https://www.googleapis.com/auth/apps.licensing' diff --git a/generated/google/apis/logging_v2.rb b/generated/google/apis/logging_v2.rb index ea58b17e6..79f2102b8 100644 --- a/generated/google/apis/logging_v2.rb +++ b/generated/google/apis/logging_v2.rb @@ -20,12 +20,12 @@ module Google module Apis # Stackdriver Logging API # - # Writes log entries and manages your Stackdriver Logging configuration. + # Writes log entries and manages your Logging configuration. # # @see https://cloud.google.com/logging/docs/ module LoggingV2 VERSION = 'V2' - REVISION = '20180625' + REVISION = '20180806' # 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/logging_v2/classes.rb b/generated/google/apis/logging_v2/classes.rb index 07ed1b67b..e860e0d57 100644 --- a/generated/google/apis/logging_v2/classes.rb +++ b/generated/google/apis/logging_v2/classes.rb @@ -599,11 +599,11 @@ module Google attr_accessor :http_request # Optional. A unique identifier for the log entry. If you provide a value, then - # Stackdriver Logging considers other log entries in the same project, with the - # same timestamp, and with the same insert_id to be duplicates which can be - # removed. If omitted in new log entries, then Stackdriver Logging assigns its - # own unique identifier. The insert_id is also used to order log entries that - # have the same timestamp value. + # Logging considers other log entries in the same project, with the same + # timestamp, and with the same insert_id to be duplicates which can be removed. + # If omitted in new log entries, then Logging assigns its own unique identifier. + # The insert_id is also used to order log entries that have the same timestamp + # value. # Corresponds to the JSON property `insertId` # @return [String] attr_accessor :insert_id @@ -642,10 +642,9 @@ module Google # Auxiliary metadata for a MonitoredResource object. MonitoredResource objects # contain the minimum set of information to uniquely identify a monitored - # resource instance. There is some other useful auxiliary metadata. Google - # Stackdriver Monitoring & Logging uses an ingestion pipeline to extract - # metadata for cloud resources of all types , and stores the metadata in this - # message. + # resource instance. There is some other useful auxiliary metadata. Monitoring + # and Logging use an ingestion pipeline to extract metadata for cloud resources + # of all types, and store the metadata in this message. # Corresponds to the JSON property `metadata` # @return [Google::Apis::LoggingV2::MonitoredResourceMetadata] attr_accessor :metadata @@ -662,7 +661,7 @@ module Google # @return [Hash] attr_accessor :proto_payload - # Output only. The time the log entry was received by Stackdriver Logging. + # Output only. The time the log entry was received by Logging. # Corresponds to the JSON property `receiveTimestamp` # @return [String] attr_accessor :receive_timestamp @@ -696,9 +695,9 @@ module Google attr_accessor :source_location # Optional. The span ID within the trace associated with the log entry. For - # Stackdriver Trace spans, this is the same format that the Stackdriver Trace - # API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such as < - # code>"000000000000004a". + # Trace spans, this is the same format that the Trace API v2 uses: a 16- + # character hexadecimal encoding of an 8-byte array, such as " + # 000000000000004a". # Corresponds to the JSON property `spanId` # @return [String] attr_accessor :span_id @@ -710,13 +709,13 @@ module Google # Optional. The time the event described by the log entry occurred. This time is # used to compute the log entry's age and to enforce the logs retention period. - # If this field is omitted in a new log entry, then Stackdriver Logging assigns - # it the current time. Timestamps have nanosecond accuracy, but trailing zeros - # in the fractional seconds might be omitted when the timestamp is displayed. - # Incoming log entries should have timestamps that are no more than the logs - # retention period in the past, and no more than 24 hours in the future. Log - # entries outside those time boundaries will not be available when calling - # entries.list, but those log entries can still be exported with LogSinks. + # If this field is omitted in a new log entry, then Logging assigns it the + # current time. Timestamps have nanosecond accuracy, but trailing zeros in the + # fractional seconds might be omitted when the timestamp is displayed.Incoming + # log entries should have timestamps that are no more than the logs retention + # period in the past, and no more than 24 hours in the future. Log entries + # outside those time boundaries will not be available when calling entries.list, + # but those log entries can still be exported with LogSinks. # Corresponds to the JSON property `timestamp` # @return [String] attr_accessor :timestamp @@ -835,11 +834,11 @@ module Google end end - # Specifies a set of log entries that are not to be stored in Stackdriver - # Logging. If your project receives a large volume of logs, you might be able to - # use exclusions to reduce your chargeable logs. Exclusions are processed after - # log sinks, so you can export log entries before they are excluded. Audit log - # entries and log entries from Amazon Web Services are never excluded. + # Specifies a set of log entries that are not to be stored in Logging. If your + # project receives a large volume of logs, you might be able to use exclusions + # to reduce your chargeable logs. Exclusions are processed after log sinks, so + # you can export log entries before they are excluded. Audit log entries and log + # entries from Amazon Web Services are never excluded. class LogExclusion include Google::Apis::Core::Hashable @@ -1103,13 +1102,13 @@ module Google attr_accessor :start_time # Output only. An IAM identity—a service account or group—under - # which Stackdriver Logging writes the exported log entries to the sink's - # destination. This field is set by sinks.create and sinks.update, based on the - # setting of unique_writer_identity in those methods.Until you grant this - # identity write-access to the destination, log entry exports from this sink - # will fail. For more information, see Granting access for a resource. Consult - # the destination service's documentation to determine the appropriate IAM roles - # to assign to the identity. + # which Logging writes the exported log entries to the sink's destination. This + # field is set by sinks.create and sinks.update, based on the setting of + # unique_writer_identity in those methods.Until you grant this identity write- + # access to the destination, log entry exports from this sink will fail. For + # more information, see Granting access for a resource. Consult the destination + # service's documentation to determine the appropriate IAM roles to assign to + # the identity. # Corresponds to the JSON property `writerIdentity` # @return [String] attr_accessor :writer_identity @@ -1176,9 +1175,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All user-defined custom metric types have the DNS name custom.googleapis.com. - # Metric types should use a natural hierarchical grouping. For example: + # All user-defined metric types have the DNS name custom.googleapis.com or + # external.googleapis.com. Metric types should use a natural hierarchical + # grouping. For example: # "custom.googleapis.com/invoice/paid/amount" + # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" # Corresponds to the JSON property `type` # @return [String] @@ -1399,19 +1400,16 @@ module Google # Auxiliary metadata for a MonitoredResource object. MonitoredResource objects # contain the minimum set of information to uniquely identify a monitored - # resource instance. There is some other useful auxiliary metadata. Google - # Stackdriver Monitoring & Logging uses an ingestion pipeline to extract - # metadata for cloud resources of all types , and stores the metadata in this - # message. + # resource instance. There is some other useful auxiliary metadata. Monitoring + # and Logging use an ingestion pipeline to extract metadata for cloud resources + # of all types, and store the metadata in this message. class MonitoredResourceMetadata include Google::Apis::Core::Hashable # Output only. Values for predefined system metadata labels. System labels are a - # kind of metadata extracted by Google Stackdriver. Stackdriver determines what - # system labels are useful and how to obtain their values. Some examples: " - # machine_image", "vpc", "subnet_id", "security_group", "name", etc. System - # label values can be only strings, Boolean values, or a list of strings. For - # example: + # kind of metadata extracted by Google, including "machine_image", "vpc", " + # subnet_id", "security_group", "name", etc. System label values can be only + # strings, Boolean values, or a list of strings. For example: # ` "name": "my-test-instance", # "security_group": ["a", "b", "c"], # "spot_instance": false ` @@ -1596,6 +1594,13 @@ module Google # @return [String] attr_accessor :trace_id + # If true, the value in the 'trace_id' field was sampled for storage in a trace + # backend. + # Corresponds to the JSON property `traceSampled` + # @return [Boolean] + attr_accessor :trace_sampled + alias_method :trace_sampled?, :trace_sampled + # File or class that handled the request. # Corresponds to the JSON property `urlMapEntry` # @return [String] @@ -1651,6 +1656,7 @@ module Google @task_name = args[:task_name] if args.key?(:task_name) @task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name) @trace_id = args[:trace_id] if args.key?(:trace_id) + @trace_sampled = args[:trace_sampled] if args.key?(:trace_sampled) @url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry) @user_agent = args[:user_agent] if args.key?(:user_agent) @version_id = args[:version_id] if args.key?(:version_id) @@ -1734,21 +1740,21 @@ module Google attr_accessor :dry_run alias_method :dry_run?, :dry_run - # Required. The log entries to send to Stackdriver Logging. The order of log - # entries in this list does not matter. Values supplied in this method's - # log_name, resource, and labels fields are copied into those log entries in - # this list that do not include values for their corresponding fields. For more - # information, see the LogEntry type.If the timestamp or insert_id fields are - # missing in log entries, then this method supplies the current time or a unique - # identifier, respectively. The supplied values are chosen so that, among the - # log entries that did not supply their own values, the entries earlier in the - # list will sort before the entries later in the list. See the entries.list - # method.Log entries with timestamps that are more than the logs retention - # period in the past or more than 24 hours in the future will not be available - # when calling entries.list. However, those log entries can still be exported - # with LogSinks.To improve throughput and to avoid exceeding the quota limit for - # calls to entries.write, you should try to include several log entries in this - # list, rather than calling this method for each individual log entry. + # Required. The log entries to send to Logging. The order of log entries in this + # list does not matter. Values supplied in this method's log_name, resource, and + # labels fields are copied into those log entries in this list that do not + # include values for their corresponding fields. For more information, see the + # LogEntry type.If the timestamp or insert_id fields are missing in log entries, + # then this method supplies the current time or a unique identifier, + # respectively. The supplied values are chosen so that, among the log entries + # that did not supply their own values, the entries earlier in the list will + # sort before the entries later in the list. See the entries.list method.Log + # entries with timestamps that are more than the logs retention period in the + # past or more than 24 hours in the future will not be available when calling + # entries.list. However, those log entries can still be exported with LogSinks. + # To improve throughput and to avoid exceeding the quota limit for calls to + # entries.write, you should try to include several log entries in this list, + # rather than calling this method for each individual log entry. # Corresponds to the JSON property `entries` # @return [Array] attr_accessor :entries diff --git a/generated/google/apis/logging_v2/representations.rb b/generated/google/apis/logging_v2/representations.rb index cfe5181a7..695041f37 100644 --- a/generated/google/apis/logging_v2/representations.rb +++ b/generated/google/apis/logging_v2/representations.rb @@ -530,6 +530,7 @@ module Google property :task_name, as: 'taskName' property :task_queue_name, as: 'taskQueueName' property :trace_id, as: 'traceId' + property :trace_sampled, as: 'traceSampled' property :url_map_entry, as: 'urlMapEntry' property :user_agent, as: 'userAgent' property :version_id, as: 'versionId' diff --git a/generated/google/apis/logging_v2/service.rb b/generated/google/apis/logging_v2/service.rb index 398912914..679997a24 100644 --- a/generated/google/apis/logging_v2/service.rb +++ b/generated/google/apis/logging_v2/service.rb @@ -22,7 +22,7 @@ module Google module LoggingV2 # Stackdriver Logging API # - # Writes log entries and manages your Stackdriver Logging configuration. + # Writes log entries and manages your Logging configuration. # # @example # require 'google/apis/logging_v2' @@ -349,12 +349,12 @@ module Google # Optional. Determines the kind of IAM identity returned as writer_identity in # the new sink. If this value is omitted or set to false, and if the sink's # parent is a project, then the value returned as writer_identity is the same - # group or service account used by Stackdriver Logging before the addition of - # writer identities to this API. The sink's destination must be in the same - # project as the sink itself.If this field is set to true, or if the sink is - # owned by a non-project resource such as an organization, then the value of - # writer_identity will be a unique service account used only for exports from - # the new sink. For more information, see writer_identity in LogSink. + # group or service account used by Logging before the addition of writer + # identities to this API. The sink's destination must be in the same project as + # the sink itself.If this field is set to true, or if the sink is owned by a non- + # project resource such as an organization, then the value of writer_identity + # will be a unique service account used only for exports from the new sink. For + # more information, see writer_identity in LogSink. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -626,8 +626,8 @@ module Google execute_or_queue_command(command, &block) end - # Lists log entries. Use this method to retrieve log entries from Stackdriver - # Logging. For ways to export log entries, see Exporting Logs. + # Lists log entries. Use this method to retrieve log entries from Logging. For + # ways to export log entries, see Exporting Logs. # @param [Google::Apis::LoggingV2::ListLogEntriesRequest] list_log_entries_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -657,12 +657,11 @@ module Google execute_or_queue_command(command, &block) end - # Writes log entries to Stackdriver Logging. This API method is the only way to - # send log entries to Stackdriver Logging. This method is used, directly or - # indirectly, by the Stackdriver Logging agent (fluentd) and all logging - # libraries configured to use Stackdriver Logging. A single request may contain - # log entries for a maximum of 1000 different resources (projects, organizations, - # billing accounts or folders) + # Writes log entries to Logging. This API method is the only way to send log + # entries to Logging. This method is used, directly or indirectly, by the + # Logging agent (fluentd) and all logging libraries configured to use Logging. A + # single request may contain log entries for a maximum of 1000 different + # resources (projects, organizations, billing accounts or folders) # @param [Google::Apis::LoggingV2::WriteLogEntriesRequest] write_log_entries_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1195,12 +1194,12 @@ module Google # Optional. Determines the kind of IAM identity returned as writer_identity in # the new sink. If this value is omitted or set to false, and if the sink's # parent is a project, then the value returned as writer_identity is the same - # group or service account used by Stackdriver Logging before the addition of - # writer identities to this API. The sink's destination must be in the same - # project as the sink itself.If this field is set to true, or if the sink is - # owned by a non-project resource such as an organization, then the value of - # writer_identity will be a unique service account used only for exports from - # the new sink. For more information, see writer_identity in LogSink. + # group or service account used by Logging before the addition of writer + # identities to this API. The sink's destination must be in the same project as + # the sink itself.If this field is set to true, or if the sink is owned by a non- + # project resource such as an organization, then the value of writer_identity + # will be a unique service account used only for exports from the new sink. For + # more information, see writer_identity in LogSink. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1557,7 +1556,7 @@ module Google execute_or_queue_command(command, &block) end - # Lists the descriptors for monitored resource types used by Stackdriver Logging. + # Lists the descriptors for monitored resource types used by Logging. # @param [Fixnum] page_size # Optional. The maximum number of results to return from this request. Non- # positive values are ignored. The presence of nextPageToken in the response @@ -1897,12 +1896,12 @@ module Google # Optional. Determines the kind of IAM identity returned as writer_identity in # the new sink. If this value is omitted or set to false, and if the sink's # parent is a project, then the value returned as writer_identity is the same - # group or service account used by Stackdriver Logging before the addition of - # writer identities to this API. The sink's destination must be in the same - # project as the sink itself.If this field is set to true, or if the sink is - # owned by a non-project resource such as an organization, then the value of - # writer_identity will be a unique service account used only for exports from - # the new sink. For more information, see writer_identity in LogSink. + # group or service account used by Logging before the addition of writer + # identities to this API. The sink's destination must be in the same project as + # the sink itself.If this field is set to true, or if the sink is owned by a non- + # project resource such as an organization, then the value of writer_identity + # will be a unique service account used only for exports from the new sink. For + # more information, see writer_identity in LogSink. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2652,12 +2651,12 @@ module Google # Optional. Determines the kind of IAM identity returned as writer_identity in # the new sink. If this value is omitted or set to false, and if the sink's # parent is a project, then the value returned as writer_identity is the same - # group or service account used by Stackdriver Logging before the addition of - # writer identities to this API. The sink's destination must be in the same - # project as the sink itself.If this field is set to true, or if the sink is - # owned by a non-project resource such as an organization, then the value of - # writer_identity will be a unique service account used only for exports from - # the new sink. For more information, see writer_identity in LogSink. + # group or service account used by Logging before the addition of writer + # identities to this API. The sink's destination must be in the same project as + # the sink itself.If this field is set to true, or if the sink is owned by a non- + # project resource such as an organization, then the value of writer_identity + # will be a unique service account used only for exports from the new sink. For + # more information, see writer_identity in LogSink. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2945,12 +2944,12 @@ module Google # Optional. Determines the kind of IAM identity returned as writer_identity in # the new sink. If this value is omitted or set to false, and if the sink's # parent is a project, then the value returned as writer_identity is the same - # group or service account used by Stackdriver Logging before the addition of - # writer identities to this API. The sink's destination must be in the same - # project as the sink itself.If this field is set to true, or if the sink is - # owned by a non-project resource such as an organization, then the value of - # writer_identity will be a unique service account used only for exports from - # the new sink. For more information, see writer_identity in LogSink. + # group or service account used by Logging before the addition of writer + # identities to this API. The sink's destination must be in the same project as + # the sink itself.If this field is set to true, or if the sink is owned by a non- + # project resource such as an organization, then the value of writer_identity + # will be a unique service account used only for exports from the new sink. For + # more information, see writer_identity in LogSink. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/logging_v2beta1.rb b/generated/google/apis/logging_v2beta1.rb index 80b06c675..e50457bef 100644 --- a/generated/google/apis/logging_v2beta1.rb +++ b/generated/google/apis/logging_v2beta1.rb @@ -20,12 +20,12 @@ module Google module Apis # Stackdriver Logging API # - # Writes log entries and manages your Stackdriver Logging configuration. + # Writes log entries and manages your Logging configuration. # # @see https://cloud.google.com/logging/docs/ module LoggingV2beta1 VERSION = 'V2beta1' - REVISION = '20180625' + REVISION = '20180806' # 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/logging_v2beta1/classes.rb b/generated/google/apis/logging_v2beta1/classes.rb index bcaec9821..f247bf851 100644 --- a/generated/google/apis/logging_v2beta1/classes.rb +++ b/generated/google/apis/logging_v2beta1/classes.rb @@ -572,11 +572,11 @@ module Google attr_accessor :http_request # Optional. A unique identifier for the log entry. If you provide a value, then - # Stackdriver Logging considers other log entries in the same project, with the - # same timestamp, and with the same insert_id to be duplicates which can be - # removed. If omitted in new log entries, then Stackdriver Logging assigns its - # own unique identifier. The insert_id is also used to order log entries that - # have the same timestamp value. + # Logging considers other log entries in the same project, with the same + # timestamp, and with the same insert_id to be duplicates which can be removed. + # If omitted in new log entries, then Logging assigns its own unique identifier. + # The insert_id is also used to order log entries that have the same timestamp + # value. # Corresponds to the JSON property `insertId` # @return [String] attr_accessor :insert_id @@ -615,10 +615,9 @@ module Google # Auxiliary metadata for a MonitoredResource object. MonitoredResource objects # contain the minimum set of information to uniquely identify a monitored - # resource instance. There is some other useful auxiliary metadata. Google - # Stackdriver Monitoring & Logging uses an ingestion pipeline to extract - # metadata for cloud resources of all types , and stores the metadata in this - # message. + # resource instance. There is some other useful auxiliary metadata. Monitoring + # and Logging use an ingestion pipeline to extract metadata for cloud resources + # of all types, and store the metadata in this message. # Corresponds to the JSON property `metadata` # @return [Google::Apis::LoggingV2beta1::MonitoredResourceMetadata] attr_accessor :metadata @@ -635,7 +634,7 @@ module Google # @return [Hash] attr_accessor :proto_payload - # Output only. The time the log entry was received by Stackdriver Logging. + # Output only. The time the log entry was received by Logging. # Corresponds to the JSON property `receiveTimestamp` # @return [String] attr_accessor :receive_timestamp @@ -669,9 +668,9 @@ module Google attr_accessor :source_location # Optional. The span ID within the trace associated with the log entry. For - # Stackdriver Trace spans, this is the same format that the Stackdriver Trace - # API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such as < - # code>"000000000000004a". + # Trace spans, this is the same format that the Trace API v2 uses: a 16- + # character hexadecimal encoding of an 8-byte array, such as " + # 000000000000004a". # Corresponds to the JSON property `spanId` # @return [String] attr_accessor :span_id @@ -683,13 +682,13 @@ module Google # Optional. The time the event described by the log entry occurred. This time is # used to compute the log entry's age and to enforce the logs retention period. - # If this field is omitted in a new log entry, then Stackdriver Logging assigns - # it the current time. Timestamps have nanosecond accuracy, but trailing zeros - # in the fractional seconds might be omitted when the timestamp is displayed. - # Incoming log entries should have timestamps that are no more than the logs - # retention period in the past, and no more than 24 hours in the future. Log - # entries outside those time boundaries will not be available when calling - # entries.list, but those log entries can still be exported with LogSinks. + # If this field is omitted in a new log entry, then Logging assigns it the + # current time. Timestamps have nanosecond accuracy, but trailing zeros in the + # fractional seconds might be omitted when the timestamp is displayed.Incoming + # log entries should have timestamps that are no more than the logs retention + # period in the past, and no more than 24 hours in the future. Log entries + # outside those time boundaries will not be available when calling entries.list, + # but those log entries can still be exported with LogSinks. # Corresponds to the JSON property `timestamp` # @return [String] attr_accessor :timestamp @@ -1026,13 +1025,13 @@ module Google attr_accessor :start_time # Output only. An IAM identity—a service account or group—under - # which Stackdriver Logging writes the exported log entries to the sink's - # destination. This field is set by sinks.create and sinks.update, based on the - # setting of unique_writer_identity in those methods.Until you grant this - # identity write-access to the destination, log entry exports from this sink - # will fail. For more information, see Granting access for a resource. Consult - # the destination service's documentation to determine the appropriate IAM roles - # to assign to the identity. + # which Logging writes the exported log entries to the sink's destination. This + # field is set by sinks.create and sinks.update, based on the setting of + # unique_writer_identity in those methods.Until you grant this identity write- + # access to the destination, log entry exports from this sink will fail. For + # more information, see Granting access for a resource. Consult the destination + # service's documentation to determine the appropriate IAM roles to assign to + # the identity. # Corresponds to the JSON property `writerIdentity` # @return [String] attr_accessor :writer_identity @@ -1099,9 +1098,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All user-defined custom metric types have the DNS name custom.googleapis.com. - # Metric types should use a natural hierarchical grouping. For example: + # All user-defined metric types have the DNS name custom.googleapis.com or + # external.googleapis.com. Metric types should use a natural hierarchical + # grouping. For example: # "custom.googleapis.com/invoice/paid/amount" + # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" # Corresponds to the JSON property `type` # @return [String] @@ -1322,19 +1323,16 @@ module Google # Auxiliary metadata for a MonitoredResource object. MonitoredResource objects # contain the minimum set of information to uniquely identify a monitored - # resource instance. There is some other useful auxiliary metadata. Google - # Stackdriver Monitoring & Logging uses an ingestion pipeline to extract - # metadata for cloud resources of all types , and stores the metadata in this - # message. + # resource instance. There is some other useful auxiliary metadata. Monitoring + # and Logging use an ingestion pipeline to extract metadata for cloud resources + # of all types, and store the metadata in this message. class MonitoredResourceMetadata include Google::Apis::Core::Hashable # Output only. Values for predefined system metadata labels. System labels are a - # kind of metadata extracted by Google Stackdriver. Stackdriver determines what - # system labels are useful and how to obtain their values. Some examples: " - # machine_image", "vpc", "subnet_id", "security_group", "name", etc. System - # label values can be only strings, Boolean values, or a list of strings. For - # example: + # kind of metadata extracted by Google, including "machine_image", "vpc", " + # subnet_id", "security_group", "name", etc. System label values can be only + # strings, Boolean values, or a list of strings. For example: # ` "name": "my-test-instance", # "security_group": ["a", "b", "c"], # "spot_instance": false ` @@ -1519,6 +1517,13 @@ module Google # @return [String] attr_accessor :trace_id + # If true, the value in the 'trace_id' field was sampled for storage in a trace + # backend. + # Corresponds to the JSON property `traceSampled` + # @return [Boolean] + attr_accessor :trace_sampled + alias_method :trace_sampled?, :trace_sampled + # File or class that handled the request. # Corresponds to the JSON property `urlMapEntry` # @return [String] @@ -1574,6 +1579,7 @@ module Google @task_name = args[:task_name] if args.key?(:task_name) @task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name) @trace_id = args[:trace_id] if args.key?(:trace_id) + @trace_sampled = args[:trace_sampled] if args.key?(:trace_sampled) @url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry) @user_agent = args[:user_agent] if args.key?(:user_agent) @version_id = args[:version_id] if args.key?(:version_id) @@ -1657,21 +1663,21 @@ module Google attr_accessor :dry_run alias_method :dry_run?, :dry_run - # Required. The log entries to send to Stackdriver Logging. The order of log - # entries in this list does not matter. Values supplied in this method's - # log_name, resource, and labels fields are copied into those log entries in - # this list that do not include values for their corresponding fields. For more - # information, see the LogEntry type.If the timestamp or insert_id fields are - # missing in log entries, then this method supplies the current time or a unique - # identifier, respectively. The supplied values are chosen so that, among the - # log entries that did not supply their own values, the entries earlier in the - # list will sort before the entries later in the list. See the entries.list - # method.Log entries with timestamps that are more than the logs retention - # period in the past or more than 24 hours in the future will not be available - # when calling entries.list. However, those log entries can still be exported - # with LogSinks.To improve throughput and to avoid exceeding the quota limit for - # calls to entries.write, you should try to include several log entries in this - # list, rather than calling this method for each individual log entry. + # Required. The log entries to send to Logging. The order of log entries in this + # list does not matter. Values supplied in this method's log_name, resource, and + # labels fields are copied into those log entries in this list that do not + # include values for their corresponding fields. For more information, see the + # LogEntry type.If the timestamp or insert_id fields are missing in log entries, + # then this method supplies the current time or a unique identifier, + # respectively. The supplied values are chosen so that, among the log entries + # that did not supply their own values, the entries earlier in the list will + # sort before the entries later in the list. See the entries.list method.Log + # entries with timestamps that are more than the logs retention period in the + # past or more than 24 hours in the future will not be available when calling + # entries.list. However, those log entries can still be exported with LogSinks. + # To improve throughput and to avoid exceeding the quota limit for calls to + # entries.write, you should try to include several log entries in this list, + # rather than calling this method for each individual log entry. # Corresponds to the JSON property `entries` # @return [Array] attr_accessor :entries diff --git a/generated/google/apis/logging_v2beta1/representations.rb b/generated/google/apis/logging_v2beta1/representations.rb index aabe5f3f3..ce836847a 100644 --- a/generated/google/apis/logging_v2beta1/representations.rb +++ b/generated/google/apis/logging_v2beta1/representations.rb @@ -499,6 +499,7 @@ module Google property :task_name, as: 'taskName' property :task_queue_name, as: 'taskQueueName' property :trace_id, as: 'traceId' + property :trace_sampled, as: 'traceSampled' property :url_map_entry, as: 'urlMapEntry' property :user_agent, as: 'userAgent' property :version_id, as: 'versionId' diff --git a/generated/google/apis/logging_v2beta1/service.rb b/generated/google/apis/logging_v2beta1/service.rb index d36b36f29..2eb0ba1d8 100644 --- a/generated/google/apis/logging_v2beta1/service.rb +++ b/generated/google/apis/logging_v2beta1/service.rb @@ -22,7 +22,7 @@ module Google module LoggingV2beta1 # Stackdriver Logging API # - # Writes log entries and manages your Stackdriver Logging configuration. + # Writes log entries and manages your Logging configuration. # # @example # require 'google/apis/logging_v2beta1' @@ -132,8 +132,8 @@ module Google execute_or_queue_command(command, &block) end - # Lists log entries. Use this method to retrieve log entries from Stackdriver - # Logging. For ways to export log entries, see Exporting Logs. + # Lists log entries. Use this method to retrieve log entries from Logging. For + # ways to export log entries, see Exporting Logs. # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -163,12 +163,11 @@ module Google execute_or_queue_command(command, &block) end - # Writes log entries to Stackdriver Logging. This API method is the only way to - # send log entries to Stackdriver Logging. This method is used, directly or - # indirectly, by the Stackdriver Logging agent (fluentd) and all logging - # libraries configured to use Stackdriver Logging. A single request may contain - # log entries for a maximum of 1000 different resources (projects, organizations, - # billing accounts or folders) + # Writes log entries to Logging. This API method is the only way to send log + # entries to Logging. This method is used, directly or indirectly, by the + # Logging agent (fluentd) and all logging libraries configured to use Logging. A + # single request may contain log entries for a maximum of 1000 different + # resources (projects, organizations, billing accounts or folders) # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -198,7 +197,7 @@ module Google execute_or_queue_command(command, &block) end - # Lists the descriptors for monitored resource types used by Stackdriver Logging. + # Lists the descriptors for monitored resource types used by Logging. # @param [Fixnum] page_size # Optional. The maximum number of results to return from this request. Non- # positive values are ignored. The presence of nextPageToken in the response @@ -598,12 +597,12 @@ module Google # Optional. Determines the kind of IAM identity returned as writer_identity in # the new sink. If this value is omitted or set to false, and if the sink's # parent is a project, then the value returned as writer_identity is the same - # group or service account used by Stackdriver Logging before the addition of - # writer identities to this API. The sink's destination must be in the same - # project as the sink itself.If this field is set to true, or if the sink is - # owned by a non-project resource such as an organization, then the value of - # writer_identity will be a unique service account used only for exports from - # the new sink. For more information, see writer_identity in LogSink. + # group or service account used by Logging before the addition of writer + # identities to this API. The sink's destination must be in the same project as + # the sink itself.If this field is set to true, or if the sink is owned by a non- + # project resource such as an organization, then the value of writer_identity + # will be a unique service account used only for exports from the new sink. For + # more information, see writer_identity in LogSink. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/mirror_v1.rb b/generated/google/apis/mirror_v1.rb index 3423015b3..7376701a5 100644 --- a/generated/google/apis/mirror_v1.rb +++ b/generated/google/apis/mirror_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/glass module MirrorV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180611' # View your location AUTH_GLASS_LOCATION = 'https://www.googleapis.com/auth/glass.location' diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index eab239461..cc2d7944e 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20180709' + REVISION = '20180804' # 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/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 28e107336..9d9f0655b 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -107,6 +107,31 @@ module Google end end + # Represents a hardware accelerator request config. + class GoogleCloudMlV1AcceleratorConfig + include Google::Apis::Core::Hashable + + # The number of accelerators to attach to each machine running the job. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # The available types of accelerators. + # 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) + @count = args[:count] if args.key?(:count) + @type = args[:type] if args.key?(:type) + end + end + # Options for automatically scaling a model. class GoogleCloudMlV1AutoScaling include Google::Apis::Core::Hashable @@ -906,6 +931,11 @@ module Google class GoogleCloudMlV1PredictionInput include Google::Apis::Core::Hashable + # Represents a hardware accelerator request config. + # Corresponds to the JSON property `accelerator` + # @return [Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig] + attr_accessor :accelerator + # Optional. Number of records per batch, defaults to 64. # The service will buffer batch_size number of records in memory before # invoking one Tensorflow prediction call internally. So take the record @@ -991,6 +1021,7 @@ module Google # Update properties of this object def update!(**args) + @accelerator = args[:accelerator] if args.key?(:accelerator) @batch_size = args[:batch_size] if args.key?(:batch_size) @data_format = args[:data_format] if args.key?(:data_format) @input_paths = args[:input_paths] if args.key?(:input_paths) @@ -1571,6 +1602,14 @@ module Google class GoogleIamV1Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::MlV1::GoogleTypeExpr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -1601,6 +1640,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -2008,6 +2048,53 @@ module Google @message = args[:message] if args.key?(:message) end end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class GoogleTypeExpr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end end end end diff --git a/generated/google/apis/ml_v1/representations.rb b/generated/google/apis/ml_v1/representations.rb index cd8e17dc0..5484c3686 100644 --- a/generated/google/apis/ml_v1/representations.rb +++ b/generated/google/apis/ml_v1/representations.rb @@ -34,6 +34,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudMlV1AcceleratorConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudMlV1AutoScaling class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,6 +250,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleTypeExpr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleApiHttpBody # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -261,6 +273,14 @@ module Google end end + class GoogleCloudMlV1AcceleratorConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :count, :numeric_string => true, as: 'count' + property :type, as: 'type' + end + end + class GoogleCloudMlV1AutoScaling # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -455,6 +475,8 @@ module Google class GoogleCloudMlV1PredictionInput # @private class Representation < Google::Apis::Core::JsonRepresentation + property :accelerator, as: 'accelerator', class: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig::Representation + property :batch_size, :numeric_string => true, as: 'batchSize' property :data_format, as: 'dataFormat' collection :input_paths, as: 'inputPaths' @@ -561,6 +583,8 @@ module Google class GoogleIamV1Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::MlV1::GoogleTypeExpr, decorator: Google::Apis::MlV1::GoogleTypeExpr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -636,6 +660,16 @@ module Google property :message, as: 'message' end end + + class GoogleTypeExpr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end end end end diff --git a/generated/google/apis/ml_v1/service.rb b/generated/google/apis/ml_v1/service.rb index 60cca05d3..a257b593c 100644 --- a/generated/google/apis/ml_v1/service.rb +++ b/generated/google/apis/ml_v1/service.rb @@ -300,6 +300,59 @@ module Google execute_or_queue_command(command, &block) end + # Updates a specific job resource. + # Currently the only supported fields to update are `labels`. + # @param [String] name + # Required. The job name. + # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object + # @param [String] update_mask + # Required. Specifies the path, relative to `Job`, of the field to update. + # To adopt etag mechanism, include `etag` field in the mask, and include the + # `etag` value in your job resource. + # For example, to change the labels of a job, the `update_mask` parameter + # would be specified as `labels`, `etag`, and the + # `PATCH` request body would specify the new value, as follows: + # ` + # "labels": ` + # "owner": "Google", + # "color": "Blue" + # ` + # "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4" + # ` + # If `etag` matches the one on the server, the labels of the job will be + # replaced with the given ones, and the server end `etag` will be + # recalculated. + # Currently the only supported update masks are `labels` and `etag`. + # @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::MlV1::GoogleCloudMlV1Job] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleCloudMlV1Job] + # + # @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_job(name, google_cloud_ml_v1__job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation + command.request_object = google_cloud_ml_v1__job_object + command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation + command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job + 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 + # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] resource diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 6642b46ab..1880f509d 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20180626' + REVISION = '20180806' # 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/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index 4f9a83d9f..014282b0e 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -782,6 +782,35 @@ module Google end end + # A set of (label, value) pairs which were dropped during aggregation, attached + # to google.api.Distribution.Exemplars in google.api.Distribution values during + # aggregation.These values are used in combination with the label values that + # remain on the aggregated Distribution timeseries to construct the full label + # set for the exemplar values. The resulting full label set may be used to + # identify the specific task/job/instance (for example) which may be + # contributing to a long-tail, while allowing the storage savings of only + # storing aggregated distribution values for a large group.Note that there are + # no guarantees on ordering of the labels from exemplar-to-exemplar and from + # distribution-to-distribution in the same stream, and there may be duplicates. + # It is up to clients to resolve any ambiguities. + class DroppedLabels + include Google::Apis::Core::Hashable + + # Map from label to its value, for all labels dropped in any aggregation. + # Corresponds to the JSON property `label` + # @return [Hash] + attr_accessor :label + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label = args[:label] if args.key?(:label) + 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: @@ -1708,9 +1737,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All user-defined custom metric types have the DNS name custom.googleapis.com. - # Metric types should use a natural hierarchical grouping. For example: + # All user-defined metric types have the DNS name custom.googleapis.com or + # external.googleapis.com. Metric types should use a natural hierarchical + # grouping. For example: # "custom.googleapis.com/invoice/paid/amount" + # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" # Corresponds to the JSON property `type` # @return [String] @@ -2031,19 +2062,16 @@ module Google # Auxiliary metadata for a MonitoredResource object. MonitoredResource objects # contain the minimum set of information to uniquely identify a monitored - # resource instance. There is some other useful auxiliary metadata. Google - # Stackdriver Monitoring & Logging uses an ingestion pipeline to extract - # metadata for cloud resources of all types , and stores the metadata in this - # message. + # resource instance. There is some other useful auxiliary metadata. Monitoring + # and Logging use an ingestion pipeline to extract metadata for cloud resources + # of all types, and store the metadata in this message. class MonitoredResourceMetadata include Google::Apis::Core::Hashable # Output only. Values for predefined system metadata labels. System labels are a - # kind of metadata extracted by Google Stackdriver. Stackdriver determines what - # system labels are useful and how to obtain their values. Some examples: " - # machine_image", "vpc", "subnet_id", "security_group", "name", etc. System - # label values can be only strings, Boolean values, or a list of strings. For - # example: + # kind of metadata extracted by Google, including "machine_image", "vpc", " + # subnet_id", "security_group", "name", etc. System label values can be only + # strings, Boolean values, or a list of strings. For example: # ` "name": "my-test-instance", # "security_group": ["a", "b", "c"], # "spot_instance": false ` @@ -2394,6 +2422,32 @@ module Google end end + # The context of a span, attached to google.api.Distribution.Exemplars in google. + # api.Distribution values during aggregation.It contains the name of a span with + # format: projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID + class SpanContext + include Google::Apis::Core::Hashable + + # The resource name of the span in the following format: + # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] + # TRACE_ID is a unique identifier for a trace within a project; it is a 32- + # character hexadecimal encoding of a 16-byte array.SPAN_ID is a unique + # identifier for a span within a trace; it is a 16-character hexadecimal + # encoding of an 8-byte array. + # Corresponds to the JSON property `spanName` + # @return [String] + attr_accessor :span_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @span_name = args[:span_name] if args.key?(:span_name) + 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). The error model is designed to be: @@ -2518,10 +2572,9 @@ module Google # Auxiliary metadata for a MonitoredResource object. MonitoredResource objects # contain the minimum set of information to uniquely identify a monitored - # resource instance. There is some other useful auxiliary metadata. Google - # Stackdriver Monitoring & Logging uses an ingestion pipeline to extract - # metadata for cloud resources of all types , and stores the metadata in this - # message. + # resource instance. There is some other useful auxiliary metadata. Monitoring + # and Logging use an ingestion pipeline to extract metadata for cloud resources + # of all types, and store the metadata in this message. # Corresponds to the JSON property `metadata` # @return [Google::Apis::MonitoringV3::MonitoredResourceMetadata] attr_accessor :metadata diff --git a/generated/google/apis/monitoring_v3/representations.rb b/generated/google/apis/monitoring_v3/representations.rb index 0fb94af6a..a42e82f2d 100644 --- a/generated/google/apis/monitoring_v3/representations.rb +++ b/generated/google/apis/monitoring_v3/representations.rb @@ -112,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DroppedLabels + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -346,6 +352,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SpanContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Status class Representation < Google::Apis::Core::JsonRepresentation; end @@ -572,6 +584,13 @@ module Google end end + class DroppedLabels + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :label, as: 'label' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -955,6 +974,13 @@ module Google end end + class SpanContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :span_name, as: 'spanName' + end + end + class Status # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/mybusiness_v3/classes.rb b/generated/google/apis/mybusiness_v3/classes.rb index 0c282a83a..d692dc0ab 100644 --- a/generated/google/apis/mybusiness_v3/classes.rb +++ b/generated/google/apis/mybusiness_v3/classes.rb @@ -26,7 +26,7 @@ module Google # user who manages locations for your business, you can use your personal # Google Account. To share management of locations with multiple users, # [create a business account] - # (https://support.google.com/business/answer/6085339?hl=en&ref_topic=6085325). + # (https://support.google.com/business/answer/6085339). class Account include Google::Apis::Core::Hashable diff --git a/generated/google/apis/oauth2_v1.rb b/generated/google/apis/oauth2_v1.rb index 9748c0bdd..141a7d05a 100644 --- a/generated/google/apis/oauth2_v1.rb +++ b/generated/google/apis/oauth2_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/accounts/docs/OAuth2 module Oauth2V1 VERSION = 'V1' - REVISION = '' + REVISION = '20180628' # Know the list of people in your circles, your age range, and language AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/oauth2_v2.rb b/generated/google/apis/oauth2_v2.rb index 477790584..4240ed3bc 100644 --- a/generated/google/apis/oauth2_v2.rb +++ b/generated/google/apis/oauth2_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/accounts/docs/OAuth2 module Oauth2V2 VERSION = 'V2' - REVISION = '' + REVISION = '20180628' # Know the list of people in your circles, your age range, and language AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/pagespeedonline_v1.rb b/generated/google/apis/pagespeedonline_v1.rb index 18228db73..f4e347692 100644 --- a/generated/google/apis/pagespeedonline_v1.rb +++ b/generated/google/apis/pagespeedonline_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/speed/docs/insights/v1/getting_started module PagespeedonlineV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180606' end end end diff --git a/generated/google/apis/pagespeedonline_v2.rb b/generated/google/apis/pagespeedonline_v2.rb index 21ad39940..b6f286c92 100644 --- a/generated/google/apis/pagespeedonline_v2.rb +++ b/generated/google/apis/pagespeedonline_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/speed/docs/insights/v2/getting-started module PagespeedonlineV2 VERSION = 'V2' - REVISION = '' + REVISION = '20180606' end end end diff --git a/generated/google/apis/pagespeedonline_v4.rb b/generated/google/apis/pagespeedonline_v4.rb index 3a4c4c1a6..0af3a1f25 100644 --- a/generated/google/apis/pagespeedonline_v4.rb +++ b/generated/google/apis/pagespeedonline_v4.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/speed/docs/insights/v4/getting-started module PagespeedonlineV4 VERSION = 'V4' - REVISION = '' + REVISION = '20180606' end end end diff --git a/generated/google/apis/playcustomapp_v1.rb b/generated/google/apis/playcustomapp_v1.rb index c9c92d06b..3d46f6c93 100644 --- a/generated/google/apis/playcustomapp_v1.rb +++ b/generated/google/apis/playcustomapp_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android/work/play/custom-app-api module PlaycustomappV1 VERSION = 'V1' - REVISION = '' + REVISION = '20170622' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index ea515cc59..1e4fee734 100644 --- a/generated/google/apis/plus_domains_v1.rb +++ b/generated/google/apis/plus_domains_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/domains/ module PlusDomainsV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180805' # View your circles and the people and pages in them AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read' diff --git a/generated/google/apis/plus_v1.rb b/generated/google/apis/plus_v1.rb index 3b105bf3a..ce59102cc 100644 --- a/generated/google/apis/plus_v1.rb +++ b/generated/google/apis/plus_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/api/ module PlusV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180805' # Know the list of people in your circles, your age range, and language AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/poly_v1.rb b/generated/google/apis/poly_v1.rb index b10753acd..bbf52988b 100644 --- a/generated/google/apis/poly_v1.rb +++ b/generated/google/apis/poly_v1.rb @@ -20,13 +20,14 @@ module Google module Apis # Poly API # - # The Poly API provides read-only access to assets hosted on poly.google.com. + # The Poly API provides read access to assets hosted on poly.google.com to all, and upload access to poly.google.com for whitelisted accounts. # # @see https://developers.google.com/poly/ module PolyV1 VERSION = 'V1' - REVISION = '20180623' + REVISION = '20180808' end end end diff --git a/generated/google/apis/poly_v1/classes.rb b/generated/google/apis/poly_v1/classes.rb index 57e1a45ad..0dbd7fc0d 100644 --- a/generated/google/apis/poly_v1/classes.rb +++ b/generated/google/apis/poly_v1/classes.rb @@ -89,6 +89,12 @@ module Google # @return [Google::Apis::PolyV1::PresentationParams] attr_accessor :presentation_params + # Info about the sources of this asset (i.e. assets that were remixed to + # create this asset). + # Corresponds to the JSON property `remixInfo` + # @return [Google::Apis::PolyV1::RemixInfo] + attr_accessor :remix_info + # Represents a file in Poly, which can be a root, # resource, or thumbnail file. # Corresponds to the JSON property `thumbnail` @@ -123,6 +129,7 @@ module Google @metadata = args[:metadata] if args.key?(:metadata) @name = args[:name] if args.key?(:name) @presentation_params = args[:presentation_params] if args.key?(:presentation_params) + @remix_info = args[:remix_info] if args.key?(:remix_info) @thumbnail = args[:thumbnail] if args.key?(:thumbnail) @update_time = args[:update_time] if args.key?(:update_time) @visibility = args[:visibility] if args.key?(:visibility) @@ -531,6 +538,27 @@ module Google end end + # Info about the sources of this asset (i.e. assets that were remixed to + # create this asset). + class RemixInfo + include Google::Apis::Core::Hashable + + # Resource ids for the sources of this remix, of the form: + # `assets/`ASSET_ID`` + # Corresponds to the JSON property `sourceAsset` + # @return [Array] + attr_accessor :source_asset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source_asset = args[:source_asset] if args.key?(:source_asset) + end + end + # A response message from a request to startImport. # This is returned in the response field of the Operation. class StartAssetImportResponse diff --git a/generated/google/apis/poly_v1/representations.rb b/generated/google/apis/poly_v1/representations.rb index bcc1d8cf9..a6fb603bd 100644 --- a/generated/google/apis/poly_v1/representations.rb +++ b/generated/google/apis/poly_v1/representations.rb @@ -94,6 +94,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RemixInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class StartAssetImportResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -121,6 +127,8 @@ module Google property :name, as: 'name' property :presentation_params, as: 'presentationParams', class: Google::Apis::PolyV1::PresentationParams, decorator: Google::Apis::PolyV1::PresentationParams::Representation + property :remix_info, as: 'remixInfo', class: Google::Apis::PolyV1::RemixInfo, decorator: Google::Apis::PolyV1::RemixInfo::Representation + property :thumbnail, as: 'thumbnail', class: Google::Apis::PolyV1::File, decorator: Google::Apis::PolyV1::File::Representation property :update_time, as: 'updateTime' @@ -240,6 +248,13 @@ module Google end end + class RemixInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :source_asset, as: 'sourceAsset' + end + end + class StartAssetImportResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/poly_v1/service.rb b/generated/google/apis/poly_v1/service.rb index 2a41240d0..35563a855 100644 --- a/generated/google/apis/poly_v1/service.rb +++ b/generated/google/apis/poly_v1/service.rb @@ -22,8 +22,9 @@ module Google module PolyV1 # Poly API # - # The Poly API provides read-only access to assets hosted on poly.google.com. + # The Poly API provides read access to assets hosted on poly.google.com to all, and upload access to poly.google.com for whitelisted accounts. # # @example # require 'google/apis/poly_v1' diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index d1f5b8087..95a8a6df2 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20180702' + REVISION = '20180806' # 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/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index a124098f3..ec528d5e5 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -46,6 +46,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::PubsubV1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -76,6 +84,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -137,6 +146,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # Response for the `ListSnapshots` method.

# ALPHA: This feature is part of an alpha release. This API might be # changed in backward-incompatible ways and is not recommended for production @@ -443,8 +499,8 @@ module Google end end - # A message data and its attributes. The message payload must not be empty; - # it must contain either a non-empty data field, or at least one attribute. + # A message that is published by publishers and consumed by subscribers. The + # message must contain either a non-empty data field or at least one attribute. class Message include Google::Apis::Core::Hashable @@ -453,7 +509,8 @@ module Google # @return [Hash] attr_accessor :attributes - # The message payload. + # The message data field. If this field is empty, the message must contain + # at least one attribute. # Corresponds to the JSON property `data` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -500,9 +557,7 @@ module Google # If this field set to true, the system will respond immediately even if # it there are no messages available to return in the `Pull` response. # Otherwise, the system may wait (for a bounded amount of time) until at - # least one message is available, rather than returning no messages. The - # client may cancel the request if it does not wish to wait any longer for - # the response. + # least one message is available, rather than returning no messages. # Corresponds to the JSON property `returnImmediately` # @return [Boolean] attr_accessor :return_immediately @@ -591,8 +646,8 @@ module Google # @return [String] attr_accessor :ack_id - # A message data and its attributes. The message payload must not be empty; - # it must contain either a non-empty data field, or at least one attribute. + # A message that is published by publishers and consumed by subscribers. The + # message must contain either a non-empty data field or at least one attribute. # Corresponds to the JSON property `message` # @return [Google::Apis::PubsubV1::Message] attr_accessor :message diff --git a/generated/google/apis/pubsub_v1/representations.rb b/generated/google/apis/pubsub_v1/representations.rb index 71108f278..ba8b0b05b 100644 --- a/generated/google/apis/pubsub_v1/representations.rb +++ b/generated/google/apis/pubsub_v1/representations.rb @@ -46,6 +46,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListSnapshotsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -212,6 +218,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::PubsubV1::Expr, decorator: Google::Apis::PubsubV1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -231,6 +239,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class ListSnapshotsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index a7166a0e0..54bbd92d2 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -209,8 +209,8 @@ module Google # changed in backward-incompatible ways and is not recommended for production # use. It is not subject to any SLA or deprecation policy. # @param [String] project - # The name of the cloud project that snapshots belong to. - # Format is `projects/`project``. + # The name of the project in which to list snapshots. + # Format is `projects/`project-id``. # @param [Fixnum] page_size # Maximum number of snapshots to return. # @param [String] page_token @@ -544,8 +544,8 @@ module Google # Lists matching subscriptions. # @param [String] project - # The name of the cloud project that subscriptions belong to. - # Format is `projects/`project``. + # The name of the project in which to list subscriptions. + # Format is `projects/`project-id``. # @param [Fixnum] page_size # Maximum number of subscriptions to return. # @param [String] page_token @@ -983,8 +983,8 @@ module Google # Lists matching topics. # @param [String] project - # The name of the cloud project that topics belong to. - # Format is `projects/`project``. + # The name of the project in which to list topics. + # Format is `projects/`project-id``. # @param [Fixnum] page_size # Maximum number of topics to return. # @param [String] page_token @@ -1060,8 +1060,7 @@ module Google end # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic - # does not exist. The message payload must not be empty; it must contain - # either a non-empty data field, or at least one attribute. + # does not exist. # @param [String] topic # The messages in the request will be published on this topic. # Format is `projects/`project`/topics/`topic``. diff --git a/generated/google/apis/pubsub_v1beta2.rb b/generated/google/apis/pubsub_v1beta2.rb index 564cf69c1..fbed99c5a 100644 --- a/generated/google/apis/pubsub_v1beta2.rb +++ b/generated/google/apis/pubsub_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1beta2 VERSION = 'V1beta2' - REVISION = '20180702' + REVISION = '20180723' # 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/pubsub_v1beta2/classes.rb b/generated/google/apis/pubsub_v1beta2/classes.rb index c96b64984..d209cc466 100644 --- a/generated/google/apis/pubsub_v1beta2/classes.rb +++ b/generated/google/apis/pubsub_v1beta2/classes.rb @@ -46,6 +46,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::PubsubV1beta2::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -76,6 +84,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -100,6 +109,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # Response for the `ListSubscriptions` method. class ListSubscriptionsResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/pubsub_v1beta2/representations.rb b/generated/google/apis/pubsub_v1beta2/representations.rb index 40f6e2f90..cc26d52b1 100644 --- a/generated/google/apis/pubsub_v1beta2/representations.rb +++ b/generated/google/apis/pubsub_v1beta2/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListSubscriptionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -158,6 +164,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::PubsubV1beta2::Expr, decorator: Google::Apis::PubsubV1beta2::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -169,6 +177,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class ListSubscriptionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/redis_v1beta1.rb b/generated/google/apis/redis_v1beta1.rb index 0b0aeaf4d..fd5032414 100644 --- a/generated/google/apis/redis_v1beta1.rb +++ b/generated/google/apis/redis_v1beta1.rb @@ -18,7 +18,7 @@ require 'google/apis/redis_v1beta1/representations.rb' module Google module Apis - # Cloud Memorystore for Redis API + # Google Cloud Memorystore for Redis API # # The Google Cloud Memorystore for Redis API is used for creating and managing # Redis instances on the Google Cloud Platform. @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1beta1 VERSION = 'V1beta1' - REVISION = '20180620' + REVISION = '20180816' # 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/redis_v1beta1/classes.rb b/generated/google/apis/redis_v1beta1/classes.rb index d3d9ee114..5a4734c59 100644 --- a/generated/google/apis/redis_v1beta1/classes.rb +++ b/generated/google/apis/redis_v1beta1/classes.rb @@ -22,6 +22,25 @@ module Google module Apis module RedisV1beta1 + # 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.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Represents the metadata of the long-running operation. class GoogleCloudCommonOperationMetadata include Google::Apis::Core::Hashable @@ -367,19 +386,21 @@ module Google # @return [Hash] attr_accessor :labels - # The canonical id for this location. For example: `"us-east1"`. + # Resource ID for the region. For example: "us-east1". # Corresponds to the JSON property `locationId` # @return [String] attr_accessor :location_id - # Service-specific metadata. For example the available capacity at the given - # location. + # Output only. The set of available zones in the location. The map is keyed by + # the lowercase ID of each zone, as defined by Compute Engine. These keys can be + # specified in `location_id` or `alternative_location_id` fields when creating a + # Redis instance. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Full resource name for the region. For example: "projects/example-project/ + # locations/us-east1". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -398,31 +419,6 @@ module Google end end - # This location metadata represents additional configuration options for a - # given location where a Redis instance may be created. All fields are output - # only. It is returned as content of the - # `google.cloud.location.Location.metadata` field. - class LocationMetadata - include Google::Apis::Core::Hashable - - # Output only. The set of available zones in the location. The map is keyed - # by the lowercase ID of each zone, as defined by GCE. These keys can be - # specified in `location_id` or `alternative_location_id` fields when - # creating a Redis instance. - # Corresponds to the JSON property `availableZones` - # @return [Hash] - attr_accessor :available_zones - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @available_zones = args[:available_zones] if args.key?(:available_zones) - end - end - # This resource represents a long-running operation that is the result of a # network API call. class Operation @@ -479,10 +475,18 @@ module Google # @return [Google::Apis::RedisV1beta1::Status] attr_accessor :error - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. + # ` + # `createTime`: The time the operation was created. + # `endTime`: The time the operation finished running. + # `target`: Server-defined resource path for the target of the operation. + # `verb`: Name of the verb executed by the operation. + # `statusDetail`: Human-readable status of the operation, if any. + # `cancelRequested`: Identifies whether the user has requested cancellation of + # the operation. Operations that have successfully been cancelled have Operation. + # error value with a google.rpc.Status.code of 1, corresponding to `Code. + # CANCELLED`. + # `apiVersion`: API version used to start the operation. + # ` # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata @@ -520,77 +524,6 @@ module Google end end - # This operation metadata represents the state of operations that may have - # happened or are happening on the instance. All fields are output only. It is - # returned as content of the `google.longrunning.Operation.metadata` field. The - # `google.longrunning.Operation.name` field will be of the form - # `projects/`project_id`/locations/`location_id`/operations/`operation_id`` and - # the name for a `ListOperations` request will be of the form - # `projects/`project_id`/locations/`location_id`` - # On a ListOperations request where `location_id` is "-", all regions - # available to the `project_id` are queried and the results aggregated. If a - # location is not available, a dummy `google.longrunning.Operation` entry will - # be included in the `operations` field of the response, with the `name` field - # set to a value of the form - # `projects/`project_id`/locations/`location_id`/operations/-` and the `done` - # field will be set and the `result.error` field set with the `code` field set - # to `google.rpc.Code.DEADLINE_EXCEEDED` and the `message` field set to - # `location unavailable for ListOperations`. The Operation metadata` field - # will not be set for such a dummy operation. - class OperationMetadata - include Google::Apis::Core::Hashable - - # Output only. The time the operation was created. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Output only. Detailed operation progress, if available. - # Corresponds to the JSON property `detail` - # @return [String] - attr_accessor :detail - - # Output only. The time the operation was completed. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # Output only. The operation type. - # Corresponds to the JSON property `operationType` - # @return [String] - attr_accessor :operation_type - - # Output only. The time the operation was started. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Output only. The current state of the operation. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Output only. Server-defined resource path for the target of the operation. - # Corresponds to the JSON property `target` - # @return [String] - attr_accessor :target - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @create_time = args[:create_time] if args.key?(:create_time) - @detail = args[:detail] if args.key?(:detail) - @end_time = args[:end_time] if args.key?(:end_time) - @operation_type = args[:operation_type] if args.key?(:operation_type) - @start_time = args[:start_time] if args.key?(:start_time) - @state = args[:state] if args.key?(:state) - @target = args[:target] if args.key?(:target) - 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). The error model is designed to be: @@ -662,20 +595,6 @@ module Google @message = args[:message] if args.key?(:message) end end - - # Defines specific information for a particular zone. Currently empty and - # reserved for future use only. - class ZoneMetadata - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end end end end diff --git a/generated/google/apis/redis_v1beta1/representations.rb b/generated/google/apis/redis_v1beta1/representations.rb index cd4c64cc8..ef245077b 100644 --- a/generated/google/apis/redis_v1beta1/representations.rb +++ b/generated/google/apis/redis_v1beta1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module RedisV1beta1 + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudCommonOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -70,34 +76,22 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class LocationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class OperationMetadata - 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 ZoneMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end end class GoogleCloudCommonOperationMetadata @@ -188,14 +182,6 @@ module Google end end - class LocationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :available_zones, as: 'availableZones', class: Google::Apis::RedisV1beta1::ZoneMetadata, decorator: Google::Apis::RedisV1beta1::ZoneMetadata::Representation - - end - end - class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -208,19 +194,6 @@ module Google end end - class OperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :detail, as: 'detail' - property :end_time, as: 'endTime' - property :operation_type, as: 'operationType' - property :start_time, as: 'startTime' - property :state, as: 'state' - property :target, as: 'target' - end - end - class Status # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -229,12 +202,6 @@ module Google property :message, as: 'message' end end - - class ZoneMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end end end end diff --git a/generated/google/apis/redis_v1beta1/service.rb b/generated/google/apis/redis_v1beta1/service.rb index 20800993a..47b09b69d 100644 --- a/generated/google/apis/redis_v1beta1/service.rb +++ b/generated/google/apis/redis_v1beta1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module RedisV1beta1 - # Cloud Memorystore for Redis API + # Google Cloud Memorystore for Redis API # # The Google Cloud Memorystore for Redis API is used for creating and managing # Redis instances on the Google Cloud Platform. @@ -335,6 +335,78 @@ module Google execute_or_queue_command(command, &block) end + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an Operation.error value with a google.rpc.Status.code of 1, + # corresponding to `Code.CANCELLED`. + # @param [String] name + # The name of the operation resource to be cancelled. + # @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::RedisV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RedisV1beta1::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 cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::RedisV1beta1::Empty::Representation + command.response_class = Google::Apis::RedisV1beta1::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 a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @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::RedisV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RedisV1beta1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::RedisV1beta1::Empty::Representation + command.response_class = Google::Apis::RedisV1beta1::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 latest state of a long-running operation. Clients can use this # method to poll the operation result at intervals as recommended by the API # service. diff --git a/generated/google/apis/replicapool_v1beta1.rb b/generated/google/apis/replicapool_v1beta1.rb index e95e8f82a..8d3b72181 100644 --- a/generated/google/apis/replicapool_v1beta1.rb +++ b/generated/google/apis/replicapool_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/compute/docs/replica-pool/ module ReplicapoolV1beta1 VERSION = 'V1beta1' - REVISION = '' + REVISION = '20160512' # 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/replicapoolupdater_v1beta1.rb b/generated/google/apis/replicapoolupdater_v1beta1.rb index 4d2e0b86b..c7c471641 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service module ReplicapoolupdaterV1beta1 VERSION = 'V1beta1' - REVISION = '' + REVISION = '20161003' # 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/reseller_v1.rb b/generated/google/apis/reseller_v1.rb index 1bd610389..cca9ed26c 100644 --- a/generated/google/apis/reseller_v1.rb +++ b/generated/google/apis/reseller_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/reseller/ module ResellerV1 VERSION = 'V1' - REVISION = '' + REVISION = '20170228' # Manage users on your domain AUTH_APPS_ORDER = 'https://www.googleapis.com/auth/apps.order' diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index 316114fe7..1311758e2 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20180710' + REVISION = '20180806' # 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/runtimeconfig_v1beta1/classes.rb b/generated/google/apis/runtimeconfig_v1beta1/classes.rb index 893b541be..f5b5798d3 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/classes.rb @@ -26,6 +26,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::RuntimeconfigV1beta1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -56,6 +64,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -147,6 +156,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # `ListConfigs()` returns the following response. The order of returned # objects is arbitrary; that is, it is not ordered in any particular way. class ListConfigsResponse @@ -684,7 +740,7 @@ module Google # A Waiter resource waits for some end condition within a RuntimeConfig resource # to be met before it returns. For example, assume you have a distributed - # system where each node writes to a Variable resource indidicating the node's + # system where each node writes to a Variable resource indicating the node's # readiness as part of the startup process. # You then configure a Waiter resource with the success condition set to wait # until some number of nodes have checked in. Afterwards, your application diff --git a/generated/google/apis/runtimeconfig_v1beta1/representations.rb b/generated/google/apis/runtimeconfig_v1beta1/representations.rb index 7cfba2fde..1e2c3c29d 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/representations.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/representations.rb @@ -46,6 +46,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListConfigsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -127,6 +133,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::RuntimeconfigV1beta1::Expr, decorator: Google::Apis::RuntimeconfigV1beta1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -154,6 +162,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class ListConfigsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/script_v1.rb b/generated/google/apis/script_v1.rb index 5daf288a9..8714fcf26 100644 --- a/generated/google/apis/script_v1.rb +++ b/generated/google/apis/script_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/apps-script/api/ module ScriptV1 VERSION = 'V1' - REVISION = '20180707' + REVISION = '20180807' # Read, send, delete, and manage your email AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/script_v1/classes.rb b/generated/google/apis/script_v1/classes.rb index 20c3ea4ab..69a8485a8 100644 --- a/generated/google/apis/script_v1/classes.rb +++ b/generated/google/apis/script_v1/classes.rb @@ -96,16 +96,6 @@ module Google # @return [Array] attr_accessor :entry_points - # A set of functions. No duplicates are permitted. - # Corresponds to the JSON property `functionSet` - # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet] - attr_accessor :function_set - - # A set of scopes. No duplicates are permitted. - # Corresponds to the JSON property `scopeSet` - # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeScopeSet] - attr_accessor :scope_set - # Last modified date time stamp. # Corresponds to the JSON property `updateTime` # @return [String] @@ -120,8 +110,6 @@ module Google @deployment_config = args[:deployment_config] if args.key?(:deployment_config) @deployment_id = args[:deployment_id] if args.key?(:deployment_id) @entry_points = args[:entry_points] if args.key?(:entry_points) - @function_set = args[:function_set] if args.key?(:function_set) - @scope_set = args[:scope_set] if args.key?(:scope_set) @update_time = args[:update_time] if args.key?(:update_time) end end @@ -534,7 +522,7 @@ module Google # Representation of a single script process execution that was started from # the script editor, a trigger, an application, or using the Apps Script API. # This is distinct from the `Operation` - # resource, which only represents exeuctions started via the Apps Script API. + # resource, which only represents executions started via the Apps Script API. class GoogleAppsScriptTypeProcess include Google::Apis::Core::Hashable @@ -595,50 +583,6 @@ module Google end end - # Represents an authorization scope. - class GoogleAppsScriptTypeScope - include Google::Apis::Core::Hashable - - # Who authorized the scope. - # Corresponds to the JSON property `authorizer` - # @return [String] - attr_accessor :authorizer - - # The scope's identifying string. - # 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) - @authorizer = args[:authorizer] if args.key?(:authorizer) - @name = args[:name] if args.key?(:name) - end - end - - # A set of scopes. No duplicates are permitted. - class GoogleAppsScriptTypeScopeSet - include Google::Apis::Core::Hashable - - # List of scope values in the set. - # 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) - @values = args[:values] if args.key?(:values) - end - end - # A simple user profile resource. class GoogleAppsScriptTypeUser include Google::Apis::Core::Hashable diff --git a/generated/google/apis/script_v1/representations.rb b/generated/google/apis/script_v1/representations.rb index d04d8b5f9..6ffd9a980 100644 --- a/generated/google/apis/script_v1/representations.rb +++ b/generated/google/apis/script_v1/representations.rb @@ -118,18 +118,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleAppsScriptTypeScope - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleAppsScriptTypeScopeSet - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleAppsScriptTypeUser class Representation < Google::Apis::Core::JsonRepresentation; end @@ -245,10 +233,6 @@ module Google property :deployment_id, as: 'deploymentId' collection :entry_points, as: 'entryPoints', class: Google::Apis::ScriptV1::EntryPoint, decorator: Google::Apis::ScriptV1::EntryPoint::Representation - property :function_set, as: 'functionSet', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet::Representation - - property :scope_set, as: 'scopeSet', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeScopeSet, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeScopeSet::Representation - property :update_time, as: 'updateTime' end end @@ -380,22 +364,6 @@ module Google end end - class GoogleAppsScriptTypeScope - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :authorizer, as: 'authorizer' - property :name, as: 'name' - end - end - - class GoogleAppsScriptTypeScopeSet - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :values, as: 'values', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeScope, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeScope::Representation - - end - end - class GoogleAppsScriptTypeUser # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/servicebroker_v1.rb b/generated/google/apis/servicebroker_v1.rb index 8ece5ee9f..53d2682ec 100644 --- a/generated/google/apis/servicebroker_v1.rb +++ b/generated/google/apis/servicebroker_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1 VERSION = 'V1' - REVISION = '20180605' + REVISION = '20180713' # 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/servicebroker_v1/classes.rb b/generated/google/apis/servicebroker_v1/classes.rb index a76c5834b..c13c6b2dd 100644 --- a/generated/google/apis/servicebroker_v1/classes.rb +++ b/generated/google/apis/servicebroker_v1/classes.rb @@ -26,6 +26,14 @@ module Google class GoogleIamV1Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::ServicebrokerV1::GoogleTypeExpr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -46,7 +54,6 @@ module Google # Role that is assigned to `members`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -57,6 +64,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -235,6 +243,53 @@ module Google @permissions = args[:permissions] if args.key?(:permissions) end end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class GoogleTypeExpr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end end end end diff --git a/generated/google/apis/servicebroker_v1/representations.rb b/generated/google/apis/servicebroker_v1/representations.rb index 997136a3f..6d47e6825 100644 --- a/generated/google/apis/servicebroker_v1/representations.rb +++ b/generated/google/apis/servicebroker_v1/representations.rb @@ -52,9 +52,17 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleTypeExpr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleIamV1Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::ServicebrokerV1::GoogleTypeExpr, decorator: Google::Apis::ServicebrokerV1::GoogleTypeExpr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -91,6 +99,16 @@ module Google collection :permissions, as: 'permissions' end end + + class GoogleTypeExpr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end end end end diff --git a/generated/google/apis/servicebroker_v1alpha1.rb b/generated/google/apis/servicebroker_v1alpha1.rb index b913f2ced..ba6e272df 100644 --- a/generated/google/apis/servicebroker_v1alpha1.rb +++ b/generated/google/apis/servicebroker_v1alpha1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1alpha1 VERSION = 'V1alpha1' - REVISION = '20180605' + REVISION = '20180713' # 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/servicebroker_v1alpha1/classes.rb b/generated/google/apis/servicebroker_v1alpha1/classes.rb index 880cd77a1..db2769ec5 100644 --- a/generated/google/apis/servicebroker_v1alpha1/classes.rb +++ b/generated/google/apis/servicebroker_v1alpha1/classes.rb @@ -733,6 +733,14 @@ module Google class GoogleIamV1Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::ServicebrokerV1alpha1::GoogleTypeExpr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -753,7 +761,6 @@ module Google # Role that is assigned to `members`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -764,6 +771,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -942,6 +950,53 @@ module Google @permissions = args[:permissions] if args.key?(:permissions) end end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class GoogleTypeExpr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end end end end diff --git a/generated/google/apis/servicebroker_v1alpha1/representations.rb b/generated/google/apis/servicebroker_v1alpha1/representations.rb index 1343a2487..8d969e22e 100644 --- a/generated/google/apis/servicebroker_v1alpha1/representations.rb +++ b/generated/google/apis/servicebroker_v1alpha1/representations.rb @@ -142,6 +142,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleTypeExpr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudServicebrokerV1alpha1Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -308,6 +314,8 @@ module Google class GoogleIamV1Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::ServicebrokerV1alpha1::GoogleTypeExpr, decorator: Google::Apis::ServicebrokerV1alpha1::GoogleTypeExpr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -344,6 +352,16 @@ module Google collection :permissions, as: 'permissions' end end + + class GoogleTypeExpr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end end end end diff --git a/generated/google/apis/servicebroker_v1beta1.rb b/generated/google/apis/servicebroker_v1beta1.rb index 166b7d4c3..59e13754b 100644 --- a/generated/google/apis/servicebroker_v1beta1.rb +++ b/generated/google/apis/servicebroker_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1beta1 VERSION = 'V1beta1' - REVISION = '20180605' + REVISION = '20180713' # 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/servicebroker_v1beta1/classes.rb b/generated/google/apis/servicebroker_v1beta1/classes.rb index 1eb6c4856..ade1f2c6d 100644 --- a/generated/google/apis/servicebroker_v1beta1/classes.rb +++ b/generated/google/apis/servicebroker_v1beta1/classes.rb @@ -854,6 +854,14 @@ module Google class GoogleIamV1Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::ServicebrokerV1beta1::GoogleTypeExpr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -874,7 +882,6 @@ module Google # Role that is assigned to `members`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -885,6 +892,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -1082,6 +1090,53 @@ module Google def update!(**args) end end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class GoogleTypeExpr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end end end end diff --git a/generated/google/apis/servicebroker_v1beta1/representations.rb b/generated/google/apis/servicebroker_v1beta1/representations.rb index a1bbeb9c0..fcb3d2d54 100644 --- a/generated/google/apis/servicebroker_v1beta1/representations.rb +++ b/generated/google/apis/servicebroker_v1beta1/representations.rb @@ -160,6 +160,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleTypeExpr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudServicebrokerV1beta1Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -351,6 +357,8 @@ module Google class GoogleIamV1Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::ServicebrokerV1beta1::GoogleTypeExpr, decorator: Google::Apis::ServicebrokerV1beta1::GoogleTypeExpr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -393,6 +401,16 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation end end + + class GoogleTypeExpr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end end end end diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index c3029de46..82b483d22 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20180621' + REVISION = '20180820' # 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/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index fdc9f21fc..dcc93a64a 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -1494,6 +1494,13 @@ module Google # @return [String] attr_accessor :put + # Optional. The name of the response field whose value is mapped to the HTTP + # body of response. Other response fields are ignored. When + # not set, the response message will be used as HTTP body of response. + # Corresponds to the JSON property `responseBody` + # @return [String] + attr_accessor :response_body + # DO NOT USE. This is an experimental field. # Optional. The REST collection name is by default derived from the URL # pattern. If specified, this field overrides the default collection name. @@ -1555,6 +1562,7 @@ module Google @patch = args[:patch] if args.key?(:patch) @post = args[:post] if args.key?(:post) @put = args[:put] if args.key?(:put) + @response_body = args[:response_body] if args.key?(:response_body) @rest_collection = args[:rest_collection] if args.key?(:rest_collection) @rest_method_name = args[:rest_method_name] if args.key?(:rest_method_name) @selector = args[:selector] if args.key?(:selector) @@ -2014,10 +2022,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined custom metric types have the DNS name - # `custom.googleapis.com`. Metric types should use a natural hierarchical - # grouping. For example: + # URL-encoded. All user-defined metric types have the DNS name + # `custom.googleapis.com` or `external.googleapis.com`. Metric types should + # use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" + # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" # Corresponds to the JSON property `type` # @return [String] @@ -3100,7 +3109,7 @@ module Google # A unique ID for a specific instance of this message, typically assigned # by the client for tracking purpose. If empty, the server may choose to - # generate one instead. + # generate one instead. Must be no longer than 60 characters. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id diff --git a/generated/google/apis/serviceconsumermanagement_v1/representations.rb b/generated/google/apis/serviceconsumermanagement_v1/representations.rb index 86ce2dbe1..9646e8fea 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/representations.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/representations.rb @@ -751,6 +751,7 @@ module Google property :patch, as: 'patch' property :post, as: 'post' property :put, as: 'put' + property :response_body, as: 'responseBody' property :rest_collection, as: 'restCollection' property :rest_method_name, as: 'restMethodName' property :selector, as: 'selector' diff --git a/generated/google/apis/servicecontrol_v1.rb b/generated/google/apis/servicecontrol_v1.rb index c08f4d0d6..5bcc8fd84 100644 --- a/generated/google/apis/servicecontrol_v1.rb +++ b/generated/google/apis/servicecontrol_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-control/ module ServicecontrolV1 VERSION = 'V1' - REVISION = '20180707' + REVISION = '20180815' # 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/servicecontrol_v1/classes.rb b/generated/google/apis/servicecontrol_v1/classes.rb index 736d4586d..81f6d20bc 100644 --- a/generated/google/apis/servicecontrol_v1/classes.rb +++ b/generated/google/apis/servicecontrol_v1/classes.rb @@ -846,6 +846,131 @@ module Google end end + # A common proto for logging HTTP requests. Only contains semantics + # defined by the HTTP specification. Product-specific logging + # information MUST be defined in a separate message. + # This is an exact copy of HttpRequest message defined in Stackdriver. + class HttpRequest + include Google::Apis::Core::Hashable + + # The number of HTTP response bytes inserted into cache. Set only when a + # cache fill was attempted. + # Corresponds to the JSON property `cacheFillBytes` + # @return [Fixnum] + attr_accessor :cache_fill_bytes + + # Whether or not an entity was served from cache + # (with or without validation). + # Corresponds to the JSON property `cacheHit` + # @return [Boolean] + attr_accessor :cache_hit + alias_method :cache_hit?, :cache_hit + + # Whether or not a cache lookup was attempted. + # Corresponds to the JSON property `cacheLookup` + # @return [Boolean] + attr_accessor :cache_lookup + alias_method :cache_lookup?, :cache_lookup + + # Whether or not the response was validated with the origin server before + # being served from cache. This field is only meaningful if `cache_hit` is + # True. + # Corresponds to the JSON property `cacheValidatedWithOriginServer` + # @return [Boolean] + attr_accessor :cache_validated_with_origin_server + alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server + + # The request processing latency on the server, from the time the request was + # received until the response was sent. + # Corresponds to the JSON property `latency` + # @return [String] + attr_accessor :latency + + # Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" + # Corresponds to the JSON property `protocol` + # @return [String] + attr_accessor :protocol + + # The referer URL of the request, as defined in + # [HTTP/1.1 Header Field + # Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). + # Corresponds to the JSON property `referer` + # @return [String] + attr_accessor :referer + + # The IP address (IPv4 or IPv6) of the client that issued the HTTP + # request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. + # Corresponds to the JSON property `remoteIp` + # @return [String] + attr_accessor :remote_ip + + # The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + # Corresponds to the JSON property `requestMethod` + # @return [String] + attr_accessor :request_method + + # The size of the HTTP request message in bytes, including the request + # headers and the request body. + # Corresponds to the JSON property `requestSize` + # @return [Fixnum] + attr_accessor :request_size + + # The scheme (http, https), the host name, the path and the query + # portion of the URL that was requested. + # Example: `"http://example.com/some/info?color=red"`. + # Corresponds to the JSON property `requestUrl` + # @return [String] + attr_accessor :request_url + + # The size of the HTTP response message sent back to the client, in bytes, + # including the response headers and the response body. + # Corresponds to the JSON property `responseSize` + # @return [Fixnum] + attr_accessor :response_size + + # The IP address (IPv4 or IPv6) of the origin server that the request was + # sent to. + # Corresponds to the JSON property `serverIp` + # @return [String] + attr_accessor :server_ip + + # The response code indicating the status of response. + # Examples: 200, 404. + # Corresponds to the JSON property `status` + # @return [Fixnum] + attr_accessor :status + + # The user agent sent by the client. Example: + # `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + # CLR 1.0.3705)"`. + # Corresponds to the JSON property `userAgent` + # @return [String] + attr_accessor :user_agent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes) + @cache_hit = args[:cache_hit] if args.key?(:cache_hit) + @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup) + @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server) + @latency = args[:latency] if args.key?(:latency) + @protocol = args[:protocol] if args.key?(:protocol) + @referer = args[:referer] if args.key?(:referer) + @remote_ip = args[:remote_ip] if args.key?(:remote_ip) + @request_method = args[:request_method] if args.key?(:request_method) + @request_size = args[:request_size] if args.key?(:request_size) + @request_url = args[:request_url] if args.key?(:request_url) + @response_size = args[:response_size] if args.key?(:response_size) + @server_ip = args[:server_ip] if args.key?(:server_ip) + @status = args[:status] if args.key?(:status) + @user_agent = args[:user_agent] if args.key?(:user_agent) + end + end + # Describing buckets with constant width. class LinearBuckets include Google::Apis::Core::Hashable @@ -888,6 +1013,14 @@ module Google class LogEntry include Google::Apis::Core::Hashable + # A common proto for logging HTTP requests. Only contains semantics + # defined by the HTTP specification. Product-specific logging + # information MUST be defined in a separate message. + # This is an exact copy of HttpRequest message defined in Stackdriver. + # Corresponds to the JSON property `httpRequest` + # @return [Google::Apis::ServicecontrolV1::HttpRequest] + attr_accessor :http_request + # A unique ID for the log entry used for deduplication. If omitted, # the implementation will generate one based on operation_id. # Corresponds to the JSON property `insertId` @@ -906,6 +1039,12 @@ module Google # @return [String] attr_accessor :name + # Additional information about a potentially long-running operation with which + # a log entry is associated. + # Corresponds to the JSON property `operation` + # @return [Google::Apis::ServicecontrolV1::LogEntryOperation] + attr_accessor :operation + # The log entry payload, represented as a protocol buffer that is # expressed as a JSON object. The only accepted type currently is # AuditLog. @@ -936,20 +1075,74 @@ module Google # @return [String] attr_accessor :timestamp + # Optional. Resource name of the trace associated with the log entry, if any. + # If it contains a relative resource name, the name is assumed to be relative + # to `//tracing.googleapis.com`. Example: + # `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824` + # Corresponds to the JSON property `trace` + # @return [String] + attr_accessor :trace + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @http_request = args[:http_request] if args.key?(:http_request) @insert_id = args[:insert_id] if args.key?(:insert_id) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) + @operation = args[:operation] if args.key?(:operation) @proto_payload = args[:proto_payload] if args.key?(:proto_payload) @severity = args[:severity] if args.key?(:severity) @struct_payload = args[:struct_payload] if args.key?(:struct_payload) @text_payload = args[:text_payload] if args.key?(:text_payload) @timestamp = args[:timestamp] if args.key?(:timestamp) + @trace = args[:trace] if args.key?(:trace) + end + end + + # Additional information about a potentially long-running operation with which + # a log entry is associated. + class LogEntryOperation + include Google::Apis::Core::Hashable + + # Optional. Set this to True if this is the first log entry in the operation. + # Corresponds to the JSON property `first` + # @return [Boolean] + attr_accessor :first + alias_method :first?, :first + + # Optional. An arbitrary operation identifier. Log entries with the + # same identifier are assumed to be part of the same operation. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Optional. Set this to True if this is the last log entry in the operation. + # Corresponds to the JSON property `last` + # @return [Boolean] + attr_accessor :last + alias_method :last?, :last + + # Optional. An arbitrary producer identifier. The combination of + # `id` and `producer` must be globally unique. Examples for `producer`: + # `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. + # Corresponds to the JSON property `producer` + # @return [String] + attr_accessor :producer + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @first = args[:first] if args.key?(:first) + @id = args[:id] if args.key?(:id) + @last = args[:last] if args.key?(:last) + @producer = args[:producer] if args.key?(:producer) end end @@ -1234,6 +1427,63 @@ module Google end end + # This message defines attributes for a node that handles a network request. + # The node can be either a service or an application that sends, forwards, + # or receives the request. Service peers should fill in the `service`, + # `principal`, and `labels` as appropriate. + class Peer + include Google::Apis::Core::Hashable + + # The IP address of the peer. + # Corresponds to the JSON property `ip` + # @return [String] + attr_accessor :ip + + # The labels associated with the peer. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The network port of the peer. + # Corresponds to the JSON property `port` + # @return [Fixnum] + attr_accessor :port + + # The identity of this peer. Similar to `Request.auth.principal`, but + # relative to the peer instead of the request. For example, the + # idenity associated with a load balancer that forwared the request. + # Corresponds to the JSON property `principal` + # @return [String] + attr_accessor :principal + + # The CLDR country/region code associated with the above IP address. + # If the IP address is private, the `region_code` should reflect the + # physical location where this peer is running. + # Corresponds to the JSON property `regionCode` + # @return [String] + attr_accessor :region_code + + # The canonical service name of the peer. + # NOTE: different systems may have different service naming schemes. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip = args[:ip] if args.key?(:ip) + @labels = args[:labels] if args.key?(:labels) + @port = args[:port] if args.key?(:port) + @principal = args[:principal] if args.key?(:principal) + @region_code = args[:region_code] if args.key?(:region_code) + @service = args[:service] if args.key?(:service) + end + end + # Represents error information for QuotaOperation. class QuotaError include Google::Apis::Core::Hashable @@ -1806,6 +2056,14 @@ module Google # @return [String] attr_accessor :caller_supplied_user_agent + # This message defines attributes for a node that handles a network request. + # The node can be either a service or an application that sends, forwards, + # or receives the request. Service peers should fill in the `service`, + # `principal`, and `labels` as appropriate. + # Corresponds to the JSON property `destinationAttributes` + # @return [Google::Apis::ServicecontrolV1::Peer] + attr_accessor :destination_attributes + # This message defines attributes for an HTTP request. If the actual # request is not an HTTP request, the runtime system should try to map # the actual request to an equivalent HTTP request. @@ -1822,6 +2080,7 @@ module Google @caller_ip = args[:caller_ip] if args.key?(:caller_ip) @caller_network = args[:caller_network] if args.key?(:caller_network) @caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent) + @destination_attributes = args[:destination_attributes] if args.key?(:destination_attributes) @request_attributes = args[:request_attributes] if args.key?(:request_attributes) end end diff --git a/generated/google/apis/servicecontrol_v1/representations.rb b/generated/google/apis/servicecontrol_v1/representations.rb index be4704606..1be025e64 100644 --- a/generated/google/apis/servicecontrol_v1/representations.rb +++ b/generated/google/apis/servicecontrol_v1/representations.rb @@ -124,6 +124,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HttpRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LinearBuckets class Representation < Google::Apis::Core::JsonRepresentation; end @@ -136,6 +142,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LogEntryOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MetricValue class Representation < Google::Apis::Core::JsonRepresentation; end @@ -160,6 +172,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Peer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class QuotaError class Representation < Google::Apis::Core::JsonRepresentation; end @@ -458,6 +476,27 @@ module Google end end + class HttpRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes' + property :cache_hit, as: 'cacheHit' + property :cache_lookup, as: 'cacheLookup' + property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer' + property :latency, as: 'latency' + property :protocol, as: 'protocol' + property :referer, as: 'referer' + property :remote_ip, as: 'remoteIp' + property :request_method, as: 'requestMethod' + property :request_size, :numeric_string => true, as: 'requestSize' + property :request_url, as: 'requestUrl' + property :response_size, :numeric_string => true, as: 'responseSize' + property :server_ip, as: 'serverIp' + property :status, as: 'status' + property :user_agent, as: 'userAgent' + end + end + class LinearBuckets # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -470,14 +509,29 @@ module Google class LogEntry # @private class Representation < Google::Apis::Core::JsonRepresentation + property :http_request, as: 'httpRequest', class: Google::Apis::ServicecontrolV1::HttpRequest, decorator: Google::Apis::ServicecontrolV1::HttpRequest::Representation + property :insert_id, as: 'insertId' hash :labels, as: 'labels' property :name, as: 'name' + property :operation, as: 'operation', class: Google::Apis::ServicecontrolV1::LogEntryOperation, decorator: Google::Apis::ServicecontrolV1::LogEntryOperation::Representation + hash :proto_payload, as: 'protoPayload' property :severity, as: 'severity' hash :struct_payload, as: 'structPayload' property :text_payload, as: 'textPayload' property :timestamp, as: 'timestamp' + property :trace, as: 'trace' + end + end + + class LogEntryOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :first, as: 'first' + property :id, as: 'id' + property :last, as: 'last' + property :producer, as: 'producer' end end @@ -539,6 +593,18 @@ module Google end end + class Peer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip, as: 'ip' + hash :labels, as: 'labels' + property :port, :numeric_string => true, as: 'port' + property :principal, as: 'principal' + property :region_code, as: 'regionCode' + property :service, as: 'service' + end + end + class QuotaError # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -663,6 +729,8 @@ module Google property :caller_ip, as: 'callerIp' property :caller_network, as: 'callerNetwork' property :caller_supplied_user_agent, as: 'callerSuppliedUserAgent' + property :destination_attributes, as: 'destinationAttributes', class: Google::Apis::ServicecontrolV1::Peer, decorator: Google::Apis::ServicecontrolV1::Peer::Representation + property :request_attributes, as: 'requestAttributes', class: Google::Apis::ServicecontrolV1::Request, decorator: Google::Apis::ServicecontrolV1::Request::Representation end diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index 277187572..933049eb6 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20180622' + REVISION = '20180813' # 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/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index db550efa3..fd85d6729 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -609,6 +609,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::ServicemanagementV1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -629,7 +637,6 @@ module Google # Role that is assigned to `members`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -640,6 +647,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -1419,6 +1427,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # A single field of a message type. class Field include Google::Apis::Core::Hashable @@ -1858,6 +1913,13 @@ module Google # @return [String] attr_accessor :put + # Optional. The name of the response field whose value is mapped to the HTTP + # body of response. Other response fields are ignored. When + # not set, the response message will be used as HTTP body of response. + # Corresponds to the JSON property `responseBody` + # @return [String] + attr_accessor :response_body + # Selects methods to which this rule applies. # Refer to selector for syntax details. # Corresponds to the JSON property `selector` @@ -1880,6 +1942,7 @@ module Google @patch = args[:patch] if args.key?(:patch) @post = args[:post] if args.key?(:post) @put = args[:put] if args.key?(:put) + @response_body = args[:response_body] if args.key?(:response_body) @selector = args[:selector] if args.key?(:selector) end end @@ -2414,10 +2477,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined custom metric types have the DNS name - # `custom.googleapis.com`. Metric types should use a natural hierarchical - # grouping. For example: + # URL-encoded. All user-defined metric types have the DNS name + # `custom.googleapis.com` or `external.googleapis.com`. Metric types should + # use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" + # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" # Corresponds to the JSON property `type` # @return [String] diff --git a/generated/google/apis/servicemanagement_v1/representations.rb b/generated/google/apis/servicemanagement_v1/representations.rb index e5961f4ab..8edaa6d76 100644 --- a/generated/google/apis/servicemanagement_v1/representations.rb +++ b/generated/google/apis/servicemanagement_v1/representations.rb @@ -232,6 +232,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Field class Representation < Google::Apis::Core::JsonRepresentation; end @@ -670,6 +676,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::ServicemanagementV1::Expr, decorator: Google::Apis::ServicemanagementV1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -865,6 +873,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class Field # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -934,6 +952,7 @@ module Google property :patch, as: 'patch' property :post, as: 'post' property :put, as: 'put' + property :response_body, as: 'responseBody' property :selector, as: 'selector' end end diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index c17869921..34b4e4d1a 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20180705' + REVISION = '20180820' # 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/serviceusage_v1/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index bfdbed845..aa1b3c7e7 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -1516,7 +1516,7 @@ module Google # A unique ID for a specific instance of this message, typically assigned # by the client for tracking purpose. If empty, the server may choose to - # generate one instead. + # generate one instead. Must be no longer than 60 characters. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -2251,6 +2251,13 @@ module Google # @return [String] attr_accessor :put + # Optional. The name of the response field whose value is mapped to the HTTP + # body of response. Other response fields are ignored. When + # not set, the response message will be used as HTTP body of response. + # Corresponds to the JSON property `responseBody` + # @return [String] + attr_accessor :response_body + # DO NOT USE. This is an experimental field. # Optional. The REST collection name is by default derived from the URL # pattern. If specified, this field overrides the default collection name. @@ -2312,6 +2319,7 @@ module Google @patch = args[:patch] if args.key?(:patch) @post = args[:post] if args.key?(:post) @put = args[:put] if args.key?(:put) + @response_body = args[:response_body] if args.key?(:response_body) @rest_collection = args[:rest_collection] if args.key?(:rest_collection) @rest_method_name = args[:rest_method_name] if args.key?(:rest_method_name) @selector = args[:selector] if args.key?(:selector) @@ -2772,10 +2780,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined custom metric types have the DNS name - # `custom.googleapis.com`. Metric types should use a natural hierarchical - # grouping. For example: + # URL-encoded. All user-defined metric types have the DNS name + # `custom.googleapis.com` or `external.googleapis.com`. Metric types should + # use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" + # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" # Corresponds to the JSON property `type` # @return [String] diff --git a/generated/google/apis/serviceusage_v1/representations.rb b/generated/google/apis/serviceusage_v1/representations.rb index f2be9ce75..d994aad42 100644 --- a/generated/google/apis/serviceusage_v1/representations.rb +++ b/generated/google/apis/serviceusage_v1/representations.rb @@ -877,6 +877,7 @@ module Google property :patch, as: 'patch' property :post, as: 'post' property :put, as: 'put' + property :response_body, as: 'responseBody' property :rest_collection, as: 'restCollection' property :rest_method_name, as: 'restMethodName' property :selector, as: 'selector' diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index 314993c01..c125d0fff 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20180705' + REVISION = '20180820' # 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/serviceusage_v1beta1/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index 2ac89d842..e01cd0b17 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -1492,7 +1492,7 @@ module Google # A unique ID for a specific instance of this message, typically assigned # by the client for tracking purpose. If empty, the server may choose to - # generate one instead. + # generate one instead. Must be no longer than 60 characters. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -2227,6 +2227,13 @@ module Google # @return [String] attr_accessor :put + # Optional. The name of the response field whose value is mapped to the HTTP + # body of response. Other response fields are ignored. When + # not set, the response message will be used as HTTP body of response. + # Corresponds to the JSON property `responseBody` + # @return [String] + attr_accessor :response_body + # DO NOT USE. This is an experimental field. # Optional. The REST collection name is by default derived from the URL # pattern. If specified, this field overrides the default collection name. @@ -2288,6 +2295,7 @@ module Google @patch = args[:patch] if args.key?(:patch) @post = args[:post] if args.key?(:post) @put = args[:put] if args.key?(:put) + @response_body = args[:response_body] if args.key?(:response_body) @rest_collection = args[:rest_collection] if args.key?(:rest_collection) @rest_method_name = args[:rest_method_name] if args.key?(:rest_method_name) @selector = args[:selector] if args.key?(:selector) @@ -2748,10 +2756,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined custom metric types have the DNS name - # `custom.googleapis.com`. Metric types should use a natural hierarchical - # grouping. For example: + # URL-encoded. All user-defined metric types have the DNS name + # `custom.googleapis.com` or `external.googleapis.com`. Metric types should + # use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" + # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" # Corresponds to the JSON property `type` # @return [String] diff --git a/generated/google/apis/serviceusage_v1beta1/representations.rb b/generated/google/apis/serviceusage_v1beta1/representations.rb index 08fe1855c..fa3d95cd3 100644 --- a/generated/google/apis/serviceusage_v1beta1/representations.rb +++ b/generated/google/apis/serviceusage_v1beta1/representations.rb @@ -876,6 +876,7 @@ module Google property :patch, as: 'patch' property :post, as: 'post' property :put, as: 'put' + property :response_body, as: 'responseBody' property :rest_collection, as: 'restCollection' property :rest_method_name, as: 'restMethodName' property :selector, as: 'selector' diff --git a/generated/google/apis/serviceuser_v1.rb b/generated/google/apis/serviceuser_v1.rb index d6cf10398..0d581a137 100644 --- a/generated/google/apis/serviceuser_v1.rb +++ b/generated/google/apis/serviceuser_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServiceuserV1 VERSION = 'V1' - REVISION = '20180622' + REVISION = '20180813' # 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/serviceuser_v1/classes.rb b/generated/google/apis/serviceuser_v1/classes.rb index e2dd9a3b3..0e612f707 100644 --- a/generated/google/apis/serviceuser_v1/classes.rb +++ b/generated/google/apis/serviceuser_v1/classes.rb @@ -1362,6 +1362,13 @@ module Google # @return [String] attr_accessor :put + # Optional. The name of the response field whose value is mapped to the HTTP + # body of response. Other response fields are ignored. When + # not set, the response message will be used as HTTP body of response. + # Corresponds to the JSON property `responseBody` + # @return [String] + attr_accessor :response_body + # Selects methods to which this rule applies. # Refer to selector for syntax details. # Corresponds to the JSON property `selector` @@ -1384,6 +1391,7 @@ module Google @patch = args[:patch] if args.key?(:patch) @post = args[:post] if args.key?(:post) @put = args[:put] if args.key?(:put) + @response_body = args[:response_body] if args.key?(:response_body) @selector = args[:selector] if args.key?(:selector) end end @@ -1817,10 +1825,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined custom metric types have the DNS name - # `custom.googleapis.com`. Metric types should use a natural hierarchical - # grouping. For example: + # URL-encoded. All user-defined metric types have the DNS name + # `custom.googleapis.com` or `external.googleapis.com`. Metric types should + # use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" + # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" # Corresponds to the JSON property `type` # @return [String] diff --git a/generated/google/apis/serviceuser_v1/representations.rb b/generated/google/apis/serviceuser_v1/representations.rb index ba202bf55..5a69e22e0 100644 --- a/generated/google/apis/serviceuser_v1/representations.rb +++ b/generated/google/apis/serviceuser_v1/representations.rb @@ -664,6 +664,7 @@ module Google property :patch, as: 'patch' property :post, as: 'post' property :put, as: 'put' + property :response_body, as: 'responseBody' property :selector, as: 'selector' end end diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index 7c81fd6e9..5b9326c61 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20180611' + REVISION = '20180727' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb index ca62b18c1..dd280a6ac 100644 --- a/generated/google/apis/sheets_v4/classes.rb +++ b/generated/google/apis/sheets_v4/classes.rb @@ -666,7 +666,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -769,7 +769,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -872,7 +872,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -975,7 +975,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -1165,7 +1165,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -2013,7 +2013,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -2180,7 +2180,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -2556,7 +2556,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -2793,7 +2793,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -3092,7 +3092,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -5230,7 +5230,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -5443,7 +5443,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -5938,7 +5938,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -6051,7 +6051,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -7757,7 +7757,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -8137,7 +8137,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -8419,7 +8419,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -8522,7 +8522,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -8625,7 +8625,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -8728,7 +8728,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -8858,7 +8858,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -9836,7 +9836,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; diff --git a/generated/google/apis/site_verification_v1.rb b/generated/google/apis/site_verification_v1.rb index 93003c377..bf2a3d003 100644 --- a/generated/google/apis/site_verification_v1.rb +++ b/generated/google/apis/site_verification_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/site-verification/ module SiteVerificationV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180521' # Manage the list of sites and domains you control AUTH_SITEVERIFICATION = 'https://www.googleapis.com/auth/siteverification' diff --git a/generated/google/apis/slides_v1.rb b/generated/google/apis/slides_v1.rb index dab8e82d9..168976fcd 100644 --- a/generated/google/apis/slides_v1.rb +++ b/generated/google/apis/slides_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/slides/ module SlidesV1 VERSION = 'V1' - REVISION = '20180703' + REVISION = '20180807' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/sourcerepo_v1.rb b/generated/google/apis/sourcerepo_v1.rb index f44771463..1964d5454 100644 --- a/generated/google/apis/sourcerepo_v1.rb +++ b/generated/google/apis/sourcerepo_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/source-repositories/docs/apis module SourcerepoV1 VERSION = 'V1' - REVISION = '20180430' + REVISION = '20180718' # 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/sourcerepo_v1/classes.rb b/generated/google/apis/sourcerepo_v1/classes.rb index 50b50147c..6373b72eb 100644 --- a/generated/google/apis/sourcerepo_v1/classes.rb +++ b/generated/google/apis/sourcerepo_v1/classes.rb @@ -142,6 +142,14 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::SourcerepoV1::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -162,7 +170,6 @@ module Google # Role that is assigned to `members`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -173,6 +180,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -197,6 +205,53 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # Response for ListRepos. The size is not set in the returned repositories. class ListReposResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/sourcerepo_v1/representations.rb b/generated/google/apis/sourcerepo_v1/representations.rb index 218698298..b496462a4 100644 --- a/generated/google/apis/sourcerepo_v1/representations.rb +++ b/generated/google/apis/sourcerepo_v1/representations.rb @@ -46,6 +46,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListReposResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -132,6 +138,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::SourcerepoV1::Expr, decorator: Google::Apis::SourcerepoV1::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -143,6 +151,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class ListReposResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/spectrum_v1explorer/classes.rb b/generated/google/apis/spectrum_v1explorer/classes.rb deleted file mode 100644 index 34cb4c36d..000000000 --- a/generated/google/apis/spectrum_v1explorer/classes.rb +++ /dev/null @@ -1,1612 +0,0 @@ -# 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 SpectrumV1explorer - - # Antenna characteristics provide additional information, such as the antenna - # height, antenna type, etc. Whether antenna characteristics must be provided in - # a request depends on the device type and regulatory domain. - class AntennaCharacteristics - include Google::Apis::Core::Hashable - - # The antenna height in meters. Whether the antenna height is required depends - # on the device type and the regulatory domain. Note that the height may be - # negative. - # Corresponds to the JSON property `height` - # @return [Float] - attr_accessor :height - - # If the height is required, then the height type (AGL for above ground level or - # AMSL for above mean sea level) is also required. The default is AGL. - # Corresponds to the JSON property `heightType` - # @return [String] - attr_accessor :height_type - - # The height uncertainty in meters. Whether this is required depends on the - # regulatory domain. - # Corresponds to the JSON property `heightUncertainty` - # @return [Float] - attr_accessor :height_uncertainty - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @height = args[:height] if args.key?(:height) - @height_type = args[:height_type] if args.key?(:height_type) - @height_uncertainty = args[:height_uncertainty] if args.key?(:height_uncertainty) - end - end - - # This message contains the name and URI of a database. - class DatabaseSpec - include Google::Apis::Core::Hashable - - # The display name for a database. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The corresponding URI of the database. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @uri = args[:uri] if args.key?(:uri) - end - end - - # This message is provided by the database to notify devices of an upcoming - # change to the database URI. - class DbUpdateSpec - include Google::Apis::Core::Hashable - - # A required list of one or more databases. A device should update its - # preconfigured list of databases to replace (only) the database that provided - # the response with the specified entries. - # Corresponds to the JSON property `databases` - # @return [Array] - attr_accessor :databases - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @databases = args[:databases] if args.key?(:databases) - end - end - - # Device capabilities provide additional information that may be used by a - # device to provide additional information to the database that may help it to - # determine available spectrum. If the database does not support device - # capabilities it will ignore the parameter altogether. - class DeviceCapabilities - include Google::Apis::Core::Hashable - - # An optional list of frequency ranges supported by the device. Each element - # must contain start and stop frequencies in which the device can operate. - # Channel identifiers are optional. When specified, the database should not - # return available spectrum that falls outside these ranges or channel IDs. - # Corresponds to the JSON property `frequencyRanges` - # @return [Array] - attr_accessor :frequency_ranges - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @frequency_ranges = args[:frequency_ranges] if args.key?(:frequency_ranges) - end - end - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - class DeviceDescriptor - include Google::Apis::Core::Hashable - - # Specifies the ETSI white space device category. Valid values are the strings - # master and slave. This field is case-insensitive. Consult the ETSI - # documentation for details about the device types. - # Corresponds to the JSON property `etsiEnDeviceCategory` - # @return [String] - attr_accessor :etsi_en_device_category - - # Specifies the ETSI white space device emissions class. The values are - # represented by numeric strings, such as 1, 2, etc. Consult the ETSI - # documentation for details about the device types. - # Corresponds to the JSON property `etsiEnDeviceEmissionsClass` - # @return [String] - attr_accessor :etsi_en_device_emissions_class - - # Specifies the ETSI white space device type. Valid values are single-letter - # strings, such as A, B, etc. Consult the ETSI documentation for details about - # the device types. - # Corresponds to the JSON property `etsiEnDeviceType` - # @return [String] - attr_accessor :etsi_en_device_type - - # Specifies the ETSI white space device technology identifier. The string value - # must not exceed 64 characters in length. Consult the ETSI documentation for - # details about the device types. - # Corresponds to the JSON property `etsiEnTechnologyId` - # @return [String] - attr_accessor :etsi_en_technology_id - - # Specifies the device's FCC certification identifier. The value is an - # identifier string whose length should not exceed 32 characters. Note that, in - # practice, a valid FCC ID may be limited to 19 characters. - # Corresponds to the JSON property `fccId` - # @return [String] - attr_accessor :fcc_id - - # Specifies the TV Band White Space device type, as defined by the FCC. Valid - # values are FIXED, MODE_1, MODE_2. - # Corresponds to the JSON property `fccTvbdDeviceType` - # @return [String] - attr_accessor :fcc_tvbd_device_type - - # The manufacturer's ID may be required by the regulatory domain. This should - # represent the name of the device manufacturer, should be consistent across all - # devices from the same manufacturer, and should be distinct from that of other - # manufacturers. The string value must not exceed 64 characters in length. - # Corresponds to the JSON property `manufacturerId` - # @return [String] - attr_accessor :manufacturer_id - - # The device's model ID may be required by the regulatory domain. The string - # value must not exceed 64 characters in length. - # Corresponds to the JSON property `modelId` - # @return [String] - attr_accessor :model_id - - # The list of identifiers for rulesets supported by the device. A database may - # require that the device provide this list before servicing the device requests. - # If the database does not support any of the rulesets specified in the list, - # the database may refuse to service the device requests. If present, the list - # must contain at least one entry. - # For information about the valid requests, see section 9.2 of the PAWS - # specification. Currently, FccTvBandWhiteSpace-2010 is the only supported - # ruleset. - # Corresponds to the JSON property `rulesetIds` - # @return [Array] - attr_accessor :ruleset_ids - - # The manufacturer's device serial number; required by the applicable regulatory - # domain. The length of the value must not exceed 64 characters. - # Corresponds to the JSON property `serialNumber` - # @return [String] - attr_accessor :serial_number - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etsi_en_device_category = args[:etsi_en_device_category] if args.key?(:etsi_en_device_category) - @etsi_en_device_emissions_class = args[:etsi_en_device_emissions_class] if args.key?(:etsi_en_device_emissions_class) - @etsi_en_device_type = args[:etsi_en_device_type] if args.key?(:etsi_en_device_type) - @etsi_en_technology_id = args[:etsi_en_technology_id] if args.key?(:etsi_en_technology_id) - @fcc_id = args[:fcc_id] if args.key?(:fcc_id) - @fcc_tvbd_device_type = args[:fcc_tvbd_device_type] if args.key?(:fcc_tvbd_device_type) - @manufacturer_id = args[:manufacturer_id] if args.key?(:manufacturer_id) - @model_id = args[:model_id] if args.key?(:model_id) - @ruleset_ids = args[:ruleset_ids] if args.key?(:ruleset_ids) - @serial_number = args[:serial_number] if args.key?(:serial_number) - end - end - - # This parameter contains device-owner information required as part of device - # registration. The regulatory domains may require additional parameters. - # All contact information must be expressed using the structure defined by the - # vCard format specification. Only the contact fields of vCard are supported: - # - fn: Full name of an individual - # - org: Name of the organization - # - adr: Address fields - # - tel: Telephone numbers - # - email: Email addresses - # Note that the vCard specification defines maximum lengths for each field. - class DeviceOwner - include Google::Apis::Core::Hashable - - # A vCard-in-JSON message that contains only the fields needed for PAWS: - # - fn: Full name of an individual - # - org: Name of the organization - # - adr: Address fields - # - tel: Telephone numbers - # - email: Email addresses - # Corresponds to the JSON property `operator` - # @return [Google::Apis::SpectrumV1explorer::Vcard] - attr_accessor :operator - - # A vCard-in-JSON message that contains only the fields needed for PAWS: - # - fn: Full name of an individual - # - org: Name of the organization - # - adr: Address fields - # - tel: Telephone numbers - # - email: Email addresses - # Corresponds to the JSON property `owner` - # @return [Google::Apis::SpectrumV1explorer::Vcard] - attr_accessor :owner - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operator = args[:operator] if args.key?(:operator) - @owner = args[:owner] if args.key?(:owner) - end - end - - # The device validity element describes whether a particular device is valid to - # operate in the regulatory domain. - class DeviceValidity - include Google::Apis::Core::Hashable - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - # Corresponds to the JSON property `deviceDesc` - # @return [Google::Apis::SpectrumV1explorer::DeviceDescriptor] - attr_accessor :device_desc - - # The validity status: true if the device is valid for operation, false - # otherwise. It will always be present. - # Corresponds to the JSON property `isValid` - # @return [Boolean] - attr_accessor :is_valid - alias_method :is_valid?, :is_valid - - # If the device identifier is not valid, the database may include a reason. The - # reason may be in any language. The length of the value should not exceed 128 - # characters. - # Corresponds to the JSON property `reason` - # @return [String] - attr_accessor :reason - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @device_desc = args[:device_desc] if args.key?(:device_desc) - @is_valid = args[:is_valid] if args.key?(:is_valid) - @reason = args[:reason] if args.key?(:reason) - end - end - - # The start and stop times of an event. This is used to indicate the time period - # for which a spectrum profile is valid. - # Both times are expressed using the format, YYYY-MM-DDThh:mm:ssZ, as defined in - # RFC3339. The times must be expressed using UTC. - class EventTime - include Google::Apis::Core::Hashable - - # The inclusive start of the event. It will be present. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # The exclusive end of the event. It will be present. - # Corresponds to the JSON property `stopTime` - # @return [String] - attr_accessor :stop_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @start_time = args[:start_time] if args.key?(:start_time) - @stop_time = args[:stop_time] if args.key?(:stop_time) - end - end - - # A specific range of frequencies together with the associated maximum power - # level and channel identifier. - class FrequencyRange - include Google::Apis::Core::Hashable - - # The database may include a channel identifier, when applicable. When it is - # included, the device should treat it as informative. The length of the - # identifier should not exceed 16 characters. - # Corresponds to the JSON property `channelId` - # @return [String] - attr_accessor :channel_id - - # The maximum total power level (EIRP)—computed over the corresponding operating - # bandwidth—that is permitted within the frequency range. Depending on the - # context in which the frequency-range element appears, this value may be - # required. For example, it is required in the available-spectrum response, - # available-spectrum-batch response, and spectrum-use notification message, but - # it should not be present (it is not applicable) when the frequency range - # appears inside a device-capabilities message. - # Corresponds to the JSON property `maxPowerDBm` - # @return [Float] - attr_accessor :max_power_d_bm - - # The required inclusive start of the frequency range (in Hertz). - # Corresponds to the JSON property `startHz` - # @return [Float] - attr_accessor :start_hz - - # The required exclusive end of the frequency range (in Hertz). - # Corresponds to the JSON property `stopHz` - # @return [Float] - attr_accessor :stop_hz - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @channel_id = args[:channel_id] if args.key?(:channel_id) - @max_power_d_bm = args[:max_power_d_bm] if args.key?(:max_power_d_bm) - @start_hz = args[:start_hz] if args.key?(:start_hz) - @stop_hz = args[:stop_hz] if args.key?(:stop_hz) - end - end - - # This parameter is used to specify the geolocation of the device. - class GeoLocation - include Google::Apis::Core::Hashable - - # The location confidence level, as an integer percentage, may be required, - # depending on the regulatory domain. When the parameter is optional and not - # provided, its value is assumed to be 95. Valid values range from 0 to 99, - # since, in practice, 100-percent confidence is not achievable. The confidence - # value is meaningful only when geolocation refers to a point with uncertainty. - # Corresponds to the JSON property `confidence` - # @return [Fixnum] - attr_accessor :confidence - - # A "point" with uncertainty is represented using the Ellipse shape. - # Corresponds to the JSON property `point` - # @return [Google::Apis::SpectrumV1explorer::GeoLocationEllipse] - attr_accessor :point - - # A region is represented using the polygonal shape. - # Corresponds to the JSON property `region` - # @return [Google::Apis::SpectrumV1explorer::GeoLocationPolygon] - attr_accessor :region - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @confidence = args[:confidence] if args.key?(:confidence) - @point = args[:point] if args.key?(:point) - @region = args[:region] if args.key?(:region) - end - end - - # A "point" with uncertainty is represented using the Ellipse shape. - class GeoLocationEllipse - include Google::Apis::Core::Hashable - - # A single geolocation on the globe. - # Corresponds to the JSON property `center` - # @return [Google::Apis::SpectrumV1explorer::GeoLocationPoint] - attr_accessor :center - - # A floating-point number that expresses the orientation of the ellipse, - # representing the rotation, in degrees, of the semi-major axis from North - # towards the East. For example, when the uncertainty is greatest along the - # North-South direction, orientation is 0 degrees; conversely, if the - # uncertainty is greatest along the East-West direction, orientation is 90 - # degrees. When orientation is not present, the orientation is assumed to be 0. - # Corresponds to the JSON property `orientation` - # @return [Float] - attr_accessor :orientation - - # A floating-point number that expresses the location uncertainty along the - # major axis of the ellipse. May be required by the regulatory domain. When the - # uncertainty is optional, the default value is 0. - # Corresponds to the JSON property `semiMajorAxis` - # @return [Float] - attr_accessor :semi_major_axis - - # A floating-point number that expresses the location uncertainty along the - # minor axis of the ellipse. May be required by the regulatory domain. When the - # uncertainty is optional, the default value is 0. - # Corresponds to the JSON property `semiMinorAxis` - # @return [Float] - attr_accessor :semi_minor_axis - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @center = args[:center] if args.key?(:center) - @orientation = args[:orientation] if args.key?(:orientation) - @semi_major_axis = args[:semi_major_axis] if args.key?(:semi_major_axis) - @semi_minor_axis = args[:semi_minor_axis] if args.key?(:semi_minor_axis) - end - end - - # A single geolocation on the globe. - class GeoLocationPoint - include Google::Apis::Core::Hashable - - # A required floating-point number that expresses the latitude in degrees using - # the WGS84 datum. For details on this encoding, see the National Imagery and - # Mapping Agency's Technical Report TR8350.2. - # Corresponds to the JSON property `latitude` - # @return [Float] - attr_accessor :latitude - - # A required floating-point number that expresses the longitude in degrees using - # the WGS84 datum. For details on this encoding, see the National Imagery and - # Mapping Agency's Technical Report TR8350.2. - # Corresponds to the JSON property `longitude` - # @return [Float] - attr_accessor :longitude - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @latitude = args[:latitude] if args.key?(:latitude) - @longitude = args[:longitude] if args.key?(:longitude) - end - end - - # A region is represented using the polygonal shape. - class GeoLocationPolygon - include Google::Apis::Core::Hashable - - # When the geolocation describes a region, the exterior field refers to a list - # of latitude/longitude points that represent the vertices of a polygon. The - # first and last points must be the same. Thus, a minimum of four points is - # required. The following polygon restrictions from RFC5491 apply: - # - A connecting line shall not cross another connecting line of the same - # polygon. - # - The vertices must be defined in a counterclockwise order. - # - The edges of a polygon are defined by the shortest path between two points - # in space (not a geodesic curve). Consequently, the length between two adjacent - # vertices should be restricted to a maximum of 130 km. - # - All vertices are assumed to be at the same altitude. - # - Polygon shapes should be restricted to a maximum of 15 vertices (16 points - # that include the repeated vertex). - # Corresponds to the JSON property `exterior` - # @return [Array] - attr_accessor :exterior - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exterior = args[:exterior] if args.key?(:exterior) - end - end - - # The schedule of spectrum profiles available at a particular geolocation. - class GeoSpectrumSchedule - include Google::Apis::Core::Hashable - - # This parameter is used to specify the geolocation of the device. - # Corresponds to the JSON property `location` - # @return [Google::Apis::SpectrumV1explorer::GeoLocation] - attr_accessor :location - - # A list of available spectrum profiles and associated times. It will always be - # present, and at least one schedule must be included (though it may be empty if - # there is no available spectrum). More than one schedule may be included to - # represent future changes to the available spectrum. - # Corresponds to the JSON property `spectrumSchedules` - # @return [Array] - attr_accessor :spectrum_schedules - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @location = args[:location] if args.key?(:location) - @spectrum_schedules = args[:spectrum_schedules] if args.key?(:spectrum_schedules) - end - end - - # The request message for a batch available spectrum query protocol. - class PawsGetSpectrumBatchRequest - include Google::Apis::Core::Hashable - - # Antenna characteristics provide additional information, such as the antenna - # height, antenna type, etc. Whether antenna characteristics must be provided in - # a request depends on the device type and regulatory domain. - # Corresponds to the JSON property `antenna` - # @return [Google::Apis::SpectrumV1explorer::AntennaCharacteristics] - attr_accessor :antenna - - # Device capabilities provide additional information that may be used by a - # device to provide additional information to the database that may help it to - # determine available spectrum. If the database does not support device - # capabilities it will ignore the parameter altogether. - # Corresponds to the JSON property `capabilities` - # @return [Google::Apis::SpectrumV1explorer::DeviceCapabilities] - attr_accessor :capabilities - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - # Corresponds to the JSON property `deviceDesc` - # @return [Google::Apis::SpectrumV1explorer::DeviceDescriptor] - attr_accessor :device_desc - - # A geolocation list is required. This allows a device to specify its current - # location plus additional anticipated locations when allowed by the regulatory - # domain. At least one location must be included. Geolocation must be given as - # the location of the radiation center of the device's antenna. If a location - # specifies a region, rather than a point, the database may return an - # UNIMPLEMENTED error if it does not support query by region. - # There is no upper limit on the number of locations included in a available - # spectrum batch request, but the database may restrict the number of locations - # it supports by returning a response with fewer locations than specified in the - # batch request. Note that geolocations must be those of the master device (a - # device with geolocation capability that makes an available spectrum batch - # request), whether the master device is making the request on its own behalf or - # on behalf of a slave device (one without geolocation capability). - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - # Corresponds to the JSON property `masterDeviceDesc` - # @return [Google::Apis::SpectrumV1explorer::DeviceDescriptor] - attr_accessor :master_device_desc - - # This parameter contains device-owner information required as part of device - # registration. The regulatory domains may require additional parameters. - # All contact information must be expressed using the structure defined by the - # vCard format specification. Only the contact fields of vCard are supported: - # - fn: Full name of an individual - # - org: Name of the organization - # - adr: Address fields - # - tel: Telephone numbers - # - email: Email addresses - # Note that the vCard specification defines maximum lengths for each field. - # Corresponds to the JSON property `owner` - # @return [Google::Apis::SpectrumV1explorer::DeviceOwner] - attr_accessor :owner - - # The request type parameter is an optional parameter that can be used to modify - # an available spectrum batch request, but its use depends on applicable - # regulatory rules. For example, It may be used to request generic slave device - # parameters without having to specify the device descriptor for a specific - # device. When the requestType parameter is missing, the request is for a - # specific device (master or slave), and the device descriptor parameter for the - # device on whose behalf the batch request is made is required. - # Corresponds to the JSON property `requestType` - # @return [String] - attr_accessor :request_type - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @antenna = args[:antenna] if args.key?(:antenna) - @capabilities = args[:capabilities] if args.key?(:capabilities) - @device_desc = args[:device_desc] if args.key?(:device_desc) - @locations = args[:locations] if args.key?(:locations) - @master_device_desc = args[:master_device_desc] if args.key?(:master_device_desc) - @owner = args[:owner] if args.key?(:owner) - @request_type = args[:request_type] if args.key?(:request_type) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # The response message for the batch available spectrum query contains a - # schedule of available spectrum for the device at multiple locations. - class PawsGetSpectrumBatchResponse - include Google::Apis::Core::Hashable - - # This message is provided by the database to notify devices of an upcoming - # change to the database URI. - # Corresponds to the JSON property `databaseChange` - # @return [Google::Apis::SpectrumV1explorer::DbUpdateSpec] - attr_accessor :database_change - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - # Corresponds to the JSON property `deviceDesc` - # @return [Google::Apis::SpectrumV1explorer::DeviceDescriptor] - attr_accessor :device_desc - - # The available spectrum batch response must contain a geo-spectrum schedule - # list, The list may be empty if spectrum is not available. The database may - # return more than one geo-spectrum schedule to represent future changes to the - # available spectrum. How far in advance a schedule may be provided depends upon - # the applicable regulatory domain. The database may return available spectrum - # for fewer geolocations than requested. The device must not make assumptions - # about the order of the entries in the list, and must use the geolocation value - # in each geo-spectrum schedule entry to match available spectrum to a location. - # Corresponds to the JSON property `geoSpectrumSchedules` - # @return [Array] - attr_accessor :geo_spectrum_schedules - - # Identifies what kind of resource this is. Value: the fixed string "spectrum# - # pawsGetSpectrumBatchResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The database may return a constraint on the allowed maximum contiguous - # bandwidth (in Hertz). A regulatory domain may require the database to return - # this parameter. When this parameter is present in the response, the device - # must apply this constraint to its spectrum-selection logic to ensure that no - # single block of spectrum has bandwidth that exceeds this value. - # Corresponds to the JSON property `maxContiguousBwHz` - # @return [Float] - attr_accessor :max_contiguous_bw_hz - - # The database may return a constraint on the allowed maximum total bandwidth ( - # in Hertz), which does not need to be contiguous. A regulatory domain may - # require the database to return this parameter. When this parameter is present - # in the available spectrum batch response, the device must apply this - # constraint to its spectrum-selection logic to ensure that total bandwidth does - # not exceed this value. - # Corresponds to the JSON property `maxTotalBwHz` - # @return [Float] - attr_accessor :max_total_bw_hz - - # For regulatory domains that require a spectrum-usage report from devices, the - # database must return true for this parameter if the geo-spectrum schedules - # list is not empty; otherwise, the database should either return false or omit - # this parameter. If this parameter is present and its value is true, the device - # must send a spectrum use notify message to the database; otherwise, the device - # should not send the notification. - # Corresponds to the JSON property `needsSpectrumReport` - # @return [Boolean] - attr_accessor :needs_spectrum_report - alias_method :needs_spectrum_report?, :needs_spectrum_report - - # This contains parameters for the ruleset of a regulatory domain that is - # communicated using the initialization and available-spectrum processes. - # Corresponds to the JSON property `rulesetInfo` - # @return [Google::Apis::SpectrumV1explorer::RulesetInfo] - attr_accessor :ruleset_info - - # The database includes a timestamp of the form, YYYY-MM-DDThh:mm:ssZ (Internet - # timestamp format per RFC3339), in its available spectrum batch response. The - # timestamp should be used by the device as a reference for the start and stop - # times specified in the response spectrum schedules. - # Corresponds to the JSON property `timestamp` - # @return [String] - attr_accessor :timestamp - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @database_change = args[:database_change] if args.key?(:database_change) - @device_desc = args[:device_desc] if args.key?(:device_desc) - @geo_spectrum_schedules = args[:geo_spectrum_schedules] if args.key?(:geo_spectrum_schedules) - @kind = args[:kind] if args.key?(:kind) - @max_contiguous_bw_hz = args[:max_contiguous_bw_hz] if args.key?(:max_contiguous_bw_hz) - @max_total_bw_hz = args[:max_total_bw_hz] if args.key?(:max_total_bw_hz) - @needs_spectrum_report = args[:needs_spectrum_report] if args.key?(:needs_spectrum_report) - @ruleset_info = args[:ruleset_info] if args.key?(:ruleset_info) - @timestamp = args[:timestamp] if args.key?(:timestamp) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # The request message for the available spectrum query protocol which must - # include the device's geolocation. - class PawsGetSpectrumRequest - include Google::Apis::Core::Hashable - - # Antenna characteristics provide additional information, such as the antenna - # height, antenna type, etc. Whether antenna characteristics must be provided in - # a request depends on the device type and regulatory domain. - # Corresponds to the JSON property `antenna` - # @return [Google::Apis::SpectrumV1explorer::AntennaCharacteristics] - attr_accessor :antenna - - # Device capabilities provide additional information that may be used by a - # device to provide additional information to the database that may help it to - # determine available spectrum. If the database does not support device - # capabilities it will ignore the parameter altogether. - # Corresponds to the JSON property `capabilities` - # @return [Google::Apis::SpectrumV1explorer::DeviceCapabilities] - attr_accessor :capabilities - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - # Corresponds to the JSON property `deviceDesc` - # @return [Google::Apis::SpectrumV1explorer::DeviceDescriptor] - attr_accessor :device_desc - - # This parameter is used to specify the geolocation of the device. - # Corresponds to the JSON property `location` - # @return [Google::Apis::SpectrumV1explorer::GeoLocation] - attr_accessor :location - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - # Corresponds to the JSON property `masterDeviceDesc` - # @return [Google::Apis::SpectrumV1explorer::DeviceDescriptor] - attr_accessor :master_device_desc - - # This parameter contains device-owner information required as part of device - # registration. The regulatory domains may require additional parameters. - # All contact information must be expressed using the structure defined by the - # vCard format specification. Only the contact fields of vCard are supported: - # - fn: Full name of an individual - # - org: Name of the organization - # - adr: Address fields - # - tel: Telephone numbers - # - email: Email addresses - # Note that the vCard specification defines maximum lengths for each field. - # Corresponds to the JSON property `owner` - # @return [Google::Apis::SpectrumV1explorer::DeviceOwner] - attr_accessor :owner - - # The request type parameter is an optional parameter that can be used to modify - # an available spectrum request, but its use depends on applicable regulatory - # rules. It may be used, for example, to request generic slave device parameters - # without having to specify the device descriptor for a specific device. When - # the requestType parameter is missing, the request is for a specific device ( - # master or slave), and the deviceDesc parameter for the device on whose behalf - # the request is made is required. - # Corresponds to the JSON property `requestType` - # @return [String] - attr_accessor :request_type - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @antenna = args[:antenna] if args.key?(:antenna) - @capabilities = args[:capabilities] if args.key?(:capabilities) - @device_desc = args[:device_desc] if args.key?(:device_desc) - @location = args[:location] if args.key?(:location) - @master_device_desc = args[:master_device_desc] if args.key?(:master_device_desc) - @owner = args[:owner] if args.key?(:owner) - @request_type = args[:request_type] if args.key?(:request_type) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # The response message for the available spectrum query which contains a - # schedule of available spectrum for the device. - class PawsGetSpectrumResponse - include Google::Apis::Core::Hashable - - # This message is provided by the database to notify devices of an upcoming - # change to the database URI. - # Corresponds to the JSON property `databaseChange` - # @return [Google::Apis::SpectrumV1explorer::DbUpdateSpec] - attr_accessor :database_change - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - # Corresponds to the JSON property `deviceDesc` - # @return [Google::Apis::SpectrumV1explorer::DeviceDescriptor] - attr_accessor :device_desc - - # Identifies what kind of resource this is. Value: the fixed string "spectrum# - # pawsGetSpectrumResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The database may return a constraint on the allowed maximum contiguous - # bandwidth (in Hertz). A regulatory domain may require the database to return - # this parameter. When this parameter is present in the response, the device - # must apply this constraint to its spectrum-selection logic to ensure that no - # single block of spectrum has bandwidth that exceeds this value. - # Corresponds to the JSON property `maxContiguousBwHz` - # @return [Float] - attr_accessor :max_contiguous_bw_hz - - # The database may return a constraint on the allowed maximum total bandwidth ( - # in Hertz), which need not be contiguous. A regulatory domain may require the - # database to return this parameter. When this parameter is present in the - # available spectrum response, the device must apply this constraint to its - # spectrum-selection logic to ensure that total bandwidth does not exceed this - # value. - # Corresponds to the JSON property `maxTotalBwHz` - # @return [Float] - attr_accessor :max_total_bw_hz - - # For regulatory domains that require a spectrum-usage report from devices, the - # database must return true for this parameter if the spectrum schedule list is - # not empty; otherwise, the database will either return false or omit this - # parameter. If this parameter is present and its value is true, the device must - # send a spectrum use notify message to the database; otherwise, the device must - # not send the notification. - # Corresponds to the JSON property `needsSpectrumReport` - # @return [Boolean] - attr_accessor :needs_spectrum_report - alias_method :needs_spectrum_report?, :needs_spectrum_report - - # This contains parameters for the ruleset of a regulatory domain that is - # communicated using the initialization and available-spectrum processes. - # Corresponds to the JSON property `rulesetInfo` - # @return [Google::Apis::SpectrumV1explorer::RulesetInfo] - attr_accessor :ruleset_info - - # The available spectrum response must contain a spectrum schedule list. The - # list may be empty if spectrum is not available. The database may return more - # than one spectrum schedule to represent future changes to the available - # spectrum. How far in advance a schedule may be provided depends on the - # applicable regulatory domain. - # Corresponds to the JSON property `spectrumSchedules` - # @return [Array] - attr_accessor :spectrum_schedules - - # The database includes a timestamp of the form YYYY-MM-DDThh:mm:ssZ (Internet - # timestamp format per RFC3339) in its available spectrum response. The - # timestamp should be used by the device as a reference for the start and stop - # times specified in the response spectrum schedules. - # Corresponds to the JSON property `timestamp` - # @return [String] - attr_accessor :timestamp - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @database_change = args[:database_change] if args.key?(:database_change) - @device_desc = args[:device_desc] if args.key?(:device_desc) - @kind = args[:kind] if args.key?(:kind) - @max_contiguous_bw_hz = args[:max_contiguous_bw_hz] if args.key?(:max_contiguous_bw_hz) - @max_total_bw_hz = args[:max_total_bw_hz] if args.key?(:max_total_bw_hz) - @needs_spectrum_report = args[:needs_spectrum_report] if args.key?(:needs_spectrum_report) - @ruleset_info = args[:ruleset_info] if args.key?(:ruleset_info) - @spectrum_schedules = args[:spectrum_schedules] if args.key?(:spectrum_schedules) - @timestamp = args[:timestamp] if args.key?(:timestamp) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # The initialization request message allows the master device to initiate - # exchange of capabilities with the database. - class PawsInitRequest - include Google::Apis::Core::Hashable - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - # Corresponds to the JSON property `deviceDesc` - # @return [Google::Apis::SpectrumV1explorer::DeviceDescriptor] - attr_accessor :device_desc - - # This parameter is used to specify the geolocation of the device. - # Corresponds to the JSON property `location` - # @return [Google::Apis::SpectrumV1explorer::GeoLocation] - attr_accessor :location - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @device_desc = args[:device_desc] if args.key?(:device_desc) - @location = args[:location] if args.key?(:location) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # The initialization response message communicates database parameters to the - # requesting device. - class PawsInitResponse - include Google::Apis::Core::Hashable - - # This message is provided by the database to notify devices of an upcoming - # change to the database URI. - # Corresponds to the JSON property `databaseChange` - # @return [Google::Apis::SpectrumV1explorer::DbUpdateSpec] - attr_accessor :database_change - - # Identifies what kind of resource this is. Value: the fixed string "spectrum# - # pawsInitResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This contains parameters for the ruleset of a regulatory domain that is - # communicated using the initialization and available-spectrum processes. - # Corresponds to the JSON property `rulesetInfo` - # @return [Google::Apis::SpectrumV1explorer::RulesetInfo] - attr_accessor :ruleset_info - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @database_change = args[:database_change] if args.key?(:database_change) - @kind = args[:kind] if args.key?(:kind) - @ruleset_info = args[:ruleset_info] if args.key?(:ruleset_info) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # The spectrum-use notification message which must contain the geolocation of - # the Device and parameters required by the regulatory domain. - class PawsNotifySpectrumUseRequest - include Google::Apis::Core::Hashable - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - # Corresponds to the JSON property `deviceDesc` - # @return [Google::Apis::SpectrumV1explorer::DeviceDescriptor] - attr_accessor :device_desc - - # This parameter is used to specify the geolocation of the device. - # Corresponds to the JSON property `location` - # @return [Google::Apis::SpectrumV1explorer::GeoLocation] - attr_accessor :location - - # A spectrum list is required in the spectrum-use notification. The list - # specifies the spectrum that the device expects to use, which includes - # frequency ranges and maximum power levels. The list may be empty if the device - # decides not to use any of spectrum. For consistency, the psdBandwidthHz value - # should match that from one of the spectrum elements in the corresponding - # available spectrum response previously sent to the device by the database. - # Note that maximum power levels in the spectrum element must be expressed as - # power spectral density over the specified psdBandwidthHz value. The actual - # bandwidth to be used (as computed from the start and stop frequencies) may be - # different from the psdBandwidthHz value. As an example, when regulatory rules - # express maximum power spectral density in terms of maximum power over any 100 - # kHz band, then the psdBandwidthHz value should be set to 100 kHz, even though - # the actual bandwidth used can be 20 kHz. - # Corresponds to the JSON property `spectra` - # @return [Array] - attr_accessor :spectra - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @device_desc = args[:device_desc] if args.key?(:device_desc) - @location = args[:location] if args.key?(:location) - @spectra = args[:spectra] if args.key?(:spectra) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # An empty response to the notification. - class PawsNotifySpectrumUseResponse - include Google::Apis::Core::Hashable - - # Identifies what kind of resource this is. Value: the fixed string "spectrum# - # pawsNotifySpectrumUseResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # The registration request message contains the required registration parameters. - class PawsRegisterRequest - include Google::Apis::Core::Hashable - - # Antenna characteristics provide additional information, such as the antenna - # height, antenna type, etc. Whether antenna characteristics must be provided in - # a request depends on the device type and regulatory domain. - # Corresponds to the JSON property `antenna` - # @return [Google::Apis::SpectrumV1explorer::AntennaCharacteristics] - attr_accessor :antenna - - # The device descriptor contains parameters that identify the specific device, - # such as its manufacturer serial number, regulatory-specific identifier (e.g., - # FCC ID), and any other device characteristics required by regulatory domains. - # Corresponds to the JSON property `deviceDesc` - # @return [Google::Apis::SpectrumV1explorer::DeviceDescriptor] - attr_accessor :device_desc - - # This parameter contains device-owner information required as part of device - # registration. The regulatory domains may require additional parameters. - # All contact information must be expressed using the structure defined by the - # vCard format specification. Only the contact fields of vCard are supported: - # - fn: Full name of an individual - # - org: Name of the organization - # - adr: Address fields - # - tel: Telephone numbers - # - email: Email addresses - # Note that the vCard specification defines maximum lengths for each field. - # Corresponds to the JSON property `deviceOwner` - # @return [Google::Apis::SpectrumV1explorer::DeviceOwner] - attr_accessor :device_owner - - # This parameter is used to specify the geolocation of the device. - # Corresponds to the JSON property `location` - # @return [Google::Apis::SpectrumV1explorer::GeoLocation] - attr_accessor :location - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @antenna = args[:antenna] if args.key?(:antenna) - @device_desc = args[:device_desc] if args.key?(:device_desc) - @device_owner = args[:device_owner] if args.key?(:device_owner) - @location = args[:location] if args.key?(:location) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # The registration response message simply acknowledges receipt of the request - # and is otherwise empty. - class PawsRegisterResponse - include Google::Apis::Core::Hashable - - # This message is provided by the database to notify devices of an upcoming - # change to the database URI. - # Corresponds to the JSON property `databaseChange` - # @return [Google::Apis::SpectrumV1explorer::DbUpdateSpec] - attr_accessor :database_change - - # Identifies what kind of resource this is. Value: the fixed string "spectrum# - # pawsRegisterResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @database_change = args[:database_change] if args.key?(:database_change) - @kind = args[:kind] if args.key?(:kind) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # The device validation request message. - class PawsVerifyDeviceRequest - include Google::Apis::Core::Hashable - - # A list of device descriptors, which specifies the slave devices to be - # validated, is required. - # Corresponds to the JSON property `deviceDescs` - # @return [Array] - attr_accessor :device_descs - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @device_descs = args[:device_descs] if args.key?(:device_descs) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # The device validation response message. - class PawsVerifyDeviceResponse - include Google::Apis::Core::Hashable - - # This message is provided by the database to notify devices of an upcoming - # change to the database URI. - # Corresponds to the JSON property `databaseChange` - # @return [Google::Apis::SpectrumV1explorer::DbUpdateSpec] - attr_accessor :database_change - - # A device validities list is required in the device validation response to - # report whether each slave device listed in a previous device validation - # request is valid. The number of entries must match the number of device - # descriptors listed in the previous device validation request. - # Corresponds to the JSON property `deviceValidities` - # @return [Array] - attr_accessor :device_validities - - # Identifies what kind of resource this is. Value: the fixed string "spectrum# - # pawsVerifyDeviceResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). - # Required field. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The PAWS version. Must be exactly 1.0. - # Required field. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @database_change = args[:database_change] if args.key?(:database_change) - @device_validities = args[:device_validities] if args.key?(:device_validities) - @kind = args[:kind] if args.key?(:kind) - @type = args[:type] if args.key?(:type) - @version = args[:version] if args.key?(:version) - end - end - - # This contains parameters for the ruleset of a regulatory domain that is - # communicated using the initialization and available-spectrum processes. - class RulesetInfo - include Google::Apis::Core::Hashable - - # The regulatory domain to which the ruleset belongs is required. It must be a 2- - # letter country code. The device should use this to determine additional device - # behavior required by the associated regulatory domain. - # Corresponds to the JSON property `authority` - # @return [String] - attr_accessor :authority - - # The maximum location change in meters is required in the initialization - # response, but optional otherwise. When the device changes location by more - # than this specified distance, it must contact the database to get the - # available spectrum for the new location. If the device is using spectrum that - # is no longer available, it must immediately cease use of the spectrum under - # rules for database-managed spectrum. If this value is provided within the - # context of an available-spectrum response, it takes precedence over the value - # within the initialization response. - # Corresponds to the JSON property `maxLocationChange` - # @return [Float] - attr_accessor :max_location_change - - # The maximum duration, in seconds, between requests for available spectrum. It - # is required in the initialization response, but optional otherwise. The device - # must contact the database to get available spectrum no less frequently than - # this duration. If the new spectrum information indicates that the device is - # using spectrum that is no longer available, it must immediately cease use of - # those frequencies under rules for database-managed spectrum. If this value is - # provided within the context of an available-spectrum response, it takes - # precedence over the value within the initialization response. - # Corresponds to the JSON property `maxPollingSecs` - # @return [Fixnum] - attr_accessor :max_polling_secs - - # The identifiers of the rulesets supported for the device's location. The - # database should include at least one applicable ruleset in the initialization - # response. The device may use the ruleset identifiers to determine parameters - # to include in subsequent requests. Within the context of the available- - # spectrum responses, the database should include the identifier of the ruleset - # that it used to determine the available-spectrum response. If included, the - # device must use the specified ruleset to interpret the response. If the device - # does not support the indicated ruleset, it must not operate in the spectrum - # governed by the ruleset. - # Corresponds to the JSON property `rulesetIds` - # @return [Array] - attr_accessor :ruleset_ids - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @authority = args[:authority] if args.key?(:authority) - @max_location_change = args[:max_location_change] if args.key?(:max_location_change) - @max_polling_secs = args[:max_polling_secs] if args.key?(:max_polling_secs) - @ruleset_ids = args[:ruleset_ids] if args.key?(:ruleset_ids) - end - end - - # Available spectrum can be logically characterized by a list of frequency - # ranges and permissible power levels for each range. - class SpectrumMessage - include Google::Apis::Core::Hashable - - # The bandwidth (in Hertz) for which permissible power levels are specified. For - # example, FCC regulation would require only one spectrum specification at 6MHz - # bandwidth, but Ofcom regulation would require two specifications, at 0.1MHz - # and 8MHz. This parameter may be empty if there is no available spectrum. It - # will be present otherwise. - # Corresponds to the JSON property `bandwidth` - # @return [Float] - attr_accessor :bandwidth - - # The list of frequency ranges and permissible power levels. The list may be - # empty if there is no available spectrum, otherwise it will be present. - # Corresponds to the JSON property `frequencyRanges` - # @return [Array] - attr_accessor :frequency_ranges - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bandwidth = args[:bandwidth] if args.key?(:bandwidth) - @frequency_ranges = args[:frequency_ranges] if args.key?(:frequency_ranges) - end - end - - # The spectrum schedule element combines an event time with spectrum profile to - # define a time period in which the profile is valid. - class SpectrumSchedule - include Google::Apis::Core::Hashable - - # The start and stop times of an event. This is used to indicate the time period - # for which a spectrum profile is valid. - # Both times are expressed using the format, YYYY-MM-DDThh:mm:ssZ, as defined in - # RFC3339. The times must be expressed using UTC. - # Corresponds to the JSON property `eventTime` - # @return [Google::Apis::SpectrumV1explorer::EventTime] - attr_accessor :event_time - - # A list of spectrum messages representing the usable profile. It will always be - # present, but may be empty when there is no available spectrum. - # Corresponds to the JSON property `spectra` - # @return [Array] - attr_accessor :spectra - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @event_time = args[:event_time] if args.key?(:event_time) - @spectra = args[:spectra] if args.key?(:spectra) - end - end - - # A vCard-in-JSON message that contains only the fields needed for PAWS: - # - fn: Full name of an individual - # - org: Name of the organization - # - adr: Address fields - # - tel: Telephone numbers - # - email: Email addresses - class Vcard - include Google::Apis::Core::Hashable - - # The structure used to represent a street address. - # Corresponds to the JSON property `adr` - # @return [Google::Apis::SpectrumV1explorer::VcardAddress] - attr_accessor :adr - - # The structure used to represent an organization and an email address. - # Corresponds to the JSON property `email` - # @return [Google::Apis::SpectrumV1explorer::VcardTypedText] - attr_accessor :email - - # The full name of the contact person. For example: John A. Smith. - # Corresponds to the JSON property `fn` - # @return [String] - attr_accessor :fn - - # The structure used to represent an organization and an email address. - # Corresponds to the JSON property `org` - # @return [Google::Apis::SpectrumV1explorer::VcardTypedText] - attr_accessor :org - - # The structure used to represent a telephone number. - # Corresponds to the JSON property `tel` - # @return [Google::Apis::SpectrumV1explorer::VcardTelephone] - attr_accessor :tel - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @adr = args[:adr] if args.key?(:adr) - @email = args[:email] if args.key?(:email) - @fn = args[:fn] if args.key?(:fn) - @org = args[:org] if args.key?(:org) - @tel = args[:tel] if args.key?(:tel) - end - end - - # The structure used to represent a street address. - class VcardAddress - include Google::Apis::Core::Hashable - - # The postal code associated with the address. For example: 94423. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - # The country name. For example: US. - # Corresponds to the JSON property `country` - # @return [String] - attr_accessor :country - - # The city or local equivalent portion of the address. For example: San Jose. - # Corresponds to the JSON property `locality` - # @return [String] - attr_accessor :locality - - # An optional post office box number. - # Corresponds to the JSON property `pobox` - # @return [String] - attr_accessor :pobox - - # The state or local equivalent portion of the address. For example: CA. - # Corresponds to the JSON property `region` - # @return [String] - attr_accessor :region - - # The street number and name. For example: 123 Any St. - # Corresponds to the JSON property `street` - # @return [String] - attr_accessor :street - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @country = args[:country] if args.key?(:country) - @locality = args[:locality] if args.key?(:locality) - @pobox = args[:pobox] if args.key?(:pobox) - @region = args[:region] if args.key?(:region) - @street = args[:street] if args.key?(:street) - end - end - - # The structure used to represent a telephone number. - class VcardTelephone - include Google::Apis::Core::Hashable - - # A nested telephone URI of the form: tel:+1-123-456-7890. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @uri = args[:uri] if args.key?(:uri) - end - end - - # The structure used to represent an organization and an email address. - class VcardTypedText - include Google::Apis::Core::Hashable - - # The text string associated with this item. For example, for an org field: ACME, - # inc. For an email field: smith@example.com. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @text = args[:text] if args.key?(:text) - end - end - end - end -end diff --git a/generated/google/apis/spectrum_v1explorer/representations.rb b/generated/google/apis/spectrum_v1explorer/representations.rb deleted file mode 100644 index 947666207..000000000 --- a/generated/google/apis/spectrum_v1explorer/representations.rb +++ /dev/null @@ -1,611 +0,0 @@ -# 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 SpectrumV1explorer - - class AntennaCharacteristics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DatabaseSpec - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DbUpdateSpec - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DeviceCapabilities - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DeviceDescriptor - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DeviceOwner - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DeviceValidity - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class EventTime - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class FrequencyRange - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GeoLocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GeoLocationEllipse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GeoLocationPoint - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GeoLocationPolygon - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GeoSpectrumSchedule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsGetSpectrumBatchRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsGetSpectrumBatchResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsGetSpectrumRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsGetSpectrumResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsInitRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsInitResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsNotifySpectrumUseRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsNotifySpectrumUseResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsRegisterRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsRegisterResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsVerifyDeviceRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PawsVerifyDeviceResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RulesetInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SpectrumMessage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SpectrumSchedule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Vcard - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class VcardAddress - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class VcardTelephone - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class VcardTypedText - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AntennaCharacteristics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :height, as: 'height' - property :height_type, as: 'heightType' - property :height_uncertainty, as: 'heightUncertainty' - end - end - - class DatabaseSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :uri, as: 'uri' - end - end - - class DbUpdateSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :databases, as: 'databases', class: Google::Apis::SpectrumV1explorer::DatabaseSpec, decorator: Google::Apis::SpectrumV1explorer::DatabaseSpec::Representation - - end - end - - class DeviceCapabilities - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :frequency_ranges, as: 'frequencyRanges', class: Google::Apis::SpectrumV1explorer::FrequencyRange, decorator: Google::Apis::SpectrumV1explorer::FrequencyRange::Representation - - end - end - - class DeviceDescriptor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etsi_en_device_category, as: 'etsiEnDeviceCategory' - property :etsi_en_device_emissions_class, as: 'etsiEnDeviceEmissionsClass' - property :etsi_en_device_type, as: 'etsiEnDeviceType' - property :etsi_en_technology_id, as: 'etsiEnTechnologyId' - property :fcc_id, as: 'fccId' - property :fcc_tvbd_device_type, as: 'fccTvbdDeviceType' - property :manufacturer_id, as: 'manufacturerId' - property :model_id, as: 'modelId' - collection :ruleset_ids, as: 'rulesetIds' - property :serial_number, as: 'serialNumber' - end - end - - class DeviceOwner - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :operator, as: 'operator', class: Google::Apis::SpectrumV1explorer::Vcard, decorator: Google::Apis::SpectrumV1explorer::Vcard::Representation - - property :owner, as: 'owner', class: Google::Apis::SpectrumV1explorer::Vcard, decorator: Google::Apis::SpectrumV1explorer::Vcard::Representation - - end - end - - class DeviceValidity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :device_desc, as: 'deviceDesc', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - property :is_valid, as: 'isValid' - property :reason, as: 'reason' - end - end - - class EventTime - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :start_time, as: 'startTime' - property :stop_time, as: 'stopTime' - end - end - - class FrequencyRange - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :channel_id, as: 'channelId' - property :max_power_d_bm, as: 'maxPowerDBm' - property :start_hz, as: 'startHz' - property :stop_hz, as: 'stopHz' - end - end - - class GeoLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :confidence, as: 'confidence' - property :point, as: 'point', class: Google::Apis::SpectrumV1explorer::GeoLocationEllipse, decorator: Google::Apis::SpectrumV1explorer::GeoLocationEllipse::Representation - - property :region, as: 'region', class: Google::Apis::SpectrumV1explorer::GeoLocationPolygon, decorator: Google::Apis::SpectrumV1explorer::GeoLocationPolygon::Representation - - end - end - - class GeoLocationEllipse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :center, as: 'center', class: Google::Apis::SpectrumV1explorer::GeoLocationPoint, decorator: Google::Apis::SpectrumV1explorer::GeoLocationPoint::Representation - - property :orientation, as: 'orientation' - property :semi_major_axis, as: 'semiMajorAxis' - property :semi_minor_axis, as: 'semiMinorAxis' - end - end - - class GeoLocationPoint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :latitude, as: 'latitude' - property :longitude, as: 'longitude' - end - end - - class GeoLocationPolygon - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :exterior, as: 'exterior', class: Google::Apis::SpectrumV1explorer::GeoLocationPoint, decorator: Google::Apis::SpectrumV1explorer::GeoLocationPoint::Representation - - end - end - - class GeoSpectrumSchedule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :location, as: 'location', class: Google::Apis::SpectrumV1explorer::GeoLocation, decorator: Google::Apis::SpectrumV1explorer::GeoLocation::Representation - - collection :spectrum_schedules, as: 'spectrumSchedules', class: Google::Apis::SpectrumV1explorer::SpectrumSchedule, decorator: Google::Apis::SpectrumV1explorer::SpectrumSchedule::Representation - - end - end - - class PawsGetSpectrumBatchRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :antenna, as: 'antenna', class: Google::Apis::SpectrumV1explorer::AntennaCharacteristics, decorator: Google::Apis::SpectrumV1explorer::AntennaCharacteristics::Representation - - property :capabilities, as: 'capabilities', class: Google::Apis::SpectrumV1explorer::DeviceCapabilities, decorator: Google::Apis::SpectrumV1explorer::DeviceCapabilities::Representation - - property :device_desc, as: 'deviceDesc', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - collection :locations, as: 'locations', class: Google::Apis::SpectrumV1explorer::GeoLocation, decorator: Google::Apis::SpectrumV1explorer::GeoLocation::Representation - - property :master_device_desc, as: 'masterDeviceDesc', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - property :owner, as: 'owner', class: Google::Apis::SpectrumV1explorer::DeviceOwner, decorator: Google::Apis::SpectrumV1explorer::DeviceOwner::Representation - - property :request_type, as: 'requestType' - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsGetSpectrumBatchResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :database_change, as: 'databaseChange', class: Google::Apis::SpectrumV1explorer::DbUpdateSpec, decorator: Google::Apis::SpectrumV1explorer::DbUpdateSpec::Representation - - property :device_desc, as: 'deviceDesc', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - collection :geo_spectrum_schedules, as: 'geoSpectrumSchedules', class: Google::Apis::SpectrumV1explorer::GeoSpectrumSchedule, decorator: Google::Apis::SpectrumV1explorer::GeoSpectrumSchedule::Representation - - property :kind, as: 'kind' - property :max_contiguous_bw_hz, as: 'maxContiguousBwHz' - property :max_total_bw_hz, as: 'maxTotalBwHz' - property :needs_spectrum_report, as: 'needsSpectrumReport' - property :ruleset_info, as: 'rulesetInfo', class: Google::Apis::SpectrumV1explorer::RulesetInfo, decorator: Google::Apis::SpectrumV1explorer::RulesetInfo::Representation - - property :timestamp, as: 'timestamp' - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsGetSpectrumRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :antenna, as: 'antenna', class: Google::Apis::SpectrumV1explorer::AntennaCharacteristics, decorator: Google::Apis::SpectrumV1explorer::AntennaCharacteristics::Representation - - property :capabilities, as: 'capabilities', class: Google::Apis::SpectrumV1explorer::DeviceCapabilities, decorator: Google::Apis::SpectrumV1explorer::DeviceCapabilities::Representation - - property :device_desc, as: 'deviceDesc', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - property :location, as: 'location', class: Google::Apis::SpectrumV1explorer::GeoLocation, decorator: Google::Apis::SpectrumV1explorer::GeoLocation::Representation - - property :master_device_desc, as: 'masterDeviceDesc', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - property :owner, as: 'owner', class: Google::Apis::SpectrumV1explorer::DeviceOwner, decorator: Google::Apis::SpectrumV1explorer::DeviceOwner::Representation - - property :request_type, as: 'requestType' - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsGetSpectrumResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :database_change, as: 'databaseChange', class: Google::Apis::SpectrumV1explorer::DbUpdateSpec, decorator: Google::Apis::SpectrumV1explorer::DbUpdateSpec::Representation - - property :device_desc, as: 'deviceDesc', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - property :kind, as: 'kind' - property :max_contiguous_bw_hz, as: 'maxContiguousBwHz' - property :max_total_bw_hz, as: 'maxTotalBwHz' - property :needs_spectrum_report, as: 'needsSpectrumReport' - property :ruleset_info, as: 'rulesetInfo', class: Google::Apis::SpectrumV1explorer::RulesetInfo, decorator: Google::Apis::SpectrumV1explorer::RulesetInfo::Representation - - collection :spectrum_schedules, as: 'spectrumSchedules', class: Google::Apis::SpectrumV1explorer::SpectrumSchedule, decorator: Google::Apis::SpectrumV1explorer::SpectrumSchedule::Representation - - property :timestamp, as: 'timestamp' - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsInitRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :device_desc, as: 'deviceDesc', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - property :location, as: 'location', class: Google::Apis::SpectrumV1explorer::GeoLocation, decorator: Google::Apis::SpectrumV1explorer::GeoLocation::Representation - - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsInitResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :database_change, as: 'databaseChange', class: Google::Apis::SpectrumV1explorer::DbUpdateSpec, decorator: Google::Apis::SpectrumV1explorer::DbUpdateSpec::Representation - - property :kind, as: 'kind' - property :ruleset_info, as: 'rulesetInfo', class: Google::Apis::SpectrumV1explorer::RulesetInfo, decorator: Google::Apis::SpectrumV1explorer::RulesetInfo::Representation - - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsNotifySpectrumUseRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :device_desc, as: 'deviceDesc', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - property :location, as: 'location', class: Google::Apis::SpectrumV1explorer::GeoLocation, decorator: Google::Apis::SpectrumV1explorer::GeoLocation::Representation - - collection :spectra, as: 'spectra', class: Google::Apis::SpectrumV1explorer::SpectrumMessage, decorator: Google::Apis::SpectrumV1explorer::SpectrumMessage::Representation - - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsNotifySpectrumUseResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsRegisterRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :antenna, as: 'antenna', class: Google::Apis::SpectrumV1explorer::AntennaCharacteristics, decorator: Google::Apis::SpectrumV1explorer::AntennaCharacteristics::Representation - - property :device_desc, as: 'deviceDesc', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - property :device_owner, as: 'deviceOwner', class: Google::Apis::SpectrumV1explorer::DeviceOwner, decorator: Google::Apis::SpectrumV1explorer::DeviceOwner::Representation - - property :location, as: 'location', class: Google::Apis::SpectrumV1explorer::GeoLocation, decorator: Google::Apis::SpectrumV1explorer::GeoLocation::Representation - - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsRegisterResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :database_change, as: 'databaseChange', class: Google::Apis::SpectrumV1explorer::DbUpdateSpec, decorator: Google::Apis::SpectrumV1explorer::DbUpdateSpec::Representation - - property :kind, as: 'kind' - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsVerifyDeviceRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :device_descs, as: 'deviceDescs', class: Google::Apis::SpectrumV1explorer::DeviceDescriptor, decorator: Google::Apis::SpectrumV1explorer::DeviceDescriptor::Representation - - property :type, as: 'type' - property :version, as: 'version' - end - end - - class PawsVerifyDeviceResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :database_change, as: 'databaseChange', class: Google::Apis::SpectrumV1explorer::DbUpdateSpec, decorator: Google::Apis::SpectrumV1explorer::DbUpdateSpec::Representation - - collection :device_validities, as: 'deviceValidities', class: Google::Apis::SpectrumV1explorer::DeviceValidity, decorator: Google::Apis::SpectrumV1explorer::DeviceValidity::Representation - - property :kind, as: 'kind' - property :type, as: 'type' - property :version, as: 'version' - end - end - - class RulesetInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :authority, as: 'authority' - property :max_location_change, as: 'maxLocationChange' - property :max_polling_secs, as: 'maxPollingSecs' - collection :ruleset_ids, as: 'rulesetIds' - end - end - - class SpectrumMessage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bandwidth, as: 'bandwidth' - collection :frequency_ranges, as: 'frequencyRanges', class: Google::Apis::SpectrumV1explorer::FrequencyRange, decorator: Google::Apis::SpectrumV1explorer::FrequencyRange::Representation - - end - end - - class SpectrumSchedule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :event_time, as: 'eventTime', class: Google::Apis::SpectrumV1explorer::EventTime, decorator: Google::Apis::SpectrumV1explorer::EventTime::Representation - - collection :spectra, as: 'spectra', class: Google::Apis::SpectrumV1explorer::SpectrumMessage, decorator: Google::Apis::SpectrumV1explorer::SpectrumMessage::Representation - - end - end - - class Vcard - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :adr, as: 'adr', class: Google::Apis::SpectrumV1explorer::VcardAddress, decorator: Google::Apis::SpectrumV1explorer::VcardAddress::Representation - - property :email, as: 'email', class: Google::Apis::SpectrumV1explorer::VcardTypedText, decorator: Google::Apis::SpectrumV1explorer::VcardTypedText::Representation - - property :fn, as: 'fn' - property :org, as: 'org', class: Google::Apis::SpectrumV1explorer::VcardTypedText, decorator: Google::Apis::SpectrumV1explorer::VcardTypedText::Representation - - property :tel, as: 'tel', class: Google::Apis::SpectrumV1explorer::VcardTelephone, decorator: Google::Apis::SpectrumV1explorer::VcardTelephone::Representation - - end - end - - class VcardAddress - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :country, as: 'country' - property :locality, as: 'locality' - property :pobox, as: 'pobox' - property :region, as: 'region' - property :street, as: 'street' - end - end - - class VcardTelephone - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :uri, as: 'uri' - end - end - - class VcardTypedText - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :text, as: 'text' - end - end - end - end -end diff --git a/generated/google/apis/spectrum_v1explorer/service.rb b/generated/google/apis/spectrum_v1explorer/service.rb deleted file mode 100644 index 81dc24288..000000000 --- a/generated/google/apis/spectrum_v1explorer/service.rb +++ /dev/null @@ -1,271 +0,0 @@ -# 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 SpectrumV1explorer - # Google Spectrum Database API - # - # API for spectrum-management functions. - # - # @example - # require 'google/apis/spectrum_v1explorer' - # - # Spectrum = Google::Apis::SpectrumV1explorer # Alias the module - # service = Spectrum::SpectrumService.new - # - # @see http://developers.google.com/spectrum - class SpectrumService < 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] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://www.googleapis.com/', 'spectrum/v1explorer/paws/') - @batch_path = 'batch/spectrum/v1explorer' - end - - # Requests information about the available spectrum for a device at a location. - # Requests from a fixed-mode device must include owner information so the device - # can be registered with the database. - # @param [Google::Apis::SpectrumV1explorer::PawsGetSpectrumRequest] paws_get_spectrum_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse] - # - # @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_paw_spectrum(paws_get_spectrum_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'getSpectrum', options) - command.request_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumRequest::Representation - command.request_object = paws_get_spectrum_request_object - command.response_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse::Representation - command.response_class = Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # The Google Spectrum Database does not support batch requests, so this method - # always yields an UNIMPLEMENTED error. - # @param [Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchRequest] paws_get_spectrum_batch_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse] - # - # @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_paw_spectrum_batch(paws_get_spectrum_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'getSpectrumBatch', options) - command.request_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchRequest::Representation - command.request_object = paws_get_spectrum_batch_request_object - command.response_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse::Representation - command.response_class = Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Initializes the connection between a white space device and the database. - # @param [Google::Apis::SpectrumV1explorer::PawsInitRequest] paws_init_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsInitResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SpectrumV1explorer::PawsInitResponse] - # - # @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 init_paw(paws_init_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'init', options) - command.request_representation = Google::Apis::SpectrumV1explorer::PawsInitRequest::Representation - command.request_object = paws_init_request_object - command.response_representation = Google::Apis::SpectrumV1explorer::PawsInitResponse::Representation - command.response_class = Google::Apis::SpectrumV1explorer::PawsInitResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Notifies the database that the device has selected certain frequency ranges - # for transmission. Only to be invoked when required by the regulator. The - # Google Spectrum Database does not operate in domains that require notification, - # so this always yields an UNIMPLEMENTED error. - # @param [Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseRequest] paws_notify_spectrum_use_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse] - # - # @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 notify_paw_spectrum_use(paws_notify_spectrum_use_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'notifySpectrumUse', options) - command.request_representation = Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseRequest::Representation - command.request_object = paws_notify_spectrum_use_request_object - command.response_representation = Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse::Representation - command.response_class = Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # The Google Spectrum Database implements registration in the getSpectrum method. - # As such this always returns an UNIMPLEMENTED error. - # @param [Google::Apis::SpectrumV1explorer::PawsRegisterRequest] paws_register_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsRegisterResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SpectrumV1explorer::PawsRegisterResponse] - # - # @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 register_paw(paws_register_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'register', options) - command.request_representation = Google::Apis::SpectrumV1explorer::PawsRegisterRequest::Representation - command.request_object = paws_register_request_object - command.response_representation = Google::Apis::SpectrumV1explorer::PawsRegisterResponse::Representation - command.response_class = Google::Apis::SpectrumV1explorer::PawsRegisterResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Validates a device for white space use in accordance with regulatory rules. - # The Google Spectrum Database does not support master/slave configurations, so - # this always yields an UNIMPLEMENTED error. - # @param [Google::Apis::SpectrumV1explorer::PawsVerifyDeviceRequest] paws_verify_device_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse] - # - # @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 verify_paw_device(paws_verify_device_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'verifyDevice', options) - command.request_representation = Google::Apis::SpectrumV1explorer::PawsVerifyDeviceRequest::Representation - command.request_object = paws_verify_device_request_object - command.response_representation = Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse::Representation - command.response_class = Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.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? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end diff --git a/generated/google/apis/sqladmin_v1beta3.rb b/generated/google/apis/sqladmin_v1beta3.rb new file mode 100644 index 000000000..f698394c7 --- /dev/null +++ b/generated/google/apis/sqladmin_v1beta3.rb @@ -0,0 +1,38 @@ +# 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/sqladmin_v1beta3/service.rb' +require 'google/apis/sqladmin_v1beta3/classes.rb' +require 'google/apis/sqladmin_v1beta3/representations.rb' + +module Google + module Apis + # Cloud SQL Admin API + # + # Cloud SQL provides the Cloud SQL Admin API, a REST API for administering your + # instances programmatically. + # + # @see https://cloud.google.com/sql/docs/reference/latest + module SqladminV1beta3 + VERSION = 'V1beta3' + REVISION = '20180727' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # Manage your Google SQL Service instances + AUTH_SQLSERVICE_ADMIN = 'https://www.googleapis.com/auth/sqlservice.admin' + end + end +end diff --git a/generated/google/apis/sqladmin_v1beta3/classes.rb b/generated/google/apis/sqladmin_v1beta3/classes.rb new file mode 100644 index 000000000..23cc55689 --- /dev/null +++ b/generated/google/apis/sqladmin_v1beta3/classes.rb @@ -0,0 +1,1632 @@ +# 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 SqladminV1beta3 + + # Database instance backup configuration. + class BackupConfiguration + include Google::Apis::Core::Hashable + + # Whether binary log is enabled. If backup configuration is disabled, binary log + # must be disabled as well. + # Corresponds to the JSON property `binaryLogEnabled` + # @return [Boolean] + attr_accessor :binary_log_enabled + alias_method :binary_log_enabled?, :binary_log_enabled + + # Whether this configuration is enabled. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Identifier for this configuration. This gets generated automatically when a + # backup configuration is created. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # This is always sql#backupConfiguration. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Whether replication log archiving is enabled. Replication log archiving is + # required for the point-in-time recovery (PITR) feature. PostgreSQL instances + # only. + # Corresponds to the JSON property `replicationLogArchivingEnabled` + # @return [Boolean] + attr_accessor :replication_log_archiving_enabled + alias_method :replication_log_archiving_enabled?, :replication_log_archiving_enabled + + # Start time for the daily backup configuration in UTC timezone in the 24 hour + # format - HH:MM. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled) + @enabled = args[:enabled] if args.key?(:enabled) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @replication_log_archiving_enabled = args[:replication_log_archiving_enabled] if args.key?(:replication_log_archiving_enabled) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # A database instance backup run resource. + class BackupRun + include Google::Apis::Core::Hashable + + # Backup Configuration identifier. + # Corresponds to the JSON property `backupConfiguration` + # @return [String] + attr_accessor :backup_configuration + + # The due time of this run in UTC timezone in RFC 3339 format, for example 2012- + # 11-15T16:19:00.094Z. + # Corresponds to the JSON property `dueTime` + # @return [DateTime] + attr_accessor :due_time + + # The time the backup operation completed in UTC timezone in RFC 3339 format, + # for example 2012-11-15T16:19:00.094Z. + # Corresponds to the JSON property `endTime` + # @return [DateTime] + attr_accessor :end_time + + # The time the run was enqueued in UTC timezone in RFC 3339 format, for example + # 2012-11-15T16:19:00.094Z. + # Corresponds to the JSON property `enqueuedTime` + # @return [DateTime] + attr_accessor :enqueued_time + + # Database instance operation error. + # Corresponds to the JSON property `error` + # @return [Google::Apis::SqladminV1beta3::OperationError] + attr_accessor :error + + # Name of the database instance. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # This is always sql#backupRun. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The time the backup operation actually started in UTC timezone in RFC 3339 + # format, for example 2012-11-15T16:19:00.094Z. + # Corresponds to the JSON property `startTime` + # @return [DateTime] + attr_accessor :start_time + + # The status of this run. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration) + @due_time = args[:due_time] if args.key?(:due_time) + @end_time = args[:end_time] if args.key?(:end_time) + @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time) + @error = args[:error] if args.key?(:error) + @instance = args[:instance] if args.key?(:instance) + @kind = args[:kind] if args.key?(:kind) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + end + end + + # Backup run list results. + class BackupRunsListResponse + include Google::Apis::Core::Hashable + + # A list of backup runs in reverse chronological order of the enqueued time. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # This is always sql#backupRunsList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The continuation token, used to page through large result sets. Provide this + # value in a subsequent request to return 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) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Binary log coordinates. + class BinLogCoordinates + include Google::Apis::Core::Hashable + + # Name of the binary log file for a Cloud SQL instance. + # Corresponds to the JSON property `binLogFileName` + # @return [String] + attr_accessor :bin_log_file_name + + # Position (offset) within the binary log file. + # Corresponds to the JSON property `binLogPosition` + # @return [Fixnum] + attr_accessor :bin_log_position + + # This is always sql#binLogCoordinates. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bin_log_file_name = args[:bin_log_file_name] if args.key?(:bin_log_file_name) + @bin_log_position = args[:bin_log_position] if args.key?(:bin_log_position) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Database instance clone context. + class CloneContext + include Google::Apis::Core::Hashable + + # Binary log coordinates. + # Corresponds to the JSON property `binLogCoordinates` + # @return [Google::Apis::SqladminV1beta3::BinLogCoordinates] + attr_accessor :bin_log_coordinates + + # Name of the Cloud SQL instance to be created as a clone. + # Corresponds to the JSON property `destinationInstanceName` + # @return [String] + attr_accessor :destination_instance_name + + # This is always sql#cloneContext. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The epoch timestamp, in milliseconds, of the time to which a point-in-time + # recovery (PITR) is performed. PostgreSQL instances only. For MySQL instances, + # use the binLogCoordinates property. + # Corresponds to the JSON property `pitrTimestampMs` + # @return [Fixnum] + attr_accessor :pitr_timestamp_ms + + # Name of the Cloud SQL instance to be cloned. + # Corresponds to the JSON property `sourceInstanceName` + # @return [String] + attr_accessor :source_instance_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates) + @destination_instance_name = args[:destination_instance_name] if args.key?(:destination_instance_name) + @kind = args[:kind] if args.key?(:kind) + @pitr_timestamp_ms = args[:pitr_timestamp_ms] if args.key?(:pitr_timestamp_ms) + @source_instance_name = args[:source_instance_name] if args.key?(:source_instance_name) + end + end + + # MySQL flags for Cloud SQL instances. + class DatabaseFlags + include Google::Apis::Core::Hashable + + # The name of the flag. These flags are passed at instance startup, so include + # both MySQL server options and MySQL system variables. Flags should be + # specified with underscores, not hyphens. For more information, see Configuring + # MySQL Flags in the Google Cloud SQL documentation, as well as the official + # MySQL documentation for server options and system variables. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The value of the flag. Booleans should be set to on for true and off for false. + # This field must be omitted if the flag doesn't take a value. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + + # A Cloud SQL instance resource. + class DatabaseInstance + include Google::Apis::Core::Hashable + + # Connection name of the Cloud SQL instance used in connection strings. + # Corresponds to the JSON property `connectionName` + # @return [String] + attr_accessor :connection_name + + # The current disk usage of the instance in bytes. + # Corresponds to the JSON property `currentDiskSize` + # @return [Fixnum] + attr_accessor :current_disk_size + + # The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. Defaults + # to MYSQL_5_5. The databaseVersion cannot be changed after instance creation. + # Corresponds to the JSON property `databaseVersion` + # @return [String] + attr_accessor :database_version + + # HTTP 1.1 Entity tag for the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Name of the Cloud SQL instance. This does not include the project ID. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # The instance type. This can be one of the following. + # CLOUD_SQL_INSTANCE: Regular Cloud SQL instance. + # READ_REPLICA_INSTANCE: Cloud SQL instance acting as a read-replica. + # Corresponds to the JSON property `instanceType` + # @return [String] + attr_accessor :instance_type + + # The assigned IP addresses for the instance. + # Corresponds to the JSON property `ipAddresses` + # @return [Array] + attr_accessor :ip_addresses + + # The IPv6 address assigned to the instance. + # Corresponds to the JSON property `ipv6Address` + # @return [String] + attr_accessor :ipv6_address + + # This is always sql#instance. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the instance which will act as master in the replication setup. + # Corresponds to the JSON property `masterInstanceName` + # @return [String] + attr_accessor :master_instance_name + + # The maximum disk size of the instance in bytes. + # Corresponds to the JSON property `maxDiskSize` + # @return [Fixnum] + attr_accessor :max_disk_size + + # The project ID of the project containing the Cloud SQL instance. The Google + # apps domain is prefixed if applicable. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The geographical region. Can be us-central, asia-east1 or europe-west1. + # Defaults to us-central. The region can not be changed after instance creation. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # The replicas of the instance. + # Corresponds to the JSON property `replicaNames` + # @return [Array] + attr_accessor :replica_names + + # SslCerts Resource + # Corresponds to the JSON property `serverCaCert` + # @return [Google::Apis::SqladminV1beta3::SslCert] + attr_accessor :server_ca_cert + + # The service account email address assigned to the instance. + # Corresponds to the JSON property `serviceAccountEmailAddress` + # @return [String] + attr_accessor :service_account_email_address + + # Database instance settings. + # Corresponds to the JSON property `settings` + # @return [Google::Apis::SqladminV1beta3::Settings] + attr_accessor :settings + + # The current serving state of the Cloud SQL instance. This can be one of the + # following. + # RUNNABLE: The instance is running, or is ready to run when accessed. + # SUSPENDED: The instance is not available, for example due to problems with + # billing. + # PENDING_CREATE: The instance is being created. + # MAINTENANCE: The instance is down for maintenance. + # UNKNOWN_STATE: The state of the instance is unknown. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @connection_name = args[:connection_name] if args.key?(:connection_name) + @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size) + @database_version = args[:database_version] if args.key?(:database_version) + @etag = args[:etag] if args.key?(:etag) + @instance = args[:instance] if args.key?(:instance) + @instance_type = args[:instance_type] if args.key?(:instance_type) + @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) + @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address) + @kind = args[:kind] if args.key?(:kind) + @master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name) + @max_disk_size = args[:max_disk_size] if args.key?(:max_disk_size) + @project = args[:project] if args.key?(:project) + @region = args[:region] if args.key?(:region) + @replica_names = args[:replica_names] if args.key?(:replica_names) + @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) + @service_account_email_address = args[:service_account_email_address] if args.key?(:service_account_email_address) + @settings = args[:settings] if args.key?(:settings) + @state = args[:state] if args.key?(:state) + end + end + + # Database instance export context. + class ExportContext + include Google::Apis::Core::Hashable + + # Databases (for example, guestbook) from which the export is made. If + # unspecified, all databases are exported. + # Corresponds to the JSON property `database` + # @return [Array] + attr_accessor :database + + # This is always sql#exportContext. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Tables to export, or that were exported, from the specified database. If you + # specify tables, specify one and only one database. + # Corresponds to the JSON property `table` + # @return [Array] + attr_accessor :table + + # The path to the file in Google Cloud Storage where the export will be stored, + # or where it was already stored. The URI is in the form gs://bucketName/ + # fileName. If the file already exists, the operation fails. If the filename + # ends with .gz, the contents are compressed. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @database = args[:database] if args.key?(:database) + @kind = args[:kind] if args.key?(:kind) + @table = args[:table] if args.key?(:table) + @uri = args[:uri] if args.key?(:uri) + end + end + + # A Google Cloud SQL service flag resource. + class Flag + include Google::Apis::Core::Hashable + + # For STRING flags, a list of strings that the value can be set to. + # Corresponds to the JSON property `allowedStringValues` + # @return [Array] + attr_accessor :allowed_string_values + + # The database version this flag applies to. Currently this can only be [ + # MYSQL_5_5]. + # Corresponds to the JSON property `appliesTo` + # @return [Array] + attr_accessor :applies_to + + # This is always sql#flag. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # For INTEGER flags, the maximum allowed value. + # Corresponds to the JSON property `maxValue` + # @return [Fixnum] + attr_accessor :max_value + + # For INTEGER flags, the minimum allowed value. + # Corresponds to the JSON property `minValue` + # @return [Fixnum] + attr_accessor :min_value + + # This is the name of the flag. Flag names always use underscores, not hyphens, + # e.g. max_allowed_packet + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or + # NONE. NONE is used for flags which do not take a value, such as + # skip_grant_tables. + # 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) + @allowed_string_values = args[:allowed_string_values] if args.key?(:allowed_string_values) + @applies_to = args[:applies_to] if args.key?(:applies_to) + @kind = args[:kind] if args.key?(:kind) + @max_value = args[:max_value] if args.key?(:max_value) + @min_value = args[:min_value] if args.key?(:min_value) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + end + end + + # Flags list response. + class FlagsListResponse + include Google::Apis::Core::Hashable + + # List of flags. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # This is always sql#flagsList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Database instance import context. + class ImportContext + include Google::Apis::Core::Hashable + + # The database (for example, guestbook) to which the import is made. If not set, + # it is assumed that the database is specified in the file to be imported. + # Corresponds to the JSON property `database` + # @return [String] + attr_accessor :database + + # This is always sql#importContext. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A path to the MySQL dump file in Google Cloud Storage from which the import is + # made. The URI is in the form gs://bucketName/fileName. Compressed gzip files (. + # gz) are also supported. + # Corresponds to the JSON property `uri` + # @return [Array] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @database = args[:database] if args.key?(:database) + @kind = args[:kind] if args.key?(:kind) + @uri = args[:uri] if args.key?(:uri) + end + end + + # An Operations resource contains information about database instance operations + # such as create, delete, and restart. Operations resources are created in + # response to operations that were initiated; you never create them directly. + class InstanceOperation + include Google::Apis::Core::Hashable + + # The time this operation finished in UTC timezone in RFC 3339 format, for + # example 2012-11-15T16:19:00.094Z. + # Corresponds to the JSON property `endTime` + # @return [DateTime] + attr_accessor :end_time + + # The time this operation was enqueued in UTC timezone in RFC 3339 format, for + # example 2012-11-15T16:19:00.094Z. + # Corresponds to the JSON property `enqueuedTime` + # @return [DateTime] + attr_accessor :enqueued_time + + # The error(s) encountered by this operation. Only set if the operation results + # in an error. + # Corresponds to the JSON property `error` + # @return [Array] + attr_accessor :error + + # Database instance export context. + # Corresponds to the JSON property `exportContext` + # @return [Google::Apis::SqladminV1beta3::ExportContext] + attr_accessor :export_context + + # Database instance import context. + # Corresponds to the JSON property `importContext` + # @return [Google::Apis::SqladminV1beta3::ImportContext] + attr_accessor :import_context + + # Name of the database instance. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # This is always sql#instanceOperation. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + # The type of the operation. Valid values are CREATE, DELETE, UPDATE, RESTART, + # IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The time this operation actually started in UTC timezone in RFC 3339 format, + # for example 2012-11-15T16:19:00.094Z. + # Corresponds to the JSON property `startTime` + # @return [DateTime] + attr_accessor :start_time + + # The state of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The email address of the user who initiated this operation. + # Corresponds to the JSON property `userEmailAddress` + # @return [String] + attr_accessor :user_email_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time) + @error = args[:error] if args.key?(:error) + @export_context = args[:export_context] if args.key?(:export_context) + @import_context = args[:import_context] if args.key?(:import_context) + @instance = args[:instance] if args.key?(:instance) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @start_time = args[:start_time] if args.key?(:start_time) + @state = args[:state] if args.key?(:state) + @user_email_address = args[:user_email_address] if args.key?(:user_email_address) + end + end + + # Database instance set root password request. + class InstanceSetRootPasswordRequest + include Google::Apis::Core::Hashable + + # Database instance set root password context. + # Corresponds to the JSON property `setRootPasswordContext` + # @return [Google::Apis::SqladminV1beta3::SetRootPasswordContext] + attr_accessor :set_root_password_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @set_root_password_context = args[:set_root_password_context] if args.key?(:set_root_password_context) + end + end + + # Database instance clone request. + class InstancesCloneRequest + include Google::Apis::Core::Hashable + + # Database instance clone context. + # Corresponds to the JSON property `cloneContext` + # @return [Google::Apis::SqladminV1beta3::CloneContext] + attr_accessor :clone_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @clone_context = args[:clone_context] if args.key?(:clone_context) + end + end + + # Database instance clone response. + class InstancesCloneResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesClone. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An unique identifier for the operation associated with the cloned instance. + # You can use this identifier to retrieve the Operations resource, which has + # information about the operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # Database instance delete response. + class InstancesDeleteResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesDelete. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # Database instance export request. + class InstancesExportRequest + include Google::Apis::Core::Hashable + + # Database instance export context. + # Corresponds to the JSON property `exportContext` + # @return [Google::Apis::SqladminV1beta3::ExportContext] + attr_accessor :export_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @export_context = args[:export_context] if args.key?(:export_context) + end + end + + # Database instance export response. + class InstancesExportResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesExport. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # Database instance import request. + class InstancesImportRequest + include Google::Apis::Core::Hashable + + # Database instance import context. + # Corresponds to the JSON property `importContext` + # @return [Google::Apis::SqladminV1beta3::ImportContext] + attr_accessor :import_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @import_context = args[:import_context] if args.key?(:import_context) + end + end + + # Database instance import response. + class InstancesImportResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesImport. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # Database instance insert response. + class InstancesInsertResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesInsert. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # Database instances list response. + class InstancesListResponse + include Google::Apis::Core::Hashable + + # List of database instance resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # This is always sql#instancesList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The continuation token, used to page through large result sets. Provide this + # value in a subsequent request to return 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) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Database promote read replica response. + class InstancesPromoteReplicaResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesPromoteReplica. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # Database instance resetSslConfig response. + class InstancesResetSslConfigResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesResetSslConfig. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. All ssl client certificates will be deleted and a new server + # certificate will be created. Does not take effect until the next instance + # restart. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # Database instance restart response. + class InstancesRestartResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesRestart. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # Database instance restore backup response. + class InstancesRestoreBackupResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesRestoreBackup. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # Database instance set root password response. + class InstancesSetRootPasswordResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesSetRootPassword. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # Database instance update response. + class InstancesUpdateResponse + include Google::Apis::Core::Hashable + + # This is always sql#instancesUpdate. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve information about the operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # IP Management configuration. + class IpConfiguration + include Google::Apis::Core::Hashable + + # The list of external networks that are allowed to connect to the instance + # using the IP. In CIDR notation, also known as 'slash' notation (e.g. 192.168. + # 100.0/24). + # Corresponds to the JSON property `authorizedNetworks` + # @return [Array] + attr_accessor :authorized_networks + + # Whether the instance should be assigned an IP address or not. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # This is always sql#ipConfiguration. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Whether SSL connections over IP should be enforced or not. + # Corresponds to the JSON property `requireSsl` + # @return [Boolean] + attr_accessor :require_ssl + alias_method :require_ssl?, :require_ssl + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks) + @enabled = args[:enabled] if args.key?(:enabled) + @kind = args[:kind] if args.key?(:kind) + @require_ssl = args[:require_ssl] if args.key?(:require_ssl) + end + end + + # Database instance IP Mapping. + class IpMapping + include Google::Apis::Core::Hashable + + # The IP address assigned. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # The due time for this IP to be retired in RFC 3339 format, for example 2012-11- + # 15T16:19:00.094Z. This field is only available when the IP is scheduled to be + # retired. + # Corresponds to the JSON property `timeToRetire` + # @return [DateTime] + attr_accessor :time_to_retire + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @time_to_retire = args[:time_to_retire] if args.key?(:time_to_retire) + end + end + + # Preferred location. This specifies where a Cloud SQL instance should + # preferably be located, either in a specific Compute Engine zone, or co-located + # with an App Engine application. Note that if the preferred location is not + # available, the instance will be located as close as possible within the region. + # Only one location may be specified. + class LocationPreference + include Google::Apis::Core::Hashable + + # The App Engine application to follow, it must be in the same region as the + # Cloud SQL instance. + # Corresponds to the JSON property `followGaeApplication` + # @return [String] + attr_accessor :follow_gae_application + + # This is always sql#locationPreference. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The preferred Compute Engine zone (e.g. us-centra1-a, us-central1-b, etc.). + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @follow_gae_application = args[:follow_gae_application] if args.key?(:follow_gae_application) + @kind = args[:kind] if args.key?(:kind) + @zone = args[:zone] if args.key?(:zone) + end + end + + # Database instance operation error. + class OperationError + include Google::Apis::Core::Hashable + + # Identifies the specific error that occurred. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # This is always sql#operationError. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @kind = args[:kind] if args.key?(:kind) + end + end + + # Database instance list operations response. + class OperationsListResponse + include Google::Apis::Core::Hashable + + # List of operation resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # This is always sql#operationsList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The continuation token, used to page through large result sets. Provide this + # value in a subsequent request to return 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) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Database instance set root password context. + class SetRootPasswordContext + include Google::Apis::Core::Hashable + + # This is always sql#setRootUserContext. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The password for the root user. + # Corresponds to the JSON property `password` + # @return [String] + attr_accessor :password + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @password = args[:password] if args.key?(:password) + end + end + + # Database instance settings. + class Settings + include Google::Apis::Core::Hashable + + # The activation policy for this instance. This specifies when the instance + # should be activated and is applicable only when the instance state is RUNNABLE. + # This can be one of the following. + # ALWAYS: The instance should always be active. + # NEVER: The instance should never be activated. + # ON_DEMAND: The instance is activated upon receiving requests. + # Corresponds to the JSON property `activationPolicy` + # @return [String] + attr_accessor :activation_policy + + # The App Engine app IDs that can access this instance. + # Corresponds to the JSON property `authorizedGaeApplications` + # @return [Array] + attr_accessor :authorized_gae_applications + + # The daily backup configuration for the instance. + # Corresponds to the JSON property `backupConfiguration` + # @return [Array] + attr_accessor :backup_configuration + + # The database flags passed to the instance at startup. + # Corresponds to the JSON property `databaseFlags` + # @return [Array] + attr_accessor :database_flags + + # Configuration specific to read replica instance. Indicates whether replication + # is enabled or not. + # Corresponds to the JSON property `databaseReplicationEnabled` + # @return [Boolean] + attr_accessor :database_replication_enabled + alias_method :database_replication_enabled?, :database_replication_enabled + + # IP Management configuration. + # Corresponds to the JSON property `ipConfiguration` + # @return [Google::Apis::SqladminV1beta3::IpConfiguration] + attr_accessor :ip_configuration + + # This is always sql#settings. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Preferred location. This specifies where a Cloud SQL instance should + # preferably be located, either in a specific Compute Engine zone, or co-located + # with an App Engine application. Note that if the preferred location is not + # available, the instance will be located as close as possible within the region. + # Only one location may be specified. + # Corresponds to the JSON property `locationPreference` + # @return [Google::Apis::SqladminV1beta3::LocationPreference] + attr_accessor :location_preference + + # The pricing plan for this instance. This can be either PER_USE or PACKAGE. + # Corresponds to the JSON property `pricingPlan` + # @return [String] + attr_accessor :pricing_plan + + # The type of replication this instance uses. This can be either ASYNCHRONOUS or + # SYNCHRONOUS. + # Corresponds to the JSON property `replicationType` + # @return [String] + attr_accessor :replication_type + + # The version of instance settings. This is a required field for update method + # to make sure concurrent updates are handled properly. During update, use the + # most recent settingsVersion value for this instance and do not try to update + # this value. + # Corresponds to the JSON property `settingsVersion` + # @return [Fixnum] + attr_accessor :settings_version + + # The tier of service for this instance, for example D1, D2. For more + # information, see pricing. + # Corresponds to the JSON property `tier` + # @return [String] + attr_accessor :tier + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @activation_policy = args[:activation_policy] if args.key?(:activation_policy) + @authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications) + @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration) + @database_flags = args[:database_flags] if args.key?(:database_flags) + @database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled) + @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration) + @kind = args[:kind] if args.key?(:kind) + @location_preference = args[:location_preference] if args.key?(:location_preference) + @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan) + @replication_type = args[:replication_type] if args.key?(:replication_type) + @settings_version = args[:settings_version] if args.key?(:settings_version) + @tier = args[:tier] if args.key?(:tier) + end + end + + # SslCerts Resource + class SslCert + include Google::Apis::Core::Hashable + + # PEM representation. + # Corresponds to the JSON property `cert` + # @return [String] + attr_accessor :cert + + # Serial number, as extracted from the certificate. + # Corresponds to the JSON property `certSerialNumber` + # @return [String] + attr_accessor :cert_serial_number + + # User supplied name. Constrained to [a-zA-Z.-_ ]+. + # Corresponds to the JSON property `commonName` + # @return [String] + attr_accessor :common_name + + # Time when the certificate was created. + # Corresponds to the JSON property `createTime` + # @return [DateTime] + attr_accessor :create_time + + # Time when the certificate expires. + # Corresponds to the JSON property `expirationTime` + # @return [DateTime] + attr_accessor :expiration_time + + # Name of the database instance. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # This is always sql#sslCert. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Sha1 Fingerprint. + # Corresponds to the JSON property `sha1Fingerprint` + # @return [String] + attr_accessor :sha1_fingerprint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cert = args[:cert] if args.key?(:cert) + @cert_serial_number = args[:cert_serial_number] if args.key?(:cert_serial_number) + @common_name = args[:common_name] if args.key?(:common_name) + @create_time = args[:create_time] if args.key?(:create_time) + @expiration_time = args[:expiration_time] if args.key?(:expiration_time) + @instance = args[:instance] if args.key?(:instance) + @kind = args[:kind] if args.key?(:kind) + @sha1_fingerprint = args[:sha1_fingerprint] if args.key?(:sha1_fingerprint) + end + end + + # SslCertDetail. + class SslCertDetail + include Google::Apis::Core::Hashable + + # SslCerts Resource + # Corresponds to the JSON property `certInfo` + # @return [Google::Apis::SqladminV1beta3::SslCert] + attr_accessor :cert_info + + # The private key for the client cert, in pem format. Keep private in order to + # protect your security. + # Corresponds to the JSON property `certPrivateKey` + # @return [String] + attr_accessor :cert_private_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cert_info = args[:cert_info] if args.key?(:cert_info) + @cert_private_key = args[:cert_private_key] if args.key?(:cert_private_key) + end + end + + # SslCert delete response. + class SslCertsDeleteResponse + include Google::Apis::Core::Hashable + + # This is always sql#sslCertsDelete. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # An identifier that uniquely identifies the operation. You can use this + # identifier to retrieve the Operations resource that has information about the + # operation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) + end + end + + # SslCerts insert request. + class SslCertsInsertRequest + include Google::Apis::Core::Hashable + + # User supplied name. Must be a distinct name from the other certificates for + # this instance. New certificates will not be usable until the instance is + # restarted. + # Corresponds to the JSON property `commonName` + # @return [String] + attr_accessor :common_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common_name = args[:common_name] if args.key?(:common_name) + end + end + + # SslCert insert response. + class SslCertsInsertResponse + include Google::Apis::Core::Hashable + + # SslCertDetail. + # Corresponds to the JSON property `clientCert` + # @return [Google::Apis::SqladminV1beta3::SslCertDetail] + attr_accessor :client_cert + + # This is always sql#sslCertsInsert. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # SslCerts Resource + # Corresponds to the JSON property `serverCaCert` + # @return [Google::Apis::SqladminV1beta3::SslCert] + attr_accessor :server_ca_cert + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_cert = args[:client_cert] if args.key?(:client_cert) + @kind = args[:kind] if args.key?(:kind) + @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) + end + end + + # SslCerts list response. + class SslCertsListResponse + include Google::Apis::Core::Hashable + + # List of client certificates for the instance. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # This is always sql#sslCertsList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A Google Cloud SQL service tier resource. + class Tier + include Google::Apis::Core::Hashable + + # The maximum disk size of this tier in bytes. + # Corresponds to the JSON property `DiskQuota` + # @return [Fixnum] + attr_accessor :disk_quota + + # The maximum RAM usage of this tier in bytes. + # Corresponds to the JSON property `RAM` + # @return [Fixnum] + attr_accessor :ram + + # This is always sql#tier. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The applicable regions for this tier. + # Corresponds to the JSON property `region` + # @return [Array] + attr_accessor :region + + # An identifier for the service tier, for example D1, D2 etc. For related + # information, see Pricing. + # Corresponds to the JSON property `tier` + # @return [String] + attr_accessor :tier + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disk_quota = args[:disk_quota] if args.key?(:disk_quota) + @ram = args[:ram] if args.key?(:ram) + @kind = args[:kind] if args.key?(:kind) + @region = args[:region] if args.key?(:region) + @tier = args[:tier] if args.key?(:tier) + end + end + + # Tiers list response. + class TiersListResponse + include Google::Apis::Core::Hashable + + # List of tiers. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # This is always sql#tiersList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + end + end + end + end +end diff --git a/generated/google/apis/sqladmin_v1beta3/representations.rb b/generated/google/apis/sqladmin_v1beta3/representations.rb new file mode 100644 index 000000000..4c7afe8f2 --- /dev/null +++ b/generated/google/apis/sqladmin_v1beta3/representations.rb @@ -0,0 +1,733 @@ +# 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 SqladminV1beta3 + + class BackupConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupRun + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupRunsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BinLogCoordinates + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloneContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatabaseFlags + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatabaseInstance + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Flag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FlagsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ImportContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstanceOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstanceSetRootPasswordRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesCloneRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesCloneResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesDeleteResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesExportRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesExportResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesImportRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesImportResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesInsertResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesPromoteReplicaResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesResetSslConfigResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesRestartResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesRestoreBackupResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesSetRootPasswordResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstancesUpdateResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IpConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IpMapping + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LocationPreference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperationError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperationsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetRootPasswordContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Settings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SslCert + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SslCertDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SslCertsDeleteResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SslCertsInsertRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SslCertsInsertResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SslCertsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Tier + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TiersListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :binary_log_enabled, as: 'binaryLogEnabled' + property :enabled, as: 'enabled' + property :id, as: 'id' + property :kind, as: 'kind' + property :replication_log_archiving_enabled, as: 'replicationLogArchivingEnabled' + property :start_time, as: 'startTime' + end + end + + class BackupRun + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :backup_configuration, as: 'backupConfiguration' + property :due_time, as: 'dueTime', type: DateTime + + property :end_time, as: 'endTime', type: DateTime + + property :enqueued_time, as: 'enqueuedTime', type: DateTime + + property :error, as: 'error', class: Google::Apis::SqladminV1beta3::OperationError, decorator: Google::Apis::SqladminV1beta3::OperationError::Representation + + property :instance, as: 'instance' + property :kind, as: 'kind' + property :start_time, as: 'startTime', type: DateTime + + property :status, as: 'status' + end + end + + class BackupRunsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::BackupRun, decorator: Google::Apis::SqladminV1beta3::BackupRun::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class BinLogCoordinates + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bin_log_file_name, as: 'binLogFileName' + property :bin_log_position, :numeric_string => true, as: 'binLogPosition' + property :kind, as: 'kind' + end + end + + class CloneContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bin_log_coordinates, as: 'binLogCoordinates', class: Google::Apis::SqladminV1beta3::BinLogCoordinates, decorator: Google::Apis::SqladminV1beta3::BinLogCoordinates::Representation + + property :destination_instance_name, as: 'destinationInstanceName' + property :kind, as: 'kind' + property :pitr_timestamp_ms, :numeric_string => true, as: 'pitrTimestampMs' + property :source_instance_name, as: 'sourceInstanceName' + end + end + + class DatabaseFlags + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :value, as: 'value' + end + end + + class DatabaseInstance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :connection_name, as: 'connectionName' + property :current_disk_size, :numeric_string => true, as: 'currentDiskSize' + property :database_version, as: 'databaseVersion' + property :etag, as: 'etag' + property :instance, as: 'instance' + property :instance_type, as: 'instanceType' + collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta3::IpMapping, decorator: Google::Apis::SqladminV1beta3::IpMapping::Representation + + property :ipv6_address, as: 'ipv6Address' + property :kind, as: 'kind' + property :master_instance_name, as: 'masterInstanceName' + property :max_disk_size, :numeric_string => true, as: 'maxDiskSize' + property :project, as: 'project' + property :region, as: 'region' + collection :replica_names, as: 'replicaNames' + property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta3::SslCert, decorator: Google::Apis::SqladminV1beta3::SslCert::Representation + + property :service_account_email_address, as: 'serviceAccountEmailAddress' + property :settings, as: 'settings', class: Google::Apis::SqladminV1beta3::Settings, decorator: Google::Apis::SqladminV1beta3::Settings::Representation + + property :state, as: 'state' + end + end + + class ExportContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :database, as: 'database' + property :kind, as: 'kind' + collection :table, as: 'table' + property :uri, as: 'uri' + end + end + + class Flag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :allowed_string_values, as: 'allowedStringValues' + collection :applies_to, as: 'appliesTo' + property :kind, as: 'kind' + property :max_value, :numeric_string => true, as: 'maxValue' + property :min_value, :numeric_string => true, as: 'minValue' + property :name, as: 'name' + property :type, as: 'type' + end + end + + class FlagsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::Flag, decorator: Google::Apis::SqladminV1beta3::Flag::Representation + + property :kind, as: 'kind' + end + end + + class ImportContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :database, as: 'database' + property :kind, as: 'kind' + collection :uri, as: 'uri' + end + end + + class InstanceOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime', type: DateTime + + property :enqueued_time, as: 'enqueuedTime', type: DateTime + + collection :error, as: 'error', class: Google::Apis::SqladminV1beta3::OperationError, decorator: Google::Apis::SqladminV1beta3::OperationError::Representation + + property :export_context, as: 'exportContext', class: Google::Apis::SqladminV1beta3::ExportContext, decorator: Google::Apis::SqladminV1beta3::ExportContext::Representation + + property :import_context, as: 'importContext', class: Google::Apis::SqladminV1beta3::ImportContext, decorator: Google::Apis::SqladminV1beta3::ImportContext::Representation + + property :instance, as: 'instance' + property :kind, as: 'kind' + property :operation, as: 'operation' + property :operation_type, as: 'operationType' + property :start_time, as: 'startTime', type: DateTime + + property :state, as: 'state' + property :user_email_address, as: 'userEmailAddress' + end + end + + class InstanceSetRootPasswordRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :set_root_password_context, as: 'setRootPasswordContext', class: Google::Apis::SqladminV1beta3::SetRootPasswordContext, decorator: Google::Apis::SqladminV1beta3::SetRootPasswordContext::Representation + + end + end + + class InstancesCloneRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :clone_context, as: 'cloneContext', class: Google::Apis::SqladminV1beta3::CloneContext, decorator: Google::Apis::SqladminV1beta3::CloneContext::Representation + + end + end + + class InstancesCloneResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class InstancesDeleteResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class InstancesExportRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :export_context, as: 'exportContext', class: Google::Apis::SqladminV1beta3::ExportContext, decorator: Google::Apis::SqladminV1beta3::ExportContext::Representation + + end + end + + class InstancesExportResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class InstancesImportRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :import_context, as: 'importContext', class: Google::Apis::SqladminV1beta3::ImportContext, decorator: Google::Apis::SqladminV1beta3::ImportContext::Representation + + end + end + + class InstancesImportResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class InstancesInsertResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class InstancesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::DatabaseInstance, decorator: Google::Apis::SqladminV1beta3::DatabaseInstance::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class InstancesPromoteReplicaResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class InstancesResetSslConfigResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class InstancesRestartResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class InstancesRestoreBackupResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class InstancesSetRootPasswordResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class InstancesUpdateResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class IpConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :authorized_networks, as: 'authorizedNetworks' + property :enabled, as: 'enabled' + property :kind, as: 'kind' + property :require_ssl, as: 'requireSsl' + end + end + + class IpMapping + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip_address, as: 'ipAddress' + property :time_to_retire, as: 'timeToRetire', type: DateTime + + end + end + + class LocationPreference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :follow_gae_application, as: 'followGaeApplication' + property :kind, as: 'kind' + property :zone, as: 'zone' + end + end + + class OperationError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :kind, as: 'kind' + end + end + + class OperationsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::InstanceOperation, decorator: Google::Apis::SqladminV1beta3::InstanceOperation::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class SetRootPasswordContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :password, as: 'password' + end + end + + class Settings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :activation_policy, as: 'activationPolicy' + collection :authorized_gae_applications, as: 'authorizedGaeApplications' + collection :backup_configuration, as: 'backupConfiguration', class: Google::Apis::SqladminV1beta3::BackupConfiguration, decorator: Google::Apis::SqladminV1beta3::BackupConfiguration::Representation + + collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1beta3::DatabaseFlags, decorator: Google::Apis::SqladminV1beta3::DatabaseFlags::Representation + + property :database_replication_enabled, as: 'databaseReplicationEnabled' + property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqladminV1beta3::IpConfiguration, decorator: Google::Apis::SqladminV1beta3::IpConfiguration::Representation + + property :kind, as: 'kind' + property :location_preference, as: 'locationPreference', class: Google::Apis::SqladminV1beta3::LocationPreference, decorator: Google::Apis::SqladminV1beta3::LocationPreference::Representation + + property :pricing_plan, as: 'pricingPlan' + property :replication_type, as: 'replicationType' + property :settings_version, :numeric_string => true, as: 'settingsVersion' + property :tier, as: 'tier' + end + end + + class SslCert + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cert, as: 'cert' + property :cert_serial_number, as: 'certSerialNumber' + property :common_name, as: 'commonName' + property :create_time, as: 'createTime', type: DateTime + + property :expiration_time, as: 'expirationTime', type: DateTime + + property :instance, as: 'instance' + property :kind, as: 'kind' + property :sha1_fingerprint, as: 'sha1Fingerprint' + end + end + + class SslCertDetail + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cert_info, as: 'certInfo', class: Google::Apis::SqladminV1beta3::SslCert, decorator: Google::Apis::SqladminV1beta3::SslCert::Representation + + property :cert_private_key, as: 'certPrivateKey' + end + end + + class SslCertsDeleteResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :operation, as: 'operation' + end + end + + class SslCertsInsertRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common_name, as: 'commonName' + end + end + + class SslCertsInsertResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :client_cert, as: 'clientCert', class: Google::Apis::SqladminV1beta3::SslCertDetail, decorator: Google::Apis::SqladminV1beta3::SslCertDetail::Representation + + property :kind, as: 'kind' + property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta3::SslCert, decorator: Google::Apis::SqladminV1beta3::SslCert::Representation + + end + end + + class SslCertsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::SslCert, decorator: Google::Apis::SqladminV1beta3::SslCert::Representation + + property :kind, as: 'kind' + end + end + + class Tier + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disk_quota, :numeric_string => true, as: 'DiskQuota' + property :ram, :numeric_string => true, as: 'RAM' + property :kind, as: 'kind' + collection :region, as: 'region' + property :tier, as: 'tier' + end + end + + class TiersListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::Tier, decorator: Google::Apis::SqladminV1beta3::Tier::Representation + + property :kind, as: 'kind' + end + end + end + end +end diff --git a/generated/google/apis/sqladmin_v1beta3/service.rb b/generated/google/apis/sqladmin_v1beta3/service.rb new file mode 100644 index 000000000..5fd6fad3e --- /dev/null +++ b/generated/google/apis/sqladmin_v1beta3/service.rb @@ -0,0 +1,995 @@ +# 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 SqladminV1beta3 + # Cloud SQL Admin API + # + # Cloud SQL provides the Cloud SQL Admin API, a REST API for administering your + # instances programmatically. + # + # @example + # require 'google/apis/sqladmin_v1beta3' + # + # Sqladmin = Google::Apis::SqladminV1beta3 # Alias the module + # service = Sqladmin::SQLAdminService.new + # + # @see https://cloud.google.com/sql/docs/reference/latest + class SQLAdminService < 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] + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + attr_accessor :quota_user + + # @return [String] + # Deprecated. Please use quotaUser instead. + attr_accessor :user_ip + + def initialize + super('https://www.googleapis.com/', 'sql/v1beta3/') + @batch_path = 'batch/sqladmin/v1beta3' + end + + # Retrieves information about a specified backup run for a Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] backup_configuration + # Identifier for the backup configuration. This gets generated automatically + # when a backup configuration is created. + # @param [String] due_time + # The start time of the four-hour backup window. The backup can occur any time + # in the window. The time is in RFC 3339 format, for example 2012-11-15T16:19:00. + # 094Z. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::BackupRun] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::BackupRun] + # + # @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_backup_run(project, instance, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}', options) + command.response_representation = Google::Apis::SqladminV1beta3::BackupRun::Representation + command.response_class = Google::Apis::SqladminV1beta3::BackupRun + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.params['backupConfiguration'] = backup_configuration unless backup_configuration.nil? + command.query['dueTime'] = due_time unless due_time.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all backup runs associated with a Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] backup_configuration + # Identifier for the backup configuration. This gets generated automatically + # when a backup configuration is created. + # @param [Fixnum] max_results + # Maximum number of backup runs per response. + # @param [String] page_token + # A previously-returned page token representing part of the larger set of + # results to view. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::BackupRunsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::BackupRunsListResponse] + # + # @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_backup_runs(project, instance, backup_configuration, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns', options) + command.response_representation = Google::Apis::SqladminV1beta3::BackupRunsListResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::BackupRunsListResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['backupConfiguration'] = backup_configuration unless backup_configuration.nil? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all database flags that can be set for Google Cloud SQL instances. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::FlagsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::FlagsListResponse] + # + # @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_flags(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'flags', options) + command.response_representation = Google::Apis::SqladminV1beta3::FlagsListResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::FlagsListResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a Cloud SQL instance as a clone of a source instance. + # @param [String] project + # Project ID of the source as well as the clone Cloud SQL instance. + # @param [Google::Apis::SqladminV1beta3::InstancesCloneRequest] instances_clone_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesCloneResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesCloneResponse] + # + # @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 clone_instance(project, instances_clone_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/clone', options) + command.request_representation = Google::Apis::SqladminV1beta3::InstancesCloneRequest::Representation + command.request_object = instances_clone_request_object + command.response_representation = Google::Apis::SqladminV1beta3::InstancesCloneResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesCloneResponse + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance to be deleted. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesDeleteResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesDeleteResponse] + # + # @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_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'projects/{project}/instances/{instance}', options) + command.response_representation = Google::Apis::SqladminV1beta3::InstancesDeleteResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesDeleteResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a + # MySQL dump file. + # @param [String] project + # Project ID of the project that contains the instance to be exported. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [Google::Apis::SqladminV1beta3::InstancesExportRequest] instances_export_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesExportResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesExportResponse] + # + # @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 export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/export', options) + command.request_representation = Google::Apis::SqladminV1beta3::InstancesExportRequest::Representation + command.request_object = instances_export_request_object + command.response_representation = Google::Apis::SqladminV1beta3::InstancesExportResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesExportResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves information about a Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Database instance ID. This does not include the project ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::DatabaseInstance] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::DatabaseInstance] + # + # @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_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}', options) + command.response_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation + command.response_class = Google::Apis::SqladminV1beta3::DatabaseInstance + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Imports data into a Cloud SQL instance from a MySQL dump file stored in a + # Google Cloud Storage bucket. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [Google::Apis::SqladminV1beta3::InstancesImportRequest] instances_import_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesImportResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesImportResponse] + # + # @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 import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/import', options) + command.request_representation = Google::Apis::SqladminV1beta3::InstancesImportRequest::Representation + command.request_object = instances_import_request_object + command.response_representation = Google::Apis::SqladminV1beta3::InstancesImportResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesImportResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new Cloud SQL instance. + # @param [String] project + # Project ID of the project to which the newly created Cloud SQL instances + # should belong. + # @param [Google::Apis::SqladminV1beta3::DatabaseInstance] database_instance_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesInsertResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesInsertResponse] + # + # @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 insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances', options) + command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation + command.request_object = database_instance_object + command.response_representation = Google::Apis::SqladminV1beta3::InstancesInsertResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesInsertResponse + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists instances for a given project, in alphabetical order by instance name. + # @param [String] project + # Project ID of the project for which to list Cloud SQL instances. + # @param [Fixnum] max_results + # The maximum number of results to return per response. + # @param [String] page_token + # A previously-returned page token representing part of the larger set of + # results to view. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesListResponse] + # + # @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_instances(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/instances', options) + command.response_representation = Google::Apis::SqladminV1beta3::InstancesListResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesListResponse + command.params['project'] = project unless project.nil? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the settings of a Cloud SQL instance. This method supports patch + # semantics. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [Google::Apis::SqladminV1beta3::DatabaseInstance] database_instance_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesUpdateResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesUpdateResponse] + # + # @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_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'projects/{project}/instances/{instance}', options) + command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation + command.request_object = database_instance_object + command.response_representation = Google::Apis::SqladminV1beta3::InstancesUpdateResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesUpdateResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Promotes the read replica instance to be a stand-alone Cloud SQL instance. + # @param [String] project + # ID of the project that contains the read replica. + # @param [String] instance + # Cloud SQL read replica instance name. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse] + # + # @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 promote_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/promoteReplica', options) + command.response_representation = Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes all client certificates and generates a new server SSL certificate for + # a Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse] + # + # @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 reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/resetSslConfig', options) + command.response_representation = Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Restarts a Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance to be restarted. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesRestartResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesRestartResponse] + # + # @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 restart_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restart', options) + command.response_representation = Google::Apis::SqladminV1beta3::InstancesRestartResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesRestartResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Restores a backup of a Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] backup_configuration + # The identifier of the backup configuration. This gets generated automatically + # when a backup configuration is created. + # @param [String] due_time + # The start time of the four-hour backup window. The backup can occur any time + # in the window. The time is in RFC 3339 format, for example 2012-11-15T16:19:00. + # 094Z. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse] + # + # @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 restore_instance_backup(project, instance, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restoreBackup', options) + command.response_representation = Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['backupConfiguration'] = backup_configuration unless backup_configuration.nil? + command.query['dueTime'] = due_time unless due_time.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the password for the root user of the specified Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [Google::Apis::SqladminV1beta3::InstanceSetRootPasswordRequest] instance_set_root_password_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse] + # + # @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 set_instance_root_password(project, instance, instance_set_root_password_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/setRootPassword', options) + command.request_representation = Google::Apis::SqladminV1beta3::InstanceSetRootPasswordRequest::Representation + command.request_object = instance_set_root_password_request_object + command.response_representation = Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the settings of a Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [Google::Apis::SqladminV1beta3::DatabaseInstance] database_instance_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesUpdateResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstancesUpdateResponse] + # + # @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 update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'projects/{project}/instances/{instance}', options) + command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation + command.request_object = database_instance_object + command.response_representation = Google::Apis::SqladminV1beta3::InstancesUpdateResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstancesUpdateResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves information about a specific operation that was performed on a Cloud + # SQL instance. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] operation + # Instance operation ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::InstanceOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::InstanceOperation] + # + # @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_operation(project, instance, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/operations/{operation}', options) + command.response_representation = Google::Apis::SqladminV1beta3::InstanceOperation::Representation + command.response_class = Google::Apis::SqladminV1beta3::InstanceOperation + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.params['operation'] = operation unless operation.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all operations that have been performed on a Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [Fixnum] max_results + # Maximum number of operations per response. + # @param [String] page_token + # A previously-returned page token representing part of the larger set of + # results to view. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::OperationsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::OperationsListResponse] + # + # @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_operations(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/operations', options) + command.response_representation = Google::Apis::SqladminV1beta3::OperationsListResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::OperationsListResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an SSL certificate from a Cloud SQL instance. + # @param [String] project + # Project ID of the project that contains the instance to be deleted. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] sha1_fingerprint + # Sha1 FingerPrint. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::SslCertsDeleteResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::SslCertsDeleteResponse] + # + # @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_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options) + command.response_representation = Google::Apis::SqladminV1beta3::SslCertsDeleteResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::SslCertsDeleteResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an SSL certificate as specified by its SHA-1 fingerprint. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] sha1_fingerprint + # Sha1 FingerPrint. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::SslCert] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::SslCert] + # + # @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_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options) + command.response_representation = Google::Apis::SqladminV1beta3::SslCert::Representation + command.response_class = Google::Apis::SqladminV1beta3::SslCert + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates an SSL certificate and returns the certificate, the associated private + # key, and the server certificate authority. + # @param [String] project + # Project ID of the project to which the newly created Cloud SQL instances + # should belong. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [Google::Apis::SqladminV1beta3::SslCertsInsertRequest] ssl_certs_insert_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::SslCertsInsertResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::SslCertsInsertResponse] + # + # @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 insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/sslCerts', options) + command.request_representation = Google::Apis::SqladminV1beta3::SslCertsInsertRequest::Representation + command.request_object = ssl_certs_insert_request_object + command.response_representation = Google::Apis::SqladminV1beta3::SslCertsInsertResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::SslCertsInsertResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all of the current SSL certificates defined for a Cloud SQL instance. + # @param [String] project + # Project ID of the project for which to list Cloud SQL instances. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::SslCertsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::SslCertsListResponse] + # + # @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_ssl_certs(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts', options) + command.response_representation = Google::Apis::SqladminV1beta3::SslCertsListResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::SslCertsListResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists service tiers that can be used to create Google Cloud SQL instances. + # @param [String] project + # Project ID of the project for which to list tiers. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta3::TiersListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta3::TiersListResponse] + # + # @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_tiers(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/tiers', options) + command.response_representation = Google::Apis::SqladminV1beta3::TiersListResponse::Representation + command.response_class = Google::Apis::SqladminV1beta3::TiersListResponse + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.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? + command.query['userIp'] = user_ip unless user_ip.nil? + end + end + end + end +end diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index c5c9f59af..5f5b1e7eb 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -18,15 +18,15 @@ require 'google/apis/sqladmin_v1beta4/representations.rb' module Google module Apis - # Cloud SQL Administration API + # Cloud SQL Admin API # - # Creates and configures Cloud SQL instances, which provide fully-managed MySQL - # databases. + # Cloud SQL provides the Cloud SQL Admin API, a REST API for administering your + # instances programmatically. # # @see https://cloud.google.com/sql/docs/reference/latest module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '' + REVISION = '20180727' # 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/sqladmin_v1beta4/classes.rb b/generated/google/apis/sqladmin_v1beta4/classes.rb index dad508b56..c7cdf88ec 100644 --- a/generated/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -765,15 +765,20 @@ module Google include Google::Apis::Core::Hashable # Options for exporting data as CSV. + # Exporting in CSV format using the Cloud SQL Admin API is not supported for + # PostgreSQL instances. # Corresponds to the JSON property `csvExportOptions` # @return [Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions] attr_accessor :csv_export_options - # Databases (for example, guestbook) from which the export is made. If fileType - # is SQL and no database is specified, all databases are exported. If fileType - # is CSV, you can optionally specify at most one database to export. If - # csvExportOptions.selectQuery also specifies the database, this field will be - # ignored. + # Databases to be exported. + # MySQL instances: If fileType is SQL and no database is specified, all + # databases are exported, except for the mysql system database. If fileType is + # CSV, you can specify one database, either by using this property or by using + # the csvExportOptions.selectQuery property, which takes precedence over this + # property. + # PostgreSQL instances: If fileType is SQL, you must specify one database to be + # exported. A fileType of CSV is not supported for PostgreSQL instances. # Corresponds to the JSON property `databases` # @return [Array] attr_accessor :databases @@ -781,6 +786,7 @@ module Google # The file type for the specified uri. # SQL: The file contains SQL statements. # CSV: The file contains CSV data. + # CSV is not supported for PostgreSQL instances. # Corresponds to the JSON property `fileType` # @return [String] attr_accessor :file_type @@ -818,6 +824,8 @@ module Google end # Options for exporting data as CSV. + # Exporting in CSV format using the Cloud SQL Admin API is not supported for + # PostgreSQL instances. class CsvExportOptions include Google::Apis::Core::Hashable @@ -847,7 +855,8 @@ module Google alias_method :schema_only?, :schema_only # Tables to export, or that were exported, from the specified database. If you - # specify tables, specify one and only one database. + # specify tables, specify one and only one database. For PostgreSQL instances, + # you can specify only one table. # Corresponds to the JSON property `tables` # @return [Array] attr_accessor :tables @@ -987,13 +996,16 @@ module Google include Google::Apis::Core::Hashable # Options for importing data as CSV. + # Importing CSV data using the Cloud SQL Admin API is not supported for + # PostgreSQL instances. # Corresponds to the JSON property `csvImportOptions` # @return [Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions] attr_accessor :csv_import_options - # The database (for example, guestbook) to which the import is made. If fileType - # is SQL and no database is specified, it is assumed that the database is - # specified in the file to be imported. If fileType is CSV, it must be specified. + # The target database for the import. If fileType is SQL, this field is required + # only if the import file does not specify a database, and is overridden by any + # database specification in the import file. If fileType is CSV, one database + # must be specified. # Corresponds to the JSON property `database` # @return [String] attr_accessor :database @@ -1001,12 +1013,14 @@ module Google # The file type for the specified uri. # SQL: The file contains SQL statements. # CSV: The file contains CSV data. + # Importing CSV data using the Cloud SQL Admin API is not supported for + # PostgreSQL instances. # Corresponds to the JSON property `fileType` # @return [String] attr_accessor :file_type # The PostgreSQL user for this import operation. Defaults to cloudsqlsuperuser. - # Used only for PostgreSQL instances. + # PostgreSQL instances only. # Corresponds to the JSON property `importUser` # @return [String] attr_accessor :import_user @@ -1016,9 +1030,9 @@ module Google # @return [String] attr_accessor :kind - # A path to the file in Google Cloud Storage from which the import is made. The - # URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are - # supported when fileType is SQL. + # Path to the import file in Cloud Storage, in the form gs://bucketName/fileName. + # Compressed gzip files (.gz) are supported when fileType is SQL. The instance + # must have write permissions to the bucket and read access to the file. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -1038,6 +1052,8 @@ module Google end # Options for importing data as CSV. + # Importing CSV data using the Cloud SQL Admin API is not supported for + # PostgreSQL instances. class CsvImportOptions include Google::Apis::Core::Hashable @@ -1374,7 +1390,7 @@ module Google # @return [String] attr_accessor :kind - # The preferred Compute Engine zone (e.g. us-centra1-a, us-central1-b, etc.). + # The preferred Compute Engine zone (e.g. us-central1-a, us-central1-b, etc.). # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone diff --git a/generated/google/apis/sqladmin_v1beta4/service.rb b/generated/google/apis/sqladmin_v1beta4/service.rb index 9c999ecd5..952b9bc58 100644 --- a/generated/google/apis/sqladmin_v1beta4/service.rb +++ b/generated/google/apis/sqladmin_v1beta4/service.rb @@ -20,10 +20,10 @@ require 'google/apis/errors' module Google module Apis module SqladminV1beta4 - # Cloud SQL Administration API + # Cloud SQL Admin API # - # Creates and configures Cloud SQL instances, which provide fully-managed MySQL - # databases. + # Cloud SQL provides the Cloud SQL Admin API, a REST API for administering your + # instances programmatically. # # @example # require 'google/apis/sqladmin_v1beta4' @@ -456,7 +456,7 @@ module Google execute_or_queue_command(command, &block) end - # List all available database flags for Google Cloud SQL instances. + # List all available database flags for Cloud SQL instances. # @param [String] database_version # Database version for flag retrieval. Flags are specific to the database # version. @@ -646,8 +646,8 @@ module Google execute_or_queue_command(command, &block) end - # Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a - # MySQL dump file. + # Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump + # or CSV file. # @param [String] project # Project ID of the project that contains the instance to be exported. # @param [String] instance @@ -761,7 +761,7 @@ module Google execute_or_queue_command(command, &block) end - # Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud + # Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud # Storage. # @param [String] project # Project ID of the project that contains the instance. diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 10c2504c3..32f8f726e 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180620' # 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/storage_v1beta1.rb b/generated/google/apis/storage_v1beta1.rb index e8ed3aed3..3baa9161f 100644 --- a/generated/google/apis/storage_v1beta1.rb +++ b/generated/google/apis/storage_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1beta1 VERSION = 'V1beta1' - REVISION = '' + REVISION = '20180620' # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/storage_v1beta2.rb b/generated/google/apis/storage_v1beta2.rb index 6b602a122..6cf93df1e 100644 --- a/generated/google/apis/storage_v1beta2.rb +++ b/generated/google/apis/storage_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1beta2 VERSION = 'V1beta2' - REVISION = '' + REVISION = '20180620' # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/surveys_v2.rb b/generated/google/apis/surveys_v2.rb index eac64a5ae..a6c26cbda 100644 --- a/generated/google/apis/surveys_v2.rb +++ b/generated/google/apis/surveys_v2.rb @@ -25,7 +25,7 @@ module Google # module SurveysV2 VERSION = 'V2' - REVISION = '' + REVISION = '20180508' # View and manage your surveys and results AUTH_SURVEYS = 'https://www.googleapis.com/auth/surveys' diff --git a/generated/google/apis/tagmanager_v1.rb b/generated/google/apis/tagmanager_v1.rb index a90dee207..25eba28ab 100644 --- a/generated/google/apis/tagmanager_v1.rb +++ b/generated/google/apis/tagmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/tag-manager/api/v1/ module TagmanagerV1 VERSION = 'V1' - REVISION = '' + REVISION = '20171108' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/tagmanager_v2.rb b/generated/google/apis/tagmanager_v2.rb index 0a838823b..da7852b20 100644 --- a/generated/google/apis/tagmanager_v2.rb +++ b/generated/google/apis/tagmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/tag-manager/api/v2/ module TagmanagerV2 VERSION = 'V2' - REVISION = '' + REVISION = '20171108' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/tasks_v1.rb b/generated/google/apis/tasks_v1.rb index 8118462a6..0e3f1127b 100644 --- a/generated/google/apis/tasks_v1.rb +++ b/generated/google/apis/tasks_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/tasks/firstapp module TasksV1 VERSION = 'V1' - REVISION = '' + REVISION = '20141121' # Manage your tasks AUTH_TASKS = 'https://www.googleapis.com/auth/tasks' diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb index d45222a3c..29f8fc573 100644 --- a/generated/google/apis/testing_v1.rb +++ b/generated/google/apis/testing_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/cloud-test-lab/ module TestingV1 VERSION = 'V1' - REVISION = '20180619' + REVISION = '20180802' # 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/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb index 8f5a4435e..0fd996ee5 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -102,7 +102,7 @@ module Google # @return [Array] attr_accessor :models - # Configuration that can be selected at the time a test is run. + # Android configuration that can be selected at the time a test is run. # Corresponds to the JSON property `runtimeConfiguration` # @return [Google::Apis::TestingV1::AndroidRuntimeConfiguration] attr_accessor :runtime_configuration @@ -468,7 +468,7 @@ module Google end end - # Configuration that can be selected at the time a test is run. + # Android configuration that can be selected at the time a test is run. class AndroidRuntimeConfiguration include Google::Apis::Core::Hashable diff --git a/generated/google/apis/texttospeech_v1.rb b/generated/google/apis/texttospeech_v1.rb new file mode 100644 index 000000000..38d0f91b5 --- /dev/null +++ b/generated/google/apis/texttospeech_v1.rb @@ -0,0 +1,34 @@ +# 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/texttospeech_v1/service.rb' +require 'google/apis/texttospeech_v1/classes.rb' +require 'google/apis/texttospeech_v1/representations.rb' + +module Google + module Apis + # Cloud Text-to-Speech API + # + # Synthesizes natural-sounding speech by applying powerful neural network models. + # + # @see https://cloud.google.com/text-to-speech/ + module TexttospeechV1 + VERSION = 'V1' + REVISION = '20180803' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/texttospeech_v1/classes.rb b/generated/google/apis/texttospeech_v1/classes.rb new file mode 100644 index 000000000..f166f1666 --- /dev/null +++ b/generated/google/apis/texttospeech_v1/classes.rb @@ -0,0 +1,278 @@ +# 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 TexttospeechV1 + + # Description of audio data to be synthesized. + class AudioConfig + include Google::Apis::Core::Hashable + + # Required. The format of the requested audio byte stream. + # Corresponds to the JSON property `audioEncoding` + # @return [String] + attr_accessor :audio_encoding + + # Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + # semitones from the original pitch. -20 means decrease 20 semitones from the + # original pitch. + # Corresponds to the JSON property `pitch` + # @return [Float] + attr_accessor :pitch + + # The synthesis sample rate (in hertz) for this audio. Optional. If this is + # different from the voice's natural sample rate, then the synthesizer will + # honor this request by converting to the desired sample rate (which might + # result in worse audio quality), unless the specified sample rate is not + # supported for the encoding chosen, in which case it will fail the request + # and return google.rpc.Code.INVALID_ARGUMENT. + # Corresponds to the JSON property `sampleRateHertz` + # @return [Fixnum] + attr_accessor :sample_rate_hertz + + # Optional speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + # native speed supported by the specific voice. 2.0 is twice as fast, and + # 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + # other values < 0.25 or > 4.0 will return an error. + # Corresponds to the JSON property `speakingRate` + # @return [Float] + attr_accessor :speaking_rate + + # Optional volume gain (in dB) of the normal native volume supported by the + # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + # 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + # will play at approximately half the amplitude of the normal native signal + # amplitude. A value of +6.0 (dB) will play at approximately twice the + # amplitude of the normal native signal amplitude. Strongly recommend not to + # exceed +10 (dB) as there's usually no effective increase in loudness for + # any value greater than that. + # Corresponds to the JSON property `volumeGainDb` + # @return [Float] + attr_accessor :volume_gain_db + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding) + @pitch = args[:pitch] if args.key?(:pitch) + @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) + @speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate) + @volume_gain_db = args[:volume_gain_db] if args.key?(:volume_gain_db) + end + end + + # The message returned to the client by the `ListVoices` method. + class ListVoicesResponse + include Google::Apis::Core::Hashable + + # The list of voices. + # Corresponds to the JSON property `voices` + # @return [Array] + attr_accessor :voices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @voices = args[:voices] if args.key?(:voices) + end + end + + # Contains text input to be synthesized. Either `text` or `ssml` must be + # supplied. Supplying both or neither returns + # google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000 + # characters. + class SynthesisInput + include Google::Apis::Core::Hashable + + # The SSML document to be synthesized. The SSML document must be valid + # and well-formed. Otherwise the RPC will fail and return + # google.rpc.Code.INVALID_ARGUMENT. For more information, see + # [SSML](/speech/text-to-speech/docs/ssml). + # Corresponds to the JSON property `ssml` + # @return [String] + attr_accessor :ssml + + # The raw text to be synthesized. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ssml = args[:ssml] if args.key?(:ssml) + @text = args[:text] if args.key?(:text) + end + end + + # The top-level message sent by the client for the `SynthesizeSpeech` method. + class SynthesizeSpeechRequest + include Google::Apis::Core::Hashable + + # Description of audio data to be synthesized. + # Corresponds to the JSON property `audioConfig` + # @return [Google::Apis::TexttospeechV1::AudioConfig] + attr_accessor :audio_config + + # Contains text input to be synthesized. Either `text` or `ssml` must be + # supplied. Supplying both or neither returns + # google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000 + # characters. + # Corresponds to the JSON property `input` + # @return [Google::Apis::TexttospeechV1::SynthesisInput] + attr_accessor :input + + # Description of which voice to use for a synthesis request. + # Corresponds to the JSON property `voice` + # @return [Google::Apis::TexttospeechV1::VoiceSelectionParams] + attr_accessor :voice + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_config = args[:audio_config] if args.key?(:audio_config) + @input = args[:input] if args.key?(:input) + @voice = args[:voice] if args.key?(:voice) + end + end + + # The message returned to the client by the `SynthesizeSpeech` method. + class SynthesizeSpeechResponse + include Google::Apis::Core::Hashable + + # The audio data bytes encoded as specified in the request, including the + # header (For LINEAR16 audio, we include the WAV header). Note: as + # with all bytes fields, protobuffers use a pure binary representation, + # whereas JSON representations use base64. + # Corresponds to the JSON property `audioContent` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :audio_content + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_content = args[:audio_content] if args.key?(:audio_content) + end + end + + # Description of a voice supported by the TTS service. + class Voice + include Google::Apis::Core::Hashable + + # The languages that this voice supports, expressed as + # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. + # "en-US", "es-419", "cmn-tw"). + # Corresponds to the JSON property `languageCodes` + # @return [Array] + attr_accessor :language_codes + + # The name of this voice. Each distinct voice has a unique name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The natural sample rate (in hertz) for this voice. + # Corresponds to the JSON property `naturalSampleRateHertz` + # @return [Fixnum] + attr_accessor :natural_sample_rate_hertz + + # The gender of this voice. + # Corresponds to the JSON property `ssmlGender` + # @return [String] + attr_accessor :ssml_gender + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_codes = args[:language_codes] if args.key?(:language_codes) + @name = args[:name] if args.key?(:name) + @natural_sample_rate_hertz = args[:natural_sample_rate_hertz] if args.key?(:natural_sample_rate_hertz) + @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender) + end + end + + # Description of which voice to use for a synthesis request. + class VoiceSelectionParams + include Google::Apis::Core::Hashable + + # The language (and optionally also the region) of the voice expressed as a + # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. + # "en-US". Required. This should not include a script tag (e.g. use + # "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred + # from the input provided in the SynthesisInput. The TTS service + # will use this parameter to help choose an appropriate voice. Note that + # the TTS service may choose a voice with a slightly different language code + # than the one selected; it may substitute a different region + # (e.g. using en-US rather than en-CA if there isn't a Canadian voice + # available), or even a different language, e.g. using "nb" (Norwegian + # Bokmal) instead of "no" (Norwegian)". + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # The name of the voice. Optional; if not set, the service will choose a + # voice based on the other parameters such as language_code and gender. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The preferred gender of the voice. Optional; if not set, the service will + # choose a voice based on the other parameters such as language_code and + # name. Note that this is only a preference, not requirement; if a + # voice of the appropriate gender is not available, the synthesizer should + # substitute a voice with a different gender rather than failing the request. + # Corresponds to the JSON property `ssmlGender` + # @return [String] + attr_accessor :ssml_gender + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @name = args[:name] if args.key?(:name) + @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender) + end + end + end + end +end diff --git a/generated/google/apis/texttospeech_v1/representations.rb b/generated/google/apis/texttospeech_v1/representations.rb new file mode 100644 index 000000000..7e0c5d65d --- /dev/null +++ b/generated/google/apis/texttospeech_v1/representations.rb @@ -0,0 +1,133 @@ +# 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 TexttospeechV1 + + class AudioConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListVoicesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SynthesisInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SynthesizeSpeechRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SynthesizeSpeechResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Voice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VoiceSelectionParams + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AudioConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_encoding, as: 'audioEncoding' + property :pitch, as: 'pitch' + property :sample_rate_hertz, as: 'sampleRateHertz' + property :speaking_rate, as: 'speakingRate' + property :volume_gain_db, as: 'volumeGainDb' + end + end + + class ListVoicesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :voices, as: 'voices', class: Google::Apis::TexttospeechV1::Voice, decorator: Google::Apis::TexttospeechV1::Voice::Representation + + end + end + + class SynthesisInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ssml, as: 'ssml' + property :text, as: 'text' + end + end + + class SynthesizeSpeechRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1::AudioConfig, decorator: Google::Apis::TexttospeechV1::AudioConfig::Representation + + property :input, as: 'input', class: Google::Apis::TexttospeechV1::SynthesisInput, decorator: Google::Apis::TexttospeechV1::SynthesisInput::Representation + + property :voice, as: 'voice', class: Google::Apis::TexttospeechV1::VoiceSelectionParams, decorator: Google::Apis::TexttospeechV1::VoiceSelectionParams::Representation + + end + end + + class SynthesizeSpeechResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_content, :base64 => true, as: 'audioContent' + end + end + + class Voice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :language_codes, as: 'languageCodes' + property :name, as: 'name' + property :natural_sample_rate_hertz, as: 'naturalSampleRateHertz' + property :ssml_gender, as: 'ssmlGender' + end + end + + class VoiceSelectionParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :name, as: 'name' + property :ssml_gender, as: 'ssmlGender' + end + end + end + end +end diff --git a/generated/google/apis/texttospeech_v1/service.rb b/generated/google/apis/texttospeech_v1/service.rb new file mode 100644 index 000000000..85a20c0c4 --- /dev/null +++ b/generated/google/apis/texttospeech_v1/service.rb @@ -0,0 +1,127 @@ +# 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 TexttospeechV1 + # Cloud Text-to-Speech API + # + # Synthesizes natural-sounding speech by applying powerful neural network models. + # + # @example + # require 'google/apis/texttospeech_v1' + # + # Texttospeech = Google::Apis::TexttospeechV1 # Alias the module + # service = Texttospeech::TexttospeechService.new + # + # @see https://cloud.google.com/text-to-speech/ + class TexttospeechService < 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://texttospeech.googleapis.com/', '') + @batch_path = 'batch' + end + + # Synthesizes speech synchronously: receive results after all text input + # has been processed. + # @param [Google::Apis::TexttospeechV1::SynthesizeSpeechRequest] synthesize_speech_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::TexttospeechV1::SynthesizeSpeechResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TexttospeechV1::SynthesizeSpeechResponse] + # + # @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 synthesize_text_speech(synthesize_speech_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/text:synthesize', options) + command.request_representation = Google::Apis::TexttospeechV1::SynthesizeSpeechRequest::Representation + command.request_object = synthesize_speech_request_object + command.response_representation = Google::Apis::TexttospeechV1::SynthesizeSpeechResponse::Representation + command.response_class = Google::Apis::TexttospeechV1::SynthesizeSpeechResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of Voice supported for synthesis. + # @param [String] language_code + # Optional (but recommended) + # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If + # specified, the ListVoices call will only return voices that can be used to + # synthesize this language_code. E.g. when specifying "en-NZ", you will get + # supported "en-*" voices; when specifying "no", you will get supported + # "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh" + # will also get supported "cmn-*" voices; specifying "zh-hk" will also get + # supported "yue-*" voices. + # @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::TexttospeechV1::ListVoicesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TexttospeechV1::ListVoicesResponse] + # + # @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_voices(language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/voices', options) + command.response_representation = Google::Apis::TexttospeechV1::ListVoicesResponse::Representation + command.response_class = Google::Apis::TexttospeechV1::ListVoicesResponse + command.query['languageCode'] = language_code unless language_code.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/texttospeech_v1beta1.rb b/generated/google/apis/texttospeech_v1beta1.rb index 5db5fba76..4578e402b 100644 --- a/generated/google/apis/texttospeech_v1beta1.rb +++ b/generated/google/apis/texttospeech_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/text-to-speech/ module TexttospeechV1beta1 VERSION = 'V1beta1' - REVISION = '20180629' + REVISION = '20180803' # 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/texttospeech_v1beta1/service.rb b/generated/google/apis/texttospeech_v1beta1/service.rb index fded15a5c..33261d70d 100644 --- a/generated/google/apis/texttospeech_v1beta1/service.rb +++ b/generated/google/apis/texttospeech_v1beta1/service.rb @@ -78,8 +78,7 @@ module Google execute_or_queue_command(command, &block) end - # Returns a list of Voice - # supported for synthesis. + # Returns a list of Voice supported for synthesis. # @param [String] language_code # Optional (but recommended) # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index a975f2767..4ab1e56c3 100644 --- a/generated/google/apis/toolresults_v1beta3.rb +++ b/generated/google/apis/toolresults_v1beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1beta3 VERSION = 'V1beta3' - REVISION = '' + REVISION = '20180820' # 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/toolresults_v1beta3/classes.rb b/generated/google/apis/toolresults_v1beta3/classes.rb index a388484f5..999f31785 100644 --- a/generated/google/apis/toolresults_v1beta3/classes.rb +++ b/generated/google/apis/toolresults_v1beta3/classes.rb @@ -1701,31 +1701,19 @@ module Google class StackTrace include Google::Apis::Core::Hashable - # Exception cluster ID - # Corresponds to the JSON property `clusterId` - # @return [String] - attr_accessor :cluster_id - # The stack trace message. # Required # Corresponds to the JSON property `exception` # @return [String] attr_accessor :exception - # Exception report ID - # Corresponds to the JSON property `reportId` - # @return [String] - attr_accessor :report_id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @exception = args[:exception] if args.key?(:exception) - @report_id = args[:report_id] if args.key?(:report_id) end end diff --git a/generated/google/apis/toolresults_v1beta3/representations.rb b/generated/google/apis/toolresults_v1beta3/representations.rb index d96f82873..3bf22f99c 100644 --- a/generated/google/apis/toolresults_v1beta3/representations.rb +++ b/generated/google/apis/toolresults_v1beta3/representations.rb @@ -740,9 +740,7 @@ module Google class StackTrace # @private class Representation < Google::Apis::Core::JsonRepresentation - property :cluster_id, as: 'clusterId' property :exception, as: 'exception' - property :report_id, as: 'reportId' end end diff --git a/generated/google/apis/tpu_v1.rb b/generated/google/apis/tpu_v1.rb index cbcbf76d5..97e5576c2 100644 --- a/generated/google/apis/tpu_v1.rb +++ b/generated/google/apis/tpu_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tpu/ module TpuV1 VERSION = 'V1' - REVISION = '20180601' + REVISION = '20180807' # 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/tpu_v1/classes.rb b/generated/google/apis/tpu_v1/classes.rb index 277ffff4e..adf3bd08c 100644 --- a/generated/google/apis/tpu_v1/classes.rb +++ b/generated/google/apis/tpu_v1/classes.rb @@ -576,19 +576,6 @@ module Google end end - # Request for ResetNode. - class ResetNodeRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - # class SchedulingConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/tpu_v1/representations.rb b/generated/google/apis/tpu_v1/representations.rb index 030b59d46..675288d29 100644 --- a/generated/google/apis/tpu_v1/representations.rb +++ b/generated/google/apis/tpu_v1/representations.rb @@ -100,12 +100,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ResetNodeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SchedulingConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -270,12 +264,6 @@ module Google end end - class ResetNodeRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class SchedulingConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/tpu_v1/service.rb b/generated/google/apis/tpu_v1/service.rb index 908814069..c830886e0 100644 --- a/generated/google/apis/tpu_v1/service.rb +++ b/generated/google/apis/tpu_v1/service.rb @@ -353,39 +353,6 @@ module Google execute_or_queue_command(command, &block) end - # Resets a node, which stops and starts the VM. - # @param [String] name - # The resource name. - # @param [Google::Apis::TpuV1::ResetNodeRequest] reset_node_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::TpuV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::TpuV1::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 reset_node(name, reset_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:reset', options) - command.request_representation = Google::Apis::TpuV1::ResetNodeRequest::Representation - command.request_object = reset_node_request_object - command.response_representation = Google::Apis::TpuV1::Operation::Representation - command.response_class = Google::Apis::TpuV1::Operation - 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 - # Starts a node. # @param [String] name # The resource name. diff --git a/generated/google/apis/tpu_v1alpha1.rb b/generated/google/apis/tpu_v1alpha1.rb index ec9ff30fa..a8611e4a8 100644 --- a/generated/google/apis/tpu_v1alpha1.rb +++ b/generated/google/apis/tpu_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tpu/ module TpuV1alpha1 VERSION = 'V1alpha1' - REVISION = '20180601' + REVISION = '20180807' # 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/tpu_v1alpha1/classes.rb b/generated/google/apis/tpu_v1alpha1/classes.rb index eaa304256..b7dca7c74 100644 --- a/generated/google/apis/tpu_v1alpha1/classes.rb +++ b/generated/google/apis/tpu_v1alpha1/classes.rb @@ -576,19 +576,6 @@ module Google end end - # Request for ResetNode. - class ResetNodeRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - # class SchedulingConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/tpu_v1alpha1/representations.rb b/generated/google/apis/tpu_v1alpha1/representations.rb index 469bf88f4..c9f4b606b 100644 --- a/generated/google/apis/tpu_v1alpha1/representations.rb +++ b/generated/google/apis/tpu_v1alpha1/representations.rb @@ -100,12 +100,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ResetNodeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SchedulingConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -270,12 +264,6 @@ module Google end end - class ResetNodeRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class SchedulingConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/tpu_v1alpha1/service.rb b/generated/google/apis/tpu_v1alpha1/service.rb index cee444e15..0635efd14 100644 --- a/generated/google/apis/tpu_v1alpha1/service.rb +++ b/generated/google/apis/tpu_v1alpha1/service.rb @@ -353,39 +353,6 @@ module Google execute_or_queue_command(command, &block) end - # Resets a node, which stops and starts the VM. - # @param [String] name - # The resource name. - # @param [Google::Apis::TpuV1alpha1::ResetNodeRequest] reset_node_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::TpuV1alpha1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::TpuV1alpha1::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 reset_project_location_node(name, reset_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+name}:reset', options) - command.request_representation = Google::Apis::TpuV1alpha1::ResetNodeRequest::Representation - command.request_object = reset_node_request_object - command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation - command.response_class = Google::Apis::TpuV1alpha1::Operation - 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 - # Starts a node. # @param [String] name # The resource name. diff --git a/generated/google/apis/urlshortener_v1.rb b/generated/google/apis/urlshortener_v1.rb index 7ef203267..c1e3f1fc8 100644 --- a/generated/google/apis/urlshortener_v1.rb +++ b/generated/google/apis/urlshortener_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/url-shortener/v1/getting_started module UrlshortenerV1 VERSION = 'V1' - REVISION = '' + REVISION = '20150519' # Manage your goo.gl short URLs AUTH_URLSHORTENER = 'https://www.googleapis.com/auth/urlshortener' diff --git a/generated/google/apis/vault_v1.rb b/generated/google/apis/vault_v1.rb index 9c18f90f9..33d22dbbc 100644 --- a/generated/google/apis/vault_v1.rb +++ b/generated/google/apis/vault_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/vault module VaultV1 VERSION = 'V1' - REVISION = '20180403' + REVISION = '20180731' # Manage your eDiscovery data AUTH_EDISCOVERY = 'https://www.googleapis.com/auth/ediscovery' diff --git a/generated/google/apis/vault_v1/classes.rb b/generated/google/apis/vault_v1/classes.rb index 285261236..4a8c82664 100644 --- a/generated/google/apis/vault_v1/classes.rb +++ b/generated/google/apis/vault_v1/classes.rb @@ -22,6 +22,136 @@ module Google module Apis module VaultV1 + # Accounts to search + class AccountInfo + include Google::Apis::Core::Hashable + + # A set of accounts to search. + # Corresponds to the JSON property `emails` + # @return [Array] + attr_accessor :emails + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @emails = args[:emails] if args.key?(:emails) + end + end + + # A status detailing the status of each account creation, and the + # HeldAccount, if successful. + class AddHeldAccountResult + include Google::Apis::Core::Hashable + + # An account being held in a particular hold. This structure is immutable. + # This can be either a single user or a google group, depending on the corpus. + # Corresponds to the JSON property `account` + # @return [Google::Apis::VaultV1::HeldAccount] + attr_accessor :account + + # 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `status` + # @return [Google::Apis::VaultV1::Status] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account = args[:account] if args.key?(:account) + @status = args[:status] if args.key?(:status) + end + end + + # Add a list of accounts to a hold. + class AddHeldAccountsRequest + include Google::Apis::Core::Hashable + + # Account ids to identify which accounts to add. Only account_ids or only + # emails should be specified, but not both. + # Corresponds to the JSON property `accountIds` + # @return [Array] + attr_accessor :account_ids + + # Emails to identify which accounts to add. Only emails or only account_ids + # should be specified, but not both. + # Corresponds to the JSON property `emails` + # @return [Array] + attr_accessor :emails + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_ids = args[:account_ids] if args.key?(:account_ids) + @emails = args[:emails] if args.key?(:emails) + end + end + + # Response for batch create held accounts. + class AddHeldAccountsResponse + include Google::Apis::Core::Hashable + + # The list of responses, in the same order as the batch request. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + # Add an account with the permission specified. The role cannot be owner. # If an account already has a role in the matter, it will be # overwritten. @@ -94,6 +224,64 @@ module Google end end + # An export file on cloud storage + class CloudStorageFile + include Google::Apis::Core::Hashable + + # The cloud storage bucket name of this export file. + # Can be used in cloud storage JSON/XML API. + # Corresponds to the JSON property `bucketName` + # @return [String] + attr_accessor :bucket_name + + # The md5 hash of the file. + # Corresponds to the JSON property `md5Hash` + # @return [String] + attr_accessor :md5_hash + + # The cloud storage object name of this export file. + # Can be used in cloud storage JSON/XML API. + # Corresponds to the JSON property `objectName` + # @return [String] + attr_accessor :object_name + + # The size of the export file. + # Corresponds to the JSON property `size` + # @return [Fixnum] + attr_accessor :size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bucket_name = args[:bucket_name] if args.key?(:bucket_name) + @md5_hash = args[:md5_hash] if args.key?(:md5_hash) + @object_name = args[:object_name] if args.key?(:object_name) + @size = args[:size] if args.key?(:size) + end + end + + # Export sink for cloud storage files. + class CloudStorageSink + include Google::Apis::Core::Hashable + + # Output only. The exported files on cloud storage. + # Corresponds to the JSON property `files` + # @return [Array] + attr_accessor :files + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @files = args[:files] if args.key?(:files) + end + end + # Corpus specific queries. class CorpusQuery include Google::Apis::Core::Hashable @@ -131,6 +319,57 @@ module Google end end + # The options for Drive export. + class DriveExportOptions + include Google::Apis::Core::Hashable + + # Set to true to include access level information for users + # with + # indirect access + # to files. + # Corresponds to the JSON property `includeAccessInfo` + # @return [Boolean] + attr_accessor :include_access_info + alias_method :include_access_info?, :include_access_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @include_access_info = args[:include_access_info] if args.key?(:include_access_info) + end + end + + # Drive search advanced options + class DriveOptions + include Google::Apis::Core::Hashable + + # Set to true to include Team Drive. + # Corresponds to the JSON property `includeTeamDrives` + # @return [Boolean] + attr_accessor :include_team_drives + alias_method :include_team_drives?, :include_team_drives + + # Search the versions of the Drive file + # as of the reference date. These timestamps are in GMT and + # rounded down to the given date. + # Corresponds to the JSON property `versionDate` + # @return [String] + attr_accessor :version_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @include_team_drives = args[:include_team_drives] if args.key?(:include_team_drives) + @version_date = args[:version_date] if args.key?(:version_date) + 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: @@ -150,6 +389,224 @@ module Google end end + # An export + class Export + include Google::Apis::Core::Hashable + + # Export sink for cloud storage files. + # Corresponds to the JSON property `cloudStorageSink` + # @return [Google::Apis::VaultV1::CloudStorageSink] + attr_accessor :cloud_storage_sink + + # Output only. The time when the export was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Export advanced options + # Corresponds to the JSON property `exportOptions` + # @return [Google::Apis::VaultV1::ExportOptions] + attr_accessor :export_options + + # Output only. The generated export ID. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Output only. The matter ID. + # Corresponds to the JSON property `matterId` + # @return [String] + attr_accessor :matter_id + + # The export name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A query definition relevant for search & export. + # Corresponds to the JSON property `query` + # @return [Google::Apis::VaultV1::Query] + attr_accessor :query + + # User's information. + # Corresponds to the JSON property `requester` + # @return [Google::Apis::VaultV1::UserInfo] + attr_accessor :requester + + # Stats of an export. + # Corresponds to the JSON property `stats` + # @return [Google::Apis::VaultV1::ExportStats] + attr_accessor :stats + + # Output only. The export status. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cloud_storage_sink = args[:cloud_storage_sink] if args.key?(:cloud_storage_sink) + @create_time = args[:create_time] if args.key?(:create_time) + @export_options = args[:export_options] if args.key?(:export_options) + @id = args[:id] if args.key?(:id) + @matter_id = args[:matter_id] if args.key?(:matter_id) + @name = args[:name] if args.key?(:name) + @query = args[:query] if args.key?(:query) + @requester = args[:requester] if args.key?(:requester) + @stats = args[:stats] if args.key?(:stats) + @status = args[:status] if args.key?(:status) + end + end + + # Export advanced options + class ExportOptions + include Google::Apis::Core::Hashable + + # The options for Drive export. + # Corresponds to the JSON property `driveOptions` + # @return [Google::Apis::VaultV1::DriveExportOptions] + attr_accessor :drive_options + + # The options for groups export. + # Corresponds to the JSON property `groupsOptions` + # @return [Google::Apis::VaultV1::GroupsExportOptions] + attr_accessor :groups_options + + # The options for hangouts chat export. + # Corresponds to the JSON property `hangoutsChatOptions` + # @return [Google::Apis::VaultV1::HangoutsChatExportOptions] + attr_accessor :hangouts_chat_options + + # The options for mail export. + # Corresponds to the JSON property `mailOptions` + # @return [Google::Apis::VaultV1::MailExportOptions] + attr_accessor :mail_options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @drive_options = args[:drive_options] if args.key?(:drive_options) + @groups_options = args[:groups_options] if args.key?(:groups_options) + @hangouts_chat_options = args[:hangouts_chat_options] if args.key?(:hangouts_chat_options) + @mail_options = args[:mail_options] if args.key?(:mail_options) + end + end + + # Stats of an export. + class ExportStats + include Google::Apis::Core::Hashable + + # The number of documents already processed by the export. + # Corresponds to the JSON property `exportedArtifactCount` + # @return [Fixnum] + attr_accessor :exported_artifact_count + + # The size of export in bytes. + # Corresponds to the JSON property `sizeInBytes` + # @return [Fixnum] + attr_accessor :size_in_bytes + + # The number of documents to be exported. + # Corresponds to the JSON property `totalArtifactCount` + # @return [Fixnum] + attr_accessor :total_artifact_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exported_artifact_count = args[:exported_artifact_count] if args.key?(:exported_artifact_count) + @size_in_bytes = args[:size_in_bytes] if args.key?(:size_in_bytes) + @total_artifact_count = args[:total_artifact_count] if args.key?(:total_artifact_count) + end + end + + # The options for groups export. + class GroupsExportOptions + include Google::Apis::Core::Hashable + + # The export format for groups export. + # Corresponds to the JSON property `exportFormat` + # @return [String] + attr_accessor :export_format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @export_format = args[:export_format] if args.key?(:export_format) + end + end + + # The options for hangouts chat export. + class HangoutsChatExportOptions + include Google::Apis::Core::Hashable + + # The export format for hangouts chat export. + # Corresponds to the JSON property `exportFormat` + # @return [String] + attr_accessor :export_format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @export_format = args[:export_format] if args.key?(:export_format) + end + end + + # Accounts to search + class HangoutsChatInfo + include Google::Apis::Core::Hashable + + # A set of rooms to search. + # Corresponds to the JSON property `roomId` + # @return [Array] + attr_accessor :room_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @room_id = args[:room_id] if args.key?(:room_id) + end + end + + # Hangouts chat search advanced options + class HangoutsChatOptions + include Google::Apis::Core::Hashable + + # Set to true to include rooms. + # Corresponds to the JSON property `includeRooms` + # @return [Boolean] + attr_accessor :include_rooms + alias_method :include_rooms?, :include_rooms + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @include_rooms = args[:include_rooms] if args.key?(:include_rooms) + end + end + # An account being held in a particular hold. This structure is immutable. # This can be either a single user or a google group, depending on the corpus. class HeldAccount @@ -369,6 +826,31 @@ module Google end end + # The holds for a matter. + class ListExportsResponse + include Google::Apis::Core::Hashable + + # The list of exports. + # Corresponds to the JSON property `exports` + # @return [Array] + attr_accessor :exports + + # Page token to retrieve the next page of 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) + @exports = args[:exports] if args.key?(:exports) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # Returns a list of held accounts for a hold. class ListHeldAccountsResponse include Google::Apis::Core::Hashable @@ -439,6 +921,45 @@ module Google end end + # The options for mail export. + class MailExportOptions + include Google::Apis::Core::Hashable + + # The export file format. + # Corresponds to the JSON property `exportFormat` + # @return [String] + attr_accessor :export_format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @export_format = args[:export_format] if args.key?(:export_format) + end + end + + # Mail search advanced options + class MailOptions + include Google::Apis::Core::Hashable + + # Set to true to exclude drafts. + # Corresponds to the JSON property `excludeDrafts` + # @return [Boolean] + attr_accessor :exclude_drafts + alias_method :exclude_drafts?, :exclude_drafts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exclude_drafts = args[:exclude_drafts] if args.key?(:exclude_drafts) + end + end + # Represents a matter. class Matter include Google::Apis::Core::Hashable @@ -512,6 +1033,171 @@ module Google end end + # Org Unit to search + class OrgUnitInfo + include Google::Apis::Core::Hashable + + # Org unit to search, as provided by the + # Admin SDK + # Directory API. + # Corresponds to the JSON property `orgUnitId` + # @return [String] + attr_accessor :org_unit_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id) + end + end + + # A query definition relevant for search & export. + class Query + include Google::Apis::Core::Hashable + + # Accounts to search + # Corresponds to the JSON property `accountInfo` + # @return [Google::Apis::VaultV1::AccountInfo] + attr_accessor :account_info + + # The corpus to search. + # Corresponds to the JSON property `corpus` + # @return [String] + attr_accessor :corpus + + # The data source to search from. + # Corresponds to the JSON property `dataScope` + # @return [String] + attr_accessor :data_scope + + # Drive search advanced options + # Corresponds to the JSON property `driveOptions` + # @return [Google::Apis::VaultV1::DriveOptions] + attr_accessor :drive_options + + # The end time range for the search query. These timestamps are in GMT and + # rounded down to the start of the given date. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Accounts to search + # Corresponds to the JSON property `hangoutsChatInfo` + # @return [Google::Apis::VaultV1::HangoutsChatInfo] + attr_accessor :hangouts_chat_info + + # Hangouts chat search advanced options + # Corresponds to the JSON property `hangoutsChatOptions` + # @return [Google::Apis::VaultV1::HangoutsChatOptions] + attr_accessor :hangouts_chat_options + + # Mail search advanced options + # Corresponds to the JSON property `mailOptions` + # @return [Google::Apis::VaultV1::MailOptions] + attr_accessor :mail_options + + # Org Unit to search + # Corresponds to the JSON property `orgUnitInfo` + # @return [Google::Apis::VaultV1::OrgUnitInfo] + attr_accessor :org_unit_info + + # The search method to use. + # Corresponds to the JSON property `searchMethod` + # @return [String] + attr_accessor :search_method + + # The start time range for the search query. These timestamps are in GMT and + # rounded down to the start of the given date. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Team Drives to search + # Corresponds to the JSON property `teamDriveInfo` + # @return [Google::Apis::VaultV1::TeamDriveInfo] + attr_accessor :team_drive_info + + # The corpus-specific + # search operators + # used to generate search results. + # Corresponds to the JSON property `terms` + # @return [String] + attr_accessor :terms + + # The time zone name. + # It should be an IANA TZ name, such as "America/Los_Angeles". + # For more information, see + # Time + # Zone. + # Corresponds to the JSON property `timeZone` + # @return [String] + attr_accessor :time_zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_info = args[:account_info] if args.key?(:account_info) + @corpus = args[:corpus] if args.key?(:corpus) + @data_scope = args[:data_scope] if args.key?(:data_scope) + @drive_options = args[:drive_options] if args.key?(:drive_options) + @end_time = args[:end_time] if args.key?(:end_time) + @hangouts_chat_info = args[:hangouts_chat_info] if args.key?(:hangouts_chat_info) + @hangouts_chat_options = args[:hangouts_chat_options] if args.key?(:hangouts_chat_options) + @mail_options = args[:mail_options] if args.key?(:mail_options) + @org_unit_info = args[:org_unit_info] if args.key?(:org_unit_info) + @search_method = args[:search_method] if args.key?(:search_method) + @start_time = args[:start_time] if args.key?(:start_time) + @team_drive_info = args[:team_drive_info] if args.key?(:team_drive_info) + @terms = args[:terms] if args.key?(:terms) + @time_zone = args[:time_zone] if args.key?(:time_zone) + end + end + + # Remove a list of accounts from a hold. + class RemoveHeldAccountsRequest + include Google::Apis::Core::Hashable + + # Account ids to identify HeldAccounts to remove. + # Corresponds to the JSON property `accountIds` + # @return [Array] + attr_accessor :account_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_ids = args[:account_ids] if args.key?(:account_ids) + end + end + + # Response for batch delete held accounts. + class RemoveHeldAccountsResponse + include Google::Apis::Core::Hashable + + # A list of statuses for deleted accounts. Results have the + # same order as the request. + # Corresponds to the JSON property `statuses` + # @return [Array] + attr_accessor :statuses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @statuses = args[:statuses] if args.key?(:statuses) + end + end + # Remove an account as a matter collaborator. class RemoveMatterPermissionsRequest include Google::Apis::Core::Hashable @@ -563,6 +1249,98 @@ module Google 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # Team Drives to search + class TeamDriveInfo + include Google::Apis::Core::Hashable + + # List of Team Drive ids, as provided by Drive API. + # Corresponds to the JSON property `teamDriveIds` + # @return [Array] + attr_accessor :team_drive_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @team_drive_ids = args[:team_drive_ids] if args.key?(:team_drive_ids) + end + end + # Undelete a matter by ID. class UndeleteMatterRequest include Google::Apis::Core::Hashable @@ -575,6 +1353,31 @@ module Google def update!(**args) end end + + # User's information. + class UserInfo + include Google::Apis::Core::Hashable + + # The displayed name of the user. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The email address of the user. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @email = args[:email] if args.key?(:email) + end + end end end end diff --git a/generated/google/apis/vault_v1/representations.rb b/generated/google/apis/vault_v1/representations.rb index 56311ec7c..3d8633c8a 100644 --- a/generated/google/apis/vault_v1/representations.rb +++ b/generated/google/apis/vault_v1/representations.rb @@ -22,6 +22,30 @@ module Google module Apis module VaultV1 + class AccountInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddHeldAccountResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddHeldAccountsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddHeldAccountsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AddMatterPermissionsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -40,18 +64,84 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CloudStorageFile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudStorageSink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CorpusQuery class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class DriveExportOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DriveOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Export + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportStats + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GroupsExportOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HangoutsChatExportOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HangoutsChatInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HangoutsChatOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HeldAccount class Representation < Google::Apis::Core::JsonRepresentation; end @@ -94,6 +184,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListExportsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListHeldAccountsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +208,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MailExportOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MailOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Matter class Representation < Google::Apis::Core::JsonRepresentation; end @@ -124,6 +232,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OrgUnitInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Query + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RemoveHeldAccountsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RemoveHeldAccountsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RemoveMatterPermissionsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,12 +274,63 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TeamDriveInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UndeleteMatterRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class UserInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :emails, as: 'emails' + end + end + + class AddHeldAccountResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account, as: 'account', class: Google::Apis::VaultV1::HeldAccount, decorator: Google::Apis::VaultV1::HeldAccount::Representation + + property :status, as: 'status', class: Google::Apis::VaultV1::Status, decorator: Google::Apis::VaultV1::Status::Representation + + end + end + + class AddHeldAccountsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_ids, as: 'accountIds' + collection :emails, as: 'emails' + end + end + + class AddHeldAccountsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VaultV1::AddHeldAccountResult, decorator: Google::Apis::VaultV1::AddHeldAccountResult::Representation + + end + end + class AddMatterPermissionsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -172,6 +355,24 @@ module Google end end + class CloudStorageFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bucket_name, as: 'bucketName' + property :md5_hash, as: 'md5Hash' + property :object_name, as: 'objectName' + property :size, :numeric_string => true, as: 'size' + end + end + + class CloudStorageSink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :files, as: 'files', class: Google::Apis::VaultV1::CloudStorageFile, decorator: Google::Apis::VaultV1::CloudStorageFile::Representation + + end + end + class CorpusQuery # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -186,12 +387,99 @@ module Google end end + class DriveExportOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :include_access_info, as: 'includeAccessInfo' + end + end + + class DriveOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :include_team_drives, as: 'includeTeamDrives' + property :version_date, as: 'versionDate' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation end end + class Export + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cloud_storage_sink, as: 'cloudStorageSink', class: Google::Apis::VaultV1::CloudStorageSink, decorator: Google::Apis::VaultV1::CloudStorageSink::Representation + + property :create_time, as: 'createTime' + property :export_options, as: 'exportOptions', class: Google::Apis::VaultV1::ExportOptions, decorator: Google::Apis::VaultV1::ExportOptions::Representation + + property :id, as: 'id' + property :matter_id, as: 'matterId' + property :name, as: 'name' + property :query, as: 'query', class: Google::Apis::VaultV1::Query, decorator: Google::Apis::VaultV1::Query::Representation + + property :requester, as: 'requester', class: Google::Apis::VaultV1::UserInfo, decorator: Google::Apis::VaultV1::UserInfo::Representation + + property :stats, as: 'stats', class: Google::Apis::VaultV1::ExportStats, decorator: Google::Apis::VaultV1::ExportStats::Representation + + property :status, as: 'status' + end + end + + class ExportOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :drive_options, as: 'driveOptions', class: Google::Apis::VaultV1::DriveExportOptions, decorator: Google::Apis::VaultV1::DriveExportOptions::Representation + + property :groups_options, as: 'groupsOptions', class: Google::Apis::VaultV1::GroupsExportOptions, decorator: Google::Apis::VaultV1::GroupsExportOptions::Representation + + property :hangouts_chat_options, as: 'hangoutsChatOptions', class: Google::Apis::VaultV1::HangoutsChatExportOptions, decorator: Google::Apis::VaultV1::HangoutsChatExportOptions::Representation + + property :mail_options, as: 'mailOptions', class: Google::Apis::VaultV1::MailExportOptions, decorator: Google::Apis::VaultV1::MailExportOptions::Representation + + end + end + + class ExportStats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :exported_artifact_count, :numeric_string => true, as: 'exportedArtifactCount' + property :size_in_bytes, :numeric_string => true, as: 'sizeInBytes' + property :total_artifact_count, :numeric_string => true, as: 'totalArtifactCount' + end + end + + class GroupsExportOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :export_format, as: 'exportFormat' + end + end + + class HangoutsChatExportOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :export_format, as: 'exportFormat' + end + end + + class HangoutsChatInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :room_id, as: 'roomId' + end + end + + class HangoutsChatOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :include_rooms, as: 'includeRooms' + end + end + class HeldAccount # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -256,6 +544,15 @@ module Google end end + class ListExportsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exports, as: 'exports', class: Google::Apis::VaultV1::Export, decorator: Google::Apis::VaultV1::Export::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListHeldAccountsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -282,6 +579,20 @@ module Google end end + class MailExportOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :export_format, as: 'exportFormat' + end + end + + class MailOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :exclude_drafts, as: 'excludeDrafts' + end + end + class Matter # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -302,6 +613,55 @@ module Google end end + class OrgUnitInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :org_unit_id, as: 'orgUnitId' + end + end + + class Query + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_info, as: 'accountInfo', class: Google::Apis::VaultV1::AccountInfo, decorator: Google::Apis::VaultV1::AccountInfo::Representation + + property :corpus, as: 'corpus' + property :data_scope, as: 'dataScope' + property :drive_options, as: 'driveOptions', class: Google::Apis::VaultV1::DriveOptions, decorator: Google::Apis::VaultV1::DriveOptions::Representation + + property :end_time, as: 'endTime' + property :hangouts_chat_info, as: 'hangoutsChatInfo', class: Google::Apis::VaultV1::HangoutsChatInfo, decorator: Google::Apis::VaultV1::HangoutsChatInfo::Representation + + property :hangouts_chat_options, as: 'hangoutsChatOptions', class: Google::Apis::VaultV1::HangoutsChatOptions, decorator: Google::Apis::VaultV1::HangoutsChatOptions::Representation + + property :mail_options, as: 'mailOptions', class: Google::Apis::VaultV1::MailOptions, decorator: Google::Apis::VaultV1::MailOptions::Representation + + property :org_unit_info, as: 'orgUnitInfo', class: Google::Apis::VaultV1::OrgUnitInfo, decorator: Google::Apis::VaultV1::OrgUnitInfo::Representation + + property :search_method, as: 'searchMethod' + property :start_time, as: 'startTime' + property :team_drive_info, as: 'teamDriveInfo', class: Google::Apis::VaultV1::TeamDriveInfo, decorator: Google::Apis::VaultV1::TeamDriveInfo::Representation + + property :terms, as: 'terms' + property :time_zone, as: 'timeZone' + end + end + + class RemoveHeldAccountsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_ids, as: 'accountIds' + end + end + + class RemoveHeldAccountsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :statuses, as: 'statuses', class: Google::Apis::VaultV1::Status, decorator: Google::Apis::VaultV1::Status::Representation + + end + end + class RemoveMatterPermissionsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -323,11 +683,35 @@ module Google end end + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class TeamDriveInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :team_drive_ids, as: 'teamDriveIds' + end + end + class UndeleteMatterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation end end + + class UserInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :email, as: 'email' + end + end end end end diff --git a/generated/google/apis/vault_v1/service.rb b/generated/google/apis/vault_v1/service.rb index e68264583..7362a0c07 100644 --- a/generated/google/apis/vault_v1/service.rb +++ b/generated/google/apis/vault_v1/service.rb @@ -384,6 +384,179 @@ module Google execute_or_queue_command(command, &block) end + # Creates an Export. + # @param [String] matter_id + # The matter ID. + # @param [Google::Apis::VaultV1::Export] export_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::VaultV1::Export] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VaultV1::Export] + # + # @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_matter_export(matter_id, export_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/matters/{matterId}/exports', options) + command.request_representation = Google::Apis::VaultV1::Export::Representation + command.request_object = export_object + command.response_representation = Google::Apis::VaultV1::Export::Representation + command.response_class = Google::Apis::VaultV1::Export + command.params['matterId'] = matter_id unless matter_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 an Export. + # @param [String] matter_id + # The matter ID. + # @param [String] export_id + # The export 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::VaultV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VaultV1::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_matter_export(matter_id, export_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/matters/{matterId}/exports/{exportId}', options) + command.response_representation = Google::Apis::VaultV1::Empty::Representation + command.response_class = Google::Apis::VaultV1::Empty + command.params['matterId'] = matter_id unless matter_id.nil? + command.params['exportId'] = export_id unless export_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 + + # Gets an Export. + # @param [String] matter_id + # The matter ID. + # @param [String] export_id + # The export 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::VaultV1::Export] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VaultV1::Export] + # + # @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_matter_export(matter_id, export_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/matters/{matterId}/exports/{exportId}', options) + command.response_representation = Google::Apis::VaultV1::Export::Representation + command.response_class = Google::Apis::VaultV1::Export + command.params['matterId'] = matter_id unless matter_id.nil? + command.params['exportId'] = export_id unless export_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 + + # Lists Exports. + # @param [String] matter_id + # The matter ID. + # @param [Fixnum] page_size + # The number of exports to return in the response. + # @param [String] page_token + # The pagination token as returned in the response. + # @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::VaultV1::ListExportsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VaultV1::ListExportsResponse] + # + # @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_matter_exports(matter_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/matters/{matterId}/exports', options) + command.response_representation = Google::Apis::VaultV1::ListExportsResponse::Representation + command.response_class = Google::Apis::VaultV1::ListExportsResponse + command.params['matterId'] = matter_id unless matter_id.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 + + # Adds HeldAccounts to a hold. Returns a list of accounts that have been + # successfully added. Accounts can only be added to an existing account-based + # hold. + # @param [String] matter_id + # The matter ID. + # @param [String] hold_id + # The hold ID. + # @param [Google::Apis::VaultV1::AddHeldAccountsRequest] add_held_accounts_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::VaultV1::AddHeldAccountsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VaultV1::AddHeldAccountsResponse] + # + # @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 add_hold_held_accounts(matter_id, hold_id, add_held_accounts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/matters/{matterId}/holds/{holdId}:addHeldAccounts', options) + command.request_representation = Google::Apis::VaultV1::AddHeldAccountsRequest::Representation + command.request_object = add_held_accounts_request_object + command.response_representation = Google::Apis::VaultV1::AddHeldAccountsResponse::Representation + command.response_class = Google::Apis::VaultV1::AddHeldAccountsResponse + command.params['matterId'] = matter_id unless matter_id.nil? + command.params['holdId'] = hold_id unless hold_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 + # Creates a hold in the given matter. # @param [String] matter_id # The matter ID. @@ -528,6 +701,44 @@ module Google execute_or_queue_command(command, &block) end + # Removes HeldAccounts from a hold. Returns a list of statuses in the same + # order as the request. If this request leaves the hold with no held + # accounts, the hold will not apply to any accounts. + # @param [String] matter_id + # The matter ID. + # @param [String] hold_id + # The hold ID. + # @param [Google::Apis::VaultV1::RemoveHeldAccountsRequest] remove_held_accounts_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::VaultV1::RemoveHeldAccountsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VaultV1::RemoveHeldAccountsResponse] + # + # @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 remove_hold_held_accounts(matter_id, hold_id, remove_held_accounts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts', options) + command.request_representation = Google::Apis::VaultV1::RemoveHeldAccountsRequest::Representation + command.request_object = remove_held_accounts_request_object + command.response_representation = Google::Apis::VaultV1::RemoveHeldAccountsResponse::Representation + command.response_class = Google::Apis::VaultV1::RemoveHeldAccountsResponse + command.params['matterId'] = matter_id unless matter_id.nil? + command.params['holdId'] = hold_id unless hold_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 + # Updates the OU and/or query parameters of a hold. You cannot add accounts # to a hold that covers an OU, nor can you add OUs to a hold that covers # individual accounts. Accounts listed in the hold will be ignored. diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index df9956cf5..765a7c8dc 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20180609' + REVISION = '20180817' # 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/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index 3051cf3ea..17888835a 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -487,7 +487,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -635,7 +635,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -1144,6 +1144,1485 @@ module Google end end + # Response to a single file annotation request. A file may contain one or more + # images, which individually have their own responses. + class GoogleCloudVisionV1p1beta1AnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig] + attr_accessor :input_config + + # Individual responses to images found within the file. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_config = args[:input_config] if args.key?(:input_config) + @responses = args[:responses] if args.key?(:responses) + end + end + + # Response to an image annotation request. + class GoogleCloudVisionV1p1beta1AnnotateImageResponse + include Google::Apis::Core::Hashable + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + # Corresponds to the JSON property `context` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ImageAnnotationContext] + attr_accessor :context + + # Set of crop hints that are used to generate new crops when serving images. + # Corresponds to the JSON property `cropHintsAnnotation` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1CropHintsAnnotation] + attr_accessor :crop_hints_annotation + + # 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1::Status] + attr_accessor :error + + # If present, face detection has completed successfully. + # Corresponds to the JSON property `faceAnnotations` + # @return [Array] + attr_accessor :face_annotations + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + # Corresponds to the JSON property `fullTextAnnotation` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotation] + attr_accessor :full_text_annotation + + # Stores image properties, such as dominant colors. + # Corresponds to the JSON property `imagePropertiesAnnotation` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ImageProperties] + attr_accessor :image_properties_annotation + + # If present, label detection has completed successfully. + # Corresponds to the JSON property `labelAnnotations` + # @return [Array] + attr_accessor :label_annotations + + # If present, landmark detection has completed successfully. + # Corresponds to the JSON property `landmarkAnnotations` + # @return [Array] + attr_accessor :landmark_annotations + + # If present, logo detection has completed successfully. + # Corresponds to the JSON property `logoAnnotations` + # @return [Array] + attr_accessor :logo_annotations + + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + # Corresponds to the JSON property `safeSearchAnnotation` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation] + attr_accessor :safe_search_annotation + + # If present, text (OCR) detection has completed successfully. + # Corresponds to the JSON property `textAnnotations` + # @return [Array] + attr_accessor :text_annotations + + # Relevant information for the image from the Internet. + # Corresponds to the JSON property `webDetection` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetection] + attr_accessor :web_detection + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @context = args[:context] if args.key?(:context) + @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) + @error = args[:error] if args.key?(:error) + @face_annotations = args[:face_annotations] if args.key?(:face_annotations) + @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation) + @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation) + @label_annotations = args[:label_annotations] if args.key?(:label_annotations) + @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) + @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) + @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) + @text_annotations = args[:text_annotations] if args.key?(:text_annotations) + @web_detection = args[:web_detection] if args.key?(:web_detection) + end + end + + # The response for a single offline file annotation request. + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # Response to an async batch file annotation request. + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse + include Google::Apis::Core::Hashable + + # The list of file annotation responses, one for each request in + # AsyncBatchAnnotateFilesRequest. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + + # Logical element on the page. + class GoogleCloudVisionV1p1beta1Block + include Google::Apis::Core::Hashable + + # Detected block type (text, image etc) for this block. + # Corresponds to the JSON property `blockType` + # @return [String] + attr_accessor :block_type + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results on the block. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # List of paragraphs in this block (if this blocks is of type text). + # Corresponds to the JSON property `paragraphs` + # @return [Array] + attr_accessor :paragraphs + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] + attr_accessor :property + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @block_type = args[:block_type] if args.key?(:block_type) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @paragraphs = args[:paragraphs] if args.key?(:paragraphs) + @property = args[:property] if args.key?(:property) + end + end + + # A bounding polygon for the detected image annotation. + class GoogleCloudVisionV1p1beta1BoundingPoly + include Google::Apis::Core::Hashable + + # The bounding polygon vertices. + # Corresponds to the JSON property `vertices` + # @return [Array] + attr_accessor :vertices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @vertices = args[:vertices] if args.key?(:vertices) + end + end + + # Color information consists of RGB channels, score, and the fraction of + # the image that the color occupies in the image. + class GoogleCloudVisionV1p1beta1ColorInfo + include Google::Apis::Core::Hashable + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `color` + # @return [Google::Apis::VisionV1::Color] + attr_accessor :color + + # The fraction of pixels the color occupies in the image. + # Value in range [0, 1]. + # Corresponds to the JSON property `pixelFraction` + # @return [Float] + attr_accessor :pixel_fraction + + # Image-specific score for this color. Value in range [0, 1]. + # 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) + @color = args[:color] if args.key?(:color) + @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction) + @score = args[:score] if args.key?(:score) + end + end + + # Single crop hint that is used to generate a new crop when serving an image. + class GoogleCloudVisionV1p1beta1CropHint + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_poly + + # Confidence of this being a salient region. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Fraction of importance of this salient region with respect to the original + # image. + # Corresponds to the JSON property `importanceFraction` + # @return [Float] + attr_accessor :importance_fraction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction) + end + end + + # Set of crop hints that are used to generate new crops when serving images. + class GoogleCloudVisionV1p1beta1CropHintsAnnotation + include Google::Apis::Core::Hashable + + # Crop hint results. + # Corresponds to the JSON property `cropHints` + # @return [Array] + attr_accessor :crop_hints + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @crop_hints = args[:crop_hints] if args.key?(:crop_hints) + end + end + + # Set of dominant colors and their corresponding scores. + class GoogleCloudVisionV1p1beta1DominantColorsAnnotation + include Google::Apis::Core::Hashable + + # RGB color values with their score and pixel fraction. + # Corresponds to the JSON property `colors` + # @return [Array] + attr_accessor :colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @colors = args[:colors] if args.key?(:colors) + end + end + + # Set of detected entity features. + class GoogleCloudVisionV1p1beta1EntityAnnotation + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_poly + + # **Deprecated. Use `score` instead.** + # The accuracy of the entity detection in an image. + # For example, for an image in which the "Eiffel Tower" entity is detected, + # this field represents the confidence that there is a tower in the query + # image. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Entity textual description, expressed in its `locale` language. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The language code for the locale in which the entity textual + # `description` is expressed. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # The location information for the detected entity. Multiple + # `LocationInfo` elements can be present because one location may + # indicate the location of the scene in the image, and another location + # may indicate the location of the place where the image was taken. + # Location information is usually present for landmarks. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # Opaque entity ID. Some IDs may be available in + # [Google Knowledge Graph Search + # API](https://developers.google.com/knowledge-graph/). + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Some entities may have optional user-supplied `Property` (name/value) + # fields, such a score or string that qualifies the entity. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + # Overall score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The relevancy of the ICA (Image Content Annotation) label to the + # image. For example, the relevancy of "tower" is likely higher to an image + # containing the detected "Eiffel Tower" than to an image containing a + # detected distant towering building, even though the confidence that + # there is a tower in each image may be the same. Range [0, 1]. + # Corresponds to the JSON property `topicality` + # @return [Float] + attr_accessor :topicality + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @description = args[:description] if args.key?(:description) + @locale = args[:locale] if args.key?(:locale) + @locations = args[:locations] if args.key?(:locations) + @mid = args[:mid] if args.key?(:mid) + @properties = args[:properties] if args.key?(:properties) + @score = args[:score] if args.key?(:score) + @topicality = args[:topicality] if args.key?(:topicality) + end + end + + # A face annotation object contains the results of face detection. + class GoogleCloudVisionV1p1beta1FaceAnnotation + include Google::Apis::Core::Hashable + + # Anger likelihood. + # Corresponds to the JSON property `angerLikelihood` + # @return [String] + attr_accessor :anger_likelihood + + # Blurred likelihood. + # Corresponds to the JSON property `blurredLikelihood` + # @return [String] + attr_accessor :blurred_likelihood + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_poly + + # Detection confidence. Range [0, 1]. + # Corresponds to the JSON property `detectionConfidence` + # @return [Float] + attr_accessor :detection_confidence + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `fdBoundingPoly` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :fd_bounding_poly + + # Headwear likelihood. + # Corresponds to the JSON property `headwearLikelihood` + # @return [String] + attr_accessor :headwear_likelihood + + # Joy likelihood. + # Corresponds to the JSON property `joyLikelihood` + # @return [String] + attr_accessor :joy_likelihood + + # Face landmarking confidence. Range [0, 1]. + # Corresponds to the JSON property `landmarkingConfidence` + # @return [Float] + attr_accessor :landmarking_confidence + + # Detected face landmarks. + # Corresponds to the JSON property `landmarks` + # @return [Array] + attr_accessor :landmarks + + # Yaw angle, which indicates the leftward/rightward angle that the face is + # pointing relative to the vertical plane perpendicular to the image. Range + # [-180,180]. + # Corresponds to the JSON property `panAngle` + # @return [Float] + attr_accessor :pan_angle + + # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation + # of the face relative to the image vertical about the axis perpendicular to + # the face. Range [-180,180]. + # Corresponds to the JSON property `rollAngle` + # @return [Float] + attr_accessor :roll_angle + + # Sorrow likelihood. + # Corresponds to the JSON property `sorrowLikelihood` + # @return [String] + attr_accessor :sorrow_likelihood + + # Surprise likelihood. + # Corresponds to the JSON property `surpriseLikelihood` + # @return [String] + attr_accessor :surprise_likelihood + + # Pitch angle, which indicates the upwards/downwards angle that the face is + # pointing relative to the image's horizontal plane. Range [-180,180]. + # Corresponds to the JSON property `tiltAngle` + # @return [Float] + attr_accessor :tilt_angle + + # Under-exposed likelihood. + # Corresponds to the JSON property `underExposedLikelihood` + # @return [String] + attr_accessor :under_exposed_likelihood + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) + @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence) + @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) + @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood) + @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) + @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) + @landmarks = args[:landmarks] if args.key?(:landmarks) + @pan_angle = args[:pan_angle] if args.key?(:pan_angle) + @roll_angle = args[:roll_angle] if args.key?(:roll_angle) + @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) + @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) + @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) + @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood) + end + end + + # A face-specific landmark (for example, a face feature). + class GoogleCloudVisionV1p1beta1FaceAnnotationLandmark + include Google::Apis::Core::Hashable + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + # Corresponds to the JSON property `position` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Position] + attr_accessor :position + + # Face landmark type. + # 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) + @position = args[:position] if args.key?(:position) + @type = args[:type] if args.key?(:type) + end + end + + # The Google Cloud Storage location where the output will be written to. + class GoogleCloudVisionV1p1beta1GcsDestination + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI where the results will be stored. Results will + # be in JSON format and preceded by its corresponding input URI. This field + # can either represent a single file, or a prefix for multiple outputs. + # Prefixes must end in a `/`. + # Examples: + # * File: gs://bucket-name/filename.json + # * Prefix: gs://bucket-name/prefix/here/ + # * File: gs://bucket-name/prefix/here + # If multiple outputs, each response is still AnnotateFileResponse, each of + # which contains some subset of the full list of AnnotateImageResponse. + # Multiple outputs can happen if, for example, the output JSON is too large + # and overflows into multiple sharded files. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The Google Cloud Storage location where the input will be read from. + class GoogleCloudVisionV1p1beta1GcsSource + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI for the input file. This must only be a + # Google Cloud Storage object. Wildcards are not currently supported. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + class GoogleCloudVisionV1p1beta1ImageAnnotationContext + include Google::Apis::Core::Hashable + + # If the file was a PDF or TIFF, this field gives the page number within + # the file used to produce the image. + # Corresponds to the JSON property `pageNumber` + # @return [Fixnum] + attr_accessor :page_number + + # The URI of the file used to produce the image. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_number = args[:page_number] if args.key?(:page_number) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Stores image properties, such as dominant colors. + class GoogleCloudVisionV1p1beta1ImageProperties + include Google::Apis::Core::Hashable + + # Set of dominant colors and their corresponding scores. + # Corresponds to the JSON property `dominantColors` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1DominantColorsAnnotation] + attr_accessor :dominant_colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors) + end + end + + # The desired input location and metadata. + class GoogleCloudVisionV1p1beta1InputConfig + include Google::Apis::Core::Hashable + + # The Google Cloud Storage location where the input will be read from. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1GcsSource] + attr_accessor :gcs_source + + # The type of the file. Currently only "application/pdf" and "image/tiff" + # are supported. Wildcards are not supported. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_source = args[:gcs_source] if args.key?(:gcs_source) + @mime_type = args[:mime_type] if args.key?(:mime_type) + end + end + + # Detected entity location information. + class GoogleCloudVisionV1p1beta1LocationInfo + include Google::Apis::Core::Hashable + + # 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 within normalized ranges. + # Corresponds to the JSON property `latLng` + # @return [Google::Apis::VisionV1::LatLng] + attr_accessor :lat_lng + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @lat_lng = args[:lat_lng] if args.key?(:lat_lng) + end + end + + # Contains metadata for the BatchAnnotateImages operation. + class GoogleCloudVisionV1p1beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request was received. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the operation result was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The desired output location and metadata. + class GoogleCloudVisionV1p1beta1OutputConfig + include Google::Apis::Core::Hashable + + # The max number of response protos to put into each output JSON file on + # Google Cloud Storage. + # The valid range is [1, 100]. If not specified, the default value is 20. + # For example, for one pdf file with 100 pages, 100 response protos will + # be generated. If `batch_size` = 20, then 5 json files each + # containing 20 response protos will be written under the prefix + # `gcs_destination`.`uri`. + # Currently, batch_size only applies to GcsDestination, with potential future + # support for other output configurations. + # Corresponds to the JSON property `batchSize` + # @return [Fixnum] + attr_accessor :batch_size + + # The Google Cloud Storage location where the output will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_size = args[:batch_size] if args.key?(:batch_size) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # Detected page from OCR. + class GoogleCloudVisionV1p1beta1Page + include Google::Apis::Core::Hashable + + # List of blocks of text, images etc on this page. + # Corresponds to the JSON property `blocks` + # @return [Array] + attr_accessor :blocks + + # Confidence of the OCR results on the page. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Page height. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] + attr_accessor :property + + # Page width. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @blocks = args[:blocks] if args.key?(:blocks) + @confidence = args[:confidence] if args.key?(:confidence) + @height = args[:height] if args.key?(:height) + @property = args[:property] if args.key?(:property) + @width = args[:width] if args.key?(:width) + end + end + + # Structural unit of text representing a number of words in certain order. + class GoogleCloudVisionV1p1beta1Paragraph + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the paragraph. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] + attr_accessor :property + + # List of words in this paragraph. + # Corresponds to the JSON property `words` + # @return [Array] + attr_accessor :words + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @words = args[:words] if args.key?(:words) + end + end + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + class GoogleCloudVisionV1p1beta1Position + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + # Z coordinate (or depth). + # Corresponds to the JSON property `z` + # @return [Float] + attr_accessor :z + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + @z = args[:z] if args.key?(:z) + end + end + + # A `Property` consists of a user-supplied name/value pair. + class GoogleCloudVisionV1p1beta1Property + include Google::Apis::Core::Hashable + + # Name of the property. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Value of numeric properties. + # Corresponds to the JSON property `uint64Value` + # @return [Fixnum] + attr_accessor :uint64_value + + # Value of the property. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @uint64_value = args[:uint64_value] if args.key?(:uint64_value) + @value = args[:value] if args.key?(:value) + end + end + + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + class GoogleCloudVisionV1p1beta1SafeSearchAnnotation + include Google::Apis::Core::Hashable + + # Represents the adult content likelihood for the image. Adult content may + # contain elements such as nudity, pornographic images or cartoons, or + # sexual activities. + # Corresponds to the JSON property `adult` + # @return [String] + attr_accessor :adult + + # Likelihood that this is a medical image. + # Corresponds to the JSON property `medical` + # @return [String] + attr_accessor :medical + + # Likelihood that the request image contains racy content. Racy content may + # include (but is not limited to) skimpy or sheer clothing, strategically + # covered nudity, lewd or provocative poses, or close-ups of sensitive + # body areas. + # Corresponds to the JSON property `racy` + # @return [String] + attr_accessor :racy + + # Spoof likelihood. The likelihood that an modification + # was made to the image's canonical version to make it appear + # funny or offensive. + # Corresponds to the JSON property `spoof` + # @return [String] + attr_accessor :spoof + + # Likelihood that this image contains violent content. + # Corresponds to the JSON property `violence` + # @return [String] + attr_accessor :violence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @adult = args[:adult] if args.key?(:adult) + @medical = args[:medical] if args.key?(:medical) + @racy = args[:racy] if args.key?(:racy) + @spoof = args[:spoof] if args.key?(:spoof) + @violence = args[:violence] if args.key?(:violence) + end + end + + # A single symbol representation. + class GoogleCloudVisionV1p1beta1Symbol + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the symbol. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] + attr_accessor :property + + # The actual UTF-8 representation of the symbol. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @text = args[:text] if args.key?(:text) + end + end + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + class GoogleCloudVisionV1p1beta1TextAnnotation + include Google::Apis::Core::Hashable + + # List of pages detected by OCR. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + # UTF-8 text detected on the pages. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pages = args[:pages] if args.key?(:pages) + @text = args[:text] if args.key?(:text) + end + end + + # Detected start or end of a structural component. + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak + include Google::Apis::Core::Hashable + + # True if break prepends the element. + # Corresponds to the JSON property `isPrefix` + # @return [Boolean] + attr_accessor :is_prefix + alias_method :is_prefix?, :is_prefix + + # Detected break type. + # 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) + @is_prefix = args[:is_prefix] if args.key?(:is_prefix) + @type = args[:type] if args.key?(:type) + end + end + + # Detected language for a structural component. + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage + include Google::Apis::Core::Hashable + + # Confidence of detected language. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Additional information detected on the structural component. + class GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + include Google::Apis::Core::Hashable + + # Detected start or end of a structural component. + # Corresponds to the JSON property `detectedBreak` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak] + attr_accessor :detected_break + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_break = args[:detected_break] if args.key?(:detected_break) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + end + end + + # A vertex represents a 2D point in the image. + # NOTE: the vertex coordinates are in the same scale as the original image. + class GoogleCloudVisionV1p1beta1Vertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Fixnum] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Fixnum] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + + # Relevant information for the image from the Internet. + class GoogleCloudVisionV1p1beta1WebDetection + include Google::Apis::Core::Hashable + + # The service's best guess as to the topic of the request image. + # Inferred from similar images on the open web. + # Corresponds to the JSON property `bestGuessLabels` + # @return [Array] + attr_accessor :best_guess_labels + + # Fully matching images from the Internet. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Web pages containing the matching images from the Internet. + # Corresponds to the JSON property `pagesWithMatchingImages` + # @return [Array] + attr_accessor :pages_with_matching_images + + # Partial matching images from the Internet. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # The visually similar image results. + # Corresponds to the JSON property `visuallySimilarImages` + # @return [Array] + attr_accessor :visually_similar_images + + # Deduced entities from similar images on the Internet. + # Corresponds to the JSON property `webEntities` + # @return [Array] + attr_accessor :web_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images) + @web_entities = args[:web_entities] if args.key?(:web_entities) + end + end + + # Entity deduced from similar images on the Internet. + class GoogleCloudVisionV1p1beta1WebDetectionWebEntity + include Google::Apis::Core::Hashable + + # Canonical description of the entity, in English. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Opaque entity ID. + # Corresponds to the JSON property `entityId` + # @return [String] + attr_accessor :entity_id + + # Overall relevancy score for the entity. + # Not normalized and not comparable across different image queries. + # 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) + @description = args[:description] if args.key?(:description) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @score = args[:score] if args.key?(:score) + end + end + + # Metadata for online images. + class GoogleCloudVisionV1p1beta1WebDetectionWebImage + include Google::Apis::Core::Hashable + + # (Deprecated) Overall relevancy score for the image. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result image URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # Label to provide extra metadata for the web detection. + class GoogleCloudVisionV1p1beta1WebDetectionWebLabel + include Google::Apis::Core::Hashable + + # Label for extra metadata. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". + # For more information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label = args[:label] if args.key?(:label) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Metadata for web pages. + class GoogleCloudVisionV1p1beta1WebDetectionWebPage + include Google::Apis::Core::Hashable + + # Fully matching images on the page. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Title for the web page, may contain HTML markups. + # Corresponds to the JSON property `pageTitle` + # @return [String] + attr_accessor :page_title + + # Partial matching images on the page. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its + # crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # (Deprecated) Overall relevancy score for the web page. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result web page URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @page_title = args[:page_title] if args.key?(:page_title) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # A word representation. + class GoogleCloudVisionV1p1beta1Word + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the word. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] + attr_accessor :property + + # List of symbols in the word. + # The order of the symbols follows the natural reading order. + # Corresponds to the JSON property `symbols` + # @return [Array] + attr_accessor :symbols + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @symbols = args[:symbols] if args.key?(:symbols) + end + end + # Response to a single file annotation request. A file may contain one or more # images, which individually have their own responses. class GoogleCloudVisionV1p2beta1AnnotateFileResponse @@ -1474,7 +2953,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -2656,6 +4135,216 @@ module Google end end + # Response to a single file annotation request. A file may contain one or more + # images, which individually have their own responses. + class GoogleCloudVisionV1p3beta1AnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig] + attr_accessor :input_config + + # Individual responses to images found within the file. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_config = args[:input_config] if args.key?(:input_config) + @responses = args[:responses] if args.key?(:responses) + end + end + + # Response to an image annotation request. + class GoogleCloudVisionV1p3beta1AnnotateImageResponse + include Google::Apis::Core::Hashable + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + # Corresponds to the JSON property `context` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ImageAnnotationContext] + attr_accessor :context + + # Set of crop hints that are used to generate new crops when serving images. + # Corresponds to the JSON property `cropHintsAnnotation` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1CropHintsAnnotation] + attr_accessor :crop_hints_annotation + + # 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1::Status] + attr_accessor :error + + # If present, face detection has completed successfully. + # Corresponds to the JSON property `faceAnnotations` + # @return [Array] + attr_accessor :face_annotations + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + # Corresponds to the JSON property `fullTextAnnotation` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotation] + attr_accessor :full_text_annotation + + # Stores image properties, such as dominant colors. + # Corresponds to the JSON property `imagePropertiesAnnotation` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ImageProperties] + attr_accessor :image_properties_annotation + + # If present, label detection has completed successfully. + # Corresponds to the JSON property `labelAnnotations` + # @return [Array] + attr_accessor :label_annotations + + # If present, landmark detection has completed successfully. + # Corresponds to the JSON property `landmarkAnnotations` + # @return [Array] + attr_accessor :landmark_annotations + + # If present, localized object detection has completed successfully. + # This will be sorted descending by confidence score. + # Corresponds to the JSON property `localizedObjectAnnotations` + # @return [Array] + attr_accessor :localized_object_annotations + + # If present, logo detection has completed successfully. + # Corresponds to the JSON property `logoAnnotations` + # @return [Array] + attr_accessor :logo_annotations + + # Results for a product search request. + # Corresponds to the JSON property `productSearchResults` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResults] + attr_accessor :product_search_results + + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + # Corresponds to the JSON property `safeSearchAnnotation` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation] + attr_accessor :safe_search_annotation + + # If present, text (OCR) detection has completed successfully. + # Corresponds to the JSON property `textAnnotations` + # @return [Array] + attr_accessor :text_annotations + + # Relevant information for the image from the Internet. + # Corresponds to the JSON property `webDetection` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetection] + attr_accessor :web_detection + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @context = args[:context] if args.key?(:context) + @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) + @error = args[:error] if args.key?(:error) + @face_annotations = args[:face_annotations] if args.key?(:face_annotations) + @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation) + @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation) + @label_annotations = args[:label_annotations] if args.key?(:label_annotations) + @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) + @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations) + @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) + @product_search_results = args[:product_search_results] if args.key?(:product_search_results) + @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) + @text_annotations = args[:text_annotations] if args.key?(:text_annotations) + @web_detection = args[:web_detection] if args.key?(:web_detection) + end + end + + # The response for a single offline file annotation request. + class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # Response to an async batch file annotation request. + class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse + include Google::Apis::Core::Hashable + + # The list of file annotation responses, one for each request in + # AsyncBatchAnnotateFilesRequest. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + # Metadata for the batch operations such as the current state. # This is included in the `metadata` field of the `Operation` returned by the # `GetOperation` call of the `google::longrunning::Operations` service. @@ -2690,6 +4379,49 @@ module Google end end + # Logical element on the page. + class GoogleCloudVisionV1p3beta1Block + include Google::Apis::Core::Hashable + + # Detected block type (text, image etc) for this block. + # Corresponds to the JSON property `blockType` + # @return [String] + attr_accessor :block_type + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results on the block. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # List of paragraphs in this block (if this blocks is of type text). + # Corresponds to the JSON property `paragraphs` + # @return [Array] + attr_accessor :paragraphs + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @block_type = args[:block_type] if args.key?(:block_type) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @paragraphs = args[:paragraphs] if args.key?(:paragraphs) + @property = args[:property] if args.key?(:property) + end + end + # A bounding polygon for the detected image annotation. class GoogleCloudVisionV1p3beta1BoundingPoly include Google::Apis::Core::Hashable @@ -2715,6 +4447,521 @@ module Google end end + # Color information consists of RGB channels, score, and the fraction of + # the image that the color occupies in the image. + class GoogleCloudVisionV1p3beta1ColorInfo + include Google::Apis::Core::Hashable + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `color` + # @return [Google::Apis::VisionV1::Color] + attr_accessor :color + + # The fraction of pixels the color occupies in the image. + # Value in range [0, 1]. + # Corresponds to the JSON property `pixelFraction` + # @return [Float] + attr_accessor :pixel_fraction + + # Image-specific score for this color. Value in range [0, 1]. + # 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) + @color = args[:color] if args.key?(:color) + @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction) + @score = args[:score] if args.key?(:score) + end + end + + # Single crop hint that is used to generate a new crop when serving an image. + class GoogleCloudVisionV1p3beta1CropHint + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # Confidence of this being a salient region. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Fraction of importance of this salient region with respect to the original + # image. + # Corresponds to the JSON property `importanceFraction` + # @return [Float] + attr_accessor :importance_fraction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction) + end + end + + # Set of crop hints that are used to generate new crops when serving images. + class GoogleCloudVisionV1p3beta1CropHintsAnnotation + include Google::Apis::Core::Hashable + + # Crop hint results. + # Corresponds to the JSON property `cropHints` + # @return [Array] + attr_accessor :crop_hints + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @crop_hints = args[:crop_hints] if args.key?(:crop_hints) + end + end + + # Set of dominant colors and their corresponding scores. + class GoogleCloudVisionV1p3beta1DominantColorsAnnotation + include Google::Apis::Core::Hashable + + # RGB color values with their score and pixel fraction. + # Corresponds to the JSON property `colors` + # @return [Array] + attr_accessor :colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @colors = args[:colors] if args.key?(:colors) + end + end + + # Set of detected entity features. + class GoogleCloudVisionV1p3beta1EntityAnnotation + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # **Deprecated. Use `score` instead.** + # The accuracy of the entity detection in an image. + # For example, for an image in which the "Eiffel Tower" entity is detected, + # this field represents the confidence that there is a tower in the query + # image. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Entity textual description, expressed in its `locale` language. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The language code for the locale in which the entity textual + # `description` is expressed. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # The location information for the detected entity. Multiple + # `LocationInfo` elements can be present because one location may + # indicate the location of the scene in the image, and another location + # may indicate the location of the place where the image was taken. + # Location information is usually present for landmarks. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # Opaque entity ID. Some IDs may be available in + # [Google Knowledge Graph Search + # API](https://developers.google.com/knowledge-graph/). + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Some entities may have optional user-supplied `Property` (name/value) + # fields, such a score or string that qualifies the entity. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + # Overall score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The relevancy of the ICA (Image Content Annotation) label to the + # image. For example, the relevancy of "tower" is likely higher to an image + # containing the detected "Eiffel Tower" than to an image containing a + # detected distant towering building, even though the confidence that + # there is a tower in each image may be the same. Range [0, 1]. + # Corresponds to the JSON property `topicality` + # @return [Float] + attr_accessor :topicality + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @description = args[:description] if args.key?(:description) + @locale = args[:locale] if args.key?(:locale) + @locations = args[:locations] if args.key?(:locations) + @mid = args[:mid] if args.key?(:mid) + @properties = args[:properties] if args.key?(:properties) + @score = args[:score] if args.key?(:score) + @topicality = args[:topicality] if args.key?(:topicality) + end + end + + # A face annotation object contains the results of face detection. + class GoogleCloudVisionV1p3beta1FaceAnnotation + include Google::Apis::Core::Hashable + + # Anger likelihood. + # Corresponds to the JSON property `angerLikelihood` + # @return [String] + attr_accessor :anger_likelihood + + # Blurred likelihood. + # Corresponds to the JSON property `blurredLikelihood` + # @return [String] + attr_accessor :blurred_likelihood + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # Detection confidence. Range [0, 1]. + # Corresponds to the JSON property `detectionConfidence` + # @return [Float] + attr_accessor :detection_confidence + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `fdBoundingPoly` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :fd_bounding_poly + + # Headwear likelihood. + # Corresponds to the JSON property `headwearLikelihood` + # @return [String] + attr_accessor :headwear_likelihood + + # Joy likelihood. + # Corresponds to the JSON property `joyLikelihood` + # @return [String] + attr_accessor :joy_likelihood + + # Face landmarking confidence. Range [0, 1]. + # Corresponds to the JSON property `landmarkingConfidence` + # @return [Float] + attr_accessor :landmarking_confidence + + # Detected face landmarks. + # Corresponds to the JSON property `landmarks` + # @return [Array] + attr_accessor :landmarks + + # Yaw angle, which indicates the leftward/rightward angle that the face is + # pointing relative to the vertical plane perpendicular to the image. Range + # [-180,180]. + # Corresponds to the JSON property `panAngle` + # @return [Float] + attr_accessor :pan_angle + + # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation + # of the face relative to the image vertical about the axis perpendicular to + # the face. Range [-180,180]. + # Corresponds to the JSON property `rollAngle` + # @return [Float] + attr_accessor :roll_angle + + # Sorrow likelihood. + # Corresponds to the JSON property `sorrowLikelihood` + # @return [String] + attr_accessor :sorrow_likelihood + + # Surprise likelihood. + # Corresponds to the JSON property `surpriseLikelihood` + # @return [String] + attr_accessor :surprise_likelihood + + # Pitch angle, which indicates the upwards/downwards angle that the face is + # pointing relative to the image's horizontal plane. Range [-180,180]. + # Corresponds to the JSON property `tiltAngle` + # @return [Float] + attr_accessor :tilt_angle + + # Under-exposed likelihood. + # Corresponds to the JSON property `underExposedLikelihood` + # @return [String] + attr_accessor :under_exposed_likelihood + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) + @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence) + @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) + @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood) + @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) + @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) + @landmarks = args[:landmarks] if args.key?(:landmarks) + @pan_angle = args[:pan_angle] if args.key?(:pan_angle) + @roll_angle = args[:roll_angle] if args.key?(:roll_angle) + @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) + @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) + @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) + @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood) + end + end + + # A face-specific landmark (for example, a face feature). + class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + include Google::Apis::Core::Hashable + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + # Corresponds to the JSON property `position` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Position] + attr_accessor :position + + # Face landmark type. + # 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) + @position = args[:position] if args.key?(:position) + @type = args[:type] if args.key?(:type) + end + end + + # The Google Cloud Storage location where the output will be written to. + class GoogleCloudVisionV1p3beta1GcsDestination + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI where the results will be stored. Results will + # be in JSON format and preceded by its corresponding input URI. This field + # can either represent a single file, or a prefix for multiple outputs. + # Prefixes must end in a `/`. + # Examples: + # * File: gs://bucket-name/filename.json + # * Prefix: gs://bucket-name/prefix/here/ + # * File: gs://bucket-name/prefix/here + # If multiple outputs, each response is still AnnotateFileResponse, each of + # which contains some subset of the full list of AnnotateImageResponse. + # Multiple outputs can happen if, for example, the output JSON is too large + # and overflows into multiple sharded files. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The Google Cloud Storage location where the input will be read from. + class GoogleCloudVisionV1p3beta1GcsSource + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI for the input file. This must only be a + # Google Cloud Storage object. Wildcards are not currently supported. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + class GoogleCloudVisionV1p3beta1ImageAnnotationContext + include Google::Apis::Core::Hashable + + # If the file was a PDF or TIFF, this field gives the page number within + # the file used to produce the image. + # Corresponds to the JSON property `pageNumber` + # @return [Fixnum] + attr_accessor :page_number + + # The URI of the file used to produce the image. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_number = args[:page_number] if args.key?(:page_number) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Stores image properties, such as dominant colors. + class GoogleCloudVisionV1p3beta1ImageProperties + include Google::Apis::Core::Hashable + + # Set of dominant colors and their corresponding scores. + # Corresponds to the JSON property `dominantColors` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation] + attr_accessor :dominant_colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors) + end + end + # Response message for the `ImportProductSets` method. # This message is returned by the # google.longrunning.Operations.GetOperation method in the returned @@ -2747,6 +4994,100 @@ module Google end end + # The desired input location and metadata. + class GoogleCloudVisionV1p3beta1InputConfig + include Google::Apis::Core::Hashable + + # The Google Cloud Storage location where the input will be read from. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1GcsSource] + attr_accessor :gcs_source + + # The type of the file. Currently only "application/pdf" and "image/tiff" + # are supported. Wildcards are not supported. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_source = args[:gcs_source] if args.key?(:gcs_source) + @mime_type = args[:mime_type] if args.key?(:mime_type) + end + end + + # Set of detected objects with bounding boxes. + class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Object ID that should align with EntityAnnotation mid. + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Object name, expressed in its `language_code` language. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Score of the result. Range [0, 1]. + # 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) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @language_code = args[:language_code] if args.key?(:language_code) + @mid = args[:mid] if args.key?(:mid) + @name = args[:name] if args.key?(:name) + @score = args[:score] if args.key?(:score) + end + end + + # Detected entity location information. + class GoogleCloudVisionV1p3beta1LocationInfo + include Google::Apis::Core::Hashable + + # 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 within normalized ranges. + # Corresponds to the JSON property `latLng` + # @return [Google::Apis::VisionV1::LatLng] + attr_accessor :lat_lng + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @lat_lng = args[:lat_lng] if args.key?(:lat_lng) + end + end + # A vertex represents a 2D point in the image. # NOTE: the normalized vertex coordinates are relative to the original image # and range from 0 to 1. @@ -2774,6 +5115,360 @@ module Google end end + # Contains metadata for the BatchAnnotateImages operation. + class GoogleCloudVisionV1p3beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request was received. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the operation result was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The desired output location and metadata. + class GoogleCloudVisionV1p3beta1OutputConfig + include Google::Apis::Core::Hashable + + # The max number of response protos to put into each output JSON file on + # Google Cloud Storage. + # The valid range is [1, 100]. If not specified, the default value is 20. + # For example, for one pdf file with 100 pages, 100 response protos will + # be generated. If `batch_size` = 20, then 5 json files each + # containing 20 response protos will be written under the prefix + # `gcs_destination`.`uri`. + # Currently, batch_size only applies to GcsDestination, with potential future + # support for other output configurations. + # Corresponds to the JSON property `batchSize` + # @return [Fixnum] + attr_accessor :batch_size + + # The Google Cloud Storage location where the output will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_size = args[:batch_size] if args.key?(:batch_size) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # Detected page from OCR. + class GoogleCloudVisionV1p3beta1Page + include Google::Apis::Core::Hashable + + # List of blocks of text, images etc on this page. + # Corresponds to the JSON property `blocks` + # @return [Array] + attr_accessor :blocks + + # Confidence of the OCR results on the page. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Page height. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # Page width. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @blocks = args[:blocks] if args.key?(:blocks) + @confidence = args[:confidence] if args.key?(:confidence) + @height = args[:height] if args.key?(:height) + @property = args[:property] if args.key?(:property) + @width = args[:width] if args.key?(:width) + end + end + + # Structural unit of text representing a number of words in certain order. + class GoogleCloudVisionV1p3beta1Paragraph + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the paragraph. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # List of words in this paragraph. + # Corresponds to the JSON property `words` + # @return [Array] + attr_accessor :words + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @words = args[:words] if args.key?(:words) + end + end + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + class GoogleCloudVisionV1p3beta1Position + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + # Z coordinate (or depth). + # Corresponds to the JSON property `z` + # @return [Float] + attr_accessor :z + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + @z = args[:z] if args.key?(:z) + end + end + + # A Product contains ReferenceImages. + class GoogleCloudVisionV1p3beta1Product + include Google::Apis::Core::Hashable + + # User-provided metadata to be stored with this product. Must be at most 4096 + # characters long. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The user-provided name for this Product. Must not be empty. Must be at most + # 4096 characters long. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the product. + # Format is: + # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. + # This field is ignored when creating a product. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The category for the product identified by the reference image. This should + # be either "homegoods" or "apparel". + # This field is immutable. + # Corresponds to the JSON property `productCategory` + # @return [String] + attr_accessor :product_category + + # Key-value pairs that can be attached to a product. At query time, + # constraints can be specified based on the product_labels. + # Note that integer values can be provided as strings, e.g. "1199". Only + # strings with integer values can match a range-based restriction which is + # to be supported soon. + # Multiple values can be assigned to the same key. One product may have up to + # 100 product_labels. + # Corresponds to the JSON property `productLabels` + # @return [Array] + attr_accessor :product_labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @product_category = args[:product_category] if args.key?(:product_category) + @product_labels = args[:product_labels] if args.key?(:product_labels) + end + end + + # A product label represented as a key-value pair. + class GoogleCloudVisionV1p3beta1ProductKeyValue + include Google::Apis::Core::Hashable + + # The key of the label attached to the product. Cannot be empty and cannot + # exceed 128 bytes. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The value of the label attached to the product. Cannot be empty and + # cannot exceed 128 bytes. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + + # Results for a product search request. + class GoogleCloudVisionV1p3beta1ProductSearchResults + include Google::Apis::Core::Hashable + + # Timestamp of the index which provided these results. Changes made after + # this time are not reflected in the current results. + # Corresponds to the JSON property `indexTime` + # @return [String] + attr_accessor :index_time + + # List of results, one for each product match. + # 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) + @index_time = args[:index_time] if args.key?(:index_time) + @results = args[:results] if args.key?(:results) + end + end + + # Information about a product. + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult + include Google::Apis::Core::Hashable + + # The resource name of the image from the product that is the closest match + # to the query. + # Corresponds to the JSON property `image` + # @return [String] + attr_accessor :image + + # A Product contains ReferenceImages. + # Corresponds to the JSON property `product` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Product] + attr_accessor :product + + # A confidence level on the match, ranging from 0 (no confidence) to + # 1 (full confidence). + # This field is returned only if `view` is set to `FULL` in + # the request. + # 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) + @image = args[:image] if args.key?(:image) + @product = args[:product] if args.key?(:product) + @score = args[:score] if args.key?(:score) + end + end + + # A `Property` consists of a user-supplied name/value pair. + class GoogleCloudVisionV1p3beta1Property + include Google::Apis::Core::Hashable + + # Name of the property. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Value of numeric properties. + # Corresponds to the JSON property `uint64Value` + # @return [Fixnum] + attr_accessor :uint64_value + + # Value of the property. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @uint64_value = args[:uint64_value] if args.key?(:uint64_value) + @value = args[:value] if args.key?(:value) + end + end + # A `ReferenceImage` represents a product image and its associated metadata, # such as bounding boxes. class GoogleCloudVisionV1p3beta1ReferenceImage @@ -2818,6 +5513,204 @@ module Google end end + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + class GoogleCloudVisionV1p3beta1SafeSearchAnnotation + include Google::Apis::Core::Hashable + + # Represents the adult content likelihood for the image. Adult content may + # contain elements such as nudity, pornographic images or cartoons, or + # sexual activities. + # Corresponds to the JSON property `adult` + # @return [String] + attr_accessor :adult + + # Likelihood that this is a medical image. + # Corresponds to the JSON property `medical` + # @return [String] + attr_accessor :medical + + # Likelihood that the request image contains racy content. Racy content may + # include (but is not limited to) skimpy or sheer clothing, strategically + # covered nudity, lewd or provocative poses, or close-ups of sensitive + # body areas. + # Corresponds to the JSON property `racy` + # @return [String] + attr_accessor :racy + + # Spoof likelihood. The likelihood that an modification + # was made to the image's canonical version to make it appear + # funny or offensive. + # Corresponds to the JSON property `spoof` + # @return [String] + attr_accessor :spoof + + # Likelihood that this image contains violent content. + # Corresponds to the JSON property `violence` + # @return [String] + attr_accessor :violence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @adult = args[:adult] if args.key?(:adult) + @medical = args[:medical] if args.key?(:medical) + @racy = args[:racy] if args.key?(:racy) + @spoof = args[:spoof] if args.key?(:spoof) + @violence = args[:violence] if args.key?(:violence) + end + end + + # A single symbol representation. + class GoogleCloudVisionV1p3beta1Symbol + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the symbol. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # The actual UTF-8 representation of the symbol. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @text = args[:text] if args.key?(:text) + end + end + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + class GoogleCloudVisionV1p3beta1TextAnnotation + include Google::Apis::Core::Hashable + + # List of pages detected by OCR. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + # UTF-8 text detected on the pages. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pages = args[:pages] if args.key?(:pages) + @text = args[:text] if args.key?(:text) + end + end + + # Detected start or end of a structural component. + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak + include Google::Apis::Core::Hashable + + # True if break prepends the element. + # Corresponds to the JSON property `isPrefix` + # @return [Boolean] + attr_accessor :is_prefix + alias_method :is_prefix?, :is_prefix + + # Detected break type. + # 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) + @is_prefix = args[:is_prefix] if args.key?(:is_prefix) + @type = args[:type] if args.key?(:type) + end + end + + # Detected language for a structural component. + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + include Google::Apis::Core::Hashable + + # Confidence of detected language. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Additional information detected on the structural component. + class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + include Google::Apis::Core::Hashable + + # Detected start or end of a structural component. + # Corresponds to the JSON property `detectedBreak` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak] + attr_accessor :detected_break + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_break = args[:detected_break] if args.key?(:detected_break) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + end + end + # A vertex represents a 2D point in the image. # NOTE: the vertex coordinates are in the same scale as the original image. class GoogleCloudVisionV1p3beta1Vertex @@ -2844,6 +5737,228 @@ module Google end end + # Relevant information for the image from the Internet. + class GoogleCloudVisionV1p3beta1WebDetection + include Google::Apis::Core::Hashable + + # The service's best guess as to the topic of the request image. + # Inferred from similar images on the open web. + # Corresponds to the JSON property `bestGuessLabels` + # @return [Array] + attr_accessor :best_guess_labels + + # Fully matching images from the Internet. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Web pages containing the matching images from the Internet. + # Corresponds to the JSON property `pagesWithMatchingImages` + # @return [Array] + attr_accessor :pages_with_matching_images + + # Partial matching images from the Internet. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # The visually similar image results. + # Corresponds to the JSON property `visuallySimilarImages` + # @return [Array] + attr_accessor :visually_similar_images + + # Deduced entities from similar images on the Internet. + # Corresponds to the JSON property `webEntities` + # @return [Array] + attr_accessor :web_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images) + @web_entities = args[:web_entities] if args.key?(:web_entities) + end + end + + # Entity deduced from similar images on the Internet. + class GoogleCloudVisionV1p3beta1WebDetectionWebEntity + include Google::Apis::Core::Hashable + + # Canonical description of the entity, in English. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Opaque entity ID. + # Corresponds to the JSON property `entityId` + # @return [String] + attr_accessor :entity_id + + # Overall relevancy score for the entity. + # Not normalized and not comparable across different image queries. + # 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) + @description = args[:description] if args.key?(:description) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @score = args[:score] if args.key?(:score) + end + end + + # Metadata for online images. + class GoogleCloudVisionV1p3beta1WebDetectionWebImage + include Google::Apis::Core::Hashable + + # (Deprecated) Overall relevancy score for the image. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result image URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # Label to provide extra metadata for the web detection. + class GoogleCloudVisionV1p3beta1WebDetectionWebLabel + include Google::Apis::Core::Hashable + + # Label for extra metadata. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". + # For more information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label = args[:label] if args.key?(:label) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Metadata for web pages. + class GoogleCloudVisionV1p3beta1WebDetectionWebPage + include Google::Apis::Core::Hashable + + # Fully matching images on the page. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Title for the web page, may contain HTML markups. + # Corresponds to the JSON property `pageTitle` + # @return [String] + attr_accessor :page_title + + # Partial matching images on the page. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its + # crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # (Deprecated) Overall relevancy score for the web page. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result web page URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @page_title = args[:page_title] if args.key?(:page_title) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # A word representation. + class GoogleCloudVisionV1p3beta1Word + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the word. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # List of symbols in the word. + # The order of the symbols follows the natural reading order. + # Corresponds to the JSON property `symbols` + # @return [Array] + attr_accessor :symbols + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @symbols = args[:symbols] if args.key?(:symbols) + end + end + # Client image to perform Google Cloud Vision API tasks over. class Image include Google::Apis::Core::Hashable diff --git a/generated/google/apis/vision_v1/representations.rb b/generated/google/apis/vision_v1/representations.rb index 24f834295..3cf16b467 100644 --- a/generated/google/apis/vision_v1/representations.rb +++ b/generated/google/apis/vision_v1/representations.rb @@ -178,6 +178,234 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1AnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1AnnotateImageResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Block + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1BoundingPoly + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1ColorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1CropHint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1CropHintsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1DominantColorsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1EntityAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1FaceAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1FaceAnnotationLandmark + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1ImageAnnotationContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1ImageProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1InputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1LocationInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Page + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Paragraph + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Position + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Property + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1SafeSearchAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Symbol + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1TextAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Vertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1WebDetection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebLabel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebPage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Word + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p2beta1AnnotateFileResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -412,42 +640,288 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1AnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1AnnotateImageResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1BatchOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1Block + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1BoundingPoly class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1ColorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1CropHint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1CropHintsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1DominantColorsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1EntityAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1FaceAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ImageAnnotationContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ImageProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1ImportProductSetsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1InputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1LocationInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1NormalizedVertex class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Page + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Paragraph + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Position + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Product + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ProductKeyValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ProductSearchResults + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Property + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1ReferenceImage class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1SafeSearchAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Symbol + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1Vertex class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1WebDetection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebLabel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebPage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Word + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Image class Representation < Google::Apis::Core::JsonRepresentation; end @@ -916,6 +1390,415 @@ module Google end end + class GoogleCloudVisionV1p1beta1AnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig::Representation + + collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AnnotateImageResponse::Representation + + end + end + + class GoogleCloudVisionV1p1beta1AnnotateImageResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :context, as: 'context', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ImageAnnotationContext::Representation + + property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1CropHintsAnnotation::Representation + + property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation + + collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1FaceAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1FaceAnnotation::Representation + + property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotation::Representation + + property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ImageProperties, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ImageProperties::Representation + + collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation + + collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation + + collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation + + property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation::Representation + + collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation + + property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetection, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetection::Representation + + end + end + + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1OutputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1OutputConfig::Representation + + end + end + + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse::Representation + + end + end + + class GoogleCloudVisionV1p1beta1Block + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :block_type, as: 'blockType' + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Paragraph, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Paragraph::Representation + + property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::Representation + + end + end + + class GoogleCloudVisionV1p1beta1BoundingPoly + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Vertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Vertex::Representation + + end + end + + class GoogleCloudVisionV1p1beta1ColorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :color, as: 'color', class: Google::Apis::VisionV1::Color, decorator: Google::Apis::VisionV1::Color::Representation + + property :pixel_fraction, as: 'pixelFraction' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p1beta1CropHint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :importance_fraction, as: 'importanceFraction' + end + end + + class GoogleCloudVisionV1p1beta1CropHintsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1CropHint, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1CropHint::Representation + + end + end + + class GoogleCloudVisionV1p1beta1DominantColorsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :colors, as: 'colors', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ColorInfo, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ColorInfo::Representation + + end + end + + class GoogleCloudVisionV1p1beta1EntityAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :description, as: 'description' + property :locale, as: 'locale' + collection :locations, as: 'locations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1LocationInfo, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1LocationInfo::Representation + + property :mid, as: 'mid' + collection :properties, as: 'properties', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Property, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Property::Representation + + property :score, as: 'score' + property :topicality, as: 'topicality' + end + end + + class GoogleCloudVisionV1p1beta1FaceAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :anger_likelihood, as: 'angerLikelihood' + property :blurred_likelihood, as: 'blurredLikelihood' + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :detection_confidence, as: 'detectionConfidence' + property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :headwear_likelihood, as: 'headwearLikelihood' + property :joy_likelihood, as: 'joyLikelihood' + property :landmarking_confidence, as: 'landmarkingConfidence' + collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1FaceAnnotationLandmark::Representation + + property :pan_angle, as: 'panAngle' + property :roll_angle, as: 'rollAngle' + property :sorrow_likelihood, as: 'sorrowLikelihood' + property :surprise_likelihood, as: 'surpriseLikelihood' + property :tilt_angle, as: 'tiltAngle' + property :under_exposed_likelihood, as: 'underExposedLikelihood' + end + end + + class GoogleCloudVisionV1p1beta1FaceAnnotationLandmark + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Position, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Position::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p1beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p1beta1GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p1beta1ImageAnnotationContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_number, as: 'pageNumber' + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p1beta1ImageProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1DominantColorsAnnotation::Representation + + end + end + + class GoogleCloudVisionV1p1beta1InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1GcsSource, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1GcsSource::Representation + + property :mime_type, as: 'mimeType' + end + end + + class GoogleCloudVisionV1p1beta1LocationInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation + + end + end + + class GoogleCloudVisionV1p1beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudVisionV1p1beta1OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_size, as: 'batchSize' + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1GcsDestination, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1GcsDestination::Representation + + end + end + + class GoogleCloudVisionV1p1beta1Page + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Block, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Block::Representation + + property :confidence, as: 'confidence' + property :height, as: 'height' + property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::Representation + + property :width, as: 'width' + end + end + + class GoogleCloudVisionV1p1beta1Paragraph + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::Representation + + collection :words, as: 'words', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Word, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Word::Representation + + end + end + + class GoogleCloudVisionV1p1beta1Position + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + property :z, as: 'z' + end + end + + class GoogleCloudVisionV1p1beta1Property + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :uint64_value, :numeric_string => true, as: 'uint64Value' + property :value, as: 'value' + end + end + + class GoogleCloudVisionV1p1beta1SafeSearchAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :adult, as: 'adult' + property :medical, as: 'medical' + property :racy, as: 'racy' + property :spoof, as: 'spoof' + property :violence, as: 'violence' + end + end + + class GoogleCloudVisionV1p1beta1Symbol + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p1beta1TextAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :pages, as: 'pages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Page, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Page::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_prefix, as: 'isPrefix' + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage::Representation + + end + end + + class GoogleCloudVisionV1p1beta1Vertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class GoogleCloudVisionV1p1beta1WebDetection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebLabel::Representation + + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage::Representation + + collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebPage::Representation + + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage::Representation + + collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage::Representation + + collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebEntity::Representation + + end + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :entity_id, as: 'entityId' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :score, as: 'score' + property :url, as: 'url' + end + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebLabel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label, as: 'label' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebPage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage::Representation + + property :page_title, as: 'pageTitle' + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage::Representation + + property :score, as: 'score' + property :url, as: 'url' + end + end + + class GoogleCloudVisionV1p1beta1Word + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::Representation + + collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Symbol, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Symbol::Representation + + end + end + class GoogleCloudVisionV1p2beta1AnnotateFileResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1335,6 +2218,66 @@ module Google end end + class GoogleCloudVisionV1p3beta1AnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig::Representation + + collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AnnotateImageResponse::Representation + + end + end + + class GoogleCloudVisionV1p3beta1AnnotateImageResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :context, as: 'context', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ImageAnnotationContext::Representation + + property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1CropHintsAnnotation::Representation + + property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation + + collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1FaceAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1FaceAnnotation::Representation + + property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotation::Representation + + property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ImageProperties, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ImageProperties::Representation + + collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation::Representation + + collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + property :product_search_results, as: 'productSearchResults', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResults, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResults::Representation + + property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation::Representation + + collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetection, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetection::Representation + + end + end + + class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1OutputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1OutputConfig::Representation + + end + end + + class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse::Representation + + end + end + class GoogleCloudVisionV1p3beta1BatchOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1344,6 +2287,20 @@ module Google end end + class GoogleCloudVisionV1p3beta1Block + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :block_type, as: 'blockType' + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Paragraph, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Paragraph::Representation + + property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + end + end + class GoogleCloudVisionV1p3beta1BoundingPoly # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1354,6 +2311,123 @@ module Google end end + class GoogleCloudVisionV1p3beta1ColorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :color, as: 'color', class: Google::Apis::VisionV1::Color, decorator: Google::Apis::VisionV1::Color::Representation + + property :pixel_fraction, as: 'pixelFraction' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1CropHint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :importance_fraction, as: 'importanceFraction' + end + end + + class GoogleCloudVisionV1p3beta1CropHintsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1CropHint, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1CropHint::Representation + + end + end + + class GoogleCloudVisionV1p3beta1DominantColorsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :colors, as: 'colors', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ColorInfo, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ColorInfo::Representation + + end + end + + class GoogleCloudVisionV1p3beta1EntityAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :description, as: 'description' + property :locale, as: 'locale' + collection :locations, as: 'locations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1LocationInfo, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1LocationInfo::Representation + + property :mid, as: 'mid' + collection :properties, as: 'properties', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Property, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Property::Representation + + property :score, as: 'score' + property :topicality, as: 'topicality' + end + end + + class GoogleCloudVisionV1p3beta1FaceAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :anger_likelihood, as: 'angerLikelihood' + property :blurred_likelihood, as: 'blurredLikelihood' + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :detection_confidence, as: 'detectionConfidence' + property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :headwear_likelihood, as: 'headwearLikelihood' + property :joy_likelihood, as: 'joyLikelihood' + property :landmarking_confidence, as: 'landmarkingConfidence' + collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1FaceAnnotationLandmark::Representation + + property :pan_angle, as: 'panAngle' + property :roll_angle, as: 'rollAngle' + property :sorrow_likelihood, as: 'sorrowLikelihood' + property :surprise_likelihood, as: 'surpriseLikelihood' + property :tilt_angle, as: 'tiltAngle' + property :under_exposed_likelihood, as: 'underExposedLikelihood' + end + end + + class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Position, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Position::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p3beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p3beta1GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p3beta1ImageAnnotationContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_number, as: 'pageNumber' + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p3beta1ImageProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation::Representation + + end + end + class GoogleCloudVisionV1p3beta1ImportProductSetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1364,6 +2438,35 @@ module Google end end + class GoogleCloudVisionV1p3beta1InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1GcsSource, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1GcsSource::Representation + + property :mime_type, as: 'mimeType' + end + end + + class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :language_code, as: 'languageCode' + property :mid, as: 'mid' + property :name, as: 'name' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1LocationInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation + + end + end + class GoogleCloudVisionV1p3beta1NormalizedVertex # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1372,6 +2475,107 @@ module Google end end + class GoogleCloudVisionV1p3beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudVisionV1p3beta1OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_size, as: 'batchSize' + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1GcsDestination, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1GcsDestination::Representation + + end + end + + class GoogleCloudVisionV1p3beta1Page + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Block, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Block::Representation + + property :confidence, as: 'confidence' + property :height, as: 'height' + property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + property :width, as: 'width' + end + end + + class GoogleCloudVisionV1p3beta1Paragraph + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + collection :words, as: 'words', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Word, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Word::Representation + + end + end + + class GoogleCloudVisionV1p3beta1Position + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + property :z, as: 'z' + end + end + + class GoogleCloudVisionV1p3beta1Product + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + property :product_category, as: 'productCategory' + collection :product_labels, as: 'productLabels', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductKeyValue, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductKeyValue::Representation + + end + end + + class GoogleCloudVisionV1p3beta1ProductKeyValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + + class GoogleCloudVisionV1p3beta1ProductSearchResults + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :index_time, as: 'indexTime' + collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult::Representation + + end + end + + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image, as: 'image' + property :product, as: 'product', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Product, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Product::Representation + + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1Property + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :uint64_value, :numeric_string => true, as: 'uint64Value' + property :value, as: 'value' + end + end + class GoogleCloudVisionV1p3beta1ReferenceImage # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1382,6 +2586,64 @@ module Google end end + class GoogleCloudVisionV1p3beta1SafeSearchAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :adult, as: 'adult' + property :medical, as: 'medical' + property :racy, as: 'racy' + property :spoof, as: 'spoof' + property :violence, as: 'violence' + end + end + + class GoogleCloudVisionV1p3beta1Symbol + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :pages, as: 'pages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Page, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Page::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_prefix, as: 'isPrefix' + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage::Representation + + end + end + class GoogleCloudVisionV1p3beta1Vertex # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1390,6 +2652,75 @@ module Google end end + class GoogleCloudVisionV1p3beta1WebDetection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebLabel::Representation + + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebPage::Representation + + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebEntity::Representation + + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :entity_id, as: 'entityId' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :score, as: 'score' + property :url, as: 'url' + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebLabel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label, as: 'label' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebPage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + property :page_title, as: 'pageTitle' + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + property :score, as: 'score' + property :url, as: 'url' + end + end + + class GoogleCloudVisionV1p3beta1Word + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Symbol, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Symbol::Representation + + end + end + class Image # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/vision_v1p1beta1.rb b/generated/google/apis/vision_v1p1beta1.rb index 664f711b9..5530fa2b3 100644 --- a/generated/google/apis/vision_v1p1beta1.rb +++ b/generated/google/apis/vision_v1p1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20180609' + REVISION = '20180817' # 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/vision_v1p1beta1/classes.rb b/generated/google/apis/vision_v1p1beta1/classes.rb index 062f7eddd..96d1d54eb 100644 --- a/generated/google/apis/vision_v1p1beta1/classes.rb +++ b/generated/google/apis/vision_v1p1beta1/classes.rb @@ -347,7 +347,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -495,7 +495,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -925,6 +925,32 @@ module Google end end + # Response to a single file annotation request. A file may contain one or more + # images, which individually have their own responses. + class GoogleCloudVisionV1p1beta1AnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig] + attr_accessor :input_config + + # Individual responses to images found within the file. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_config = args[:input_config] if args.key?(:input_config) + @responses = args[:responses] if args.key?(:responses) + end + end + # Request for performing Google Cloud Vision API tasks over a user-provided # image, with user-requested features. class GoogleCloudVisionV1p1beta1AnnotateImageRequest @@ -1126,6 +1152,25 @@ module Google end end + # The response for a single offline file annotation request. + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + # Multiple async file annotation requests are batched into a single service # call. class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest @@ -1146,6 +1191,26 @@ module Google end end + # Response to an async batch file annotation request. + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse + include Google::Apis::Core::Hashable + + # The list of file annotation responses, one for each request in + # AsyncBatchAnnotateFilesRequest. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + # Multiple image annotation requests are batched into a single service call. class GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest include Google::Apis::Core::Hashable @@ -1311,7 +1376,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -2017,6 +2082,37 @@ module Google end end + # Contains metadata for the BatchAnnotateImages operation. + class GoogleCloudVisionV1p1beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request was received. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the operation result was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + # The desired output location and metadata. class GoogleCloudVisionV1p1beta1OutputConfig include Google::Apis::Core::Hashable @@ -2992,7 +3088,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -4174,6 +4270,216 @@ module Google end end + # Response to a single file annotation request. A file may contain one or more + # images, which individually have their own responses. + class GoogleCloudVisionV1p3beta1AnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1InputConfig] + attr_accessor :input_config + + # Individual responses to images found within the file. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_config = args[:input_config] if args.key?(:input_config) + @responses = args[:responses] if args.key?(:responses) + end + end + + # Response to an image annotation request. + class GoogleCloudVisionV1p3beta1AnnotateImageResponse + include Google::Apis::Core::Hashable + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + # Corresponds to the JSON property `context` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ImageAnnotationContext] + attr_accessor :context + + # Set of crop hints that are used to generate new crops when serving images. + # Corresponds to the JSON property `cropHintsAnnotation` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1CropHintsAnnotation] + attr_accessor :crop_hints_annotation + + # 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p1beta1::Status] + attr_accessor :error + + # If present, face detection has completed successfully. + # Corresponds to the JSON property `faceAnnotations` + # @return [Array] + attr_accessor :face_annotations + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + # Corresponds to the JSON property `fullTextAnnotation` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotation] + attr_accessor :full_text_annotation + + # Stores image properties, such as dominant colors. + # Corresponds to the JSON property `imagePropertiesAnnotation` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ImageProperties] + attr_accessor :image_properties_annotation + + # If present, label detection has completed successfully. + # Corresponds to the JSON property `labelAnnotations` + # @return [Array] + attr_accessor :label_annotations + + # If present, landmark detection has completed successfully. + # Corresponds to the JSON property `landmarkAnnotations` + # @return [Array] + attr_accessor :landmark_annotations + + # If present, localized object detection has completed successfully. + # This will be sorted descending by confidence score. + # Corresponds to the JSON property `localizedObjectAnnotations` + # @return [Array] + attr_accessor :localized_object_annotations + + # If present, logo detection has completed successfully. + # Corresponds to the JSON property `logoAnnotations` + # @return [Array] + attr_accessor :logo_annotations + + # Results for a product search request. + # Corresponds to the JSON property `productSearchResults` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResults] + attr_accessor :product_search_results + + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + # Corresponds to the JSON property `safeSearchAnnotation` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation] + attr_accessor :safe_search_annotation + + # If present, text (OCR) detection has completed successfully. + # Corresponds to the JSON property `textAnnotations` + # @return [Array] + attr_accessor :text_annotations + + # Relevant information for the image from the Internet. + # Corresponds to the JSON property `webDetection` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetection] + attr_accessor :web_detection + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @context = args[:context] if args.key?(:context) + @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) + @error = args[:error] if args.key?(:error) + @face_annotations = args[:face_annotations] if args.key?(:face_annotations) + @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation) + @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation) + @label_annotations = args[:label_annotations] if args.key?(:label_annotations) + @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) + @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations) + @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) + @product_search_results = args[:product_search_results] if args.key?(:product_search_results) + @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) + @text_annotations = args[:text_annotations] if args.key?(:text_annotations) + @web_detection = args[:web_detection] if args.key?(:web_detection) + end + end + + # The response for a single offline file annotation request. + class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # Response to an async batch file annotation request. + class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse + include Google::Apis::Core::Hashable + + # The list of file annotation responses, one for each request in + # AsyncBatchAnnotateFilesRequest. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + # Metadata for the batch operations such as the current state. # This is included in the `metadata` field of the `Operation` returned by the # `GetOperation` call of the `google::longrunning::Operations` service. @@ -4208,6 +4514,49 @@ module Google end end + # Logical element on the page. + class GoogleCloudVisionV1p3beta1Block + include Google::Apis::Core::Hashable + + # Detected block type (text, image etc) for this block. + # Corresponds to the JSON property `blockType` + # @return [String] + attr_accessor :block_type + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results on the block. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # List of paragraphs in this block (if this blocks is of type text). + # Corresponds to the JSON property `paragraphs` + # @return [Array] + attr_accessor :paragraphs + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @block_type = args[:block_type] if args.key?(:block_type) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @paragraphs = args[:paragraphs] if args.key?(:paragraphs) + @property = args[:property] if args.key?(:property) + end + end + # A bounding polygon for the detected image annotation. class GoogleCloudVisionV1p3beta1BoundingPoly include Google::Apis::Core::Hashable @@ -4233,6 +4582,521 @@ module Google end end + # Color information consists of RGB channels, score, and the fraction of + # the image that the color occupies in the image. + class GoogleCloudVisionV1p3beta1ColorInfo + include Google::Apis::Core::Hashable + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `color` + # @return [Google::Apis::VisionV1p1beta1::Color] + attr_accessor :color + + # The fraction of pixels the color occupies in the image. + # Value in range [0, 1]. + # Corresponds to the JSON property `pixelFraction` + # @return [Float] + attr_accessor :pixel_fraction + + # Image-specific score for this color. Value in range [0, 1]. + # 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) + @color = args[:color] if args.key?(:color) + @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction) + @score = args[:score] if args.key?(:score) + end + end + + # Single crop hint that is used to generate a new crop when serving an image. + class GoogleCloudVisionV1p3beta1CropHint + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # Confidence of this being a salient region. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Fraction of importance of this salient region with respect to the original + # image. + # Corresponds to the JSON property `importanceFraction` + # @return [Float] + attr_accessor :importance_fraction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction) + end + end + + # Set of crop hints that are used to generate new crops when serving images. + class GoogleCloudVisionV1p3beta1CropHintsAnnotation + include Google::Apis::Core::Hashable + + # Crop hint results. + # Corresponds to the JSON property `cropHints` + # @return [Array] + attr_accessor :crop_hints + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @crop_hints = args[:crop_hints] if args.key?(:crop_hints) + end + end + + # Set of dominant colors and their corresponding scores. + class GoogleCloudVisionV1p3beta1DominantColorsAnnotation + include Google::Apis::Core::Hashable + + # RGB color values with their score and pixel fraction. + # Corresponds to the JSON property `colors` + # @return [Array] + attr_accessor :colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @colors = args[:colors] if args.key?(:colors) + end + end + + # Set of detected entity features. + class GoogleCloudVisionV1p3beta1EntityAnnotation + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # **Deprecated. Use `score` instead.** + # The accuracy of the entity detection in an image. + # For example, for an image in which the "Eiffel Tower" entity is detected, + # this field represents the confidence that there is a tower in the query + # image. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Entity textual description, expressed in its `locale` language. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The language code for the locale in which the entity textual + # `description` is expressed. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # The location information for the detected entity. Multiple + # `LocationInfo` elements can be present because one location may + # indicate the location of the scene in the image, and another location + # may indicate the location of the place where the image was taken. + # Location information is usually present for landmarks. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # Opaque entity ID. Some IDs may be available in + # [Google Knowledge Graph Search + # API](https://developers.google.com/knowledge-graph/). + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Some entities may have optional user-supplied `Property` (name/value) + # fields, such a score or string that qualifies the entity. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + # Overall score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The relevancy of the ICA (Image Content Annotation) label to the + # image. For example, the relevancy of "tower" is likely higher to an image + # containing the detected "Eiffel Tower" than to an image containing a + # detected distant towering building, even though the confidence that + # there is a tower in each image may be the same. Range [0, 1]. + # Corresponds to the JSON property `topicality` + # @return [Float] + attr_accessor :topicality + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @description = args[:description] if args.key?(:description) + @locale = args[:locale] if args.key?(:locale) + @locations = args[:locations] if args.key?(:locations) + @mid = args[:mid] if args.key?(:mid) + @properties = args[:properties] if args.key?(:properties) + @score = args[:score] if args.key?(:score) + @topicality = args[:topicality] if args.key?(:topicality) + end + end + + # A face annotation object contains the results of face detection. + class GoogleCloudVisionV1p3beta1FaceAnnotation + include Google::Apis::Core::Hashable + + # Anger likelihood. + # Corresponds to the JSON property `angerLikelihood` + # @return [String] + attr_accessor :anger_likelihood + + # Blurred likelihood. + # Corresponds to the JSON property `blurredLikelihood` + # @return [String] + attr_accessor :blurred_likelihood + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # Detection confidence. Range [0, 1]. + # Corresponds to the JSON property `detectionConfidence` + # @return [Float] + attr_accessor :detection_confidence + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `fdBoundingPoly` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :fd_bounding_poly + + # Headwear likelihood. + # Corresponds to the JSON property `headwearLikelihood` + # @return [String] + attr_accessor :headwear_likelihood + + # Joy likelihood. + # Corresponds to the JSON property `joyLikelihood` + # @return [String] + attr_accessor :joy_likelihood + + # Face landmarking confidence. Range [0, 1]. + # Corresponds to the JSON property `landmarkingConfidence` + # @return [Float] + attr_accessor :landmarking_confidence + + # Detected face landmarks. + # Corresponds to the JSON property `landmarks` + # @return [Array] + attr_accessor :landmarks + + # Yaw angle, which indicates the leftward/rightward angle that the face is + # pointing relative to the vertical plane perpendicular to the image. Range + # [-180,180]. + # Corresponds to the JSON property `panAngle` + # @return [Float] + attr_accessor :pan_angle + + # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation + # of the face relative to the image vertical about the axis perpendicular to + # the face. Range [-180,180]. + # Corresponds to the JSON property `rollAngle` + # @return [Float] + attr_accessor :roll_angle + + # Sorrow likelihood. + # Corresponds to the JSON property `sorrowLikelihood` + # @return [String] + attr_accessor :sorrow_likelihood + + # Surprise likelihood. + # Corresponds to the JSON property `surpriseLikelihood` + # @return [String] + attr_accessor :surprise_likelihood + + # Pitch angle, which indicates the upwards/downwards angle that the face is + # pointing relative to the image's horizontal plane. Range [-180,180]. + # Corresponds to the JSON property `tiltAngle` + # @return [Float] + attr_accessor :tilt_angle + + # Under-exposed likelihood. + # Corresponds to the JSON property `underExposedLikelihood` + # @return [String] + attr_accessor :under_exposed_likelihood + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) + @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence) + @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) + @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood) + @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) + @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) + @landmarks = args[:landmarks] if args.key?(:landmarks) + @pan_angle = args[:pan_angle] if args.key?(:pan_angle) + @roll_angle = args[:roll_angle] if args.key?(:roll_angle) + @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) + @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) + @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) + @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood) + end + end + + # A face-specific landmark (for example, a face feature). + class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + include Google::Apis::Core::Hashable + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + # Corresponds to the JSON property `position` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Position] + attr_accessor :position + + # Face landmark type. + # 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) + @position = args[:position] if args.key?(:position) + @type = args[:type] if args.key?(:type) + end + end + + # The Google Cloud Storage location where the output will be written to. + class GoogleCloudVisionV1p3beta1GcsDestination + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI where the results will be stored. Results will + # be in JSON format and preceded by its corresponding input URI. This field + # can either represent a single file, or a prefix for multiple outputs. + # Prefixes must end in a `/`. + # Examples: + # * File: gs://bucket-name/filename.json + # * Prefix: gs://bucket-name/prefix/here/ + # * File: gs://bucket-name/prefix/here + # If multiple outputs, each response is still AnnotateFileResponse, each of + # which contains some subset of the full list of AnnotateImageResponse. + # Multiple outputs can happen if, for example, the output JSON is too large + # and overflows into multiple sharded files. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The Google Cloud Storage location where the input will be read from. + class GoogleCloudVisionV1p3beta1GcsSource + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI for the input file. This must only be a + # Google Cloud Storage object. Wildcards are not currently supported. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + class GoogleCloudVisionV1p3beta1ImageAnnotationContext + include Google::Apis::Core::Hashable + + # If the file was a PDF or TIFF, this field gives the page number within + # the file used to produce the image. + # Corresponds to the JSON property `pageNumber` + # @return [Fixnum] + attr_accessor :page_number + + # The URI of the file used to produce the image. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_number = args[:page_number] if args.key?(:page_number) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Stores image properties, such as dominant colors. + class GoogleCloudVisionV1p3beta1ImageProperties + include Google::Apis::Core::Hashable + + # Set of dominant colors and their corresponding scores. + # Corresponds to the JSON property `dominantColors` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation] + attr_accessor :dominant_colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors) + end + end + # Response message for the `ImportProductSets` method. # This message is returned by the # google.longrunning.Operations.GetOperation method in the returned @@ -4265,6 +5129,100 @@ module Google end end + # The desired input location and metadata. + class GoogleCloudVisionV1p3beta1InputConfig + include Google::Apis::Core::Hashable + + # The Google Cloud Storage location where the input will be read from. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1GcsSource] + attr_accessor :gcs_source + + # The type of the file. Currently only "application/pdf" and "image/tiff" + # are supported. Wildcards are not supported. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_source = args[:gcs_source] if args.key?(:gcs_source) + @mime_type = args[:mime_type] if args.key?(:mime_type) + end + end + + # Set of detected objects with bounding boxes. + class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Object ID that should align with EntityAnnotation mid. + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Object name, expressed in its `language_code` language. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Score of the result. Range [0, 1]. + # 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) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @language_code = args[:language_code] if args.key?(:language_code) + @mid = args[:mid] if args.key?(:mid) + @name = args[:name] if args.key?(:name) + @score = args[:score] if args.key?(:score) + end + end + + # Detected entity location information. + class GoogleCloudVisionV1p3beta1LocationInfo + include Google::Apis::Core::Hashable + + # 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 within normalized ranges. + # Corresponds to the JSON property `latLng` + # @return [Google::Apis::VisionV1p1beta1::LatLng] + attr_accessor :lat_lng + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @lat_lng = args[:lat_lng] if args.key?(:lat_lng) + end + end + # A vertex represents a 2D point in the image. # NOTE: the normalized vertex coordinates are relative to the original image # and range from 0 to 1. @@ -4292,6 +5250,360 @@ module Google end end + # Contains metadata for the BatchAnnotateImages operation. + class GoogleCloudVisionV1p3beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request was received. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the operation result was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The desired output location and metadata. + class GoogleCloudVisionV1p3beta1OutputConfig + include Google::Apis::Core::Hashable + + # The max number of response protos to put into each output JSON file on + # Google Cloud Storage. + # The valid range is [1, 100]. If not specified, the default value is 20. + # For example, for one pdf file with 100 pages, 100 response protos will + # be generated. If `batch_size` = 20, then 5 json files each + # containing 20 response protos will be written under the prefix + # `gcs_destination`.`uri`. + # Currently, batch_size only applies to GcsDestination, with potential future + # support for other output configurations. + # Corresponds to the JSON property `batchSize` + # @return [Fixnum] + attr_accessor :batch_size + + # The Google Cloud Storage location where the output will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_size = args[:batch_size] if args.key?(:batch_size) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # Detected page from OCR. + class GoogleCloudVisionV1p3beta1Page + include Google::Apis::Core::Hashable + + # List of blocks of text, images etc on this page. + # Corresponds to the JSON property `blocks` + # @return [Array] + attr_accessor :blocks + + # Confidence of the OCR results on the page. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Page height. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # Page width. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @blocks = args[:blocks] if args.key?(:blocks) + @confidence = args[:confidence] if args.key?(:confidence) + @height = args[:height] if args.key?(:height) + @property = args[:property] if args.key?(:property) + @width = args[:width] if args.key?(:width) + end + end + + # Structural unit of text representing a number of words in certain order. + class GoogleCloudVisionV1p3beta1Paragraph + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the paragraph. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # List of words in this paragraph. + # Corresponds to the JSON property `words` + # @return [Array] + attr_accessor :words + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @words = args[:words] if args.key?(:words) + end + end + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + class GoogleCloudVisionV1p3beta1Position + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + # Z coordinate (or depth). + # Corresponds to the JSON property `z` + # @return [Float] + attr_accessor :z + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + @z = args[:z] if args.key?(:z) + end + end + + # A Product contains ReferenceImages. + class GoogleCloudVisionV1p3beta1Product + include Google::Apis::Core::Hashable + + # User-provided metadata to be stored with this product. Must be at most 4096 + # characters long. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The user-provided name for this Product. Must not be empty. Must be at most + # 4096 characters long. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the product. + # Format is: + # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. + # This field is ignored when creating a product. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The category for the product identified by the reference image. This should + # be either "homegoods" or "apparel". + # This field is immutable. + # Corresponds to the JSON property `productCategory` + # @return [String] + attr_accessor :product_category + + # Key-value pairs that can be attached to a product. At query time, + # constraints can be specified based on the product_labels. + # Note that integer values can be provided as strings, e.g. "1199". Only + # strings with integer values can match a range-based restriction which is + # to be supported soon. + # Multiple values can be assigned to the same key. One product may have up to + # 100 product_labels. + # Corresponds to the JSON property `productLabels` + # @return [Array] + attr_accessor :product_labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @product_category = args[:product_category] if args.key?(:product_category) + @product_labels = args[:product_labels] if args.key?(:product_labels) + end + end + + # A product label represented as a key-value pair. + class GoogleCloudVisionV1p3beta1ProductKeyValue + include Google::Apis::Core::Hashable + + # The key of the label attached to the product. Cannot be empty and cannot + # exceed 128 bytes. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The value of the label attached to the product. Cannot be empty and + # cannot exceed 128 bytes. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + + # Results for a product search request. + class GoogleCloudVisionV1p3beta1ProductSearchResults + include Google::Apis::Core::Hashable + + # Timestamp of the index which provided these results. Changes made after + # this time are not reflected in the current results. + # Corresponds to the JSON property `indexTime` + # @return [String] + attr_accessor :index_time + + # List of results, one for each product match. + # 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) + @index_time = args[:index_time] if args.key?(:index_time) + @results = args[:results] if args.key?(:results) + end + end + + # Information about a product. + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult + include Google::Apis::Core::Hashable + + # The resource name of the image from the product that is the closest match + # to the query. + # Corresponds to the JSON property `image` + # @return [String] + attr_accessor :image + + # A Product contains ReferenceImages. + # Corresponds to the JSON property `product` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Product] + attr_accessor :product + + # A confidence level on the match, ranging from 0 (no confidence) to + # 1 (full confidence). + # This field is returned only if `view` is set to `FULL` in + # the request. + # 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) + @image = args[:image] if args.key?(:image) + @product = args[:product] if args.key?(:product) + @score = args[:score] if args.key?(:score) + end + end + + # A `Property` consists of a user-supplied name/value pair. + class GoogleCloudVisionV1p3beta1Property + include Google::Apis::Core::Hashable + + # Name of the property. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Value of numeric properties. + # Corresponds to the JSON property `uint64Value` + # @return [Fixnum] + attr_accessor :uint64_value + + # Value of the property. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @uint64_value = args[:uint64_value] if args.key?(:uint64_value) + @value = args[:value] if args.key?(:value) + end + end + # A `ReferenceImage` represents a product image and its associated metadata, # such as bounding boxes. class GoogleCloudVisionV1p3beta1ReferenceImage @@ -4336,6 +5648,204 @@ module Google end end + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + class GoogleCloudVisionV1p3beta1SafeSearchAnnotation + include Google::Apis::Core::Hashable + + # Represents the adult content likelihood for the image. Adult content may + # contain elements such as nudity, pornographic images or cartoons, or + # sexual activities. + # Corresponds to the JSON property `adult` + # @return [String] + attr_accessor :adult + + # Likelihood that this is a medical image. + # Corresponds to the JSON property `medical` + # @return [String] + attr_accessor :medical + + # Likelihood that the request image contains racy content. Racy content may + # include (but is not limited to) skimpy or sheer clothing, strategically + # covered nudity, lewd or provocative poses, or close-ups of sensitive + # body areas. + # Corresponds to the JSON property `racy` + # @return [String] + attr_accessor :racy + + # Spoof likelihood. The likelihood that an modification + # was made to the image's canonical version to make it appear + # funny or offensive. + # Corresponds to the JSON property `spoof` + # @return [String] + attr_accessor :spoof + + # Likelihood that this image contains violent content. + # Corresponds to the JSON property `violence` + # @return [String] + attr_accessor :violence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @adult = args[:adult] if args.key?(:adult) + @medical = args[:medical] if args.key?(:medical) + @racy = args[:racy] if args.key?(:racy) + @spoof = args[:spoof] if args.key?(:spoof) + @violence = args[:violence] if args.key?(:violence) + end + end + + # A single symbol representation. + class GoogleCloudVisionV1p3beta1Symbol + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the symbol. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # The actual UTF-8 representation of the symbol. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @text = args[:text] if args.key?(:text) + end + end + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + class GoogleCloudVisionV1p3beta1TextAnnotation + include Google::Apis::Core::Hashable + + # List of pages detected by OCR. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + # UTF-8 text detected on the pages. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pages = args[:pages] if args.key?(:pages) + @text = args[:text] if args.key?(:text) + end + end + + # Detected start or end of a structural component. + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak + include Google::Apis::Core::Hashable + + # True if break prepends the element. + # Corresponds to the JSON property `isPrefix` + # @return [Boolean] + attr_accessor :is_prefix + alias_method :is_prefix?, :is_prefix + + # Detected break type. + # 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) + @is_prefix = args[:is_prefix] if args.key?(:is_prefix) + @type = args[:type] if args.key?(:type) + end + end + + # Detected language for a structural component. + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + include Google::Apis::Core::Hashable + + # Confidence of detected language. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Additional information detected on the structural component. + class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + include Google::Apis::Core::Hashable + + # Detected start or end of a structural component. + # Corresponds to the JSON property `detectedBreak` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak] + attr_accessor :detected_break + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_break = args[:detected_break] if args.key?(:detected_break) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + end + end + # A vertex represents a 2D point in the image. # NOTE: the vertex coordinates are in the same scale as the original image. class GoogleCloudVisionV1p3beta1Vertex @@ -4362,6 +5872,228 @@ module Google end end + # Relevant information for the image from the Internet. + class GoogleCloudVisionV1p3beta1WebDetection + include Google::Apis::Core::Hashable + + # The service's best guess as to the topic of the request image. + # Inferred from similar images on the open web. + # Corresponds to the JSON property `bestGuessLabels` + # @return [Array] + attr_accessor :best_guess_labels + + # Fully matching images from the Internet. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Web pages containing the matching images from the Internet. + # Corresponds to the JSON property `pagesWithMatchingImages` + # @return [Array] + attr_accessor :pages_with_matching_images + + # Partial matching images from the Internet. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # The visually similar image results. + # Corresponds to the JSON property `visuallySimilarImages` + # @return [Array] + attr_accessor :visually_similar_images + + # Deduced entities from similar images on the Internet. + # Corresponds to the JSON property `webEntities` + # @return [Array] + attr_accessor :web_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images) + @web_entities = args[:web_entities] if args.key?(:web_entities) + end + end + + # Entity deduced from similar images on the Internet. + class GoogleCloudVisionV1p3beta1WebDetectionWebEntity + include Google::Apis::Core::Hashable + + # Canonical description of the entity, in English. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Opaque entity ID. + # Corresponds to the JSON property `entityId` + # @return [String] + attr_accessor :entity_id + + # Overall relevancy score for the entity. + # Not normalized and not comparable across different image queries. + # 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) + @description = args[:description] if args.key?(:description) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @score = args[:score] if args.key?(:score) + end + end + + # Metadata for online images. + class GoogleCloudVisionV1p3beta1WebDetectionWebImage + include Google::Apis::Core::Hashable + + # (Deprecated) Overall relevancy score for the image. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result image URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # Label to provide extra metadata for the web detection. + class GoogleCloudVisionV1p3beta1WebDetectionWebLabel + include Google::Apis::Core::Hashable + + # Label for extra metadata. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". + # For more information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label = args[:label] if args.key?(:label) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Metadata for web pages. + class GoogleCloudVisionV1p3beta1WebDetectionWebPage + include Google::Apis::Core::Hashable + + # Fully matching images on the page. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Title for the web page, may contain HTML markups. + # Corresponds to the JSON property `pageTitle` + # @return [String] + attr_accessor :page_title + + # Partial matching images on the page. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its + # crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # (Deprecated) Overall relevancy score for the web page. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result web page URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @page_title = args[:page_title] if args.key?(:page_title) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # A word representation. + class GoogleCloudVisionV1p3beta1Word + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the word. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # List of symbols in the word. + # The order of the symbols follows the natural reading order. + # Corresponds to the JSON property `symbols` + # @return [Array] + attr_accessor :symbols + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @symbols = args[:symbols] if args.key?(:symbols) + end + end + # If an image was produced from a file (e.g. a PDF), this message gives # information about the source of that image. class ImageAnnotationContext diff --git a/generated/google/apis/vision_v1p1beta1/representations.rb b/generated/google/apis/vision_v1p1beta1/representations.rb index eabc24a5b..2714654ff 100644 --- a/generated/google/apis/vision_v1p1beta1/representations.rb +++ b/generated/google/apis/vision_v1p1beta1/representations.rb @@ -124,6 +124,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1AnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1AnnotateImageRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,12 +148,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -286,6 +304,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1OutputConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -634,42 +658,288 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1AnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1AnnotateImageResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1BatchOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1Block + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1BoundingPoly class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1ColorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1CropHint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1CropHintsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1DominantColorsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1EntityAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1FaceAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ImageAnnotationContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ImageProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1ImportProductSetsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1InputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1LocationInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1NormalizedVertex class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Page + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Paragraph + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Position + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Product + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ProductKeyValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ProductSearchResults + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Property + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1ReferenceImage class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1SafeSearchAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Symbol + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1Vertex class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1WebDetection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebLabel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebPage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Word + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImageAnnotationContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1024,6 +1294,16 @@ module Google end end + class GoogleCloudVisionV1p1beta1AnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig::Representation + + collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse::Representation + + end + end + class GoogleCloudVisionV1p1beta1AnnotateImageRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1080,6 +1360,14 @@ module Google end end + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1OutputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1OutputConfig::Representation + + end + end + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1088,6 +1376,14 @@ module Google end end + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse::Representation + + end + end + class GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1316,6 +1612,15 @@ module Google end end + class GoogleCloudVisionV1p1beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + class GoogleCloudVisionV1p1beta1OutputConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1930,6 +2235,66 @@ module Google end end + class GoogleCloudVisionV1p3beta1AnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1InputConfig::Representation + + collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse::Representation + + end + end + + class GoogleCloudVisionV1p3beta1AnnotateImageResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :context, as: 'context', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ImageAnnotationContext::Representation + + property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1CropHintsAnnotation::Representation + + property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation + + collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1FaceAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1FaceAnnotation::Representation + + property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotation::Representation + + property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ImageProperties, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ImageProperties::Representation + + collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation::Representation + + collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + property :product_search_results, as: 'productSearchResults', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResults, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResults::Representation + + property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation::Representation + + collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetection, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetection::Representation + + end + end + + class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1OutputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1OutputConfig::Representation + + end + end + + class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse::Representation + + end + end + class GoogleCloudVisionV1p3beta1BatchOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1939,6 +2304,20 @@ module Google end end + class GoogleCloudVisionV1p3beta1Block + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :block_type, as: 'blockType' + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Paragraph, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Paragraph::Representation + + property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + end + end + class GoogleCloudVisionV1p3beta1BoundingPoly # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1949,6 +2328,123 @@ module Google end end + class GoogleCloudVisionV1p3beta1ColorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :color, as: 'color', class: Google::Apis::VisionV1p1beta1::Color, decorator: Google::Apis::VisionV1p1beta1::Color::Representation + + property :pixel_fraction, as: 'pixelFraction' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1CropHint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :importance_fraction, as: 'importanceFraction' + end + end + + class GoogleCloudVisionV1p3beta1CropHintsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1CropHint, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1CropHint::Representation + + end + end + + class GoogleCloudVisionV1p3beta1DominantColorsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :colors, as: 'colors', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ColorInfo, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ColorInfo::Representation + + end + end + + class GoogleCloudVisionV1p3beta1EntityAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :description, as: 'description' + property :locale, as: 'locale' + collection :locations, as: 'locations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1LocationInfo, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1LocationInfo::Representation + + property :mid, as: 'mid' + collection :properties, as: 'properties', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Property, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Property::Representation + + property :score, as: 'score' + property :topicality, as: 'topicality' + end + end + + class GoogleCloudVisionV1p3beta1FaceAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :anger_likelihood, as: 'angerLikelihood' + property :blurred_likelihood, as: 'blurredLikelihood' + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :detection_confidence, as: 'detectionConfidence' + property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :headwear_likelihood, as: 'headwearLikelihood' + property :joy_likelihood, as: 'joyLikelihood' + property :landmarking_confidence, as: 'landmarkingConfidence' + collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1FaceAnnotationLandmark::Representation + + property :pan_angle, as: 'panAngle' + property :roll_angle, as: 'rollAngle' + property :sorrow_likelihood, as: 'sorrowLikelihood' + property :surprise_likelihood, as: 'surpriseLikelihood' + property :tilt_angle, as: 'tiltAngle' + property :under_exposed_likelihood, as: 'underExposedLikelihood' + end + end + + class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Position, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Position::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p3beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p3beta1GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p3beta1ImageAnnotationContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_number, as: 'pageNumber' + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p3beta1ImageProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation::Representation + + end + end + class GoogleCloudVisionV1p3beta1ImportProductSetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1959,6 +2455,35 @@ module Google end end + class GoogleCloudVisionV1p3beta1InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1GcsSource, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1GcsSource::Representation + + property :mime_type, as: 'mimeType' + end + end + + class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :language_code, as: 'languageCode' + property :mid, as: 'mid' + property :name, as: 'name' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1LocationInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1p1beta1::LatLng, decorator: Google::Apis::VisionV1p1beta1::LatLng::Representation + + end + end + class GoogleCloudVisionV1p3beta1NormalizedVertex # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1967,6 +2492,107 @@ module Google end end + class GoogleCloudVisionV1p3beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudVisionV1p3beta1OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_size, as: 'batchSize' + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1GcsDestination, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1GcsDestination::Representation + + end + end + + class GoogleCloudVisionV1p3beta1Page + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blocks, as: 'blocks', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Block, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Block::Representation + + property :confidence, as: 'confidence' + property :height, as: 'height' + property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + property :width, as: 'width' + end + end + + class GoogleCloudVisionV1p3beta1Paragraph + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + collection :words, as: 'words', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Word, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Word::Representation + + end + end + + class GoogleCloudVisionV1p3beta1Position + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + property :z, as: 'z' + end + end + + class GoogleCloudVisionV1p3beta1Product + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + property :product_category, as: 'productCategory' + collection :product_labels, as: 'productLabels', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductKeyValue, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductKeyValue::Representation + + end + end + + class GoogleCloudVisionV1p3beta1ProductKeyValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + + class GoogleCloudVisionV1p3beta1ProductSearchResults + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :index_time, as: 'indexTime' + collection :results, as: 'results', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult::Representation + + end + end + + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image, as: 'image' + property :product, as: 'product', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Product, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Product::Representation + + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1Property + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :uint64_value, :numeric_string => true, as: 'uint64Value' + property :value, as: 'value' + end + end + class GoogleCloudVisionV1p3beta1ReferenceImage # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1977,6 +2603,64 @@ module Google end end + class GoogleCloudVisionV1p3beta1SafeSearchAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :adult, as: 'adult' + property :medical, as: 'medical' + property :racy, as: 'racy' + property :spoof, as: 'spoof' + property :violence, as: 'violence' + end + end + + class GoogleCloudVisionV1p3beta1Symbol + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :pages, as: 'pages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Page, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Page::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_prefix, as: 'isPrefix' + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage::Representation + + end + end + class GoogleCloudVisionV1p3beta1Vertex # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1985,6 +2669,75 @@ module Google end end + class GoogleCloudVisionV1p3beta1WebDetection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebLabel::Representation + + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebPage::Representation + + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebEntity::Representation + + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :entity_id, as: 'entityId' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :score, as: 'score' + property :url, as: 'url' + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebLabel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label, as: 'label' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebPage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + property :page_title, as: 'pageTitle' + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + property :score, as: 'score' + property :url, as: 'url' + end + end + + class GoogleCloudVisionV1p3beta1Word + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + collection :symbols, as: 'symbols', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Symbol, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Symbol::Representation + + end + end + class ImageAnnotationContext # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/vision_v1p2beta1.rb b/generated/google/apis/vision_v1p2beta1.rb index b64f8c461..47545d4ed 100644 --- a/generated/google/apis/vision_v1p2beta1.rb +++ b/generated/google/apis/vision_v1p2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p2beta1 VERSION = 'V1p2beta1' - REVISION = '20180609' + REVISION = '20180817' # 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/vision_v1p2beta1/classes.rb b/generated/google/apis/vision_v1p2beta1/classes.rb index bd75731aa..d60b104d5 100644 --- a/generated/google/apis/vision_v1p2beta1/classes.rb +++ b/generated/google/apis/vision_v1p2beta1/classes.rb @@ -347,7 +347,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -495,7 +495,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -925,6 +925,1485 @@ module Google end end + # Response to a single file annotation request. A file may contain one or more + # images, which individually have their own responses. + class GoogleCloudVisionV1p1beta1AnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1InputConfig] + attr_accessor :input_config + + # Individual responses to images found within the file. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_config = args[:input_config] if args.key?(:input_config) + @responses = args[:responses] if args.key?(:responses) + end + end + + # Response to an image annotation request. + class GoogleCloudVisionV1p1beta1AnnotateImageResponse + include Google::Apis::Core::Hashable + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + # Corresponds to the JSON property `context` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ImageAnnotationContext] + attr_accessor :context + + # Set of crop hints that are used to generate new crops when serving images. + # Corresponds to the JSON property `cropHintsAnnotation` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1CropHintsAnnotation] + attr_accessor :crop_hints_annotation + + # 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p2beta1::Status] + attr_accessor :error + + # If present, face detection has completed successfully. + # Corresponds to the JSON property `faceAnnotations` + # @return [Array] + attr_accessor :face_annotations + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + # Corresponds to the JSON property `fullTextAnnotation` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotation] + attr_accessor :full_text_annotation + + # Stores image properties, such as dominant colors. + # Corresponds to the JSON property `imagePropertiesAnnotation` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ImageProperties] + attr_accessor :image_properties_annotation + + # If present, label detection has completed successfully. + # Corresponds to the JSON property `labelAnnotations` + # @return [Array] + attr_accessor :label_annotations + + # If present, landmark detection has completed successfully. + # Corresponds to the JSON property `landmarkAnnotations` + # @return [Array] + attr_accessor :landmark_annotations + + # If present, logo detection has completed successfully. + # Corresponds to the JSON property `logoAnnotations` + # @return [Array] + attr_accessor :logo_annotations + + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + # Corresponds to the JSON property `safeSearchAnnotation` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation] + attr_accessor :safe_search_annotation + + # If present, text (OCR) detection has completed successfully. + # Corresponds to the JSON property `textAnnotations` + # @return [Array] + attr_accessor :text_annotations + + # Relevant information for the image from the Internet. + # Corresponds to the JSON property `webDetection` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetection] + attr_accessor :web_detection + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @context = args[:context] if args.key?(:context) + @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) + @error = args[:error] if args.key?(:error) + @face_annotations = args[:face_annotations] if args.key?(:face_annotations) + @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation) + @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation) + @label_annotations = args[:label_annotations] if args.key?(:label_annotations) + @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) + @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) + @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) + @text_annotations = args[:text_annotations] if args.key?(:text_annotations) + @web_detection = args[:web_detection] if args.key?(:web_detection) + end + end + + # The response for a single offline file annotation request. + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # Response to an async batch file annotation request. + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse + include Google::Apis::Core::Hashable + + # The list of file annotation responses, one for each request in + # AsyncBatchAnnotateFilesRequest. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + + # Logical element on the page. + class GoogleCloudVisionV1p1beta1Block + include Google::Apis::Core::Hashable + + # Detected block type (text, image etc) for this block. + # Corresponds to the JSON property `blockType` + # @return [String] + attr_accessor :block_type + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results on the block. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # List of paragraphs in this block (if this blocks is of type text). + # Corresponds to the JSON property `paragraphs` + # @return [Array] + attr_accessor :paragraphs + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] + attr_accessor :property + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @block_type = args[:block_type] if args.key?(:block_type) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @paragraphs = args[:paragraphs] if args.key?(:paragraphs) + @property = args[:property] if args.key?(:property) + end + end + + # A bounding polygon for the detected image annotation. + class GoogleCloudVisionV1p1beta1BoundingPoly + include Google::Apis::Core::Hashable + + # The bounding polygon vertices. + # Corresponds to the JSON property `vertices` + # @return [Array] + attr_accessor :vertices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @vertices = args[:vertices] if args.key?(:vertices) + end + end + + # Color information consists of RGB channels, score, and the fraction of + # the image that the color occupies in the image. + class GoogleCloudVisionV1p1beta1ColorInfo + include Google::Apis::Core::Hashable + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `color` + # @return [Google::Apis::VisionV1p2beta1::Color] + attr_accessor :color + + # The fraction of pixels the color occupies in the image. + # Value in range [0, 1]. + # Corresponds to the JSON property `pixelFraction` + # @return [Float] + attr_accessor :pixel_fraction + + # Image-specific score for this color. Value in range [0, 1]. + # 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) + @color = args[:color] if args.key?(:color) + @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction) + @score = args[:score] if args.key?(:score) + end + end + + # Single crop hint that is used to generate a new crop when serving an image. + class GoogleCloudVisionV1p1beta1CropHint + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_poly + + # Confidence of this being a salient region. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Fraction of importance of this salient region with respect to the original + # image. + # Corresponds to the JSON property `importanceFraction` + # @return [Float] + attr_accessor :importance_fraction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction) + end + end + + # Set of crop hints that are used to generate new crops when serving images. + class GoogleCloudVisionV1p1beta1CropHintsAnnotation + include Google::Apis::Core::Hashable + + # Crop hint results. + # Corresponds to the JSON property `cropHints` + # @return [Array] + attr_accessor :crop_hints + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @crop_hints = args[:crop_hints] if args.key?(:crop_hints) + end + end + + # Set of dominant colors and their corresponding scores. + class GoogleCloudVisionV1p1beta1DominantColorsAnnotation + include Google::Apis::Core::Hashable + + # RGB color values with their score and pixel fraction. + # Corresponds to the JSON property `colors` + # @return [Array] + attr_accessor :colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @colors = args[:colors] if args.key?(:colors) + end + end + + # Set of detected entity features. + class GoogleCloudVisionV1p1beta1EntityAnnotation + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_poly + + # **Deprecated. Use `score` instead.** + # The accuracy of the entity detection in an image. + # For example, for an image in which the "Eiffel Tower" entity is detected, + # this field represents the confidence that there is a tower in the query + # image. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Entity textual description, expressed in its `locale` language. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The language code for the locale in which the entity textual + # `description` is expressed. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # The location information for the detected entity. Multiple + # `LocationInfo` elements can be present because one location may + # indicate the location of the scene in the image, and another location + # may indicate the location of the place where the image was taken. + # Location information is usually present for landmarks. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # Opaque entity ID. Some IDs may be available in + # [Google Knowledge Graph Search + # API](https://developers.google.com/knowledge-graph/). + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Some entities may have optional user-supplied `Property` (name/value) + # fields, such a score or string that qualifies the entity. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + # Overall score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The relevancy of the ICA (Image Content Annotation) label to the + # image. For example, the relevancy of "tower" is likely higher to an image + # containing the detected "Eiffel Tower" than to an image containing a + # detected distant towering building, even though the confidence that + # there is a tower in each image may be the same. Range [0, 1]. + # Corresponds to the JSON property `topicality` + # @return [Float] + attr_accessor :topicality + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @description = args[:description] if args.key?(:description) + @locale = args[:locale] if args.key?(:locale) + @locations = args[:locations] if args.key?(:locations) + @mid = args[:mid] if args.key?(:mid) + @properties = args[:properties] if args.key?(:properties) + @score = args[:score] if args.key?(:score) + @topicality = args[:topicality] if args.key?(:topicality) + end + end + + # A face annotation object contains the results of face detection. + class GoogleCloudVisionV1p1beta1FaceAnnotation + include Google::Apis::Core::Hashable + + # Anger likelihood. + # Corresponds to the JSON property `angerLikelihood` + # @return [String] + attr_accessor :anger_likelihood + + # Blurred likelihood. + # Corresponds to the JSON property `blurredLikelihood` + # @return [String] + attr_accessor :blurred_likelihood + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_poly + + # Detection confidence. Range [0, 1]. + # Corresponds to the JSON property `detectionConfidence` + # @return [Float] + attr_accessor :detection_confidence + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `fdBoundingPoly` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :fd_bounding_poly + + # Headwear likelihood. + # Corresponds to the JSON property `headwearLikelihood` + # @return [String] + attr_accessor :headwear_likelihood + + # Joy likelihood. + # Corresponds to the JSON property `joyLikelihood` + # @return [String] + attr_accessor :joy_likelihood + + # Face landmarking confidence. Range [0, 1]. + # Corresponds to the JSON property `landmarkingConfidence` + # @return [Float] + attr_accessor :landmarking_confidence + + # Detected face landmarks. + # Corresponds to the JSON property `landmarks` + # @return [Array] + attr_accessor :landmarks + + # Yaw angle, which indicates the leftward/rightward angle that the face is + # pointing relative to the vertical plane perpendicular to the image. Range + # [-180,180]. + # Corresponds to the JSON property `panAngle` + # @return [Float] + attr_accessor :pan_angle + + # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation + # of the face relative to the image vertical about the axis perpendicular to + # the face. Range [-180,180]. + # Corresponds to the JSON property `rollAngle` + # @return [Float] + attr_accessor :roll_angle + + # Sorrow likelihood. + # Corresponds to the JSON property `sorrowLikelihood` + # @return [String] + attr_accessor :sorrow_likelihood + + # Surprise likelihood. + # Corresponds to the JSON property `surpriseLikelihood` + # @return [String] + attr_accessor :surprise_likelihood + + # Pitch angle, which indicates the upwards/downwards angle that the face is + # pointing relative to the image's horizontal plane. Range [-180,180]. + # Corresponds to the JSON property `tiltAngle` + # @return [Float] + attr_accessor :tilt_angle + + # Under-exposed likelihood. + # Corresponds to the JSON property `underExposedLikelihood` + # @return [String] + attr_accessor :under_exposed_likelihood + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) + @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence) + @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) + @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood) + @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) + @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) + @landmarks = args[:landmarks] if args.key?(:landmarks) + @pan_angle = args[:pan_angle] if args.key?(:pan_angle) + @roll_angle = args[:roll_angle] if args.key?(:roll_angle) + @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) + @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) + @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) + @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood) + end + end + + # A face-specific landmark (for example, a face feature). + class GoogleCloudVisionV1p1beta1FaceAnnotationLandmark + include Google::Apis::Core::Hashable + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + # Corresponds to the JSON property `position` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Position] + attr_accessor :position + + # Face landmark type. + # 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) + @position = args[:position] if args.key?(:position) + @type = args[:type] if args.key?(:type) + end + end + + # The Google Cloud Storage location where the output will be written to. + class GoogleCloudVisionV1p1beta1GcsDestination + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI where the results will be stored. Results will + # be in JSON format and preceded by its corresponding input URI. This field + # can either represent a single file, or a prefix for multiple outputs. + # Prefixes must end in a `/`. + # Examples: + # * File: gs://bucket-name/filename.json + # * Prefix: gs://bucket-name/prefix/here/ + # * File: gs://bucket-name/prefix/here + # If multiple outputs, each response is still AnnotateFileResponse, each of + # which contains some subset of the full list of AnnotateImageResponse. + # Multiple outputs can happen if, for example, the output JSON is too large + # and overflows into multiple sharded files. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The Google Cloud Storage location where the input will be read from. + class GoogleCloudVisionV1p1beta1GcsSource + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI for the input file. This must only be a + # Google Cloud Storage object. Wildcards are not currently supported. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + class GoogleCloudVisionV1p1beta1ImageAnnotationContext + include Google::Apis::Core::Hashable + + # If the file was a PDF or TIFF, this field gives the page number within + # the file used to produce the image. + # Corresponds to the JSON property `pageNumber` + # @return [Fixnum] + attr_accessor :page_number + + # The URI of the file used to produce the image. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_number = args[:page_number] if args.key?(:page_number) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Stores image properties, such as dominant colors. + class GoogleCloudVisionV1p1beta1ImageProperties + include Google::Apis::Core::Hashable + + # Set of dominant colors and their corresponding scores. + # Corresponds to the JSON property `dominantColors` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1DominantColorsAnnotation] + attr_accessor :dominant_colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors) + end + end + + # The desired input location and metadata. + class GoogleCloudVisionV1p1beta1InputConfig + include Google::Apis::Core::Hashable + + # The Google Cloud Storage location where the input will be read from. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1GcsSource] + attr_accessor :gcs_source + + # The type of the file. Currently only "application/pdf" and "image/tiff" + # are supported. Wildcards are not supported. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_source = args[:gcs_source] if args.key?(:gcs_source) + @mime_type = args[:mime_type] if args.key?(:mime_type) + end + end + + # Detected entity location information. + class GoogleCloudVisionV1p1beta1LocationInfo + include Google::Apis::Core::Hashable + + # 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 within normalized ranges. + # Corresponds to the JSON property `latLng` + # @return [Google::Apis::VisionV1p2beta1::LatLng] + attr_accessor :lat_lng + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @lat_lng = args[:lat_lng] if args.key?(:lat_lng) + end + end + + # Contains metadata for the BatchAnnotateImages operation. + class GoogleCloudVisionV1p1beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request was received. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the operation result was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The desired output location and metadata. + class GoogleCloudVisionV1p1beta1OutputConfig + include Google::Apis::Core::Hashable + + # The max number of response protos to put into each output JSON file on + # Google Cloud Storage. + # The valid range is [1, 100]. If not specified, the default value is 20. + # For example, for one pdf file with 100 pages, 100 response protos will + # be generated. If `batch_size` = 20, then 5 json files each + # containing 20 response protos will be written under the prefix + # `gcs_destination`.`uri`. + # Currently, batch_size only applies to GcsDestination, with potential future + # support for other output configurations. + # Corresponds to the JSON property `batchSize` + # @return [Fixnum] + attr_accessor :batch_size + + # The Google Cloud Storage location where the output will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_size = args[:batch_size] if args.key?(:batch_size) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # Detected page from OCR. + class GoogleCloudVisionV1p1beta1Page + include Google::Apis::Core::Hashable + + # List of blocks of text, images etc on this page. + # Corresponds to the JSON property `blocks` + # @return [Array] + attr_accessor :blocks + + # Confidence of the OCR results on the page. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Page height. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] + attr_accessor :property + + # Page width. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @blocks = args[:blocks] if args.key?(:blocks) + @confidence = args[:confidence] if args.key?(:confidence) + @height = args[:height] if args.key?(:height) + @property = args[:property] if args.key?(:property) + @width = args[:width] if args.key?(:width) + end + end + + # Structural unit of text representing a number of words in certain order. + class GoogleCloudVisionV1p1beta1Paragraph + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the paragraph. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] + attr_accessor :property + + # List of words in this paragraph. + # Corresponds to the JSON property `words` + # @return [Array] + attr_accessor :words + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @words = args[:words] if args.key?(:words) + end + end + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + class GoogleCloudVisionV1p1beta1Position + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + # Z coordinate (or depth). + # Corresponds to the JSON property `z` + # @return [Float] + attr_accessor :z + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + @z = args[:z] if args.key?(:z) + end + end + + # A `Property` consists of a user-supplied name/value pair. + class GoogleCloudVisionV1p1beta1Property + include Google::Apis::Core::Hashable + + # Name of the property. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Value of numeric properties. + # Corresponds to the JSON property `uint64Value` + # @return [Fixnum] + attr_accessor :uint64_value + + # Value of the property. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @uint64_value = args[:uint64_value] if args.key?(:uint64_value) + @value = args[:value] if args.key?(:value) + end + end + + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + class GoogleCloudVisionV1p1beta1SafeSearchAnnotation + include Google::Apis::Core::Hashable + + # Represents the adult content likelihood for the image. Adult content may + # contain elements such as nudity, pornographic images or cartoons, or + # sexual activities. + # Corresponds to the JSON property `adult` + # @return [String] + attr_accessor :adult + + # Likelihood that this is a medical image. + # Corresponds to the JSON property `medical` + # @return [String] + attr_accessor :medical + + # Likelihood that the request image contains racy content. Racy content may + # include (but is not limited to) skimpy or sheer clothing, strategically + # covered nudity, lewd or provocative poses, or close-ups of sensitive + # body areas. + # Corresponds to the JSON property `racy` + # @return [String] + attr_accessor :racy + + # Spoof likelihood. The likelihood that an modification + # was made to the image's canonical version to make it appear + # funny or offensive. + # Corresponds to the JSON property `spoof` + # @return [String] + attr_accessor :spoof + + # Likelihood that this image contains violent content. + # Corresponds to the JSON property `violence` + # @return [String] + attr_accessor :violence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @adult = args[:adult] if args.key?(:adult) + @medical = args[:medical] if args.key?(:medical) + @racy = args[:racy] if args.key?(:racy) + @spoof = args[:spoof] if args.key?(:spoof) + @violence = args[:violence] if args.key?(:violence) + end + end + + # A single symbol representation. + class GoogleCloudVisionV1p1beta1Symbol + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the symbol. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] + attr_accessor :property + + # The actual UTF-8 representation of the symbol. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @text = args[:text] if args.key?(:text) + end + end + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + class GoogleCloudVisionV1p1beta1TextAnnotation + include Google::Apis::Core::Hashable + + # List of pages detected by OCR. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + # UTF-8 text detected on the pages. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pages = args[:pages] if args.key?(:pages) + @text = args[:text] if args.key?(:text) + end + end + + # Detected start or end of a structural component. + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak + include Google::Apis::Core::Hashable + + # True if break prepends the element. + # Corresponds to the JSON property `isPrefix` + # @return [Boolean] + attr_accessor :is_prefix + alias_method :is_prefix?, :is_prefix + + # Detected break type. + # 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) + @is_prefix = args[:is_prefix] if args.key?(:is_prefix) + @type = args[:type] if args.key?(:type) + end + end + + # Detected language for a structural component. + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage + include Google::Apis::Core::Hashable + + # Confidence of detected language. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Additional information detected on the structural component. + class GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + include Google::Apis::Core::Hashable + + # Detected start or end of a structural component. + # Corresponds to the JSON property `detectedBreak` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak] + attr_accessor :detected_break + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_break = args[:detected_break] if args.key?(:detected_break) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + end + end + + # A vertex represents a 2D point in the image. + # NOTE: the vertex coordinates are in the same scale as the original image. + class GoogleCloudVisionV1p1beta1Vertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Fixnum] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Fixnum] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + + # Relevant information for the image from the Internet. + class GoogleCloudVisionV1p1beta1WebDetection + include Google::Apis::Core::Hashable + + # The service's best guess as to the topic of the request image. + # Inferred from similar images on the open web. + # Corresponds to the JSON property `bestGuessLabels` + # @return [Array] + attr_accessor :best_guess_labels + + # Fully matching images from the Internet. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Web pages containing the matching images from the Internet. + # Corresponds to the JSON property `pagesWithMatchingImages` + # @return [Array] + attr_accessor :pages_with_matching_images + + # Partial matching images from the Internet. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # The visually similar image results. + # Corresponds to the JSON property `visuallySimilarImages` + # @return [Array] + attr_accessor :visually_similar_images + + # Deduced entities from similar images on the Internet. + # Corresponds to the JSON property `webEntities` + # @return [Array] + attr_accessor :web_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images) + @web_entities = args[:web_entities] if args.key?(:web_entities) + end + end + + # Entity deduced from similar images on the Internet. + class GoogleCloudVisionV1p1beta1WebDetectionWebEntity + include Google::Apis::Core::Hashable + + # Canonical description of the entity, in English. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Opaque entity ID. + # Corresponds to the JSON property `entityId` + # @return [String] + attr_accessor :entity_id + + # Overall relevancy score for the entity. + # Not normalized and not comparable across different image queries. + # 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) + @description = args[:description] if args.key?(:description) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @score = args[:score] if args.key?(:score) + end + end + + # Metadata for online images. + class GoogleCloudVisionV1p1beta1WebDetectionWebImage + include Google::Apis::Core::Hashable + + # (Deprecated) Overall relevancy score for the image. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result image URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # Label to provide extra metadata for the web detection. + class GoogleCloudVisionV1p1beta1WebDetectionWebLabel + include Google::Apis::Core::Hashable + + # Label for extra metadata. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". + # For more information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label = args[:label] if args.key?(:label) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Metadata for web pages. + class GoogleCloudVisionV1p1beta1WebDetectionWebPage + include Google::Apis::Core::Hashable + + # Fully matching images on the page. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Title for the web page, may contain HTML markups. + # Corresponds to the JSON property `pageTitle` + # @return [String] + attr_accessor :page_title + + # Partial matching images on the page. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its + # crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # (Deprecated) Overall relevancy score for the web page. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result web page URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @page_title = args[:page_title] if args.key?(:page_title) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # A word representation. + class GoogleCloudVisionV1p1beta1Word + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the word. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] + attr_accessor :property + + # List of symbols in the word. + # The order of the symbols follows the natural reading order. + # Corresponds to the JSON property `symbols` + # @return [Array] + attr_accessor :symbols + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @symbols = args[:symbols] if args.key?(:symbols) + end + end + # Response to a single file annotation request. A file may contain one or more # images, which individually have their own responses. class GoogleCloudVisionV1p2beta1AnnotateFileResponse @@ -1382,7 +2861,7 @@ module Google # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` # return nil; # ` - # Color* result = [Color alloc] init]; + # Color* result = [[Color alloc] init]; # [result setRed:red]; # [result setGreen:green]; # [result setBlue:blue]; @@ -2791,6 +4270,216 @@ module Google end end + # Response to a single file annotation request. A file may contain one or more + # images, which individually have their own responses. + class GoogleCloudVisionV1p3beta1AnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1InputConfig] + attr_accessor :input_config + + # Individual responses to images found within the file. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_config = args[:input_config] if args.key?(:input_config) + @responses = args[:responses] if args.key?(:responses) + end + end + + # Response to an image annotation request. + class GoogleCloudVisionV1p3beta1AnnotateImageResponse + include Google::Apis::Core::Hashable + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + # Corresponds to the JSON property `context` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ImageAnnotationContext] + attr_accessor :context + + # Set of crop hints that are used to generate new crops when serving images. + # Corresponds to the JSON property `cropHintsAnnotation` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1CropHintsAnnotation] + attr_accessor :crop_hints_annotation + + # 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p2beta1::Status] + attr_accessor :error + + # If present, face detection has completed successfully. + # Corresponds to the JSON property `faceAnnotations` + # @return [Array] + attr_accessor :face_annotations + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + # Corresponds to the JSON property `fullTextAnnotation` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotation] + attr_accessor :full_text_annotation + + # Stores image properties, such as dominant colors. + # Corresponds to the JSON property `imagePropertiesAnnotation` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ImageProperties] + attr_accessor :image_properties_annotation + + # If present, label detection has completed successfully. + # Corresponds to the JSON property `labelAnnotations` + # @return [Array] + attr_accessor :label_annotations + + # If present, landmark detection has completed successfully. + # Corresponds to the JSON property `landmarkAnnotations` + # @return [Array] + attr_accessor :landmark_annotations + + # If present, localized object detection has completed successfully. + # This will be sorted descending by confidence score. + # Corresponds to the JSON property `localizedObjectAnnotations` + # @return [Array] + attr_accessor :localized_object_annotations + + # If present, logo detection has completed successfully. + # Corresponds to the JSON property `logoAnnotations` + # @return [Array] + attr_accessor :logo_annotations + + # Results for a product search request. + # Corresponds to the JSON property `productSearchResults` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductSearchResults] + attr_accessor :product_search_results + + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + # Corresponds to the JSON property `safeSearchAnnotation` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation] + attr_accessor :safe_search_annotation + + # If present, text (OCR) detection has completed successfully. + # Corresponds to the JSON property `textAnnotations` + # @return [Array] + attr_accessor :text_annotations + + # Relevant information for the image from the Internet. + # Corresponds to the JSON property `webDetection` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetection] + attr_accessor :web_detection + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @context = args[:context] if args.key?(:context) + @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) + @error = args[:error] if args.key?(:error) + @face_annotations = args[:face_annotations] if args.key?(:face_annotations) + @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation) + @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation) + @label_annotations = args[:label_annotations] if args.key?(:label_annotations) + @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) + @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations) + @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) + @product_search_results = args[:product_search_results] if args.key?(:product_search_results) + @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) + @text_annotations = args[:text_annotations] if args.key?(:text_annotations) + @web_detection = args[:web_detection] if args.key?(:web_detection) + end + end + + # The response for a single offline file annotation request. + class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # Response to an async batch file annotation request. + class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse + include Google::Apis::Core::Hashable + + # The list of file annotation responses, one for each request in + # AsyncBatchAnnotateFilesRequest. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + # Metadata for the batch operations such as the current state. # This is included in the `metadata` field of the `Operation` returned by the # `GetOperation` call of the `google::longrunning::Operations` service. @@ -2825,6 +4514,49 @@ module Google end end + # Logical element on the page. + class GoogleCloudVisionV1p3beta1Block + include Google::Apis::Core::Hashable + + # Detected block type (text, image etc) for this block. + # Corresponds to the JSON property `blockType` + # @return [String] + attr_accessor :block_type + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results on the block. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # List of paragraphs in this block (if this blocks is of type text). + # Corresponds to the JSON property `paragraphs` + # @return [Array] + attr_accessor :paragraphs + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @block_type = args[:block_type] if args.key?(:block_type) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @paragraphs = args[:paragraphs] if args.key?(:paragraphs) + @property = args[:property] if args.key?(:property) + end + end + # A bounding polygon for the detected image annotation. class GoogleCloudVisionV1p3beta1BoundingPoly include Google::Apis::Core::Hashable @@ -2850,6 +4582,521 @@ module Google end end + # Color information consists of RGB channels, score, and the fraction of + # the image that the color occupies in the image. + class GoogleCloudVisionV1p3beta1ColorInfo + include Google::Apis::Core::Hashable + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `color` + # @return [Google::Apis::VisionV1p2beta1::Color] + attr_accessor :color + + # The fraction of pixels the color occupies in the image. + # Value in range [0, 1]. + # Corresponds to the JSON property `pixelFraction` + # @return [Float] + attr_accessor :pixel_fraction + + # Image-specific score for this color. Value in range [0, 1]. + # 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) + @color = args[:color] if args.key?(:color) + @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction) + @score = args[:score] if args.key?(:score) + end + end + + # Single crop hint that is used to generate a new crop when serving an image. + class GoogleCloudVisionV1p3beta1CropHint + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # Confidence of this being a salient region. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Fraction of importance of this salient region with respect to the original + # image. + # Corresponds to the JSON property `importanceFraction` + # @return [Float] + attr_accessor :importance_fraction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction) + end + end + + # Set of crop hints that are used to generate new crops when serving images. + class GoogleCloudVisionV1p3beta1CropHintsAnnotation + include Google::Apis::Core::Hashable + + # Crop hint results. + # Corresponds to the JSON property `cropHints` + # @return [Array] + attr_accessor :crop_hints + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @crop_hints = args[:crop_hints] if args.key?(:crop_hints) + end + end + + # Set of dominant colors and their corresponding scores. + class GoogleCloudVisionV1p3beta1DominantColorsAnnotation + include Google::Apis::Core::Hashable + + # RGB color values with their score and pixel fraction. + # Corresponds to the JSON property `colors` + # @return [Array] + attr_accessor :colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @colors = args[:colors] if args.key?(:colors) + end + end + + # Set of detected entity features. + class GoogleCloudVisionV1p3beta1EntityAnnotation + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # **Deprecated. Use `score` instead.** + # The accuracy of the entity detection in an image. + # For example, for an image in which the "Eiffel Tower" entity is detected, + # this field represents the confidence that there is a tower in the query + # image. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Entity textual description, expressed in its `locale` language. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The language code for the locale in which the entity textual + # `description` is expressed. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # The location information for the detected entity. Multiple + # `LocationInfo` elements can be present because one location may + # indicate the location of the scene in the image, and another location + # may indicate the location of the place where the image was taken. + # Location information is usually present for landmarks. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # Opaque entity ID. Some IDs may be available in + # [Google Knowledge Graph Search + # API](https://developers.google.com/knowledge-graph/). + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Some entities may have optional user-supplied `Property` (name/value) + # fields, such a score or string that qualifies the entity. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + # Overall score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The relevancy of the ICA (Image Content Annotation) label to the + # image. For example, the relevancy of "tower" is likely higher to an image + # containing the detected "Eiffel Tower" than to an image containing a + # detected distant towering building, even though the confidence that + # there is a tower in each image may be the same. Range [0, 1]. + # Corresponds to the JSON property `topicality` + # @return [Float] + attr_accessor :topicality + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @description = args[:description] if args.key?(:description) + @locale = args[:locale] if args.key?(:locale) + @locations = args[:locations] if args.key?(:locations) + @mid = args[:mid] if args.key?(:mid) + @properties = args[:properties] if args.key?(:properties) + @score = args[:score] if args.key?(:score) + @topicality = args[:topicality] if args.key?(:topicality) + end + end + + # A face annotation object contains the results of face detection. + class GoogleCloudVisionV1p3beta1FaceAnnotation + include Google::Apis::Core::Hashable + + # Anger likelihood. + # Corresponds to the JSON property `angerLikelihood` + # @return [String] + attr_accessor :anger_likelihood + + # Blurred likelihood. + # Corresponds to the JSON property `blurredLikelihood` + # @return [String] + attr_accessor :blurred_likelihood + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # Detection confidence. Range [0, 1]. + # Corresponds to the JSON property `detectionConfidence` + # @return [Float] + attr_accessor :detection_confidence + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `fdBoundingPoly` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :fd_bounding_poly + + # Headwear likelihood. + # Corresponds to the JSON property `headwearLikelihood` + # @return [String] + attr_accessor :headwear_likelihood + + # Joy likelihood. + # Corresponds to the JSON property `joyLikelihood` + # @return [String] + attr_accessor :joy_likelihood + + # Face landmarking confidence. Range [0, 1]. + # Corresponds to the JSON property `landmarkingConfidence` + # @return [Float] + attr_accessor :landmarking_confidence + + # Detected face landmarks. + # Corresponds to the JSON property `landmarks` + # @return [Array] + attr_accessor :landmarks + + # Yaw angle, which indicates the leftward/rightward angle that the face is + # pointing relative to the vertical plane perpendicular to the image. Range + # [-180,180]. + # Corresponds to the JSON property `panAngle` + # @return [Float] + attr_accessor :pan_angle + + # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation + # of the face relative to the image vertical about the axis perpendicular to + # the face. Range [-180,180]. + # Corresponds to the JSON property `rollAngle` + # @return [Float] + attr_accessor :roll_angle + + # Sorrow likelihood. + # Corresponds to the JSON property `sorrowLikelihood` + # @return [String] + attr_accessor :sorrow_likelihood + + # Surprise likelihood. + # Corresponds to the JSON property `surpriseLikelihood` + # @return [String] + attr_accessor :surprise_likelihood + + # Pitch angle, which indicates the upwards/downwards angle that the face is + # pointing relative to the image's horizontal plane. Range [-180,180]. + # Corresponds to the JSON property `tiltAngle` + # @return [Float] + attr_accessor :tilt_angle + + # Under-exposed likelihood. + # Corresponds to the JSON property `underExposedLikelihood` + # @return [String] + attr_accessor :under_exposed_likelihood + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) + @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence) + @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) + @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood) + @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) + @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) + @landmarks = args[:landmarks] if args.key?(:landmarks) + @pan_angle = args[:pan_angle] if args.key?(:pan_angle) + @roll_angle = args[:roll_angle] if args.key?(:roll_angle) + @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) + @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) + @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) + @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood) + end + end + + # A face-specific landmark (for example, a face feature). + class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + include Google::Apis::Core::Hashable + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + # Corresponds to the JSON property `position` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Position] + attr_accessor :position + + # Face landmark type. + # 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) + @position = args[:position] if args.key?(:position) + @type = args[:type] if args.key?(:type) + end + end + + # The Google Cloud Storage location where the output will be written to. + class GoogleCloudVisionV1p3beta1GcsDestination + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI where the results will be stored. Results will + # be in JSON format and preceded by its corresponding input URI. This field + # can either represent a single file, or a prefix for multiple outputs. + # Prefixes must end in a `/`. + # Examples: + # * File: gs://bucket-name/filename.json + # * Prefix: gs://bucket-name/prefix/here/ + # * File: gs://bucket-name/prefix/here + # If multiple outputs, each response is still AnnotateFileResponse, each of + # which contains some subset of the full list of AnnotateImageResponse. + # Multiple outputs can happen if, for example, the output JSON is too large + # and overflows into multiple sharded files. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The Google Cloud Storage location where the input will be read from. + class GoogleCloudVisionV1p3beta1GcsSource + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI for the input file. This must only be a + # Google Cloud Storage object. Wildcards are not currently supported. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + class GoogleCloudVisionV1p3beta1ImageAnnotationContext + include Google::Apis::Core::Hashable + + # If the file was a PDF or TIFF, this field gives the page number within + # the file used to produce the image. + # Corresponds to the JSON property `pageNumber` + # @return [Fixnum] + attr_accessor :page_number + + # The URI of the file used to produce the image. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_number = args[:page_number] if args.key?(:page_number) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Stores image properties, such as dominant colors. + class GoogleCloudVisionV1p3beta1ImageProperties + include Google::Apis::Core::Hashable + + # Set of dominant colors and their corresponding scores. + # Corresponds to the JSON property `dominantColors` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation] + attr_accessor :dominant_colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors) + end + end + # Response message for the `ImportProductSets` method. # This message is returned by the # google.longrunning.Operations.GetOperation method in the returned @@ -2882,6 +5129,100 @@ module Google end end + # The desired input location and metadata. + class GoogleCloudVisionV1p3beta1InputConfig + include Google::Apis::Core::Hashable + + # The Google Cloud Storage location where the input will be read from. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1GcsSource] + attr_accessor :gcs_source + + # The type of the file. Currently only "application/pdf" and "image/tiff" + # are supported. Wildcards are not supported. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_source = args[:gcs_source] if args.key?(:gcs_source) + @mime_type = args[:mime_type] if args.key?(:mime_type) + end + end + + # Set of detected objects with bounding boxes. + class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_poly + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Object ID that should align with EntityAnnotation mid. + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Object name, expressed in its `language_code` language. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Score of the result. Range [0, 1]. + # 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) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @language_code = args[:language_code] if args.key?(:language_code) + @mid = args[:mid] if args.key?(:mid) + @name = args[:name] if args.key?(:name) + @score = args[:score] if args.key?(:score) + end + end + + # Detected entity location information. + class GoogleCloudVisionV1p3beta1LocationInfo + include Google::Apis::Core::Hashable + + # 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 within normalized ranges. + # Corresponds to the JSON property `latLng` + # @return [Google::Apis::VisionV1p2beta1::LatLng] + attr_accessor :lat_lng + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @lat_lng = args[:lat_lng] if args.key?(:lat_lng) + end + end + # A vertex represents a 2D point in the image. # NOTE: the normalized vertex coordinates are relative to the original image # and range from 0 to 1. @@ -2909,6 +5250,360 @@ module Google end end + # Contains metadata for the BatchAnnotateImages operation. + class GoogleCloudVisionV1p3beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request was received. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the operation result was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The desired output location and metadata. + class GoogleCloudVisionV1p3beta1OutputConfig + include Google::Apis::Core::Hashable + + # The max number of response protos to put into each output JSON file on + # Google Cloud Storage. + # The valid range is [1, 100]. If not specified, the default value is 20. + # For example, for one pdf file with 100 pages, 100 response protos will + # be generated. If `batch_size` = 20, then 5 json files each + # containing 20 response protos will be written under the prefix + # `gcs_destination`.`uri`. + # Currently, batch_size only applies to GcsDestination, with potential future + # support for other output configurations. + # Corresponds to the JSON property `batchSize` + # @return [Fixnum] + attr_accessor :batch_size + + # The Google Cloud Storage location where the output will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_size = args[:batch_size] if args.key?(:batch_size) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # Detected page from OCR. + class GoogleCloudVisionV1p3beta1Page + include Google::Apis::Core::Hashable + + # List of blocks of text, images etc on this page. + # Corresponds to the JSON property `blocks` + # @return [Array] + attr_accessor :blocks + + # Confidence of the OCR results on the page. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Page height. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # Page width. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @blocks = args[:blocks] if args.key?(:blocks) + @confidence = args[:confidence] if args.key?(:confidence) + @height = args[:height] if args.key?(:height) + @property = args[:property] if args.key?(:property) + @width = args[:width] if args.key?(:width) + end + end + + # Structural unit of text representing a number of words in certain order. + class GoogleCloudVisionV1p3beta1Paragraph + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the paragraph. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # List of words in this paragraph. + # Corresponds to the JSON property `words` + # @return [Array] + attr_accessor :words + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @words = args[:words] if args.key?(:words) + end + end + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + class GoogleCloudVisionV1p3beta1Position + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + # Z coordinate (or depth). + # Corresponds to the JSON property `z` + # @return [Float] + attr_accessor :z + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + @z = args[:z] if args.key?(:z) + end + end + + # A Product contains ReferenceImages. + class GoogleCloudVisionV1p3beta1Product + include Google::Apis::Core::Hashable + + # User-provided metadata to be stored with this product. Must be at most 4096 + # characters long. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The user-provided name for this Product. Must not be empty. Must be at most + # 4096 characters long. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the product. + # Format is: + # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. + # This field is ignored when creating a product. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The category for the product identified by the reference image. This should + # be either "homegoods" or "apparel". + # This field is immutable. + # Corresponds to the JSON property `productCategory` + # @return [String] + attr_accessor :product_category + + # Key-value pairs that can be attached to a product. At query time, + # constraints can be specified based on the product_labels. + # Note that integer values can be provided as strings, e.g. "1199". Only + # strings with integer values can match a range-based restriction which is + # to be supported soon. + # Multiple values can be assigned to the same key. One product may have up to + # 100 product_labels. + # Corresponds to the JSON property `productLabels` + # @return [Array] + attr_accessor :product_labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @product_category = args[:product_category] if args.key?(:product_category) + @product_labels = args[:product_labels] if args.key?(:product_labels) + end + end + + # A product label represented as a key-value pair. + class GoogleCloudVisionV1p3beta1ProductKeyValue + include Google::Apis::Core::Hashable + + # The key of the label attached to the product. Cannot be empty and cannot + # exceed 128 bytes. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The value of the label attached to the product. Cannot be empty and + # cannot exceed 128 bytes. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + + # Results for a product search request. + class GoogleCloudVisionV1p3beta1ProductSearchResults + include Google::Apis::Core::Hashable + + # Timestamp of the index which provided these results. Changes made after + # this time are not reflected in the current results. + # Corresponds to the JSON property `indexTime` + # @return [String] + attr_accessor :index_time + + # List of results, one for each product match. + # 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) + @index_time = args[:index_time] if args.key?(:index_time) + @results = args[:results] if args.key?(:results) + end + end + + # Information about a product. + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult + include Google::Apis::Core::Hashable + + # The resource name of the image from the product that is the closest match + # to the query. + # Corresponds to the JSON property `image` + # @return [String] + attr_accessor :image + + # A Product contains ReferenceImages. + # Corresponds to the JSON property `product` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Product] + attr_accessor :product + + # A confidence level on the match, ranging from 0 (no confidence) to + # 1 (full confidence). + # This field is returned only if `view` is set to `FULL` in + # the request. + # 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) + @image = args[:image] if args.key?(:image) + @product = args[:product] if args.key?(:product) + @score = args[:score] if args.key?(:score) + end + end + + # A `Property` consists of a user-supplied name/value pair. + class GoogleCloudVisionV1p3beta1Property + include Google::Apis::Core::Hashable + + # Name of the property. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Value of numeric properties. + # Corresponds to the JSON property `uint64Value` + # @return [Fixnum] + attr_accessor :uint64_value + + # Value of the property. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @uint64_value = args[:uint64_value] if args.key?(:uint64_value) + @value = args[:value] if args.key?(:value) + end + end + # A `ReferenceImage` represents a product image and its associated metadata, # such as bounding boxes. class GoogleCloudVisionV1p3beta1ReferenceImage @@ -2953,6 +5648,204 @@ module Google end end + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + class GoogleCloudVisionV1p3beta1SafeSearchAnnotation + include Google::Apis::Core::Hashable + + # Represents the adult content likelihood for the image. Adult content may + # contain elements such as nudity, pornographic images or cartoons, or + # sexual activities. + # Corresponds to the JSON property `adult` + # @return [String] + attr_accessor :adult + + # Likelihood that this is a medical image. + # Corresponds to the JSON property `medical` + # @return [String] + attr_accessor :medical + + # Likelihood that the request image contains racy content. Racy content may + # include (but is not limited to) skimpy or sheer clothing, strategically + # covered nudity, lewd or provocative poses, or close-ups of sensitive + # body areas. + # Corresponds to the JSON property `racy` + # @return [String] + attr_accessor :racy + + # Spoof likelihood. The likelihood that an modification + # was made to the image's canonical version to make it appear + # funny or offensive. + # Corresponds to the JSON property `spoof` + # @return [String] + attr_accessor :spoof + + # Likelihood that this image contains violent content. + # Corresponds to the JSON property `violence` + # @return [String] + attr_accessor :violence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @adult = args[:adult] if args.key?(:adult) + @medical = args[:medical] if args.key?(:medical) + @racy = args[:racy] if args.key?(:racy) + @spoof = args[:spoof] if args.key?(:spoof) + @violence = args[:violence] if args.key?(:violence) + end + end + + # A single symbol representation. + class GoogleCloudVisionV1p3beta1Symbol + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the symbol. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # The actual UTF-8 representation of the symbol. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @text = args[:text] if args.key?(:text) + end + end + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + class GoogleCloudVisionV1p3beta1TextAnnotation + include Google::Apis::Core::Hashable + + # List of pages detected by OCR. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + # UTF-8 text detected on the pages. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pages = args[:pages] if args.key?(:pages) + @text = args[:text] if args.key?(:text) + end + end + + # Detected start or end of a structural component. + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak + include Google::Apis::Core::Hashable + + # True if break prepends the element. + # Corresponds to the JSON property `isPrefix` + # @return [Boolean] + attr_accessor :is_prefix + alias_method :is_prefix?, :is_prefix + + # Detected break type. + # 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) + @is_prefix = args[:is_prefix] if args.key?(:is_prefix) + @type = args[:type] if args.key?(:type) + end + end + + # Detected language for a structural component. + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + include Google::Apis::Core::Hashable + + # Confidence of detected language. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Additional information detected on the structural component. + class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + include Google::Apis::Core::Hashable + + # Detected start or end of a structural component. + # Corresponds to the JSON property `detectedBreak` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak] + attr_accessor :detected_break + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_break = args[:detected_break] if args.key?(:detected_break) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + end + end + # A vertex represents a 2D point in the image. # NOTE: the vertex coordinates are in the same scale as the original image. class GoogleCloudVisionV1p3beta1Vertex @@ -2979,6 +5872,228 @@ module Google end end + # Relevant information for the image from the Internet. + class GoogleCloudVisionV1p3beta1WebDetection + include Google::Apis::Core::Hashable + + # The service's best guess as to the topic of the request image. + # Inferred from similar images on the open web. + # Corresponds to the JSON property `bestGuessLabels` + # @return [Array] + attr_accessor :best_guess_labels + + # Fully matching images from the Internet. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Web pages containing the matching images from the Internet. + # Corresponds to the JSON property `pagesWithMatchingImages` + # @return [Array] + attr_accessor :pages_with_matching_images + + # Partial matching images from the Internet. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # The visually similar image results. + # Corresponds to the JSON property `visuallySimilarImages` + # @return [Array] + attr_accessor :visually_similar_images + + # Deduced entities from similar images on the Internet. + # Corresponds to the JSON property `webEntities` + # @return [Array] + attr_accessor :web_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images) + @web_entities = args[:web_entities] if args.key?(:web_entities) + end + end + + # Entity deduced from similar images on the Internet. + class GoogleCloudVisionV1p3beta1WebDetectionWebEntity + include Google::Apis::Core::Hashable + + # Canonical description of the entity, in English. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Opaque entity ID. + # Corresponds to the JSON property `entityId` + # @return [String] + attr_accessor :entity_id + + # Overall relevancy score for the entity. + # Not normalized and not comparable across different image queries. + # 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) + @description = args[:description] if args.key?(:description) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @score = args[:score] if args.key?(:score) + end + end + + # Metadata for online images. + class GoogleCloudVisionV1p3beta1WebDetectionWebImage + include Google::Apis::Core::Hashable + + # (Deprecated) Overall relevancy score for the image. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result image URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # Label to provide extra metadata for the web detection. + class GoogleCloudVisionV1p3beta1WebDetectionWebLabel + include Google::Apis::Core::Hashable + + # Label for extra metadata. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". + # For more information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label = args[:label] if args.key?(:label) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Metadata for web pages. + class GoogleCloudVisionV1p3beta1WebDetectionWebPage + include Google::Apis::Core::Hashable + + # Fully matching images on the page. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Title for the web page, may contain HTML markups. + # Corresponds to the JSON property `pageTitle` + # @return [String] + attr_accessor :page_title + + # Partial matching images on the page. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its + # crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # (Deprecated) Overall relevancy score for the web page. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result web page URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @page_title = args[:page_title] if args.key?(:page_title) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # A word representation. + class GoogleCloudVisionV1p3beta1Word + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the word. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty] + attr_accessor :property + + # List of symbols in the word. + # The order of the symbols follows the natural reading order. + # Corresponds to the JSON property `symbols` + # @return [Array] + attr_accessor :symbols + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @symbols = args[:symbols] if args.key?(:symbols) + end + end + # If an image was produced from a file (e.g. a PDF), this message gives # information about the source of that image. class ImageAnnotationContext diff --git a/generated/google/apis/vision_v1p2beta1/representations.rb b/generated/google/apis/vision_v1p2beta1/representations.rb index 53fa8e792..1a7134f18 100644 --- a/generated/google/apis/vision_v1p2beta1/representations.rb +++ b/generated/google/apis/vision_v1p2beta1/representations.rb @@ -124,6 +124,234 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1AnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1AnnotateImageResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Block + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1BoundingPoly + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1ColorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1CropHint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1CropHintsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1DominantColorsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1EntityAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1FaceAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1FaceAnnotationLandmark + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1ImageAnnotationContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1ImageProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1InputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1LocationInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Page + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Paragraph + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Position + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Property + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1SafeSearchAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Symbol + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1TextAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Vertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1WebDetection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebLabel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebPage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1Word + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p2beta1AnnotateFileResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -430,42 +658,288 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1AnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1AnnotateImageResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1BatchOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1Block + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1BoundingPoly class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1ColorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1CropHint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1CropHintsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1DominantColorsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1EntityAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1FaceAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ImageAnnotationContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ImageProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1ImportProductSetsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1InputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1LocationInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1NormalizedVertex class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Page + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Paragraph + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Position + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Product + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ProductKeyValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ProductSearchResults + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Property + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1ReferenceImage class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1SafeSearchAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Symbol + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1Vertex class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1WebDetection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebLabel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebPage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Word + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImageAnnotationContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -820,6 +1294,415 @@ module Google end end + class GoogleCloudVisionV1p1beta1AnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1InputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1InputConfig::Representation + + collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse::Representation + + end + end + + class GoogleCloudVisionV1p1beta1AnnotateImageResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :context, as: 'context', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ImageAnnotationContext::Representation + + property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1CropHintsAnnotation::Representation + + property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation + + collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1FaceAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1FaceAnnotation::Representation + + property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotation::Representation + + property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ImageProperties, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ImageProperties::Representation + + collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation + + collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation + + collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation + + property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation::Representation + + collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation + + property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetection, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetection::Representation + + end + end + + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1OutputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1OutputConfig::Representation + + end + end + + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse::Representation + + end + end + + class GoogleCloudVisionV1p1beta1Block + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :block_type, as: 'blockType' + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Paragraph, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Paragraph::Representation + + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::Representation + + end + end + + class GoogleCloudVisionV1p1beta1BoundingPoly + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Vertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Vertex::Representation + + end + end + + class GoogleCloudVisionV1p1beta1ColorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :color, as: 'color', class: Google::Apis::VisionV1p2beta1::Color, decorator: Google::Apis::VisionV1p2beta1::Color::Representation + + property :pixel_fraction, as: 'pixelFraction' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p1beta1CropHint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :importance_fraction, as: 'importanceFraction' + end + end + + class GoogleCloudVisionV1p1beta1CropHintsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1CropHint, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1CropHint::Representation + + end + end + + class GoogleCloudVisionV1p1beta1DominantColorsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :colors, as: 'colors', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ColorInfo, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ColorInfo::Representation + + end + end + + class GoogleCloudVisionV1p1beta1EntityAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :description, as: 'description' + property :locale, as: 'locale' + collection :locations, as: 'locations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1LocationInfo, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1LocationInfo::Representation + + property :mid, as: 'mid' + collection :properties, as: 'properties', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Property, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Property::Representation + + property :score, as: 'score' + property :topicality, as: 'topicality' + end + end + + class GoogleCloudVisionV1p1beta1FaceAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :anger_likelihood, as: 'angerLikelihood' + property :blurred_likelihood, as: 'blurredLikelihood' + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :detection_confidence, as: 'detectionConfidence' + property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :headwear_likelihood, as: 'headwearLikelihood' + property :joy_likelihood, as: 'joyLikelihood' + property :landmarking_confidence, as: 'landmarkingConfidence' + collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1FaceAnnotationLandmark::Representation + + property :pan_angle, as: 'panAngle' + property :roll_angle, as: 'rollAngle' + property :sorrow_likelihood, as: 'sorrowLikelihood' + property :surprise_likelihood, as: 'surpriseLikelihood' + property :tilt_angle, as: 'tiltAngle' + property :under_exposed_likelihood, as: 'underExposedLikelihood' + end + end + + class GoogleCloudVisionV1p1beta1FaceAnnotationLandmark + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Position, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Position::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p1beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p1beta1GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p1beta1ImageAnnotationContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_number, as: 'pageNumber' + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p1beta1ImageProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1DominantColorsAnnotation::Representation + + end + end + + class GoogleCloudVisionV1p1beta1InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1GcsSource, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1GcsSource::Representation + + property :mime_type, as: 'mimeType' + end + end + + class GoogleCloudVisionV1p1beta1LocationInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1p2beta1::LatLng, decorator: Google::Apis::VisionV1p2beta1::LatLng::Representation + + end + end + + class GoogleCloudVisionV1p1beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudVisionV1p1beta1OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_size, as: 'batchSize' + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1GcsDestination, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1GcsDestination::Representation + + end + end + + class GoogleCloudVisionV1p1beta1Page + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blocks, as: 'blocks', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Block, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Block::Representation + + property :confidence, as: 'confidence' + property :height, as: 'height' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::Representation + + property :width, as: 'width' + end + end + + class GoogleCloudVisionV1p1beta1Paragraph + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::Representation + + collection :words, as: 'words', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Word, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Word::Representation + + end + end + + class GoogleCloudVisionV1p1beta1Position + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + property :z, as: 'z' + end + end + + class GoogleCloudVisionV1p1beta1Property + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :uint64_value, :numeric_string => true, as: 'uint64Value' + property :value, as: 'value' + end + end + + class GoogleCloudVisionV1p1beta1SafeSearchAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :adult, as: 'adult' + property :medical, as: 'medical' + property :racy, as: 'racy' + property :spoof, as: 'spoof' + property :violence, as: 'violence' + end + end + + class GoogleCloudVisionV1p1beta1Symbol + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p1beta1TextAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :pages, as: 'pages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Page, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Page::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_prefix, as: 'isPrefix' + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage::Representation + + end + end + + class GoogleCloudVisionV1p1beta1Vertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class GoogleCloudVisionV1p1beta1WebDetection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebLabel::Representation + + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebImage::Representation + + collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebPage::Representation + + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebImage::Representation + + collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebImage::Representation + + collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebEntity::Representation + + end + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :entity_id, as: 'entityId' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :score, as: 'score' + property :url, as: 'url' + end + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebLabel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label, as: 'label' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudVisionV1p1beta1WebDetectionWebPage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebImage::Representation + + property :page_title, as: 'pageTitle' + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1WebDetectionWebImage::Representation + + property :score, as: 'score' + property :url, as: 'url' + end + end + + class GoogleCloudVisionV1p1beta1Word + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::Representation + + collection :symbols, as: 'symbols', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Symbol, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Symbol::Representation + + end + end + class GoogleCloudVisionV1p2beta1AnnotateFileResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1352,6 +2235,66 @@ module Google end end + class GoogleCloudVisionV1p3beta1AnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1InputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1InputConfig::Representation + + collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse::Representation + + end + end + + class GoogleCloudVisionV1p3beta1AnnotateImageResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :context, as: 'context', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ImageAnnotationContext::Representation + + property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1CropHintsAnnotation::Representation + + property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation + + collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1FaceAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1FaceAnnotation::Representation + + property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotation::Representation + + property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ImageProperties, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ImageProperties::Representation + + collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation::Representation + + collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + property :product_search_results, as: 'productSearchResults', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductSearchResults, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductSearchResults::Representation + + property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation::Representation + + collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1EntityAnnotation::Representation + + property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetection, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetection::Representation + + end + end + + class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1OutputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1OutputConfig::Representation + + end + end + + class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse::Representation + + end + end + class GoogleCloudVisionV1p3beta1BatchOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1361,6 +2304,20 @@ module Google end end + class GoogleCloudVisionV1p3beta1Block + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :block_type, as: 'blockType' + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Paragraph, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Paragraph::Representation + + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + end + end + class GoogleCloudVisionV1p3beta1BoundingPoly # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1371,6 +2328,123 @@ module Google end end + class GoogleCloudVisionV1p3beta1ColorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :color, as: 'color', class: Google::Apis::VisionV1p2beta1::Color, decorator: Google::Apis::VisionV1p2beta1::Color::Representation + + property :pixel_fraction, as: 'pixelFraction' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1CropHint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :importance_fraction, as: 'importanceFraction' + end + end + + class GoogleCloudVisionV1p3beta1CropHintsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1CropHint, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1CropHint::Representation + + end + end + + class GoogleCloudVisionV1p3beta1DominantColorsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :colors, as: 'colors', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ColorInfo, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ColorInfo::Representation + + end + end + + class GoogleCloudVisionV1p3beta1EntityAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :description, as: 'description' + property :locale, as: 'locale' + collection :locations, as: 'locations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1LocationInfo, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1LocationInfo::Representation + + property :mid, as: 'mid' + collection :properties, as: 'properties', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Property, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Property::Representation + + property :score, as: 'score' + property :topicality, as: 'topicality' + end + end + + class GoogleCloudVisionV1p3beta1FaceAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :anger_likelihood, as: 'angerLikelihood' + property :blurred_likelihood, as: 'blurredLikelihood' + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :detection_confidence, as: 'detectionConfidence' + property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :headwear_likelihood, as: 'headwearLikelihood' + property :joy_likelihood, as: 'joyLikelihood' + property :landmarking_confidence, as: 'landmarkingConfidence' + collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1FaceAnnotationLandmark::Representation + + property :pan_angle, as: 'panAngle' + property :roll_angle, as: 'rollAngle' + property :sorrow_likelihood, as: 'sorrowLikelihood' + property :surprise_likelihood, as: 'surpriseLikelihood' + property :tilt_angle, as: 'tiltAngle' + property :under_exposed_likelihood, as: 'underExposedLikelihood' + end + end + + class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Position, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Position::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p3beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p3beta1GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p3beta1ImageAnnotationContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_number, as: 'pageNumber' + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p3beta1ImageProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation::Representation + + end + end + class GoogleCloudVisionV1p3beta1ImportProductSetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1381,6 +2455,35 @@ module Google end end + class GoogleCloudVisionV1p3beta1InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1GcsSource, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1GcsSource::Representation + + property :mime_type, as: 'mimeType' + end + end + + class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :language_code, as: 'languageCode' + property :mid, as: 'mid' + property :name, as: 'name' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1LocationInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1p2beta1::LatLng, decorator: Google::Apis::VisionV1p2beta1::LatLng::Representation + + end + end + class GoogleCloudVisionV1p3beta1NormalizedVertex # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1389,6 +2492,107 @@ module Google end end + class GoogleCloudVisionV1p3beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudVisionV1p3beta1OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_size, as: 'batchSize' + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1GcsDestination, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1GcsDestination::Representation + + end + end + + class GoogleCloudVisionV1p3beta1Page + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blocks, as: 'blocks', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Block, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Block::Representation + + property :confidence, as: 'confidence' + property :height, as: 'height' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + property :width, as: 'width' + end + end + + class GoogleCloudVisionV1p3beta1Paragraph + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + collection :words, as: 'words', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Word, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Word::Representation + + end + end + + class GoogleCloudVisionV1p3beta1Position + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + property :z, as: 'z' + end + end + + class GoogleCloudVisionV1p3beta1Product + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + property :product_category, as: 'productCategory' + collection :product_labels, as: 'productLabels', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductKeyValue, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductKeyValue::Representation + + end + end + + class GoogleCloudVisionV1p3beta1ProductKeyValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + + class GoogleCloudVisionV1p3beta1ProductSearchResults + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :index_time, as: 'indexTime' + collection :results, as: 'results', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult::Representation + + end + end + + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image, as: 'image' + property :product, as: 'product', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Product, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Product::Representation + + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1Property + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :uint64_value, :numeric_string => true, as: 'uint64Value' + property :value, as: 'value' + end + end + class GoogleCloudVisionV1p3beta1ReferenceImage # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1399,6 +2603,64 @@ module Google end end + class GoogleCloudVisionV1p3beta1SafeSearchAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :adult, as: 'adult' + property :medical, as: 'medical' + property :racy, as: 'racy' + property :spoof, as: 'spoof' + property :violence, as: 'violence' + end + end + + class GoogleCloudVisionV1p3beta1Symbol + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :pages, as: 'pages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Page, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Page::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_prefix, as: 'isPrefix' + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage::Representation + + end + end + class GoogleCloudVisionV1p3beta1Vertex # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1407,6 +2669,75 @@ module Google end end + class GoogleCloudVisionV1p3beta1WebDetection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebLabel::Representation + + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebPage::Representation + + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebEntity::Representation + + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :entity_id, as: 'entityId' + property :score, as: 'score' + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :score, as: 'score' + property :url, as: 'url' + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebLabel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label, as: 'label' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudVisionV1p3beta1WebDetectionWebPage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + property :page_title, as: 'pageTitle' + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage::Representation + + property :score, as: 'score' + property :url, as: 'url' + end + end + + class GoogleCloudVisionV1p3beta1Word + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty::Representation + + collection :symbols, as: 'symbols', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Symbol, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Symbol::Representation + + end + end + class ImageAnnotationContext # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/webfonts_v1.rb b/generated/google/apis/webfonts_v1.rb index ba5975db5..4a05941bb 100644 --- a/generated/google/apis/webfonts_v1.rb +++ b/generated/google/apis/webfonts_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://developers.google.com/fonts/docs/developer_api module WebfontsV1 VERSION = 'V1' - REVISION = '' + REVISION = '20160302' end end end diff --git a/generated/google/apis/webmasters_v3.rb b/generated/google/apis/webmasters_v3.rb index b52454fcd..3bfc09a48 100644 --- a/generated/google/apis/webmasters_v3.rb +++ b/generated/google/apis/webmasters_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/webmaster-tools/ module WebmastersV3 VERSION = 'V3' - REVISION = '' + REVISION = '20180627' # View and manage Search Console data for your verified sites AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters' diff --git a/generated/google/apis/websecurityscanner_v1alpha.rb b/generated/google/apis/websecurityscanner_v1alpha.rb index bf7ebe10e..333026420 100644 --- a/generated/google/apis/websecurityscanner_v1alpha.rb +++ b/generated/google/apis/websecurityscanner_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/security-scanner/ module WebsecurityscannerV1alpha VERSION = 'V1alpha' - REVISION = '20180601' + REVISION = '20180820' # 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_v1alpha/classes.rb b/generated/google/apis/websecurityscanner_v1alpha/classes.rb index 681043f4d..786625437 100644 --- a/generated/google/apis/websecurityscanner_v1alpha/classes.rb +++ b/generated/google/apis/websecurityscanner_v1alpha/classes.rb @@ -97,7 +97,7 @@ module Google # Input only. # Required. # The password of the custom account. The credential is stored encrypted - # and not returned in any response. + # and not returned in any response nor included in audit logs. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password @@ -223,6 +223,11 @@ module Google # @return [Google::Apis::WebsecurityscannerV1alpha::ViolatingResource] attr_accessor :violating_resource + # Information about vulnerable or missing HTTP Headers. + # Corresponds to the JSON property `vulnerableHeaders` + # @return [Google::Apis::WebsecurityscannerV1alpha::VulnerableHeaders] + attr_accessor :vulnerable_headers + # Information about vulnerable request parameters. # Corresponds to the JSON property `vulnerableParameters` # @return [Google::Apis::WebsecurityscannerV1alpha::VulnerableParameters] @@ -251,6 +256,7 @@ module Google @reproduction_url = args[:reproduction_url] if args.key?(:reproduction_url) @tracking_id = args[:tracking_id] if args.key?(:tracking_id) @violating_resource = args[:violating_resource] if args.key?(:violating_resource) + @vulnerable_headers = args[:vulnerable_headers] if args.key?(:vulnerable_headers) @vulnerable_parameters = args[:vulnerable_parameters] if args.key?(:vulnerable_parameters) @xss = args[:xss] if args.key?(:xss) end @@ -291,7 +297,7 @@ module Google # Input only. # Required. # The password of the Google account. The credential is stored encrypted - # and not returned in any response. + # and not returned in any response nor included in audit logs. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password @@ -313,6 +319,31 @@ module Google end end + # Describes a HTTP Header. + class Header + include Google::Apis::Core::Hashable + + # Header name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Header value. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + # Response for the `ListCrawledUrls` method. class ListCrawledUrlsResponse include Google::Apis::Core::Hashable @@ -712,6 +743,31 @@ module Google end end + # Information about vulnerable or missing HTTP Headers. + class VulnerableHeaders + include Google::Apis::Core::Hashable + + # List of vulnerable headers. + # Corresponds to the JSON property `headers` + # @return [Array] + attr_accessor :headers + + # List of missing headers. + # Corresponds to the JSON property `missingHeaders` + # @return [Array] + attr_accessor :missing_headers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @headers = args[:headers] if args.key?(:headers) + @missing_headers = args[:missing_headers] if args.key?(:missing_headers) + end + end + # Information about vulnerable request parameters. class VulnerableParameters include Google::Apis::Core::Hashable diff --git a/generated/google/apis/websecurityscanner_v1alpha/representations.rb b/generated/google/apis/websecurityscanner_v1alpha/representations.rb index 1042817d2..1160cfeea 100644 --- a/generated/google/apis/websecurityscanner_v1alpha/representations.rb +++ b/generated/google/apis/websecurityscanner_v1alpha/representations.rb @@ -64,6 +64,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Header + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListCrawledUrlsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -136,6 +142,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class VulnerableHeaders + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VulnerableParameters class Representation < Google::Apis::Core::JsonRepresentation; end @@ -199,6 +211,8 @@ module Google property :tracking_id, as: 'trackingId' property :violating_resource, as: 'violatingResource', class: Google::Apis::WebsecurityscannerV1alpha::ViolatingResource, decorator: Google::Apis::WebsecurityscannerV1alpha::ViolatingResource::Representation + property :vulnerable_headers, as: 'vulnerableHeaders', class: Google::Apis::WebsecurityscannerV1alpha::VulnerableHeaders, decorator: Google::Apis::WebsecurityscannerV1alpha::VulnerableHeaders::Representation + property :vulnerable_parameters, as: 'vulnerableParameters', class: Google::Apis::WebsecurityscannerV1alpha::VulnerableParameters, decorator: Google::Apis::WebsecurityscannerV1alpha::VulnerableParameters::Representation property :xss, as: 'xss', class: Google::Apis::WebsecurityscannerV1alpha::Xss, decorator: Google::Apis::WebsecurityscannerV1alpha::Xss::Representation @@ -222,6 +236,14 @@ module Google end end + class Header + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :value, as: 'value' + end + end + class ListCrawledUrlsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -335,6 +357,16 @@ module Google end end + class VulnerableHeaders + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :headers, as: 'headers', class: Google::Apis::WebsecurityscannerV1alpha::Header, decorator: Google::Apis::WebsecurityscannerV1alpha::Header::Representation + + collection :missing_headers, as: 'missingHeaders', class: Google::Apis::WebsecurityscannerV1alpha::Header, decorator: Google::Apis::WebsecurityscannerV1alpha::Header::Representation + + end + end + class VulnerableParameters # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/youtube_analytics_v1.rb b/generated/google/apis/youtube_analytics_v1.rb index 3bce42978..58a9e70f6 100644 --- a/generated/google/apis/youtube_analytics_v1.rb +++ b/generated/google/apis/youtube_analytics_v1.rb @@ -25,7 +25,7 @@ module Google # @see http://developers.google.com/youtube/analytics/ module YoutubeAnalyticsV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180805' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_analytics_v1beta1.rb b/generated/google/apis/youtube_analytics_v1beta1.rb index fdd7cd545..f53f80619 100644 --- a/generated/google/apis/youtube_analytics_v1beta1.rb +++ b/generated/google/apis/youtube_analytics_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see http://developers.google.com/youtube/analytics/ module YoutubeAnalyticsV1beta1 VERSION = 'V1beta1' - REVISION = '' + REVISION = '20180805' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index ed1aa0f30..9a3080638 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '' + REVISION = '20180813' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index fbb9b357b..9552dec66 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/v3 module YoutubeV3 VERSION = 'V3' - REVISION = '' + REVISION = '20180511' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'