Autogenerated update (2018-10-09)

Update:
- androiddeviceprovisioning_v1
- calendar_v3
- cloudbuild_v1
- customsearch_v1
- proximitybeacon_v1beta1
This commit is contained in:
Google APIs 2018-10-09 00:36:14 +00:00
parent f49b0d5c81
commit 1fd5929d7c
19 changed files with 3577 additions and 36 deletions

View File

@ -4234,6 +4234,138 @@
"/adsensehost:v4.1/key": key "/adsensehost:v4.1/key": key
"/adsensehost:v4.1/quotaUser": quota_user "/adsensehost:v4.1/quotaUser": quota_user
"/adsensehost:v4.1/userIp": user_ip "/adsensehost:v4.1/userIp": user_ip
"/alertcenter:v1beta1/AccountWarning": account_warning
"/alertcenter:v1beta1/AccountWarning/email": email
"/alertcenter:v1beta1/AccountWarning/loginDetails": login_details
"/alertcenter:v1beta1/Alert": alert
"/alertcenter:v1beta1/Alert/alertId": alert_id
"/alertcenter:v1beta1/Alert/createTime": create_time
"/alertcenter:v1beta1/Alert/customerId": customer_id
"/alertcenter:v1beta1/Alert/data": data
"/alertcenter:v1beta1/Alert/data/datum": datum
"/alertcenter:v1beta1/Alert/endTime": end_time
"/alertcenter:v1beta1/Alert/securityInvestigationToolLink": security_investigation_tool_link
"/alertcenter:v1beta1/Alert/source": source
"/alertcenter:v1beta1/Alert/startTime": start_time
"/alertcenter:v1beta1/Alert/type": type
"/alertcenter:v1beta1/AlertFeedback": alert_feedback
"/alertcenter:v1beta1/AlertFeedback/alertId": alert_id
"/alertcenter:v1beta1/AlertFeedback/createTime": create_time
"/alertcenter:v1beta1/AlertFeedback/customerId": customer_id
"/alertcenter:v1beta1/AlertFeedback/email": email
"/alertcenter:v1beta1/AlertFeedback/feedbackId": feedback_id
"/alertcenter:v1beta1/AlertFeedback/type": type
"/alertcenter:v1beta1/Attachment": attachment
"/alertcenter:v1beta1/Attachment/csv": csv
"/alertcenter:v1beta1/BadWhitelist": bad_whitelist
"/alertcenter:v1beta1/BadWhitelist/domainId": domain_id
"/alertcenter:v1beta1/BadWhitelist/maliciousEntity": malicious_entity
"/alertcenter:v1beta1/BadWhitelist/messages": messages
"/alertcenter:v1beta1/BadWhitelist/messages/message": message
"/alertcenter:v1beta1/BadWhitelist/sourceIp": source_ip
"/alertcenter:v1beta1/Csv": csv
"/alertcenter:v1beta1/Csv/dataRows": data_rows
"/alertcenter:v1beta1/Csv/dataRows/data_row": data_row
"/alertcenter:v1beta1/Csv/headers": headers
"/alertcenter:v1beta1/Csv/headers/header": header
"/alertcenter:v1beta1/CsvRow": csv_row
"/alertcenter:v1beta1/CsvRow/entries": entries
"/alertcenter:v1beta1/CsvRow/entries/entry": entry
"/alertcenter:v1beta1/DeviceCompromised": device_compromised
"/alertcenter:v1beta1/DeviceCompromised/email": email
"/alertcenter:v1beta1/DeviceCompromised/events": events
"/alertcenter:v1beta1/DeviceCompromised/events/event": event
"/alertcenter:v1beta1/DeviceCompromisedSecurityDetail": device_compromised_security_detail
"/alertcenter:v1beta1/DeviceCompromisedSecurityDetail/deviceCompromisedState": device_compromised_state
"/alertcenter:v1beta1/DeviceCompromisedSecurityDetail/deviceId": device_id
"/alertcenter:v1beta1/DeviceCompromisedSecurityDetail/deviceModel": device_model
"/alertcenter:v1beta1/DeviceCompromisedSecurityDetail/deviceType": device_type
"/alertcenter:v1beta1/DeviceCompromisedSecurityDetail/iosVendorId": ios_vendor_id
"/alertcenter:v1beta1/DeviceCompromisedSecurityDetail/resourceId": resource_id
"/alertcenter:v1beta1/DeviceCompromisedSecurityDetail/serialNumber": serial_number
"/alertcenter:v1beta1/DomainId": domain_id
"/alertcenter:v1beta1/DomainId/customerPrimaryDomain": customer_primary_domain
"/alertcenter:v1beta1/DomainWideTakeoutInitiated": domain_wide_takeout_initiated
"/alertcenter:v1beta1/DomainWideTakeoutInitiated/email": email
"/alertcenter:v1beta1/DomainWideTakeoutInitiated/takeoutRequestId": takeout_request_id
"/alertcenter:v1beta1/Empty": empty
"/alertcenter:v1beta1/GmailMessageInfo": gmail_message_info
"/alertcenter:v1beta1/GmailMessageInfo/attachmentsSha256Hash": attachments_sha256_hash
"/alertcenter:v1beta1/GmailMessageInfo/attachmentsSha256Hash/attachments_sha256_hash": attachments_sha256_hash
"/alertcenter:v1beta1/GmailMessageInfo/date": date
"/alertcenter:v1beta1/GmailMessageInfo/md5HashMessageBody": md5_hash_message_body
"/alertcenter:v1beta1/GmailMessageInfo/md5HashSubject": md5_hash_subject
"/alertcenter:v1beta1/GmailMessageInfo/messageBodySnippet": message_body_snippet
"/alertcenter:v1beta1/GmailMessageInfo/messageId": message_id
"/alertcenter:v1beta1/GmailMessageInfo/recipient": recipient
"/alertcenter:v1beta1/GmailMessageInfo/subjectText": subject_text
"/alertcenter:v1beta1/GoogleOperations": google_operations
"/alertcenter:v1beta1/GoogleOperations/affectedUserEmails": affected_user_emails
"/alertcenter:v1beta1/GoogleOperations/affectedUserEmails/affected_user_email": affected_user_email
"/alertcenter:v1beta1/GoogleOperations/attachmentData": attachment_data
"/alertcenter:v1beta1/GoogleOperations/description": description
"/alertcenter:v1beta1/GoogleOperations/title": title
"/alertcenter:v1beta1/ListAlertFeedbackResponse": list_alert_feedback_response
"/alertcenter:v1beta1/ListAlertFeedbackResponse/feedback": feedback
"/alertcenter:v1beta1/ListAlertFeedbackResponse/feedback/feedback": feedback
"/alertcenter:v1beta1/ListAlertsResponse": list_alerts_response
"/alertcenter:v1beta1/ListAlertsResponse/alerts": alerts
"/alertcenter:v1beta1/ListAlertsResponse/alerts/alert": alert
"/alertcenter:v1beta1/ListAlertsResponse/nextPageToken": next_page_token
"/alertcenter:v1beta1/LoginDetails": login_details
"/alertcenter:v1beta1/LoginDetails/ipAddress": ip_address
"/alertcenter:v1beta1/LoginDetails/loginTime": login_time
"/alertcenter:v1beta1/MailPhishing": mail_phishing
"/alertcenter:v1beta1/MailPhishing/domainId": domain_id
"/alertcenter:v1beta1/MailPhishing/isInternal": is_internal
"/alertcenter:v1beta1/MailPhishing/maliciousEntity": malicious_entity
"/alertcenter:v1beta1/MailPhishing/messages": messages
"/alertcenter:v1beta1/MailPhishing/messages/message": message
"/alertcenter:v1beta1/MaliciousEntity": malicious_entity
"/alertcenter:v1beta1/MaliciousEntity/fromHeader": from_header
"/alertcenter:v1beta1/PhishingSpike": phishing_spike
"/alertcenter:v1beta1/PhishingSpike/domainId": domain_id
"/alertcenter:v1beta1/PhishingSpike/isInternal": is_internal
"/alertcenter:v1beta1/PhishingSpike/maliciousEntity": malicious_entity
"/alertcenter:v1beta1/PhishingSpike/messages": messages
"/alertcenter:v1beta1/PhishingSpike/messages/message": message
"/alertcenter:v1beta1/StateSponsoredAttack": state_sponsored_attack
"/alertcenter:v1beta1/StateSponsoredAttack/email": email
"/alertcenter:v1beta1/SuspiciousActivity": suspicious_activity
"/alertcenter:v1beta1/SuspiciousActivity/email": email
"/alertcenter:v1beta1/SuspiciousActivity/events": events
"/alertcenter:v1beta1/SuspiciousActivity/events/event": event
"/alertcenter:v1beta1/SuspiciousActivitySecurityDetail": suspicious_activity_security_detail
"/alertcenter:v1beta1/SuspiciousActivitySecurityDetail/deviceId": device_id
"/alertcenter:v1beta1/SuspiciousActivitySecurityDetail/deviceModel": device_model
"/alertcenter:v1beta1/SuspiciousActivitySecurityDetail/deviceProperty": device_property
"/alertcenter:v1beta1/SuspiciousActivitySecurityDetail/deviceType": device_type
"/alertcenter:v1beta1/SuspiciousActivitySecurityDetail/iosVendorId": ios_vendor_id
"/alertcenter:v1beta1/SuspiciousActivitySecurityDetail/newValue": new_value
"/alertcenter:v1beta1/SuspiciousActivitySecurityDetail/oldValue": old_value
"/alertcenter:v1beta1/SuspiciousActivitySecurityDetail/resourceId": resource_id
"/alertcenter:v1beta1/SuspiciousActivitySecurityDetail/serialNumber": serial_number
"/alertcenter:v1beta1/alertcenter.alerts.delete": delete_alert
"/alertcenter:v1beta1/alertcenter.alerts.delete/alertId": alert_id
"/alertcenter:v1beta1/alertcenter.alerts.delete/customerId": customer_id
"/alertcenter:v1beta1/alertcenter.alerts.feedback.create": create_alert_feedback
"/alertcenter:v1beta1/alertcenter.alerts.feedback.create/alertId": alert_id
"/alertcenter:v1beta1/alertcenter.alerts.feedback.create/customerId": customer_id
"/alertcenter:v1beta1/alertcenter.alerts.feedback.list": list_alert_feedbacks
"/alertcenter:v1beta1/alertcenter.alerts.feedback.list/alertId": alert_id
"/alertcenter:v1beta1/alertcenter.alerts.feedback.list/customerId": customer_id
"/alertcenter:v1beta1/alertcenter.alerts.get": get_alert
"/alertcenter:v1beta1/alertcenter.alerts.get/alertId": alert_id
"/alertcenter:v1beta1/alertcenter.alerts.get/customerId": customer_id
"/alertcenter:v1beta1/alertcenter.alerts.list": list_alerts
"/alertcenter:v1beta1/alertcenter.alerts.list/customerId": customer_id
"/alertcenter:v1beta1/alertcenter.alerts.list/filter": filter
"/alertcenter:v1beta1/alertcenter.alerts.list/orderBy": order_by
"/alertcenter:v1beta1/alertcenter.alerts.list/pageSize": page_size
"/alertcenter:v1beta1/alertcenter.alerts.list/pageToken": page_token
"/alertcenter:v1beta1/fields": fields
"/alertcenter:v1beta1/key": key
"/alertcenter:v1beta1/quotaUser": quota_user
"/analytics:v2.4/analytics.data.get": get_datum "/analytics:v2.4/analytics.data.get": get_datum
"/analytics:v2.4/analytics.data.get/dimensions": dimensions "/analytics:v2.4/analytics.data.get/dimensions": dimensions
"/analytics:v2.4/analytics.data.get/end-date": end_date "/analytics:v2.4/analytics.data.get/end-date": end_date
@ -5739,6 +5871,7 @@
"/androiddeviceprovisioning:v1/FindDevicesByDeviceIdentifierResponse/devices": devices "/androiddeviceprovisioning:v1/FindDevicesByDeviceIdentifierResponse/devices": devices
"/androiddeviceprovisioning:v1/FindDevicesByDeviceIdentifierResponse/devices/device": device "/androiddeviceprovisioning:v1/FindDevicesByDeviceIdentifierResponse/devices/device": device
"/androiddeviceprovisioning:v1/FindDevicesByDeviceIdentifierResponse/nextPageToken": next_page_token "/androiddeviceprovisioning:v1/FindDevicesByDeviceIdentifierResponse/nextPageToken": next_page_token
"/androiddeviceprovisioning:v1/FindDevicesByDeviceIdentifierResponse/totalSize": total_size
"/androiddeviceprovisioning:v1/FindDevicesByOwnerRequest": find_devices_by_owner_request "/androiddeviceprovisioning:v1/FindDevicesByOwnerRequest": find_devices_by_owner_request
"/androiddeviceprovisioning:v1/FindDevicesByOwnerRequest/customerId": customer_id "/androiddeviceprovisioning:v1/FindDevicesByOwnerRequest/customerId": customer_id
"/androiddeviceprovisioning:v1/FindDevicesByOwnerRequest/customerId/customer_id": customer_id "/androiddeviceprovisioning:v1/FindDevicesByOwnerRequest/customerId/customer_id": customer_id
@ -5749,15 +5882,20 @@
"/androiddeviceprovisioning:v1/FindDevicesByOwnerResponse/devices": devices "/androiddeviceprovisioning:v1/FindDevicesByOwnerResponse/devices": devices
"/androiddeviceprovisioning:v1/FindDevicesByOwnerResponse/devices/device": device "/androiddeviceprovisioning:v1/FindDevicesByOwnerResponse/devices/device": device
"/androiddeviceprovisioning:v1/FindDevicesByOwnerResponse/nextPageToken": next_page_token "/androiddeviceprovisioning:v1/FindDevicesByOwnerResponse/nextPageToken": next_page_token
"/androiddeviceprovisioning:v1/FindDevicesByOwnerResponse/totalSize": total_size
"/androiddeviceprovisioning:v1/ListCustomersResponse": list_customers_response "/androiddeviceprovisioning:v1/ListCustomersResponse": list_customers_response
"/androiddeviceprovisioning:v1/ListCustomersResponse/customers": customers "/androiddeviceprovisioning:v1/ListCustomersResponse/customers": customers
"/androiddeviceprovisioning:v1/ListCustomersResponse/customers/customer": customer "/androiddeviceprovisioning:v1/ListCustomersResponse/customers/customer": customer
"/androiddeviceprovisioning:v1/ListCustomersResponse/nextPageToken": next_page_token
"/androiddeviceprovisioning:v1/ListCustomersResponse/totalSize": total_size
"/androiddeviceprovisioning:v1/ListVendorCustomersResponse": list_vendor_customers_response "/androiddeviceprovisioning:v1/ListVendorCustomersResponse": list_vendor_customers_response
"/androiddeviceprovisioning:v1/ListVendorCustomersResponse/customers": customers "/androiddeviceprovisioning:v1/ListVendorCustomersResponse/customers": customers
"/androiddeviceprovisioning:v1/ListVendorCustomersResponse/customers/customer": customer "/androiddeviceprovisioning:v1/ListVendorCustomersResponse/customers/customer": customer
"/androiddeviceprovisioning:v1/ListVendorCustomersResponse/nextPageToken": next_page_token "/androiddeviceprovisioning:v1/ListVendorCustomersResponse/nextPageToken": next_page_token
"/androiddeviceprovisioning:v1/ListVendorCustomersResponse/totalSize": total_size
"/androiddeviceprovisioning:v1/ListVendorsResponse": list_vendors_response "/androiddeviceprovisioning:v1/ListVendorsResponse": list_vendors_response
"/androiddeviceprovisioning:v1/ListVendorsResponse/nextPageToken": next_page_token "/androiddeviceprovisioning:v1/ListVendorsResponse/nextPageToken": next_page_token
"/androiddeviceprovisioning:v1/ListVendorsResponse/totalSize": total_size
"/androiddeviceprovisioning:v1/ListVendorsResponse/vendors": vendors "/androiddeviceprovisioning:v1/ListVendorsResponse/vendors": vendors
"/androiddeviceprovisioning:v1/ListVendorsResponse/vendors/vendor": vendor "/androiddeviceprovisioning:v1/ListVendorsResponse/vendors/vendor": vendor
"/androiddeviceprovisioning:v1/Operation": operation "/androiddeviceprovisioning:v1/Operation": operation
@ -5842,6 +5980,8 @@
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.create": create_customer "/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.create": create_customer
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.create/parent": parent "/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.create/parent": parent
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.list": list_partner_customers "/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.list": list_partner_customers
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.list/pageSize": page_size
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.list/pageToken": page_token
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.list/partnerId": partner_id "/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.list/partnerId": partner_id
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.devices.claim": claim_device "/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.devices.claim": claim_device
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.devices.claim/partnerId": partner_id "/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.devices.claim/partnerId": partner_id
@ -62741,6 +62881,143 @@
"/firebasedynamiclinks:v1/firebasedynamiclinks.shortLinks.create": create_short_link_short_dynamic_link "/firebasedynamiclinks:v1/firebasedynamiclinks.shortLinks.create": create_short_link_short_dynamic_link
"/firebasedynamiclinks:v1/key": key "/firebasedynamiclinks:v1/key": key
"/firebasedynamiclinks:v1/quotaUser": quota_user "/firebasedynamiclinks:v1/quotaUser": quota_user
"/firebasehosting:v1beta1/ActingUser": acting_user
"/firebasehosting:v1beta1/ActingUser/email": email
"/firebasehosting:v1beta1/ActingUser/imageUrl": image_url
"/firebasehosting:v1beta1/CertDnsChallenge": cert_dns_challenge
"/firebasehosting:v1beta1/CertDnsChallenge/domainName": domain_name
"/firebasehosting:v1beta1/CertDnsChallenge/token": token
"/firebasehosting:v1beta1/CertHttpChallenge": cert_http_challenge
"/firebasehosting:v1beta1/CertHttpChallenge/path": path
"/firebasehosting:v1beta1/CertHttpChallenge/token": token
"/firebasehosting:v1beta1/Domain": domain
"/firebasehosting:v1beta1/Domain/domainName": domain_name
"/firebasehosting:v1beta1/Domain/domainRedirect": domain_redirect
"/firebasehosting:v1beta1/Domain/provisioning": provisioning
"/firebasehosting:v1beta1/Domain/site": site
"/firebasehosting:v1beta1/Domain/status": status
"/firebasehosting:v1beta1/Domain/updateTime": update_time
"/firebasehosting:v1beta1/DomainProvisioning": domain_provisioning
"/firebasehosting:v1beta1/DomainProvisioning/certChallengeDiscoveredTxt": cert_challenge_discovered_txt
"/firebasehosting:v1beta1/DomainProvisioning/certChallengeDiscoveredTxt/cert_challenge_discovered_txt": cert_challenge_discovered_txt
"/firebasehosting:v1beta1/DomainProvisioning/certChallengeDns": cert_challenge_dns
"/firebasehosting:v1beta1/DomainProvisioning/certChallengeHttp": cert_challenge_http
"/firebasehosting:v1beta1/DomainProvisioning/certStatus": cert_status
"/firebasehosting:v1beta1/DomainProvisioning/discoveredIps": discovered_ips
"/firebasehosting:v1beta1/DomainProvisioning/discoveredIps/discovered_ip": discovered_ip
"/firebasehosting:v1beta1/DomainProvisioning/dnsFetchTime": dns_fetch_time
"/firebasehosting:v1beta1/DomainProvisioning/dnsStatus": dns_status
"/firebasehosting:v1beta1/DomainProvisioning/expectedIps": expected_ips
"/firebasehosting:v1beta1/DomainProvisioning/expectedIps/expected_ip": expected_ip
"/firebasehosting:v1beta1/DomainRedirect": domain_redirect
"/firebasehosting:v1beta1/DomainRedirect/domainName": domain_name
"/firebasehosting:v1beta1/DomainRedirect/type": type
"/firebasehosting:v1beta1/Empty": empty
"/firebasehosting:v1beta1/Header": header
"/firebasehosting:v1beta1/Header/glob": glob
"/firebasehosting:v1beta1/Header/headers": headers
"/firebasehosting:v1beta1/Header/headers/header": header
"/firebasehosting:v1beta1/ListDomainsResponse": list_domains_response
"/firebasehosting:v1beta1/ListDomainsResponse/domains": domains
"/firebasehosting:v1beta1/ListDomainsResponse/domains/domain": domain
"/firebasehosting:v1beta1/ListDomainsResponse/nextPageToken": next_page_token
"/firebasehosting:v1beta1/ListReleasesResponse": list_releases_response
"/firebasehosting:v1beta1/ListReleasesResponse/nextPageToken": next_page_token
"/firebasehosting:v1beta1/ListReleasesResponse/releases": releases
"/firebasehosting:v1beta1/ListReleasesResponse/releases/release": release
"/firebasehosting:v1beta1/ListVersionFilesResponse": list_version_files_response
"/firebasehosting:v1beta1/ListVersionFilesResponse/files": files
"/firebasehosting:v1beta1/ListVersionFilesResponse/files/file": file
"/firebasehosting:v1beta1/ListVersionFilesResponse/nextPageToken": next_page_token
"/firebasehosting:v1beta1/PopulateVersionFilesRequest": populate_version_files_request
"/firebasehosting:v1beta1/PopulateVersionFilesRequest/files": files
"/firebasehosting:v1beta1/PopulateVersionFilesRequest/files/file": file
"/firebasehosting:v1beta1/PopulateVersionFilesResponse": populate_version_files_response
"/firebasehosting:v1beta1/PopulateVersionFilesResponse/uploadRequiredHashes": upload_required_hashes
"/firebasehosting:v1beta1/PopulateVersionFilesResponse/uploadRequiredHashes/upload_required_hash": upload_required_hash
"/firebasehosting:v1beta1/PopulateVersionFilesResponse/uploadUrl": upload_url
"/firebasehosting:v1beta1/Redirect": redirect
"/firebasehosting:v1beta1/Redirect/glob": glob
"/firebasehosting:v1beta1/Redirect/location": location
"/firebasehosting:v1beta1/Redirect/statusCode": status_code
"/firebasehosting:v1beta1/Release": release
"/firebasehosting:v1beta1/Release/message": message
"/firebasehosting:v1beta1/Release/name": name
"/firebasehosting:v1beta1/Release/releaseTime": release_time
"/firebasehosting:v1beta1/Release/releaseUser": release_user
"/firebasehosting:v1beta1/Release/type": type
"/firebasehosting:v1beta1/Release/version": version
"/firebasehosting:v1beta1/Rewrite": rewrite
"/firebasehosting:v1beta1/Rewrite/dynamicLinks": dynamic_links
"/firebasehosting:v1beta1/Rewrite/function": function
"/firebasehosting:v1beta1/Rewrite/glob": glob
"/firebasehosting:v1beta1/Rewrite/path": path
"/firebasehosting:v1beta1/ServingConfig": serving_config
"/firebasehosting:v1beta1/ServingConfig/appAssociation": app_association
"/firebasehosting:v1beta1/ServingConfig/cleanUrls": clean_urls
"/firebasehosting:v1beta1/ServingConfig/headers": headers
"/firebasehosting:v1beta1/ServingConfig/headers/header": header
"/firebasehosting:v1beta1/ServingConfig/redirects": redirects
"/firebasehosting:v1beta1/ServingConfig/redirects/redirect": redirect
"/firebasehosting:v1beta1/ServingConfig/rewrites": rewrites
"/firebasehosting:v1beta1/ServingConfig/rewrites/rewrite": rewrite
"/firebasehosting:v1beta1/ServingConfig/trailingSlashBehavior": trailing_slash_behavior
"/firebasehosting:v1beta1/Version": version
"/firebasehosting:v1beta1/Version/config": config
"/firebasehosting:v1beta1/Version/createTime": create_time
"/firebasehosting:v1beta1/Version/createUser": create_user
"/firebasehosting:v1beta1/Version/deleteTime": delete_time
"/firebasehosting:v1beta1/Version/deleteUser": delete_user
"/firebasehosting:v1beta1/Version/fileCount": file_count
"/firebasehosting:v1beta1/Version/finalizeTime": finalize_time
"/firebasehosting:v1beta1/Version/finalizeUser": finalize_user
"/firebasehosting:v1beta1/Version/labels": labels
"/firebasehosting:v1beta1/Version/labels/label": label
"/firebasehosting:v1beta1/Version/name": name
"/firebasehosting:v1beta1/Version/status": status
"/firebasehosting:v1beta1/Version/versionBytes": version_bytes
"/firebasehosting:v1beta1/VersionFile": version_file
"/firebasehosting:v1beta1/VersionFile/hash": hash_prop
"/firebasehosting:v1beta1/VersionFile/path": path
"/firebasehosting:v1beta1/VersionFile/status": status
"/firebasehosting:v1beta1/fields": fields
"/firebasehosting:v1beta1/firebasehosting.sites.domains.create": create_site_domain
"/firebasehosting:v1beta1/firebasehosting.sites.domains.create/parent": parent
"/firebasehosting:v1beta1/firebasehosting.sites.domains.delete": delete_site_domain
"/firebasehosting:v1beta1/firebasehosting.sites.domains.delete/name": name
"/firebasehosting:v1beta1/firebasehosting.sites.domains.get": get_site_domain
"/firebasehosting:v1beta1/firebasehosting.sites.domains.get/name": name
"/firebasehosting:v1beta1/firebasehosting.sites.domains.list": list_site_domains
"/firebasehosting:v1beta1/firebasehosting.sites.domains.list/pageSize": page_size
"/firebasehosting:v1beta1/firebasehosting.sites.domains.list/pageToken": page_token
"/firebasehosting:v1beta1/firebasehosting.sites.domains.list/parent": parent
"/firebasehosting:v1beta1/firebasehosting.sites.domains.update": update_site_domain
"/firebasehosting:v1beta1/firebasehosting.sites.domains.update/name": name
"/firebasehosting:v1beta1/firebasehosting.sites.releases.create": create_site_release
"/firebasehosting:v1beta1/firebasehosting.sites.releases.create/parent": parent
"/firebasehosting:v1beta1/firebasehosting.sites.releases.create/versionName": version_name
"/firebasehosting:v1beta1/firebasehosting.sites.releases.list": list_site_releases
"/firebasehosting:v1beta1/firebasehosting.sites.releases.list/pageSize": page_size
"/firebasehosting:v1beta1/firebasehosting.sites.releases.list/pageToken": page_token
"/firebasehosting:v1beta1/firebasehosting.sites.releases.list/parent": parent
"/firebasehosting:v1beta1/firebasehosting.sites.versions.create": create_site_version
"/firebasehosting:v1beta1/firebasehosting.sites.versions.create/parent": parent
"/firebasehosting:v1beta1/firebasehosting.sites.versions.create/sizeBytes": size_bytes
"/firebasehosting:v1beta1/firebasehosting.sites.versions.create/versionId": version_id
"/firebasehosting:v1beta1/firebasehosting.sites.versions.delete": delete_site_version
"/firebasehosting:v1beta1/firebasehosting.sites.versions.delete/name": name
"/firebasehosting:v1beta1/firebasehosting.sites.versions.files.list": list_site_version_files
"/firebasehosting:v1beta1/firebasehosting.sites.versions.files.list/pageSize": page_size
"/firebasehosting:v1beta1/firebasehosting.sites.versions.files.list/pageToken": page_token
"/firebasehosting:v1beta1/firebasehosting.sites.versions.files.list/parent": parent
"/firebasehosting:v1beta1/firebasehosting.sites.versions.files.list/status": status
"/firebasehosting:v1beta1/firebasehosting.sites.versions.patch": patch_site_version
"/firebasehosting:v1beta1/firebasehosting.sites.versions.patch/name": name
"/firebasehosting:v1beta1/firebasehosting.sites.versions.patch/updateMask": update_mask
"/firebasehosting:v1beta1/firebasehosting.sites.versions.populateFiles": populate_site_version_files
"/firebasehosting:v1beta1/firebasehosting.sites.versions.populateFiles/parent": parent
"/firebasehosting:v1beta1/key": key
"/firebasehosting:v1beta1/quotaUser": quota_user
"/firebaseremoteconfig:v1/RemoteConfig": remote_config "/firebaseremoteconfig:v1/RemoteConfig": remote_config
"/firebaseremoteconfig:v1/RemoteConfig/conditions": conditions "/firebaseremoteconfig:v1/RemoteConfig/conditions": conditions
"/firebaseremoteconfig:v1/RemoteConfig/conditions/condition": condition "/firebaseremoteconfig:v1/RemoteConfig/conditions/condition": condition

View File

@ -0,0 +1,31 @@
# 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/alertcenter_v1beta1/service.rb'
require 'google/apis/alertcenter_v1beta1/classes.rb'
require 'google/apis/alertcenter_v1beta1/representations.rb'
module Google
module Apis
# G Suite Alert Center API
#
# G Suite API for alerts managment.
#
# @see https://gsuite.google.com/products/alerts/
module AlertcenterV1beta1
VERSION = 'V1beta1'
REVISION = '20181005'
end
end
end

View File

@ -0,0 +1,835 @@
# 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 AlertcenterV1beta1
# Alerts for user account warning events.
class AccountWarning
include Google::Apis::Core::Hashable
# Required. Email of the user that this event belongs to.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# Details of the login action
# Corresponds to the JSON property `loginDetails`
# @return [Google::Apis::AlertcenterV1beta1::LoginDetails]
attr_accessor :login_details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@email = args[:email] if args.key?(:email)
@login_details = args[:login_details] if args.key?(:login_details)
end
end
# An alert affecting a customer.
# All fields are read-only once created.
class Alert
include Google::Apis::Core::Hashable
# Output only. The unique identifier for the alert.
# Corresponds to the JSON property `alertId`
# @return [String]
attr_accessor :alert_id
# Output only. The time this alert was created. Assigned by the server.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. The unique identifier of the Google account of the customer.
# Corresponds to the JSON property `customerId`
# @return [String]
attr_accessor :customer_id
# Optional. Specific data associated with this alert.
# e.g. google.apps.alertcenter.type.DeviceCompromised.
# Corresponds to the JSON property `data`
# @return [Hash<String,Object>]
attr_accessor :data
# Optional. The time this alert was no longer active. If provided, the
# end time must not be earlier than the start time. If not provided, the end
# time will default to the start time.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Output only. An optional Security Investigation Tool query for this
# alert.
# Corresponds to the JSON property `securityInvestigationToolLink`
# @return [String]
attr_accessor :security_investigation_tool_link
# Required. A unique identifier for the system that is reported the alert.
# Supported sources are any of the following:
# * "Google Operations"
# * "Mobile device management"
# * "Gmail phishing"
# * "Domain wide takeout"
# * "Government attack warning"
# * "Google identity"
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
# Required. The time this alert became active.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Required. The type of the alert.
# Supported types are any of the following:
# * "Google Operations"
# * "Device compromised"
# * "Suspicious activity"
# * "User reported phishing"
# * "Misconfigured whitelist"
# * "Customer takeout initiated"
# * "Government attack warning"
# * "User reported spam spike"
# * "Suspicious message reported"
# * "Phishing reclassification"
# * "Malware reclassification"
# LINT.IfChange
# * "Suspicious login"
# * "Suspicious login (less secure app)"
# * "User suspended"
# * "Leaked password"
# * "User suspended (suspicious activity)"
# * "User suspended (spam)"
# * "User suspended (spam through relay)"
# LINT.ThenChange(//depot/google3/apps/albert/data/albert_enums.proto)
# 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)
@alert_id = args[:alert_id] if args.key?(:alert_id)
@create_time = args[:create_time] if args.key?(:create_time)
@customer_id = args[:customer_id] if args.key?(:customer_id)
@data = args[:data] if args.key?(:data)
@end_time = args[:end_time] if args.key?(:end_time)
@security_investigation_tool_link = args[:security_investigation_tool_link] if args.key?(:security_investigation_tool_link)
@source = args[:source] if args.key?(:source)
@start_time = args[:start_time] if args.key?(:start_time)
@type = args[:type] if args.key?(:type)
end
end
# A customer feedback about an alert.
class AlertFeedback
include Google::Apis::Core::Hashable
# Output only. The alert identifier.
# Corresponds to the JSON property `alertId`
# @return [String]
attr_accessor :alert_id
# Output only. The time this feedback was created. Assigned by the server.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. The unique identifier of the Google account of the customer.
# Corresponds to the JSON property `customerId`
# @return [String]
attr_accessor :customer_id
# Output only. The email of the user that provided the feedback.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# Output only. A unique identifier for the feedback. When creating a new
# feedback the system will assign one.
# Corresponds to the JSON property `feedbackId`
# @return [String]
attr_accessor :feedback_id
# Required. The type of the feedback.
# 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)
@alert_id = args[:alert_id] if args.key?(:alert_id)
@create_time = args[:create_time] if args.key?(:create_time)
@customer_id = args[:customer_id] if args.key?(:customer_id)
@email = args[:email] if args.key?(:email)
@feedback_id = args[:feedback_id] if args.key?(:feedback_id)
@type = args[:type] if args.key?(:type)
end
end
# Attachment with application-specific information about an alert.
class Attachment
include Google::Apis::Core::Hashable
# Representation of a CSV file attachment, as a list of column headers and
# a list of data rows.
# Corresponds to the JSON property `csv`
# @return [Google::Apis::AlertcenterV1beta1::Csv]
attr_accessor :csv
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv = args[:csv] if args.key?(:csv)
end
end
# Alert for setting the domain or ip that malicious email comes from as
# whitelisted domain or ip in Gmail advanced settings.
class BadWhitelist
include Google::Apis::Core::Hashable
# Domain id of Gmail phishing alerts.
# Corresponds to the JSON property `domainId`
# @return [Google::Apis::AlertcenterV1beta1::DomainId]
attr_accessor :domain_id
# Entity whose actions triggered a Gmail phishing alert.
# Corresponds to the JSON property `maliciousEntity`
# @return [Google::Apis::AlertcenterV1beta1::MaliciousEntity]
attr_accessor :malicious_entity
# Every alert could contain multiple messages.
# Corresponds to the JSON property `messages`
# @return [Array<Google::Apis::AlertcenterV1beta1::GmailMessageInfo>]
attr_accessor :messages
# The source ip address of the malicious email. e.g. "127.0.0.1".
# Corresponds to the JSON property `sourceIp`
# @return [String]
attr_accessor :source_ip
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@domain_id = args[:domain_id] if args.key?(:domain_id)
@malicious_entity = args[:malicious_entity] if args.key?(:malicious_entity)
@messages = args[:messages] if args.key?(:messages)
@source_ip = args[:source_ip] if args.key?(:source_ip)
end
end
# Representation of a CSV file attachment, as a list of column headers and
# a list of data rows.
class Csv
include Google::Apis::Core::Hashable
# List of data rows in a CSV file, as string arrays rather than as a
# single comma-separated string.
# Corresponds to the JSON property `dataRows`
# @return [Array<Google::Apis::AlertcenterV1beta1::CsvRow>]
attr_accessor :data_rows
# List of headers for data columns in a CSV file.
# Corresponds to the JSON property `headers`
# @return [Array<String>]
attr_accessor :headers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data_rows = args[:data_rows] if args.key?(:data_rows)
@headers = args[:headers] if args.key?(:headers)
end
end
# Representation of a single data row in a CSV file.
class CsvRow
include Google::Apis::Core::Hashable
# Data entries in a CSV file row, as a string array rather than a single
# comma-separated string.
# Corresponds to the JSON property `entries`
# @return [Array<String>]
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@entries = args[:entries] if args.key?(:entries)
end
end
# A mobile device compromised alert. Derived from audit logs.
class DeviceCompromised
include Google::Apis::Core::Hashable
# The email of the user this alert was created for.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# Required. List of security events.
# Corresponds to the JSON property `events`
# @return [Array<Google::Apis::AlertcenterV1beta1::DeviceCompromisedSecurityDetail>]
attr_accessor :events
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@email = args[:email] if args.key?(:email)
@events = args[:events] if args.key?(:events)
end
end
# Detailed information of a single MDM device compromised event.
class DeviceCompromisedSecurityDetail
include Google::Apis::Core::Hashable
# Device compromised state includes: "Compromised" and "Not Compromised".
# Corresponds to the JSON property `deviceCompromisedState`
# @return [String]
attr_accessor :device_compromised_state
# Required. Device Info.
# Corresponds to the JSON property `deviceId`
# @return [String]
attr_accessor :device_id
# The model of the device.
# Corresponds to the JSON property `deviceModel`
# @return [String]
attr_accessor :device_model
# The type of the device.
# Corresponds to the JSON property `deviceType`
# @return [String]
attr_accessor :device_type
# Required for IOS, empty for others.
# Corresponds to the JSON property `iosVendorId`
# @return [String]
attr_accessor :ios_vendor_id
# The device resource id.
# Corresponds to the JSON property `resourceId`
# @return [String]
attr_accessor :resource_id
# The serial number of the device.
# 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)
@device_compromised_state = args[:device_compromised_state] if args.key?(:device_compromised_state)
@device_id = args[:device_id] if args.key?(:device_id)
@device_model = args[:device_model] if args.key?(:device_model)
@device_type = args[:device_type] if args.key?(:device_type)
@ios_vendor_id = args[:ios_vendor_id] if args.key?(:ios_vendor_id)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@serial_number = args[:serial_number] if args.key?(:serial_number)
end
end
# Domain id of Gmail phishing alerts.
class DomainId
include Google::Apis::Core::Hashable
# The primary domain for the customer.
# Corresponds to the JSON property `customerPrimaryDomain`
# @return [String]
attr_accessor :customer_primary_domain
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer_primary_domain = args[:customer_primary_domain] if args.key?(:customer_primary_domain)
end
end
# A takeout operation for the entire domain was initiated by an admin. Derived
# from audit logs.
class DomainWideTakeoutInitiated
include Google::Apis::Core::Hashable
# Email of the admin who initiated the takeout.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# takeout request id.
# Corresponds to the JSON property `takeoutRequestId`
# @return [String]
attr_accessor :takeout_request_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@email = args[:email] if args.key?(:email)
@takeout_request_id = args[:takeout_request_id] if args.key?(:takeout_request_id)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.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
# Details of a message in phishing spike alert.
class GmailMessageInfo
include Google::Apis::Core::Hashable
# SHA256 Hash of email's attachment and all MIME parts.
# Corresponds to the JSON property `attachmentsSha256Hash`
# @return [Array<String>]
attr_accessor :attachments_sha256_hash
# The date the malicious email was sent.
# Corresponds to the JSON property `date`
# @return [String]
attr_accessor :date
# Hash of message body text.
# Corresponds to the JSON property `md5HashMessageBody`
# @return [String]
attr_accessor :md5_hash_message_body
# MD5 Hash of email's subject. (Only available for reported emails).
# Corresponds to the JSON property `md5HashSubject`
# @return [String]
attr_accessor :md5_hash_subject
# Snippet of the message body text. (Only available for reported emails)
# Corresponds to the JSON property `messageBodySnippet`
# @return [String]
attr_accessor :message_body_snippet
# Message id.
# Corresponds to the JSON property `messageId`
# @return [String]
attr_accessor :message_id
# Recipient of this email.
# Corresponds to the JSON property `recipient`
# @return [String]
attr_accessor :recipient
# Email subject text. (Only available for reported emails).
# Corresponds to the JSON property `subjectText`
# @return [String]
attr_accessor :subject_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@attachments_sha256_hash = args[:attachments_sha256_hash] if args.key?(:attachments_sha256_hash)
@date = args[:date] if args.key?(:date)
@md5_hash_message_body = args[:md5_hash_message_body] if args.key?(:md5_hash_message_body)
@md5_hash_subject = args[:md5_hash_subject] if args.key?(:md5_hash_subject)
@message_body_snippet = args[:message_body_snippet] if args.key?(:message_body_snippet)
@message_id = args[:message_id] if args.key?(:message_id)
@recipient = args[:recipient] if args.key?(:recipient)
@subject_text = args[:subject_text] if args.key?(:subject_text)
end
end
# An incident reported by Google Operations for a G Suite application.
class GoogleOperations
include Google::Apis::Core::Hashable
# List of emails which correspond to the users directly affected by the
# incident.
# Corresponds to the JSON property `affectedUserEmails`
# @return [Array<String>]
attr_accessor :affected_user_emails
# Attachment with application-specific information about an alert.
# Corresponds to the JSON property `attachmentData`
# @return [Google::Apis::AlertcenterV1beta1::Attachment]
attr_accessor :attachment_data
# Detailed, freeform incident description.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# One-line incident description.
# 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)
@affected_user_emails = args[:affected_user_emails] if args.key?(:affected_user_emails)
@attachment_data = args[:attachment_data] if args.key?(:attachment_data)
@description = args[:description] if args.key?(:description)
@title = args[:title] if args.key?(:title)
end
end
# Response message for an alert feedback listing request.
class ListAlertFeedbackResponse
include Google::Apis::Core::Hashable
# The list of alert feedback.
# Result is ordered descending by creation time.
# Corresponds to the JSON property `feedback`
# @return [Array<Google::Apis::AlertcenterV1beta1::AlertFeedback>]
attr_accessor :feedback
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@feedback = args[:feedback] if args.key?(:feedback)
end
end
# Response message for an alert listing request.
class ListAlertsResponse
include Google::Apis::Core::Hashable
# The list of alerts.
# Corresponds to the JSON property `alerts`
# @return [Array<Google::Apis::AlertcenterV1beta1::Alert>]
attr_accessor :alerts
# If not empty, indicates that there may be more alerts that match the
# request; this value can be passed in a new ListAlertsRequest to get the
# next page of values.
# 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)
@alerts = args[:alerts] if args.key?(:alerts)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Details of the login action
class LoginDetails
include Google::Apis::Core::Hashable
# Required. Human readable IP address (e.g., 11.22.33.44) that is
# associated with the warning event.
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
# Required. Login time that is associated with the warning event.
# Corresponds to the JSON property `loginTime`
# @return [String]
attr_accessor :login_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@login_time = args[:login_time] if args.key?(:login_time)
end
end
# Proto for all phishing alerts with common payload.
# Supported types are any of the following:
# User reported phishing
# User reported spam spike
# Suspicious message reported
# Phishing reclassification
# Malware reclassification
class MailPhishing
include Google::Apis::Core::Hashable
# Domain id of Gmail phishing alerts.
# Corresponds to the JSON property `domainId`
# @return [Google::Apis::AlertcenterV1beta1::DomainId]
attr_accessor :domain_id
# If true, the email is originated from within the organization.
# Corresponds to the JSON property `isInternal`
# @return [Boolean]
attr_accessor :is_internal
alias_method :is_internal?, :is_internal
# Entity whose actions triggered a Gmail phishing alert.
# Corresponds to the JSON property `maliciousEntity`
# @return [Google::Apis::AlertcenterV1beta1::MaliciousEntity]
attr_accessor :malicious_entity
# Every alert could contain multiple messages.
# Corresponds to the JSON property `messages`
# @return [Array<Google::Apis::AlertcenterV1beta1::GmailMessageInfo>]
attr_accessor :messages
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@domain_id = args[:domain_id] if args.key?(:domain_id)
@is_internal = args[:is_internal] if args.key?(:is_internal)
@malicious_entity = args[:malicious_entity] if args.key?(:malicious_entity)
@messages = args[:messages] if args.key?(:messages)
end
end
# Entity whose actions triggered a Gmail phishing alert.
class MaliciousEntity
include Google::Apis::Core::Hashable
# Sender email address.
# Corresponds to the JSON property `fromHeader`
# @return [String]
attr_accessor :from_header
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@from_header = args[:from_header] if args.key?(:from_header)
end
end
# Alert for a spike in user reported phishing.
# This will be deprecated in favor of MailPhishing.
class PhishingSpike
include Google::Apis::Core::Hashable
# Domain id of Gmail phishing alerts.
# Corresponds to the JSON property `domainId`
# @return [Google::Apis::AlertcenterV1beta1::DomainId]
attr_accessor :domain_id
# If true, the email is originated from within the organization.
# Corresponds to the JSON property `isInternal`
# @return [Boolean]
attr_accessor :is_internal
alias_method :is_internal?, :is_internal
# Entity whose actions triggered a Gmail phishing alert.
# Corresponds to the JSON property `maliciousEntity`
# @return [Google::Apis::AlertcenterV1beta1::MaliciousEntity]
attr_accessor :malicious_entity
# Every alert could contain multiple messages.
# Corresponds to the JSON property `messages`
# @return [Array<Google::Apis::AlertcenterV1beta1::GmailMessageInfo>]
attr_accessor :messages
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@domain_id = args[:domain_id] if args.key?(:domain_id)
@is_internal = args[:is_internal] if args.key?(:is_internal)
@malicious_entity = args[:malicious_entity] if args.key?(:malicious_entity)
@messages = args[:messages] if args.key?(:messages)
end
end
# A state sponsored attack alert. Derived from audit logs.
class StateSponsoredAttack
include Google::Apis::Core::Hashable
# The email of the user this incident was created for.
# 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)
@email = args[:email] if args.key?(:email)
end
end
# A mobile suspicious activity alert. Derived from audit logs.
class SuspiciousActivity
include Google::Apis::Core::Hashable
# The email of the user this alert was created for.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# Required. List of security events.
# Corresponds to the JSON property `events`
# @return [Array<Google::Apis::AlertcenterV1beta1::SuspiciousActivitySecurityDetail>]
attr_accessor :events
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@email = args[:email] if args.key?(:email)
@events = args[:events] if args.key?(:events)
end
end
# Detailed information of a single MDM suspicious activity event.
class SuspiciousActivitySecurityDetail
include Google::Apis::Core::Hashable
# Required. Device Info.
# Corresponds to the JSON property `deviceId`
# @return [String]
attr_accessor :device_id
# The model of the device.
# Corresponds to the JSON property `deviceModel`
# @return [String]
attr_accessor :device_model
# Device property which is changed.
# Corresponds to the JSON property `deviceProperty`
# @return [String]
attr_accessor :device_property
# The type of the device.
# Corresponds to the JSON property `deviceType`
# @return [String]
attr_accessor :device_type
# Required for IOS, empty for others.
# Corresponds to the JSON property `iosVendorId`
# @return [String]
attr_accessor :ios_vendor_id
# New value of the device property after change.
# Corresponds to the JSON property `newValue`
# @return [String]
attr_accessor :new_value
# Old value of the device property before change.
# Corresponds to the JSON property `oldValue`
# @return [String]
attr_accessor :old_value
# The device resource id.
# Corresponds to the JSON property `resourceId`
# @return [String]
attr_accessor :resource_id
# The serial number of the device.
# 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)
@device_id = args[:device_id] if args.key?(:device_id)
@device_model = args[:device_model] if args.key?(:device_model)
@device_property = args[:device_property] if args.key?(:device_property)
@device_type = args[:device_type] if args.key?(:device_type)
@ios_vendor_id = args[:ios_vendor_id] if args.key?(:ios_vendor_id)
@new_value = args[:new_value] if args.key?(:new_value)
@old_value = args[:old_value] if args.key?(:old_value)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@serial_number = args[:serial_number] if args.key?(:serial_number)
end
end
end
end
end

View File

@ -0,0 +1,394 @@
# 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 AlertcenterV1beta1
class AccountWarning
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Alert
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AlertFeedback
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Attachment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BadWhitelist
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Csv
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CsvRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceCompromised
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceCompromisedSecurityDetail
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DomainId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DomainWideTakeoutInitiated
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 GmailMessageInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleOperations
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAlertFeedbackResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAlertsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LoginDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MailPhishing
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MaliciousEntity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PhishingSpike
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StateSponsoredAttack
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SuspiciousActivity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SuspiciousActivitySecurityDetail
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountWarning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
property :login_details, as: 'loginDetails', class: Google::Apis::AlertcenterV1beta1::LoginDetails, decorator: Google::Apis::AlertcenterV1beta1::LoginDetails::Representation
end
end
class Alert
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alert_id, as: 'alertId'
property :create_time, as: 'createTime'
property :customer_id, as: 'customerId'
hash :data, as: 'data'
property :end_time, as: 'endTime'
property :security_investigation_tool_link, as: 'securityInvestigationToolLink'
property :source, as: 'source'
property :start_time, as: 'startTime'
property :type, as: 'type'
end
end
class AlertFeedback
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alert_id, as: 'alertId'
property :create_time, as: 'createTime'
property :customer_id, as: 'customerId'
property :email, as: 'email'
property :feedback_id, as: 'feedbackId'
property :type, as: 'type'
end
end
class Attachment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :csv, as: 'csv', class: Google::Apis::AlertcenterV1beta1::Csv, decorator: Google::Apis::AlertcenterV1beta1::Csv::Representation
end
end
class BadWhitelist
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain_id, as: 'domainId', class: Google::Apis::AlertcenterV1beta1::DomainId, decorator: Google::Apis::AlertcenterV1beta1::DomainId::Representation
property :malicious_entity, as: 'maliciousEntity', class: Google::Apis::AlertcenterV1beta1::MaliciousEntity, decorator: Google::Apis::AlertcenterV1beta1::MaliciousEntity::Representation
collection :messages, as: 'messages', class: Google::Apis::AlertcenterV1beta1::GmailMessageInfo, decorator: Google::Apis::AlertcenterV1beta1::GmailMessageInfo::Representation
property :source_ip, as: 'sourceIp'
end
end
class Csv
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :data_rows, as: 'dataRows', class: Google::Apis::AlertcenterV1beta1::CsvRow, decorator: Google::Apis::AlertcenterV1beta1::CsvRow::Representation
collection :headers, as: 'headers'
end
end
class CsvRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries'
end
end
class DeviceCompromised
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
collection :events, as: 'events', class: Google::Apis::AlertcenterV1beta1::DeviceCompromisedSecurityDetail, decorator: Google::Apis::AlertcenterV1beta1::DeviceCompromisedSecurityDetail::Representation
end
end
class DeviceCompromisedSecurityDetail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_compromised_state, as: 'deviceCompromisedState'
property :device_id, as: 'deviceId'
property :device_model, as: 'deviceModel'
property :device_type, as: 'deviceType'
property :ios_vendor_id, as: 'iosVendorId'
property :resource_id, as: 'resourceId'
property :serial_number, as: 'serialNumber'
end
end
class DomainId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer_primary_domain, as: 'customerPrimaryDomain'
end
end
class DomainWideTakeoutInitiated
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
property :takeout_request_id, as: 'takeoutRequestId'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GmailMessageInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :attachments_sha256_hash, as: 'attachmentsSha256Hash'
property :date, as: 'date'
property :md5_hash_message_body, as: 'md5HashMessageBody'
property :md5_hash_subject, as: 'md5HashSubject'
property :message_body_snippet, as: 'messageBodySnippet'
property :message_id, as: 'messageId'
property :recipient, as: 'recipient'
property :subject_text, as: 'subjectText'
end
end
class GoogleOperations
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :affected_user_emails, as: 'affectedUserEmails'
property :attachment_data, as: 'attachmentData', class: Google::Apis::AlertcenterV1beta1::Attachment, decorator: Google::Apis::AlertcenterV1beta1::Attachment::Representation
property :description, as: 'description'
property :title, as: 'title'
end
end
class ListAlertFeedbackResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :feedback, as: 'feedback', class: Google::Apis::AlertcenterV1beta1::AlertFeedback, decorator: Google::Apis::AlertcenterV1beta1::AlertFeedback::Representation
end
end
class ListAlertsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :alerts, as: 'alerts', class: Google::Apis::AlertcenterV1beta1::Alert, decorator: Google::Apis::AlertcenterV1beta1::Alert::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class LoginDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_address, as: 'ipAddress'
property :login_time, as: 'loginTime'
end
end
class MailPhishing
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain_id, as: 'domainId', class: Google::Apis::AlertcenterV1beta1::DomainId, decorator: Google::Apis::AlertcenterV1beta1::DomainId::Representation
property :is_internal, as: 'isInternal'
property :malicious_entity, as: 'maliciousEntity', class: Google::Apis::AlertcenterV1beta1::MaliciousEntity, decorator: Google::Apis::AlertcenterV1beta1::MaliciousEntity::Representation
collection :messages, as: 'messages', class: Google::Apis::AlertcenterV1beta1::GmailMessageInfo, decorator: Google::Apis::AlertcenterV1beta1::GmailMessageInfo::Representation
end
end
class MaliciousEntity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :from_header, as: 'fromHeader'
end
end
class PhishingSpike
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain_id, as: 'domainId', class: Google::Apis::AlertcenterV1beta1::DomainId, decorator: Google::Apis::AlertcenterV1beta1::DomainId::Representation
property :is_internal, as: 'isInternal'
property :malicious_entity, as: 'maliciousEntity', class: Google::Apis::AlertcenterV1beta1::MaliciousEntity, decorator: Google::Apis::AlertcenterV1beta1::MaliciousEntity::Representation
collection :messages, as: 'messages', class: Google::Apis::AlertcenterV1beta1::GmailMessageInfo, decorator: Google::Apis::AlertcenterV1beta1::GmailMessageInfo::Representation
end
end
class StateSponsoredAttack
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
end
end
class SuspiciousActivity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
collection :events, as: 'events', class: Google::Apis::AlertcenterV1beta1::SuspiciousActivitySecurityDetail, decorator: Google::Apis::AlertcenterV1beta1::SuspiciousActivitySecurityDetail::Representation
end
end
class SuspiciousActivitySecurityDetail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_id, as: 'deviceId'
property :device_model, as: 'deviceModel'
property :device_property, as: 'deviceProperty'
property :device_type, as: 'deviceType'
property :ios_vendor_id, as: 'iosVendorId'
property :new_value, as: 'newValue'
property :old_value, as: 'oldValue'
property :resource_id, as: 'resourceId'
property :serial_number, as: 'serialNumber'
end
end
end
end
end

View File

@ -0,0 +1,302 @@
# 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 AlertcenterV1beta1
# G Suite Alert Center API
#
# G Suite API for alerts managment.
#
# @example
# require 'google/apis/alertcenter_v1beta1'
#
# Alertcenter = Google::Apis::AlertcenterV1beta1 # Alias the module
# service = Alertcenter::AlertCenterService.new
#
# @see https://gsuite.google.com/products/alerts/
class AlertCenterService < 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://alertcenter.googleapis.com/', '')
@batch_path = 'batch'
end
# Marks the specified alert for deletion. An alert that has been marked for
# deletion will be excluded from the results of a List operation by default,
# and will be removed from the Alert Center after 30 days.
# Marking an alert for deletion will have no effect on an alert which has
# already been marked for deletion. Attempting to mark a nonexistent alert
# for deletion will return NOT_FOUND.
# @param [String] alert_id
# Required. The identifier of the alert to delete.
# @param [String] customer_id
# Optional. The unique identifier of the Google account of the customer the
# alert is associated with. This is obfuscated and not the plain customer
# ID as stored internally. Inferred from the caller identity if not provided.
# @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::AlertcenterV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AlertcenterV1beta1::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_alert(alert_id, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/alerts/{alertId}', options)
command.response_representation = Google::Apis::AlertcenterV1beta1::Empty::Representation
command.response_class = Google::Apis::AlertcenterV1beta1::Empty
command.params['alertId'] = alert_id unless alert_id.nil?
command.query['customerId'] = customer_id unless customer_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 the specified alert.
# @param [String] alert_id
# Required. The identifier of the alert to retrieve.
# @param [String] customer_id
# Optional. The unique identifier of the Google account of the customer the
# alert is associated with. This is obfuscated and not the plain customer
# ID as stored internally. Inferred from the caller identity if not provided.
# @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::AlertcenterV1beta1::Alert] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AlertcenterV1beta1::Alert]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_alert(alert_id, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/alerts/{alertId}', options)
command.response_representation = Google::Apis::AlertcenterV1beta1::Alert::Representation
command.response_class = Google::Apis::AlertcenterV1beta1::Alert
command.params['alertId'] = alert_id unless alert_id.nil?
command.query['customerId'] = customer_id unless customer_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 all the alerts for the current user and application.
# @param [String] customer_id
# Optional. The unique identifier of the Google account of the customer the
# alerts are associated with. This is obfuscated and not the plain
# customer ID as stored internally. Inferred from the caller identity if not
# provided.
# @param [String] filter
# Optional. Query string for filtering alert results.
# This string must be specified as an expression or list of expressions,
# using the following grammar:
# ### Expressions
# An expression has the general form `<field> <operator> <value>`.
# A field or value which contains a space or a colon must be enclosed by
# double quotes.
# #### Operators
# Operators follow the BNF specification:
# `<equalityOperator> ::= "=" | ":"`
# `<relationalOperator> ::= "<" | ">" | "<=" | ">="`
# Relational operators are defined only for timestamp fields. Equality
# operators are defined only for string fields.
# #### Timestamp fields
# The value supplied for a timestamp field must be an
# [RFC 3339](https://tools.ietf.org/html/rfc3339) date-time string.
# Supported timestamp fields are `create_time`, `start_time`, and `end_time`.
# #### String fields
# The value supplied for a string field may be an arbitrary string.
# #### Examples
# To query for all alerts created on or after April 5, 2018:
# `create_time >= "2018-04-05T00:00:00Z"`
# To query for all alerts from the source "Gmail phishing":
# `source:"Gmail phishing"`
# ### Joining expressions
# Expressions may be joined to form a more complex query. The BNF
# specification is:
# `<expressionList> ::= <expression> | <expressionList> <conjunction>
# <expressionList> | <negation> <expressionList>`
# `<conjunction> ::= "AND" | "OR" | ""`
# `<negation> ::= "NOT"`
# Using the empty string as a conjunction acts as an implicit AND.
# The precedence of joining operations, from highest to lowest, is NOT, AND,
# OR.
# #### Examples
# To query for all alerts which started in 2017:
# `start_time >= "2017-01-01T00:00:00Z" AND start_time <
# "2018-01-01T00:00:00Z"`
# To query for all user reported phishing alerts from the source
# "Gmail phishing":
# `type:"User reported phishing" source:"Gmail phishing"`
# @param [String] order_by
# Optional. Sort the list results by a certain order.
# If not specified results may be returned in arbitrary order.
# You can sort the results in a descending order based on the creation
# timestamp using order_by="create_time desc".
# Currently, only sorting by create_time desc is supported.
# @param [Fixnum] page_size
# Optional. Requested page size. Server may return fewer items than
# requested. If unspecified, server will pick an appropriate default.
# @param [String] page_token
# Optional. A token identifying a page of results the server should return.
# If empty, a new iteration is started. To continue an iteration, pass in
# the value from the previous ListAlertsResponse's next_page_token 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::AlertcenterV1beta1::ListAlertsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AlertcenterV1beta1::ListAlertsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_alerts(customer_id: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/alerts', options)
command.response_representation = Google::Apis::AlertcenterV1beta1::ListAlertsResponse::Representation
command.response_class = Google::Apis::AlertcenterV1beta1::ListAlertsResponse
command.query['customerId'] = customer_id unless customer_id.nil?
command.query['filter'] = filter unless filter.nil?
command.query['orderBy'] = order_by unless order_by.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 alert feedback.
# @param [String] alert_id
# Required. The identifier of the alert this feedback belongs to.
# Returns a NOT_FOUND error if no such alert.
# @param [Google::Apis::AlertcenterV1beta1::AlertFeedback] alert_feedback_object
# @param [String] customer_id
# Optional. The unique identifier of the Google account of the customer the
# alert's feedback is associated with. This is obfuscated and not the
# plain customer ID as stored internally. Inferred from the caller identity
# if not provided.
# @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::AlertcenterV1beta1::AlertFeedback] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AlertcenterV1beta1::AlertFeedback]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_alert_feedback(alert_id, alert_feedback_object = nil, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/alerts/{alertId}/feedback', options)
command.request_representation = Google::Apis::AlertcenterV1beta1::AlertFeedback::Representation
command.request_object = alert_feedback_object
command.response_representation = Google::Apis::AlertcenterV1beta1::AlertFeedback::Representation
command.response_class = Google::Apis::AlertcenterV1beta1::AlertFeedback
command.params['alertId'] = alert_id unless alert_id.nil?
command.query['customerId'] = customer_id unless customer_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 all the feedback for an alert.
# @param [String] alert_id
# Required. The alert identifier.
# If the alert does not exist returns a NOT_FOUND error.
# @param [String] customer_id
# Optional. The unique identifier of the Google account of the customer the
# alert is associated with. This is obfuscated and not the plain customer
# ID as stored internally. Inferred from the caller identity if not provided.
# @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::AlertcenterV1beta1::ListAlertFeedbackResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AlertcenterV1beta1::ListAlertFeedbackResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_alert_feedbacks(alert_id, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/alerts/{alertId}/feedback', options)
command.response_representation = Google::Apis::AlertcenterV1beta1::ListAlertFeedbackResponse::Representation
command.response_class = Google::Apis::AlertcenterV1beta1::ListAlertFeedbackResponse
command.params['alertId'] = alert_id unless alert_id.nil?
command.query['customerId'] = customer_id unless customer_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
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

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/zero-touch/ # @see https://developers.google.com/zero-touch/
module AndroiddeviceprovisioningV1 module AndroiddeviceprovisioningV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180804' REVISION = '20181007'
end end
end end
end end

View File

@ -832,6 +832,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# The total count of items in the list irrespective of pagination.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -840,6 +845,7 @@ module Google
def update!(**args) def update!(**args)
@devices = args[:devices] if args.key?(:devices) @devices = args[:devices] if args.key?(:devices)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token) @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_size = args[:total_size] if args.key?(:total_size)
end end
end end
@ -896,6 +902,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# The total count of items in the list irrespective of pagination.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -904,6 +915,7 @@ module Google
def update!(**args) def update!(**args)
@devices = args[:devices] if args.key?(:devices) @devices = args[:devices] if args.key?(:devices)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token) @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_size = args[:total_size] if args.key?(:total_size)
end end
end end
@ -916,6 +928,17 @@ module Google
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>] # @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>]
attr_accessor :customers 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
# The total count of items in the list irrespective of pagination.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -923,6 +946,8 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@customers = args[:customers] if args.key?(:customers) @customers = args[:customers] if args.key?(:customers)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_size = args[:total_size] if args.key?(:total_size)
end end
end end
@ -941,6 +966,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# The total count of items in the list irrespective of pagination.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -949,6 +979,7 @@ module Google
def update!(**args) def update!(**args)
@customers = args[:customers] if args.key?(:customers) @customers = args[:customers] if args.key?(:customers)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token) @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_size = args[:total_size] if args.key?(:total_size)
end end
end end
@ -962,6 +993,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# The total count of items in the list irrespective of pagination.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
# List of vendors of the reseller partner. Fields `name`, `companyId` and # List of vendors of the reseller partner. Fields `name`, `companyId` and
# `companyName` are populated to the Company object. # `companyName` are populated to the Company object.
# Corresponds to the JSON property `vendors` # Corresponds to the JSON property `vendors`
@ -975,6 +1011,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token) @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_size = args[:total_size] if args.key?(:total_size)
@vendors = args[:vendors] if args.key?(:vendors) @vendors = args[:vendors] if args.key?(:vendors)
end end
end end

View File

@ -483,6 +483,7 @@ module Google
collection :devices, as: 'devices', class: Google::Apis::AndroiddeviceprovisioningV1::Device, decorator: Google::Apis::AndroiddeviceprovisioningV1::Device::Representation collection :devices, as: 'devices', class: Google::Apis::AndroiddeviceprovisioningV1::Device, decorator: Google::Apis::AndroiddeviceprovisioningV1::Device::Representation
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
end end
end end
@ -502,6 +503,7 @@ module Google
collection :devices, as: 'devices', class: Google::Apis::AndroiddeviceprovisioningV1::Device, decorator: Google::Apis::AndroiddeviceprovisioningV1::Device::Representation collection :devices, as: 'devices', class: Google::Apis::AndroiddeviceprovisioningV1::Device, decorator: Google::Apis::AndroiddeviceprovisioningV1::Device::Representation
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
end end
end end
@ -510,6 +512,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :customers, as: 'customers', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation collection :customers, as: 'customers', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
end end
end end
@ -519,6 +523,7 @@ module Google
collection :customers, as: 'customers', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation collection :customers, as: 'customers', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
end end
end end
@ -526,6 +531,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
collection :vendors, as: 'vendors', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation collection :vendors, as: 'vendors', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
end end

View File

@ -535,6 +535,11 @@ module Google
# created and customers that enrolled themselves using the portal. # created and customers that enrolled themselves using the portal.
# @param [Fixnum] partner_id # @param [Fixnum] partner_id
# Required. The ID of the reseller partner. # Required. The ID of the reseller partner.
# @param [Fixnum] page_size
# The maximum number of results to be returned. If not specified or 0, all
# the records are returned.
# @param [String] page_token
# A token identifying a page of results returned by the server.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -552,11 +557,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_partner_customers(partner_id, fields: nil, quota_user: nil, options: nil, &block) def list_partner_customers(partner_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/partners/{+partnerId}/customers', options) command = make_simple_command(:get, 'v1/partners/{+partnerId}/customers', options)
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse::Representation command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse::Representation
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse command.response_class = Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse
command.params['partnerId'] = partner_id unless partner_id.nil? command.params['partnerId'] = partner_id unless partner_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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp # @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3 module CalendarV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20180923' REVISION = '20181002'
# Manage your calendars # Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -989,7 +989,7 @@ module Google
# Deprecated. Please use sendUpdates instead. # Deprecated. Please use sendUpdates instead.
# Whether to send notifications about the deletion of the event. Note that some # Whether to send notifications about the deletion of the event. Note that some
# emails might still be sent even if you set the value to false. The default is # emails might still be sent even if you set the value to false. The default is
# False. # false.
# @param [String] send_updates # @param [String] send_updates
# Guests who should receive notifications about the deletion of the event. # Guests who should receive notifications about the deletion of the event.
# @param [String] fields # @param [String] fields
@ -1147,10 +1147,10 @@ module Google
# Deprecated. Please use sendUpdates instead. # Deprecated. Please use sendUpdates instead.
# Whether to send notifications about the creation of the new event. Note that # Whether to send notifications about the creation of the new event. Note that
# some emails might still be sent even if you set the value to false. The # some emails might still be sent even if you set the value to false. The
# default is False. # default is false.
# @param [String] send_updates # @param [String] send_updates
# Whether to send notifications about the creation of the new event. Note that # Whether to send notifications about the creation of the new event. Note that
# some emails might still be sent. The default is False. # some emails might still be sent. The default is false.
# @param [Boolean] supports_attachments # @param [Boolean] supports_attachments
# Whether API client performing operation supports event attachments. Optional. # Whether API client performing operation supports event attachments. Optional.
# The default is False. # The default is False.
@ -1423,7 +1423,7 @@ module Google
# Deprecated. Please use sendUpdates instead. # Deprecated. Please use sendUpdates instead.
# Whether to send notifications about the change of the event's organizer. Note # Whether to send notifications about the change of the event's organizer. Note
# that some emails might still be sent even if you set the value to false. The # that some emails might still be sent even if you set the value to false. The
# default is False. # default is false.
# @param [String] send_updates # @param [String] send_updates
# Guests who should receive notifications about the change of the event's # Guests who should receive notifications about the change of the event's
# organizer. # organizer.
@ -1487,12 +1487,12 @@ module Google
# Optional. # Optional.
# @param [Boolean] send_notifications # @param [Boolean] send_notifications
# Deprecated. Please use sendUpdates instead. # Deprecated. Please use sendUpdates instead.
# Whether to send notifications about the event update (e.g. description changes, # Whether to send notifications about the event update (for example, description
# etc.). Note that some emails might still be sent even if you set the value to # changes, etc.). Note that some emails might still be sent even if you set the
# false. The default is False. # value to false. The default is false.
# @param [String] send_updates # @param [String] send_updates
# Guests who should receive notifications about the event update (e.g., attendee # Guests who should receive notifications about the event update (for example,
# responses, title changes, etc.). # title changes, etc.).
# @param [Boolean] supports_attachments # @param [Boolean] supports_attachments
# Whether API client performing operation supports event attachments. Optional. # Whether API client performing operation supports event attachments. Optional.
# The default is False. # The default is False.
@ -1546,7 +1546,7 @@ module Google
# Deprecated. Please use sendUpdates instead. # Deprecated. Please use sendUpdates instead.
# Whether to send notifications about the creation of the event. Note that some # Whether to send notifications about the creation of the event. Note that some
# emails might still be sent even if you set the value to false. The default is # emails might still be sent even if you set the value to false. The default is
# False. # false.
# @param [String] send_updates # @param [String] send_updates
# Guests who should receive notifications about the creation of the new event. # Guests who should receive notifications about the creation of the new event.
# @param [String] fields # @param [String] fields
@ -1608,12 +1608,12 @@ module Google
# Optional. # Optional.
# @param [Boolean] send_notifications # @param [Boolean] send_notifications
# Deprecated. Please use sendUpdates instead. # Deprecated. Please use sendUpdates instead.
# Whether to send notifications about the event update (e.g. description changes, # Whether to send notifications about the event update (for example, description
# etc.). Note that some emails might still be sent even if you set the value to # changes, etc.). Note that some emails might still be sent even if you set the
# false. The default is False. # value to false. The default is false.
# @param [String] send_updates # @param [String] send_updates
# Guests who should receive notifications about the event update (e.g., attendee # Guests who should receive notifications about the event update (for example,
# responses, title changes, etc.). # title changes, etc.).
# @param [Boolean] supports_attachments # @param [Boolean] supports_attachments
# Whether API client performing operation supports event attachments. Optional. # Whether API client performing operation supports event attachments. Optional.
# The default is False. # The default is False.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/ # @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1 module CloudbuildV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20181001' REVISION = '20181008'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/custom-search/v1/using_rest # @see https://developers.google.com/custom-search/v1/using_rest
module CustomsearchV1 module CustomsearchV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180815' REVISION = '20181001'
end end
end end
end end

View File

@ -0,0 +1,43 @@
# 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/firebasehosting_v1beta1/service.rb'
require 'google/apis/firebasehosting_v1beta1/classes.rb'
require 'google/apis/firebasehosting_v1beta1/representations.rb'
module Google
module Apis
# Firebase Hosting API
#
#
#
# @see https://firebase.google.com/docs/hosting/
module FirebasehostingV1beta1
VERSION = 'V1beta1'
REVISION = '20181004'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View and administer all your Firebase data and settings
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
# View all your Firebase data and settings
AUTH_FIREBASE_READONLY = 'https://www.googleapis.com/auth/firebase.readonly'
end
end
end

View File

@ -0,0 +1,767 @@
# 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 FirebasehostingV1beta1
# Contains metadata about the user who performed an action, such as creating
# a release or finalizing a version.
class ActingUser
include Google::Apis::Core::Hashable
# The email address of the user when the user performed the action.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
# Corresponds to the JSON property `imageUrl`
# @return [String]
attr_accessor :image_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@email = args[:email] if args.key?(:email)
@image_url = args[:image_url] if args.key?(:image_url)
end
end
# Represents a DNS certificate challenge.
class CertDnsChallenge
include Google::Apis::Core::Hashable
# The domain name upon which the DNS challenge must be satisfied.
# Corresponds to the JSON property `domainName`
# @return [String]
attr_accessor :domain_name
# The value that must be present as a TXT record on the domain name to
# satisfy the challenge.
# Corresponds to the JSON property `token`
# @return [String]
attr_accessor :token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@domain_name = args[:domain_name] if args.key?(:domain_name)
@token = args[:token] if args.key?(:token)
end
end
# Represents an HTTP certificate challenge.
class CertHttpChallenge
include Google::Apis::Core::Hashable
# The URL path on which to serve the specified token to satisfy the
# certificate challenge.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
# The token to serve at the specified URL path to satisfy the certificate
# challenge.
# Corresponds to the JSON property `token`
# @return [String]
attr_accessor :token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@path = args[:path] if args.key?(:path)
@token = args[:token] if args.key?(:token)
end
end
# The intended behavior and status information of a domain.
class Domain
include Google::Apis::Core::Hashable
# Required. The domain name of the association.
# Corresponds to the JSON property `domainName`
# @return [String]
attr_accessor :domain_name
# Defines the behavior of a domain-level redirect. Domain redirects preserve
# the path of the redirect but replace the requested domain with the one
# specified in the redirect configuration.
# Corresponds to the JSON property `domainRedirect`
# @return [Google::Apis::FirebasehostingV1beta1::DomainRedirect]
attr_accessor :domain_redirect
# The current certificate provisioning status information for a domain.
# Corresponds to the JSON property `provisioning`
# @return [Google::Apis::FirebasehostingV1beta1::DomainProvisioning]
attr_accessor :provisioning
# Required. The site name of the association.
# Corresponds to the JSON property `site`
# @return [String]
attr_accessor :site
# Output only. Additional status of the domain association.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Output only. The time at which the domain 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)
@domain_name = args[:domain_name] if args.key?(:domain_name)
@domain_redirect = args[:domain_redirect] if args.key?(:domain_redirect)
@provisioning = args[:provisioning] if args.key?(:provisioning)
@site = args[:site] if args.key?(:site)
@status = args[:status] if args.key?(:status)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# The current certificate provisioning status information for a domain.
class DomainProvisioning
include Google::Apis::Core::Hashable
# The TXT records (for the certificate challenge) that were found at the last
# DNS fetch.
# Corresponds to the JSON property `certChallengeDiscoveredTxt`
# @return [Array<String>]
attr_accessor :cert_challenge_discovered_txt
# Represents a DNS certificate challenge.
# Corresponds to the JSON property `certChallengeDns`
# @return [Google::Apis::FirebasehostingV1beta1::CertDnsChallenge]
attr_accessor :cert_challenge_dns
# Represents an HTTP certificate challenge.
# Corresponds to the JSON property `certChallengeHttp`
# @return [Google::Apis::FirebasehostingV1beta1::CertHttpChallenge]
attr_accessor :cert_challenge_http
# The certificate provisioning status; updated when Firebase Hosting
# provisions an SSL certificate for the domain.
# Corresponds to the JSON property `certStatus`
# @return [String]
attr_accessor :cert_status
# The IPs found at the last DNS fetch.
# Corresponds to the JSON property `discoveredIps`
# @return [Array<String>]
attr_accessor :discovered_ips
# The time at which the last DNS fetch occurred.
# Corresponds to the JSON property `dnsFetchTime`
# @return [String]
attr_accessor :dns_fetch_time
# The DNS record match status as of the last DNS fetch.
# Corresponds to the JSON property `dnsStatus`
# @return [String]
attr_accessor :dns_status
# The list of IPs to which the domain is expected to resolve.
# Corresponds to the JSON property `expectedIps`
# @return [Array<String>]
attr_accessor :expected_ips
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cert_challenge_discovered_txt = args[:cert_challenge_discovered_txt] if args.key?(:cert_challenge_discovered_txt)
@cert_challenge_dns = args[:cert_challenge_dns] if args.key?(:cert_challenge_dns)
@cert_challenge_http = args[:cert_challenge_http] if args.key?(:cert_challenge_http)
@cert_status = args[:cert_status] if args.key?(:cert_status)
@discovered_ips = args[:discovered_ips] if args.key?(:discovered_ips)
@dns_fetch_time = args[:dns_fetch_time] if args.key?(:dns_fetch_time)
@dns_status = args[:dns_status] if args.key?(:dns_status)
@expected_ips = args[:expected_ips] if args.key?(:expected_ips)
end
end
# Defines the behavior of a domain-level redirect. Domain redirects preserve
# the path of the redirect but replace the requested domain with the one
# specified in the redirect configuration.
class DomainRedirect
include Google::Apis::Core::Hashable
# Required. The domain name to redirect to.
# Corresponds to the JSON property `domainName`
# @return [String]
attr_accessor :domain_name
# Required. The redirect status code.
# 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)
@domain_name = args[:domain_name] if args.key?(:domain_name)
@type = args[:type] if args.key?(:type)
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
# A `Header` defines custom headers to add to a response should the request
# URL path match the pattern.
class Header
include Google::Apis::Core::Hashable
# Required. The user-supplied
# [glob pattern](/docs/hosting/full-config#section-glob) to match against
# the request URL path.
# Corresponds to the JSON property `glob`
# @return [String]
attr_accessor :glob
# Required. The additional headers to add to the response.
# Corresponds to the JSON property `headers`
# @return [Hash<String,String>]
attr_accessor :headers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@glob = args[:glob] if args.key?(:glob)
@headers = args[:headers] if args.key?(:headers)
end
end
#
class ListDomainsResponse
include Google::Apis::Core::Hashable
# The list of domains, if any exist.
# Corresponds to the JSON property `domains`
# @return [Array<Google::Apis::FirebasehostingV1beta1::Domain>]
attr_accessor :domains
# The pagination token, if more results exist.
# 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)
@domains = args[:domains] if args.key?(:domains)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
#
class ListReleasesResponse
include Google::Apis::Core::Hashable
# If there are additional releases remaining beyond the ones in this
# response, then supply this token in the next
# [`list`](../sites.versions.files/list) call to continue with the next set
# of releases.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The list of hashes of files that still need to be uploaded, if any exist.
# Corresponds to the JSON property `releases`
# @return [Array<Google::Apis::FirebasehostingV1beta1::Release>]
attr_accessor :releases
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)
@releases = args[:releases] if args.key?(:releases)
end
end
#
class ListVersionFilesResponse
include Google::Apis::Core::Hashable
# The list path/hashes in the specified version.
# Corresponds to the JSON property `files`
# @return [Array<Google::Apis::FirebasehostingV1beta1::VersionFile>]
attr_accessor :files
# The pagination token, if more results exist.
# 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)
@files = args[:files] if args.key?(:files)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
#
class PopulateVersionFilesRequest
include Google::Apis::Core::Hashable
# A set of file paths to the hashes corresponding to assets that should be
# added to the version. Note that a file path to an empty hash will remove
# the path from the version. Calculate a hash by Gzipping the file then
# taking the SHA256 hash of the newly compressed file.
# Corresponds to the JSON property `files`
# @return [Hash<String,String>]
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
#
class PopulateVersionFilesResponse
include Google::Apis::Core::Hashable
# The content hashes of the specified files that need to be uploaded to the
# specified endpoint.
# Corresponds to the JSON property `uploadRequiredHashes`
# @return [Array<String>]
attr_accessor :upload_required_hashes
# The URL to which the files should be uploaded, in the format:
# <br>"https://upload-firebasehosting.googleapis.com/upload/sites/<var>site-name<
# /var>/versions/<var>versionID</var>/files".
# <br>Perform a multipart `POST` of the Gzipped file contents to the URL
# using a forward slash and the hash of the file appended to the end.
# Corresponds to the JSON property `uploadUrl`
# @return [String]
attr_accessor :upload_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@upload_required_hashes = args[:upload_required_hashes] if args.key?(:upload_required_hashes)
@upload_url = args[:upload_url] if args.key?(:upload_url)
end
end
# A `Redirect` represents the configuration for returning an HTTP redirect
# response given a matching request URL path.
class Redirect
include Google::Apis::Core::Hashable
# Required. The user-supplied
# [glob pattern](/docs/hosting/full-config#section-glob) to match against
# the request URL path.
# Corresponds to the JSON property `glob`
# @return [String]
attr_accessor :glob
# Required. The value to put in the HTTP location header of the response.
# <br>The location can contain capture group values from the pattern using a
# `":"` prefix to identify the segment and an optional `"*"` to capture the
# rest of the URL.
# For example:
# <code>"glob": "/:capture*",
# <br>"statusCode": 301,
# <br>"location": "https://example.com/foo/:capture"</code>
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# Required. The status HTTP code to return in the response. It must be a
# valid 3xx status code.
# Corresponds to the JSON property `statusCode`
# @return [Fixnum]
attr_accessor :status_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@glob = args[:glob] if args.key?(:glob)
@location = args[:location] if args.key?(:location)
@status_code = args[:status_code] if args.key?(:status_code)
end
end
# A `Release` is a particular
# [collection of configurations and files](sites.versions)
# that is set to be public at a particular time.
class Release
include Google::Apis::Core::Hashable
# The deploy description when the release was created. The value can be up to
# 512&nbsp;characters.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# Output only. The unique identifier for the release, in the format:
# <code>sites/<var>site-name</var>/releases/<var>releaseID</var></code>
# This name is provided in the response body when you call the
# [`CreateRelease`](sites.releases/create) endpoint.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The time at which the version is set to be public.
# Corresponds to the JSON property `releaseTime`
# @return [String]
attr_accessor :release_time
# Contains metadata about the user who performed an action, such as creating
# a release or finalizing a version.
# Corresponds to the JSON property `releaseUser`
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
attr_accessor :release_user
# Explains the reason for the release.
# <br>Specify a value for this field only when creating a `SITE_DISABLE`
# type release.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# A `Version` is the collection of configuration and
# [static files](sites.versions.files) that determine how a site is displayed.
# Corresponds to the JSON property `version`
# @return [Google::Apis::FirebasehostingV1beta1::Version]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@message = args[:message] if args.key?(:message)
@name = args[:name] if args.key?(:name)
@release_time = args[:release_time] if args.key?(:release_time)
@release_user = args[:release_user] if args.key?(:release_user)
@type = args[:type] if args.key?(:type)
@version = args[:version] if args.key?(:version)
end
end
# A `Rewrite` represents an internal content rewrite on the version. If the
# pattern matches, the request will be handled as if it were to the
# destination path specified in the configuration.
class Rewrite
include Google::Apis::Core::Hashable
# The request will be forwarded to Firebase Dynamic Links.
# Corresponds to the JSON property `dynamicLinks`
# @return [Boolean]
attr_accessor :dynamic_links
alias_method :dynamic_links?, :dynamic_links
# The function to proxy requests to. Must match the exported function
# name exactly.
# Corresponds to the JSON property `function`
# @return [String]
attr_accessor :function
# Required. The user-supplied
# [glob pattern](/docs/hosting/full-config#section-glob) to match against
# the request URL path.
# Corresponds to the JSON property `glob`
# @return [String]
attr_accessor :glob
# The URL path to rewrite the request to.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dynamic_links = args[:dynamic_links] if args.key?(:dynamic_links)
@function = args[:function] if args.key?(:function)
@glob = args[:glob] if args.key?(:glob)
@path = args[:path] if args.key?(:path)
end
end
# The configuration for how incoming requests to a site should be routed and
# processed before serving content. The patterns are matched and applied
# according to a specific
# [priority order](/docs/hosting/url-redirects-rewrites#section-priorities).
class ServingConfig
include Google::Apis::Core::Hashable
# How to handle well known App Association files.
# Corresponds to the JSON property `appAssociation`
# @return [String]
attr_accessor :app_association
# Defines whether to drop the file extension from uploaded files.
# Corresponds to the JSON property `cleanUrls`
# @return [Boolean]
attr_accessor :clean_urls
alias_method :clean_urls?, :clean_urls
# A list of custom response headers that are added to the content if the
# request URL path matches the glob.
# Corresponds to the JSON property `headers`
# @return [Array<Google::Apis::FirebasehostingV1beta1::Header>]
attr_accessor :headers
# A list of globs that will cause the response to redirect to another
# location.
# Corresponds to the JSON property `redirects`
# @return [Array<Google::Apis::FirebasehostingV1beta1::Redirect>]
attr_accessor :redirects
# A list of rewrites that will act as if the service were given the
# destination URL.
# Corresponds to the JSON property `rewrites`
# @return [Array<Google::Apis::FirebasehostingV1beta1::Rewrite>]
attr_accessor :rewrites
# Defines how to handle a trailing slash in the URL path.
# Corresponds to the JSON property `trailingSlashBehavior`
# @return [String]
attr_accessor :trailing_slash_behavior
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@app_association = args[:app_association] if args.key?(:app_association)
@clean_urls = args[:clean_urls] if args.key?(:clean_urls)
@headers = args[:headers] if args.key?(:headers)
@redirects = args[:redirects] if args.key?(:redirects)
@rewrites = args[:rewrites] if args.key?(:rewrites)
@trailing_slash_behavior = args[:trailing_slash_behavior] if args.key?(:trailing_slash_behavior)
end
end
# A `Version` is the collection of configuration and
# [static files](sites.versions.files) that determine how a site is displayed.
class Version
include Google::Apis::Core::Hashable
# The configuration for how incoming requests to a site should be routed and
# processed before serving content. The patterns are matched and applied
# according to a specific
# [priority order](/docs/hosting/url-redirects-rewrites#section-priorities).
# Corresponds to the JSON property `config`
# @return [Google::Apis::FirebasehostingV1beta1::ServingConfig]
attr_accessor :config
# Output only. The time at which the version was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Contains metadata about the user who performed an action, such as creating
# a release or finalizing a version.
# Corresponds to the JSON property `createUser`
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
attr_accessor :create_user
# Output only. The time at which the version was `DELETED`.
# Corresponds to the JSON property `deleteTime`
# @return [String]
attr_accessor :delete_time
# Contains metadata about the user who performed an action, such as creating
# a release or finalizing a version.
# Corresponds to the JSON property `deleteUser`
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
attr_accessor :delete_user
# Output only. The total number of files associated with the version.
# <br>This value is calculated after a version is `FINALIZED`.
# Corresponds to the JSON property `fileCount`
# @return [Fixnum]
attr_accessor :file_count
# Output only. The time at which the version was `FINALIZED`.
# Corresponds to the JSON property `finalizeTime`
# @return [String]
attr_accessor :finalize_time
# Contains metadata about the user who performed an action, such as creating
# a release or finalizing a version.
# Corresponds to the JSON property `finalizeUser`
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
attr_accessor :finalize_user
# The labels used for extra metadata and/or filtering.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The unique identifier for a version, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# This name is provided in the response body when you call the
# [`CreateVersion`](../sites.versions/create) endpoint.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The deploy status of a version.
# <br>
# <br>For a successful deploy, call the
# [`CreateVersion`](sites.versions/create) endpoint to make a new version
# (`CREATED` status),
# [upload all desired files](sites.versions/populateFiles) to the version,
# then [update](sites.versions/patch) the version to the `FINALIZED` status.
# <br>
# <br>Note that if you leave the version in the `CREATED` state for more
# than 12&nbsp;hours, the system will automatically mark the version as
# `ABANDONED`.
# <br>
# <br>You can also change the status of a version to `DELETED` by calling the
# [`DeleteVersion`](sites.versions/delete) endpoint.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Output only. The total stored bytesize of the version.
# <br>This value is calculated after a version is `FINALIZED`.
# Corresponds to the JSON property `versionBytes`
# @return [Fixnum]
attr_accessor :version_bytes
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)
@create_user = args[:create_user] if args.key?(:create_user)
@delete_time = args[:delete_time] if args.key?(:delete_time)
@delete_user = args[:delete_user] if args.key?(:delete_user)
@file_count = args[:file_count] if args.key?(:file_count)
@finalize_time = args[:finalize_time] if args.key?(:finalize_time)
@finalize_user = args[:finalize_user] if args.key?(:finalize_user)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@status = args[:status] if args.key?(:status)
@version_bytes = args[:version_bytes] if args.key?(:version_bytes)
end
end
# A static content file that is part of a version.
class VersionFile
include Google::Apis::Core::Hashable
# The SHA256 content hash of the file.
# Corresponds to the JSON property `hash`
# @return [String]
attr_accessor :hash_prop
# The URI at which the file's content should display.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
# Output only. The current status of a particular file in the specified
# version.
# <br>The value will be either `pending upload` or `uploaded`.
# 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)
@hash_prop = args[:hash_prop] if args.key?(:hash_prop)
@path = args[:path] if args.key?(:path)
@status = args[:status] if args.key?(:status)
end
end
end
end
end

View File

@ -0,0 +1,337 @@
# 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 FirebasehostingV1beta1
class ActingUser
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CertDnsChallenge
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CertHttpChallenge
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Domain
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DomainProvisioning
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DomainRedirect
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 Header
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDomainsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListReleasesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListVersionFilesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PopulateVersionFilesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PopulateVersionFilesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Redirect
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Release
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Rewrite
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Version
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VersionFile
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ActingUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
property :image_url, as: 'imageUrl'
end
end
class CertDnsChallenge
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain_name, as: 'domainName'
property :token, as: 'token'
end
end
class CertHttpChallenge
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path'
property :token, as: 'token'
end
end
class Domain
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain_name, as: 'domainName'
property :domain_redirect, as: 'domainRedirect', class: Google::Apis::FirebasehostingV1beta1::DomainRedirect, decorator: Google::Apis::FirebasehostingV1beta1::DomainRedirect::Representation
property :provisioning, as: 'provisioning', class: Google::Apis::FirebasehostingV1beta1::DomainProvisioning, decorator: Google::Apis::FirebasehostingV1beta1::DomainProvisioning::Representation
property :site, as: 'site'
property :status, as: 'status'
property :update_time, as: 'updateTime'
end
end
class DomainProvisioning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :cert_challenge_discovered_txt, as: 'certChallengeDiscoveredTxt'
property :cert_challenge_dns, as: 'certChallengeDns', class: Google::Apis::FirebasehostingV1beta1::CertDnsChallenge, decorator: Google::Apis::FirebasehostingV1beta1::CertDnsChallenge::Representation
property :cert_challenge_http, as: 'certChallengeHttp', class: Google::Apis::FirebasehostingV1beta1::CertHttpChallenge, decorator: Google::Apis::FirebasehostingV1beta1::CertHttpChallenge::Representation
property :cert_status, as: 'certStatus'
collection :discovered_ips, as: 'discoveredIps'
property :dns_fetch_time, as: 'dnsFetchTime'
property :dns_status, as: 'dnsStatus'
collection :expected_ips, as: 'expectedIps'
end
end
class DomainRedirect
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain_name, as: 'domainName'
property :type, as: 'type'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Header
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :glob, as: 'glob'
hash :headers, as: 'headers'
end
end
class ListDomainsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :domains, as: 'domains', class: Google::Apis::FirebasehostingV1beta1::Domain, decorator: Google::Apis::FirebasehostingV1beta1::Domain::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListReleasesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :releases, as: 'releases', class: Google::Apis::FirebasehostingV1beta1::Release, decorator: Google::Apis::FirebasehostingV1beta1::Release::Representation
end
end
class ListVersionFilesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :files, as: 'files', class: Google::Apis::FirebasehostingV1beta1::VersionFile, decorator: Google::Apis::FirebasehostingV1beta1::VersionFile::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class PopulateVersionFilesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :files, as: 'files'
end
end
class PopulateVersionFilesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :upload_required_hashes, as: 'uploadRequiredHashes'
property :upload_url, as: 'uploadUrl'
end
end
class Redirect
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :glob, as: 'glob'
property :location, as: 'location'
property :status_code, as: 'statusCode'
end
end
class Release
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message'
property :name, as: 'name'
property :release_time, as: 'releaseTime'
property :release_user, as: 'releaseUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
property :type, as: 'type'
property :version, as: 'version', class: Google::Apis::FirebasehostingV1beta1::Version, decorator: Google::Apis::FirebasehostingV1beta1::Version::Representation
end
end
class Rewrite
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dynamic_links, as: 'dynamicLinks'
property :function, as: 'function'
property :glob, as: 'glob'
property :path, as: 'path'
end
end
class ServingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :app_association, as: 'appAssociation'
property :clean_urls, as: 'cleanUrls'
collection :headers, as: 'headers', class: Google::Apis::FirebasehostingV1beta1::Header, decorator: Google::Apis::FirebasehostingV1beta1::Header::Representation
collection :redirects, as: 'redirects', class: Google::Apis::FirebasehostingV1beta1::Redirect, decorator: Google::Apis::FirebasehostingV1beta1::Redirect::Representation
collection :rewrites, as: 'rewrites', class: Google::Apis::FirebasehostingV1beta1::Rewrite, decorator: Google::Apis::FirebasehostingV1beta1::Rewrite::Representation
property :trailing_slash_behavior, as: 'trailingSlashBehavior'
end
end
class Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :config, as: 'config', class: Google::Apis::FirebasehostingV1beta1::ServingConfig, decorator: Google::Apis::FirebasehostingV1beta1::ServingConfig::Representation
property :create_time, as: 'createTime'
property :create_user, as: 'createUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
property :delete_time, as: 'deleteTime'
property :delete_user, as: 'deleteUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
property :file_count, :numeric_string => true, as: 'fileCount'
property :finalize_time, as: 'finalizeTime'
property :finalize_user, as: 'finalizeUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
hash :labels, as: 'labels'
property :name, as: 'name'
property :status, as: 'status'
property :version_bytes, :numeric_string => true, as: 'versionBytes'
end
end
class VersionFile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hash_prop, as: 'hash'
property :path, as: 'path'
property :status, as: 'status'
end
end
end
end
end

View File

@ -0,0 +1,502 @@
# 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 FirebasehostingV1beta1
# Firebase Hosting API
#
#
#
# @example
# require 'google/apis/firebasehosting_v1beta1'
#
# Firebasehosting = Google::Apis::FirebasehostingV1beta1 # Alias the module
# service = Firebasehosting::FirebaseHostingService.new
#
# @see https://firebase.google.com/docs/hosting/
class FirebaseHostingService < 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://firebasehosting.googleapis.com/', '')
@batch_path = 'batch'
end
# Creates a domain mapping on the specified site.
# @param [String] parent
# Required. The parent to create the domain association for, in the format:
# <code>sites/<var>site-name</var></code>
# @param [Google::Apis::FirebasehostingV1beta1::Domain] domain_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::FirebasehostingV1beta1::Domain] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::Domain]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_site_domain(parent, domain_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/domains', options)
command.request_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
command.request_object = domain_object
command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
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 existing domain mapping on the specified site.
# @param [String] name
# Required. The name of the domain association to delete.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::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_site_domain(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::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 a domain mapping on the specified site.
# @param [String] name
# Required. The name of the domain configuration 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::FirebasehostingV1beta1::Domain] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::Domain]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_domain(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
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 domains for the specified site.
# @param [String] parent
# Required. The parent for which to list domains, in the format:
# <code>sites/<var>site-name</var></code>
# @param [Fixnum] page_size
# The page size to return. Defaults to 50.
# @param [String] page_token
# The next_page_token from a previous request, if provided.
# @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::FirebasehostingV1beta1::ListDomainsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::ListDomainsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_site_domains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/domains', options)
command.response_representation = Google::Apis::FirebasehostingV1beta1::ListDomainsResponse::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::ListDomainsResponse
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 specified domain mapping, creating the mapping as if it does
# not exist.
# @param [String] name
# Required. The name of the domain association to update or create, if an
# association doesn't already exist.
# @param [Google::Apis::FirebasehostingV1beta1::Domain] domain_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::FirebasehostingV1beta1::Domain] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::Domain]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_domain(name, domain_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
command.request_object = domain_object
command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new release which makes the content of the specified version
# actively display on the site.
# @param [String] parent
# The site that the release belongs to, in the format:
# <code>sites/<var>site-name</var></code>
# @param [Google::Apis::FirebasehostingV1beta1::Release] release_object
# @param [String] version_name
# The unique identifier for a version, in the format:
# <code>/sites/<var>site-name</var>/versions/<var>versionID</var></code>
# The <var>site-name</var> in this version identifier must match the
# <var>site-name</var> in the `parent` parameter.
# <br>
# <br>This query parameter must be empty if the `type` field in the
# request body is `SITE_DISABLE`.
# @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::FirebasehostingV1beta1::Release] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::Release]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_site_release(parent, release_object = nil, version_name: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/releases', options)
command.request_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
command.request_object = release_object
command.response_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::Release
command.params['parent'] = parent unless parent.nil?
command.query['versionName'] = version_name unless version_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 releases that have been created on the specified site.
# @param [String] parent
# Required. The parent for which to list files, in the format:
# <code>sites/<var>site-name</var></code>
# @param [Fixnum] page_size
# The page size to return. Defaults to 100.
# @param [String] page_token
# The next_page_token from a previous request, if provided.
# @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::FirebasehostingV1beta1::ListReleasesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_site_releases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/releases', options)
command.response_representation = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse
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 version for a site.
# @param [String] parent
# Required. The parent to create the version for, in the format:
# <code>sites/<var>site-name</var></code>
# @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
# @param [Fixnum] size_bytes
# The self-reported size of the version. This value is used for a pre-emptive
# quota check for legacy version uploads.
# @param [String] version_id
# A unique id for the new version. This is only specified for legacy version
# creations.
# @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::FirebasehostingV1beta1::Version] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::Version]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_site_version(parent, version_object = nil, size_bytes: nil, version_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/versions', options)
command.request_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
command.request_object = version_object
command.response_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::Version
command.params['parent'] = parent unless parent.nil?
command.query['sizeBytes'] = size_bytes unless size_bytes.nil?
command.query['versionId'] = version_id unless version_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified version.
# @param [String] name
# Required. The name of the version to be deleted, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# @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::FirebasehostingV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::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_site_version(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::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
# Updates the specified metadata for a version. Note that this method will
# fail with `FAILED_PRECONDITION` in the event of an invalid state
# transition. The only valid transition for a version is currently from a
# `CREATED` status to a `FINALIZED` status.
# Use [`DeleteVersion`](../sites.versions/delete) to set the status of a
# version to `DELETED`.
# @param [String] name
# The unique identifier for a version, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# This name is provided in the response body when you call the
# [`CreateVersion`](../sites.versions/create) endpoint.
# @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
# @param [String] update_mask
# A set of field names from your [version](../sites.versions) that you want
# to update.
# <br>A field will be overwritten if, and only if, it's in the mask.
# <br>If a mask is not provided then a default mask of only
# [`status`](../sites.versions#Version.FIELDS.status) will be used.
# @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::FirebasehostingV1beta1::Version] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::Version]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_version(name, version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
command.request_object = version_object
command.response_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::Version
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
# Adds content files to a version.
# @param [String] parent
# Required. The version to add files to, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# @param [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesRequest] populate_version_files_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::FirebasehostingV1beta1::PopulateVersionFilesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def populate_site_version_files(parent, populate_version_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}:populateFiles', options)
command.request_representation = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesRequest::Representation
command.request_object = populate_version_files_request_object
command.response_representation = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse
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
# Lists the remaining files to be uploaded for the specified version.
# @param [String] parent
# Required. The parent to list files for, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# @param [Fixnum] page_size
# The page size to return. Defaults to 1000.
# @param [String] page_token
# The next_page_token from a previous request, if provided. This will be the
# encoded version of a firebase.hosting.proto.metadata.ListFilesPageToken.
# @param [String] status
# The type of files in the version that should be listed.
# @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::FirebasehostingV1beta1::ListVersionFilesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_site_version_files(parent, page_size: nil, page_token: nil, status: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/files', options)
command.response_representation = Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse::Representation
command.response_class = Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse
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['status'] = status unless status.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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/beacons/proximity/ # @see https://developers.google.com/beacons/proximity/
module ProximitybeaconV1beta1 module ProximitybeaconV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20180909' REVISION = '20181008'
# View and modify your beacons # View and modify your beacons
AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry' AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'

View File

@ -324,24 +324,26 @@ module Google
end end
end end
# Represents a whole calendar date, for example date of birth. The time of day # Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date # and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day can be 0 to # is relative to the Proleptic Gregorian Calendar. This can represent:
# represent a year and month where the day is not significant, for example # * A full date, with non-zero year, month and day values
# credit card expiration date. The year can be 0 to represent a month and day # * A month and day value, with a zero year, e.g. an anniversary
# independent of year, for example anniversary date. Related types are # * A year on its own, with zero month and day values
# google.type.TimeOfDay and `google.protobuf.Timestamp`. # * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
class Date class Date
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
# if specifying a year/month where the day is not significant. # if specifying a year by itself or a year and month where the day is not
# significant.
# Corresponds to the JSON property `day` # Corresponds to the JSON property `day`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :day attr_accessor :day
# Month of year. Must be from 1 to 12, or 0 if specifying a date without a # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
# month. # month and day.
# Corresponds to the JSON property `month` # Corresponds to the JSON property `month`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :month attr_accessor :month
@ -398,13 +400,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :beacon_name attr_accessor :beacon_name
# Represents a whole calendar date, for example date of birth. The time of day # Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date # and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day can be 0 to # is relative to the Proleptic Gregorian Calendar. This can represent:
# represent a year and month where the day is not significant, for example # * A full date, with non-zero year, month and day values
# credit card expiration date. The year can be 0 to represent a month and day # * A month and day value, with a zero year, e.g. an anniversary
# independent of year, for example anniversary date. Related types are # * A year on its own, with zero month and day values
# google.type.TimeOfDay and `google.protobuf.Timestamp`. # * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `estimatedLowBatteryDate` # Corresponds to the JSON property `estimatedLowBatteryDate`
# @return [Google::Apis::ProximitybeaconV1beta1::Date] # @return [Google::Apis::ProximitybeaconV1beta1::Date]
attr_accessor :estimated_low_battery_date attr_accessor :estimated_low_battery_date