diff --git a/api_names_out.yaml b/api_names_out.yaml index f63ac388d..7b7b37338 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -3346,6 +3346,23 @@ "/admin:directory_v1/CustomerPostalAddress/organizationName": organization_name "/admin:directory_v1/CustomerPostalAddress/postalCode": postal_code "/admin:directory_v1/CustomerPostalAddress/region": region +"/admin:directory_v1/DirectoryChromeosdevicesCommand": directory_chromeosdevices_command +"/admin:directory_v1/DirectoryChromeosdevicesCommand/commandExpireTime": command_expire_time +"/admin:directory_v1/DirectoryChromeosdevicesCommand/commandId": command_id +"/admin:directory_v1/DirectoryChromeosdevicesCommand/commandResult": command_result +"/admin:directory_v1/DirectoryChromeosdevicesCommand/issueTime": issue_time +"/admin:directory_v1/DirectoryChromeosdevicesCommand/payload": payload +"/admin:directory_v1/DirectoryChromeosdevicesCommand/state": state +"/admin:directory_v1/DirectoryChromeosdevicesCommand/type": type +"/admin:directory_v1/DirectoryChromeosdevicesCommandResult": directory_chromeosdevices_command_result +"/admin:directory_v1/DirectoryChromeosdevicesCommandResult/errorMessage": error_message +"/admin:directory_v1/DirectoryChromeosdevicesCommandResult/executeTime": execute_time +"/admin:directory_v1/DirectoryChromeosdevicesCommandResult/result": result +"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandRequest": directory_chromeosdevices_issue_command_request +"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandRequest/commandType": command_type +"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandRequest/payload": payload +"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandResponse": directory_chromeosdevices_issue_command_response +"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandResponse/commandId": command_id "/admin:directory_v1/DomainAlias": domain_alias "/admin:directory_v1/DomainAlias/creationTime": creation_time "/admin:directory_v1/DomainAlias/domainAliasName": domain_alias_name @@ -3792,6 +3809,13 @@ "/admin:directory_v1/VerificationCodes/items/item": item "/admin:directory_v1/VerificationCodes/kind": kind "/admin:directory_v1/admin.channels.stop": stop_channel +"/admin:directory_v1/admin.customer.devices.chromeos.commands.get": get_customer_device_chromeo_command +"/admin:directory_v1/admin.customer.devices.chromeos.commands.get/commandId": command_id +"/admin:directory_v1/admin.customer.devices.chromeos.commands.get/customerId": customer_id +"/admin:directory_v1/admin.customer.devices.chromeos.commands.get/deviceId": device_id +"/admin:directory_v1/admin.customer.devices.chromeos.issueCommand": issue_customer_device_chromeo_command +"/admin:directory_v1/admin.customer.devices.chromeos.issueCommand/customerId": customer_id +"/admin:directory_v1/admin.customer.devices.chromeos.issueCommand/deviceId": device_id "/admin:directory_v1/directory.asps.delete": delete_asp "/admin:directory_v1/directory.asps.delete/codeId": code_id "/admin:directory_v1/directory.asps.delete/userKey": user_key @@ -96070,6 +96094,492 @@ "/documentai:v1beta3/fields": fields "/documentai:v1beta3/key": key "/documentai:v1beta3/quotaUser": quota_user +"/domains:v1alpha2/AuditConfig": audit_config +"/domains:v1alpha2/AuditConfig/auditLogConfigs": audit_log_configs +"/domains:v1alpha2/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config +"/domains:v1alpha2/AuditConfig/service": service +"/domains:v1alpha2/AuditLogConfig": audit_log_config +"/domains:v1alpha2/AuditLogConfig/exemptedMembers": exempted_members +"/domains:v1alpha2/AuditLogConfig/exemptedMembers/exempted_member": exempted_member +"/domains:v1alpha2/AuditLogConfig/logType": log_type +"/domains:v1alpha2/AuthorizationCode": authorization_code +"/domains:v1alpha2/AuthorizationCode/code": code +"/domains:v1alpha2/Binding": binding +"/domains:v1alpha2/Binding/condition": condition +"/domains:v1alpha2/Binding/members": members +"/domains:v1alpha2/Binding/members/member": member +"/domains:v1alpha2/Binding/role": role +"/domains:v1alpha2/ConfigureContactSettingsRequest": configure_contact_settings_request +"/domains:v1alpha2/ConfigureContactSettingsRequest/contactNotices": contact_notices +"/domains:v1alpha2/ConfigureContactSettingsRequest/contactNotices/contact_notice": contact_notice +"/domains:v1alpha2/ConfigureContactSettingsRequest/contactSettings": contact_settings +"/domains:v1alpha2/ConfigureContactSettingsRequest/updateMask": update_mask +"/domains:v1alpha2/ConfigureContactSettingsRequest/validateOnly": validate_only +"/domains:v1alpha2/ConfigureDnsSettingsRequest": configure_dns_settings_request +"/domains:v1alpha2/ConfigureDnsSettingsRequest/dnsSettings": dns_settings +"/domains:v1alpha2/ConfigureDnsSettingsRequest/updateMask": update_mask +"/domains:v1alpha2/ConfigureDnsSettingsRequest/validateOnly": validate_only +"/domains:v1alpha2/ConfigureManagementSettingsRequest": configure_management_settings_request +"/domains:v1alpha2/ConfigureManagementSettingsRequest/managementSettings": management_settings +"/domains:v1alpha2/ConfigureManagementSettingsRequest/updateMask": update_mask +"/domains:v1alpha2/Contact": contact +"/domains:v1alpha2/Contact/email": email +"/domains:v1alpha2/Contact/faxNumber": fax_number +"/domains:v1alpha2/Contact/phoneNumber": phone_number +"/domains:v1alpha2/Contact/postalAddress": postal_address +"/domains:v1alpha2/ContactSettings": contact_settings +"/domains:v1alpha2/ContactSettings/adminContact": admin_contact +"/domains:v1alpha2/ContactSettings/privacy": privacy +"/domains:v1alpha2/ContactSettings/registrantContact": registrant_contact +"/domains:v1alpha2/ContactSettings/technicalContact": technical_contact +"/domains:v1alpha2/CustomDns": custom_dns +"/domains:v1alpha2/CustomDns/dsRecords": ds_records +"/domains:v1alpha2/CustomDns/dsRecords/ds_record": ds_record +"/domains:v1alpha2/CustomDns/nameServers": name_servers +"/domains:v1alpha2/CustomDns/nameServers/name_server": name_server +"/domains:v1alpha2/DnsSettings": dns_settings +"/domains:v1alpha2/DnsSettings/customDns": custom_dns +"/domains:v1alpha2/DnsSettings/glueRecords": glue_records +"/domains:v1alpha2/DnsSettings/glueRecords/glue_record": glue_record +"/domains:v1alpha2/DnsSettings/googleDomainsDns": google_domains_dns +"/domains:v1alpha2/DsRecord": ds_record +"/domains:v1alpha2/DsRecord/algorithm": algorithm +"/domains:v1alpha2/DsRecord/digest": digest +"/domains:v1alpha2/DsRecord/digestType": digest_type +"/domains:v1alpha2/DsRecord/keyTag": key_tag +"/domains:v1alpha2/ExportRegistrationRequest": export_registration_request +"/domains:v1alpha2/Expr": expr +"/domains:v1alpha2/Expr/description": description +"/domains:v1alpha2/Expr/expression": expression +"/domains:v1alpha2/Expr/location": location +"/domains:v1alpha2/Expr/title": title +"/domains:v1alpha2/GlueRecord": glue_record +"/domains:v1alpha2/GlueRecord/hostName": host_name +"/domains:v1alpha2/GlueRecord/ipv4Addresses": ipv4_addresses +"/domains:v1alpha2/GlueRecord/ipv4Addresses/ipv4_address": ipv4_address +"/domains:v1alpha2/GlueRecord/ipv6Addresses": ipv6_addresses +"/domains:v1alpha2/GlueRecord/ipv6Addresses/ipv6_address": ipv6_address +"/domains:v1alpha2/GoogleDomainsDns": google_domains_dns +"/domains:v1alpha2/GoogleDomainsDns/dsRecords": ds_records +"/domains:v1alpha2/GoogleDomainsDns/dsRecords/ds_record": ds_record +"/domains:v1alpha2/GoogleDomainsDns/dsState": ds_state +"/domains:v1alpha2/GoogleDomainsDns/nameServers": name_servers +"/domains:v1alpha2/GoogleDomainsDns/nameServers/name_server": name_server +"/domains:v1alpha2/ListLocationsResponse": list_locations_response +"/domains:v1alpha2/ListLocationsResponse/locations": locations +"/domains:v1alpha2/ListLocationsResponse/locations/location": location +"/domains:v1alpha2/ListLocationsResponse/nextPageToken": next_page_token +"/domains:v1alpha2/ListOperationsResponse": list_operations_response +"/domains:v1alpha2/ListOperationsResponse/nextPageToken": next_page_token +"/domains:v1alpha2/ListOperationsResponse/operations": operations +"/domains:v1alpha2/ListOperationsResponse/operations/operation": operation +"/domains:v1alpha2/ListRegistrationsResponse": list_registrations_response +"/domains:v1alpha2/ListRegistrationsResponse/nextPageToken": next_page_token +"/domains:v1alpha2/ListRegistrationsResponse/registrations": registrations +"/domains:v1alpha2/ListRegistrationsResponse/registrations/registration": registration +"/domains:v1alpha2/Location": location +"/domains:v1alpha2/Location/displayName": display_name +"/domains:v1alpha2/Location/labels": labels +"/domains:v1alpha2/Location/labels/label": label +"/domains:v1alpha2/Location/locationId": location_id +"/domains:v1alpha2/Location/metadata": metadata +"/domains:v1alpha2/Location/metadata/metadatum": metadatum +"/domains:v1alpha2/Location/name": name +"/domains:v1alpha2/ManagementSettings": management_settings +"/domains:v1alpha2/ManagementSettings/renewalMethod": renewal_method +"/domains:v1alpha2/ManagementSettings/transferLockState": transfer_lock_state +"/domains:v1alpha2/Money": money +"/domains:v1alpha2/Money/currencyCode": currency_code +"/domains:v1alpha2/Money/nanos": nanos +"/domains:v1alpha2/Money/units": units +"/domains:v1alpha2/Operation": operation +"/domains:v1alpha2/Operation/done": done +"/domains:v1alpha2/Operation/error": error +"/domains:v1alpha2/Operation/metadata": metadata +"/domains:v1alpha2/Operation/metadata/metadatum": metadatum +"/domains:v1alpha2/Operation/name": name +"/domains:v1alpha2/Operation/response": response +"/domains:v1alpha2/Operation/response/response": response +"/domains:v1alpha2/OperationMetadata": operation_metadata +"/domains:v1alpha2/OperationMetadata/apiVersion": api_version +"/domains:v1alpha2/OperationMetadata/createTime": create_time +"/domains:v1alpha2/OperationMetadata/endTime": end_time +"/domains:v1alpha2/OperationMetadata/statusDetail": status_detail +"/domains:v1alpha2/OperationMetadata/target": target +"/domains:v1alpha2/OperationMetadata/verb": verb +"/domains:v1alpha2/Policy": policy +"/domains:v1alpha2/Policy/auditConfigs": audit_configs +"/domains:v1alpha2/Policy/auditConfigs/audit_config": audit_config +"/domains:v1alpha2/Policy/bindings": bindings +"/domains:v1alpha2/Policy/bindings/binding": binding +"/domains:v1alpha2/Policy/etag": etag +"/domains:v1alpha2/Policy/version": version +"/domains:v1alpha2/PostalAddress": postal_address +"/domains:v1alpha2/PostalAddress/addressLines": address_lines +"/domains:v1alpha2/PostalAddress/addressLines/address_line": address_line +"/domains:v1alpha2/PostalAddress/administrativeArea": administrative_area +"/domains:v1alpha2/PostalAddress/languageCode": language_code +"/domains:v1alpha2/PostalAddress/locality": locality +"/domains:v1alpha2/PostalAddress/organization": organization +"/domains:v1alpha2/PostalAddress/postalCode": postal_code +"/domains:v1alpha2/PostalAddress/recipients": recipients +"/domains:v1alpha2/PostalAddress/recipients/recipient": recipient +"/domains:v1alpha2/PostalAddress/regionCode": region_code +"/domains:v1alpha2/PostalAddress/revision": revision +"/domains:v1alpha2/PostalAddress/sortingCode": sorting_code +"/domains:v1alpha2/PostalAddress/sublocality": sublocality +"/domains:v1alpha2/RegisterDomainRequest": register_domain_request +"/domains:v1alpha2/RegisterDomainRequest/contactNotices": contact_notices +"/domains:v1alpha2/RegisterDomainRequest/contactNotices/contact_notice": contact_notice +"/domains:v1alpha2/RegisterDomainRequest/domainNotices": domain_notices +"/domains:v1alpha2/RegisterDomainRequest/domainNotices/domain_notice": domain_notice +"/domains:v1alpha2/RegisterDomainRequest/registration": registration +"/domains:v1alpha2/RegisterDomainRequest/validateOnly": validate_only +"/domains:v1alpha2/RegisterDomainRequest/yearlyPrice": yearly_price +"/domains:v1alpha2/RegisterParameters": register_parameters +"/domains:v1alpha2/RegisterParameters/availability": availability +"/domains:v1alpha2/RegisterParameters/domainName": domain_name +"/domains:v1alpha2/RegisterParameters/domainNotices": domain_notices +"/domains:v1alpha2/RegisterParameters/domainNotices/domain_notice": domain_notice +"/domains:v1alpha2/RegisterParameters/supportedPrivacy": supported_privacy +"/domains:v1alpha2/RegisterParameters/supportedPrivacy/supported_privacy": supported_privacy +"/domains:v1alpha2/RegisterParameters/yearlyPrice": yearly_price +"/domains:v1alpha2/Registration": registration +"/domains:v1alpha2/Registration/contactSettings": contact_settings +"/domains:v1alpha2/Registration/createTime": create_time +"/domains:v1alpha2/Registration/dnsSettings": dns_settings +"/domains:v1alpha2/Registration/domainName": domain_name +"/domains:v1alpha2/Registration/expireTime": expire_time +"/domains:v1alpha2/Registration/issues": issues +"/domains:v1alpha2/Registration/issues/issue": issue +"/domains:v1alpha2/Registration/labels": labels +"/domains:v1alpha2/Registration/labels/label": label +"/domains:v1alpha2/Registration/managementSettings": management_settings +"/domains:v1alpha2/Registration/name": name +"/domains:v1alpha2/Registration/pendingContactSettings": pending_contact_settings +"/domains:v1alpha2/Registration/state": state +"/domains:v1alpha2/Registration/supportedPrivacy": supported_privacy +"/domains:v1alpha2/Registration/supportedPrivacy/supported_privacy": supported_privacy +"/domains:v1alpha2/ResetAuthorizationCodeRequest": reset_authorization_code_request +"/domains:v1alpha2/RetrieveRegisterParametersResponse": retrieve_register_parameters_response +"/domains:v1alpha2/RetrieveRegisterParametersResponse/registerParameters": register_parameters +"/domains:v1alpha2/SearchDomainsResponse": search_domains_response +"/domains:v1alpha2/SearchDomainsResponse/registerParameters": register_parameters +"/domains:v1alpha2/SearchDomainsResponse/registerParameters/register_parameter": register_parameter +"/domains:v1alpha2/SetIamPolicyRequest": set_iam_policy_request +"/domains:v1alpha2/SetIamPolicyRequest/policy": policy +"/domains:v1alpha2/SetIamPolicyRequest/updateMask": update_mask +"/domains:v1alpha2/Status": status +"/domains:v1alpha2/Status/code": code +"/domains:v1alpha2/Status/details": details +"/domains:v1alpha2/Status/details/detail": detail +"/domains:v1alpha2/Status/details/detail/detail": detail +"/domains:v1alpha2/Status/message": message +"/domains:v1alpha2/TestIamPermissionsRequest": test_iam_permissions_request +"/domains:v1alpha2/TestIamPermissionsRequest/permissions": permissions +"/domains:v1alpha2/TestIamPermissionsRequest/permissions/permission": permission +"/domains:v1alpha2/TestIamPermissionsResponse": test_iam_permissions_response +"/domains:v1alpha2/TestIamPermissionsResponse/permissions": permissions +"/domains:v1alpha2/TestIamPermissionsResponse/permissions/permission": permission +"/domains:v1alpha2/domains.projects.locations.get": get_project_location +"/domains:v1alpha2/domains.projects.locations.get/name": name +"/domains:v1alpha2/domains.projects.locations.list": list_project_locations +"/domains:v1alpha2/domains.projects.locations.list/filter": filter +"/domains:v1alpha2/domains.projects.locations.list/name": name +"/domains:v1alpha2/domains.projects.locations.list/pageSize": page_size +"/domains:v1alpha2/domains.projects.locations.list/pageToken": page_token +"/domains:v1alpha2/domains.projects.locations.operations.get": get_project_location_operation +"/domains:v1alpha2/domains.projects.locations.operations.get/name": name +"/domains:v1alpha2/domains.projects.locations.operations.list": list_project_location_operations +"/domains:v1alpha2/domains.projects.locations.operations.list/filter": filter +"/domains:v1alpha2/domains.projects.locations.operations.list/name": name +"/domains:v1alpha2/domains.projects.locations.operations.list/pageSize": page_size +"/domains:v1alpha2/domains.projects.locations.operations.list/pageToken": page_token +"/domains:v1alpha2/domains.projects.locations.registrations.configureContactSettings": configure_registration_contact_settings +"/domains:v1alpha2/domains.projects.locations.registrations.configureContactSettings/registration": registration +"/domains:v1alpha2/domains.projects.locations.registrations.configureDnsSettings": configure_registration_dns_settings +"/domains:v1alpha2/domains.projects.locations.registrations.configureDnsSettings/registration": registration +"/domains:v1alpha2/domains.projects.locations.registrations.configureManagementSettings": configure_registration_management_settings +"/domains:v1alpha2/domains.projects.locations.registrations.configureManagementSettings/registration": registration +"/domains:v1alpha2/domains.projects.locations.registrations.delete": delete_project_location_registration +"/domains:v1alpha2/domains.projects.locations.registrations.delete/name": name +"/domains:v1alpha2/domains.projects.locations.registrations.export": export_registration +"/domains:v1alpha2/domains.projects.locations.registrations.export/name": name +"/domains:v1alpha2/domains.projects.locations.registrations.get": get_project_location_registration +"/domains:v1alpha2/domains.projects.locations.registrations.get/name": name +"/domains:v1alpha2/domains.projects.locations.registrations.getIamPolicy": get_project_location_registration_iam_policy +"/domains:v1alpha2/domains.projects.locations.registrations.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version +"/domains:v1alpha2/domains.projects.locations.registrations.getIamPolicy/resource": resource +"/domains:v1alpha2/domains.projects.locations.registrations.list": list_project_location_registrations +"/domains:v1alpha2/domains.projects.locations.registrations.list/filter": filter +"/domains:v1alpha2/domains.projects.locations.registrations.list/pageSize": page_size +"/domains:v1alpha2/domains.projects.locations.registrations.list/pageToken": page_token +"/domains:v1alpha2/domains.projects.locations.registrations.list/parent": parent +"/domains:v1alpha2/domains.projects.locations.registrations.patch": patch_project_location_registration +"/domains:v1alpha2/domains.projects.locations.registrations.patch/name": name +"/domains:v1alpha2/domains.projects.locations.registrations.patch/updateMask": update_mask +"/domains:v1alpha2/domains.projects.locations.registrations.register": register_registration_domain +"/domains:v1alpha2/domains.projects.locations.registrations.register/parent": parent +"/domains:v1alpha2/domains.projects.locations.registrations.resetAuthorizationCode": reset_registration_authorization_code +"/domains:v1alpha2/domains.projects.locations.registrations.resetAuthorizationCode/registration": registration +"/domains:v1alpha2/domains.projects.locations.registrations.retrieveAuthorizationCode": retrieve_project_location_registration_authorization_code +"/domains:v1alpha2/domains.projects.locations.registrations.retrieveAuthorizationCode/registration": registration +"/domains:v1alpha2/domains.projects.locations.registrations.retrieveRegisterParameters": retrieve_project_location_registration_register_parameters +"/domains:v1alpha2/domains.projects.locations.registrations.retrieveRegisterParameters/domainName": domain_name +"/domains:v1alpha2/domains.projects.locations.registrations.retrieveRegisterParameters/location": location +"/domains:v1alpha2/domains.projects.locations.registrations.searchDomains": search_project_location_registration_domains +"/domains:v1alpha2/domains.projects.locations.registrations.searchDomains/location": location +"/domains:v1alpha2/domains.projects.locations.registrations.searchDomains/query": query +"/domains:v1alpha2/domains.projects.locations.registrations.setIamPolicy": set_registration_iam_policy +"/domains:v1alpha2/domains.projects.locations.registrations.setIamPolicy/resource": resource +"/domains:v1alpha2/domains.projects.locations.registrations.testIamPermissions": test_registration_iam_permissions +"/domains:v1alpha2/domains.projects.locations.registrations.testIamPermissions/resource": resource +"/domains:v1alpha2/fields": fields +"/domains:v1alpha2/key": key +"/domains:v1alpha2/quotaUser": quota_user +"/domains:v1beta1/AuditConfig": audit_config +"/domains:v1beta1/AuditConfig/auditLogConfigs": audit_log_configs +"/domains:v1beta1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config +"/domains:v1beta1/AuditConfig/service": service +"/domains:v1beta1/AuditLogConfig": audit_log_config +"/domains:v1beta1/AuditLogConfig/exemptedMembers": exempted_members +"/domains:v1beta1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member +"/domains:v1beta1/AuditLogConfig/logType": log_type +"/domains:v1beta1/AuthorizationCode": authorization_code +"/domains:v1beta1/AuthorizationCode/code": code +"/domains:v1beta1/Binding": binding +"/domains:v1beta1/Binding/condition": condition +"/domains:v1beta1/Binding/members": members +"/domains:v1beta1/Binding/members/member": member +"/domains:v1beta1/Binding/role": role +"/domains:v1beta1/ConfigureContactSettingsRequest": configure_contact_settings_request +"/domains:v1beta1/ConfigureContactSettingsRequest/contactNotices": contact_notices +"/domains:v1beta1/ConfigureContactSettingsRequest/contactNotices/contact_notice": contact_notice +"/domains:v1beta1/ConfigureContactSettingsRequest/contactSettings": contact_settings +"/domains:v1beta1/ConfigureContactSettingsRequest/updateMask": update_mask +"/domains:v1beta1/ConfigureContactSettingsRequest/validateOnly": validate_only +"/domains:v1beta1/ConfigureDnsSettingsRequest": configure_dns_settings_request +"/domains:v1beta1/ConfigureDnsSettingsRequest/dnsSettings": dns_settings +"/domains:v1beta1/ConfigureDnsSettingsRequest/updateMask": update_mask +"/domains:v1beta1/ConfigureDnsSettingsRequest/validateOnly": validate_only +"/domains:v1beta1/ConfigureManagementSettingsRequest": configure_management_settings_request +"/domains:v1beta1/ConfigureManagementSettingsRequest/managementSettings": management_settings +"/domains:v1beta1/ConfigureManagementSettingsRequest/updateMask": update_mask +"/domains:v1beta1/Contact": contact +"/domains:v1beta1/Contact/email": email +"/domains:v1beta1/Contact/faxNumber": fax_number +"/domains:v1beta1/Contact/phoneNumber": phone_number +"/domains:v1beta1/Contact/postalAddress": postal_address +"/domains:v1beta1/ContactSettings": contact_settings +"/domains:v1beta1/ContactSettings/adminContact": admin_contact +"/domains:v1beta1/ContactSettings/privacy": privacy +"/domains:v1beta1/ContactSettings/registrantContact": registrant_contact +"/domains:v1beta1/ContactSettings/technicalContact": technical_contact +"/domains:v1beta1/CustomDns": custom_dns +"/domains:v1beta1/CustomDns/dsRecords": ds_records +"/domains:v1beta1/CustomDns/dsRecords/ds_record": ds_record +"/domains:v1beta1/CustomDns/nameServers": name_servers +"/domains:v1beta1/CustomDns/nameServers/name_server": name_server +"/domains:v1beta1/DnsSettings": dns_settings +"/domains:v1beta1/DnsSettings/customDns": custom_dns +"/domains:v1beta1/DnsSettings/glueRecords": glue_records +"/domains:v1beta1/DnsSettings/glueRecords/glue_record": glue_record +"/domains:v1beta1/DnsSettings/googleDomainsDns": google_domains_dns +"/domains:v1beta1/DsRecord": ds_record +"/domains:v1beta1/DsRecord/algorithm": algorithm +"/domains:v1beta1/DsRecord/digest": digest +"/domains:v1beta1/DsRecord/digestType": digest_type +"/domains:v1beta1/DsRecord/keyTag": key_tag +"/domains:v1beta1/ExportRegistrationRequest": export_registration_request +"/domains:v1beta1/Expr": expr +"/domains:v1beta1/Expr/description": description +"/domains:v1beta1/Expr/expression": expression +"/domains:v1beta1/Expr/location": location +"/domains:v1beta1/Expr/title": title +"/domains:v1beta1/GlueRecord": glue_record +"/domains:v1beta1/GlueRecord/hostName": host_name +"/domains:v1beta1/GlueRecord/ipv4Addresses": ipv4_addresses +"/domains:v1beta1/GlueRecord/ipv4Addresses/ipv4_address": ipv4_address +"/domains:v1beta1/GlueRecord/ipv6Addresses": ipv6_addresses +"/domains:v1beta1/GlueRecord/ipv6Addresses/ipv6_address": ipv6_address +"/domains:v1beta1/GoogleDomainsDns": google_domains_dns +"/domains:v1beta1/GoogleDomainsDns/dsRecords": ds_records +"/domains:v1beta1/GoogleDomainsDns/dsRecords/ds_record": ds_record +"/domains:v1beta1/GoogleDomainsDns/dsState": ds_state +"/domains:v1beta1/GoogleDomainsDns/nameServers": name_servers +"/domains:v1beta1/GoogleDomainsDns/nameServers/name_server": name_server +"/domains:v1beta1/ListLocationsResponse": list_locations_response +"/domains:v1beta1/ListLocationsResponse/locations": locations +"/domains:v1beta1/ListLocationsResponse/locations/location": location +"/domains:v1beta1/ListLocationsResponse/nextPageToken": next_page_token +"/domains:v1beta1/ListOperationsResponse": list_operations_response +"/domains:v1beta1/ListOperationsResponse/nextPageToken": next_page_token +"/domains:v1beta1/ListOperationsResponse/operations": operations +"/domains:v1beta1/ListOperationsResponse/operations/operation": operation +"/domains:v1beta1/ListRegistrationsResponse": list_registrations_response +"/domains:v1beta1/ListRegistrationsResponse/nextPageToken": next_page_token +"/domains:v1beta1/ListRegistrationsResponse/registrations": registrations +"/domains:v1beta1/ListRegistrationsResponse/registrations/registration": registration +"/domains:v1beta1/Location": location +"/domains:v1beta1/Location/displayName": display_name +"/domains:v1beta1/Location/labels": labels +"/domains:v1beta1/Location/labels/label": label +"/domains:v1beta1/Location/locationId": location_id +"/domains:v1beta1/Location/metadata": metadata +"/domains:v1beta1/Location/metadata/metadatum": metadatum +"/domains:v1beta1/Location/name": name +"/domains:v1beta1/ManagementSettings": management_settings +"/domains:v1beta1/ManagementSettings/renewalMethod": renewal_method +"/domains:v1beta1/ManagementSettings/transferLockState": transfer_lock_state +"/domains:v1beta1/Money": money +"/domains:v1beta1/Money/currencyCode": currency_code +"/domains:v1beta1/Money/nanos": nanos +"/domains:v1beta1/Money/units": units +"/domains:v1beta1/Operation": operation +"/domains:v1beta1/Operation/done": done +"/domains:v1beta1/Operation/error": error +"/domains:v1beta1/Operation/metadata": metadata +"/domains:v1beta1/Operation/metadata/metadatum": metadatum +"/domains:v1beta1/Operation/name": name +"/domains:v1beta1/Operation/response": response +"/domains:v1beta1/Operation/response/response": response +"/domains:v1beta1/OperationMetadata": operation_metadata +"/domains:v1beta1/OperationMetadata/apiVersion": api_version +"/domains:v1beta1/OperationMetadata/createTime": create_time +"/domains:v1beta1/OperationMetadata/endTime": end_time +"/domains:v1beta1/OperationMetadata/statusDetail": status_detail +"/domains:v1beta1/OperationMetadata/target": target +"/domains:v1beta1/OperationMetadata/verb": verb +"/domains:v1beta1/Policy": policy +"/domains:v1beta1/Policy/auditConfigs": audit_configs +"/domains:v1beta1/Policy/auditConfigs/audit_config": audit_config +"/domains:v1beta1/Policy/bindings": bindings +"/domains:v1beta1/Policy/bindings/binding": binding +"/domains:v1beta1/Policy/etag": etag +"/domains:v1beta1/Policy/version": version +"/domains:v1beta1/PostalAddress": postal_address +"/domains:v1beta1/PostalAddress/addressLines": address_lines +"/domains:v1beta1/PostalAddress/addressLines/address_line": address_line +"/domains:v1beta1/PostalAddress/administrativeArea": administrative_area +"/domains:v1beta1/PostalAddress/languageCode": language_code +"/domains:v1beta1/PostalAddress/locality": locality +"/domains:v1beta1/PostalAddress/organization": organization +"/domains:v1beta1/PostalAddress/postalCode": postal_code +"/domains:v1beta1/PostalAddress/recipients": recipients +"/domains:v1beta1/PostalAddress/recipients/recipient": recipient +"/domains:v1beta1/PostalAddress/regionCode": region_code +"/domains:v1beta1/PostalAddress/revision": revision +"/domains:v1beta1/PostalAddress/sortingCode": sorting_code +"/domains:v1beta1/PostalAddress/sublocality": sublocality +"/domains:v1beta1/RegisterDomainRequest": register_domain_request +"/domains:v1beta1/RegisterDomainRequest/contactNotices": contact_notices +"/domains:v1beta1/RegisterDomainRequest/contactNotices/contact_notice": contact_notice +"/domains:v1beta1/RegisterDomainRequest/domainNotices": domain_notices +"/domains:v1beta1/RegisterDomainRequest/domainNotices/domain_notice": domain_notice +"/domains:v1beta1/RegisterDomainRequest/registration": registration +"/domains:v1beta1/RegisterDomainRequest/validateOnly": validate_only +"/domains:v1beta1/RegisterDomainRequest/yearlyPrice": yearly_price +"/domains:v1beta1/RegisterParameters": register_parameters +"/domains:v1beta1/RegisterParameters/availability": availability +"/domains:v1beta1/RegisterParameters/domainName": domain_name +"/domains:v1beta1/RegisterParameters/domainNotices": domain_notices +"/domains:v1beta1/RegisterParameters/domainNotices/domain_notice": domain_notice +"/domains:v1beta1/RegisterParameters/supportedPrivacy": supported_privacy +"/domains:v1beta1/RegisterParameters/supportedPrivacy/supported_privacy": supported_privacy +"/domains:v1beta1/RegisterParameters/yearlyPrice": yearly_price +"/domains:v1beta1/Registration": registration +"/domains:v1beta1/Registration/contactSettings": contact_settings +"/domains:v1beta1/Registration/createTime": create_time +"/domains:v1beta1/Registration/dnsSettings": dns_settings +"/domains:v1beta1/Registration/domainName": domain_name +"/domains:v1beta1/Registration/expireTime": expire_time +"/domains:v1beta1/Registration/issues": issues +"/domains:v1beta1/Registration/issues/issue": issue +"/domains:v1beta1/Registration/labels": labels +"/domains:v1beta1/Registration/labels/label": label +"/domains:v1beta1/Registration/managementSettings": management_settings +"/domains:v1beta1/Registration/name": name +"/domains:v1beta1/Registration/pendingContactSettings": pending_contact_settings +"/domains:v1beta1/Registration/state": state +"/domains:v1beta1/Registration/supportedPrivacy": supported_privacy +"/domains:v1beta1/Registration/supportedPrivacy/supported_privacy": supported_privacy +"/domains:v1beta1/ResetAuthorizationCodeRequest": reset_authorization_code_request +"/domains:v1beta1/RetrieveRegisterParametersResponse": retrieve_register_parameters_response +"/domains:v1beta1/RetrieveRegisterParametersResponse/registerParameters": register_parameters +"/domains:v1beta1/SearchDomainsResponse": search_domains_response +"/domains:v1beta1/SearchDomainsResponse/registerParameters": register_parameters +"/domains:v1beta1/SearchDomainsResponse/registerParameters/register_parameter": register_parameter +"/domains:v1beta1/SetIamPolicyRequest": set_iam_policy_request +"/domains:v1beta1/SetIamPolicyRequest/policy": policy +"/domains:v1beta1/SetIamPolicyRequest/updateMask": update_mask +"/domains:v1beta1/Status": status +"/domains:v1beta1/Status/code": code +"/domains:v1beta1/Status/details": details +"/domains:v1beta1/Status/details/detail": detail +"/domains:v1beta1/Status/details/detail/detail": detail +"/domains:v1beta1/Status/message": message +"/domains:v1beta1/TestIamPermissionsRequest": test_iam_permissions_request +"/domains:v1beta1/TestIamPermissionsRequest/permissions": permissions +"/domains:v1beta1/TestIamPermissionsRequest/permissions/permission": permission +"/domains:v1beta1/TestIamPermissionsResponse": test_iam_permissions_response +"/domains:v1beta1/TestIamPermissionsResponse/permissions": permissions +"/domains:v1beta1/TestIamPermissionsResponse/permissions/permission": permission +"/domains:v1beta1/domains.projects.locations.get": get_project_location +"/domains:v1beta1/domains.projects.locations.get/name": name +"/domains:v1beta1/domains.projects.locations.list": list_project_locations +"/domains:v1beta1/domains.projects.locations.list/filter": filter +"/domains:v1beta1/domains.projects.locations.list/name": name +"/domains:v1beta1/domains.projects.locations.list/pageSize": page_size +"/domains:v1beta1/domains.projects.locations.list/pageToken": page_token +"/domains:v1beta1/domains.projects.locations.operations.get": get_project_location_operation +"/domains:v1beta1/domains.projects.locations.operations.get/name": name +"/domains:v1beta1/domains.projects.locations.operations.list": list_project_location_operations +"/domains:v1beta1/domains.projects.locations.operations.list/filter": filter +"/domains:v1beta1/domains.projects.locations.operations.list/name": name +"/domains:v1beta1/domains.projects.locations.operations.list/pageSize": page_size +"/domains:v1beta1/domains.projects.locations.operations.list/pageToken": page_token +"/domains:v1beta1/domains.projects.locations.registrations.configureContactSettings": configure_registration_contact_settings +"/domains:v1beta1/domains.projects.locations.registrations.configureContactSettings/registration": registration +"/domains:v1beta1/domains.projects.locations.registrations.configureDnsSettings": configure_registration_dns_settings +"/domains:v1beta1/domains.projects.locations.registrations.configureDnsSettings/registration": registration +"/domains:v1beta1/domains.projects.locations.registrations.configureManagementSettings": configure_registration_management_settings +"/domains:v1beta1/domains.projects.locations.registrations.configureManagementSettings/registration": registration +"/domains:v1beta1/domains.projects.locations.registrations.delete": delete_project_location_registration +"/domains:v1beta1/domains.projects.locations.registrations.delete/name": name +"/domains:v1beta1/domains.projects.locations.registrations.export": export_registration +"/domains:v1beta1/domains.projects.locations.registrations.export/name": name +"/domains:v1beta1/domains.projects.locations.registrations.get": get_project_location_registration +"/domains:v1beta1/domains.projects.locations.registrations.get/name": name +"/domains:v1beta1/domains.projects.locations.registrations.getIamPolicy": get_project_location_registration_iam_policy +"/domains:v1beta1/domains.projects.locations.registrations.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version +"/domains:v1beta1/domains.projects.locations.registrations.getIamPolicy/resource": resource +"/domains:v1beta1/domains.projects.locations.registrations.list": list_project_location_registrations +"/domains:v1beta1/domains.projects.locations.registrations.list/filter": filter +"/domains:v1beta1/domains.projects.locations.registrations.list/pageSize": page_size +"/domains:v1beta1/domains.projects.locations.registrations.list/pageToken": page_token +"/domains:v1beta1/domains.projects.locations.registrations.list/parent": parent +"/domains:v1beta1/domains.projects.locations.registrations.patch": patch_project_location_registration +"/domains:v1beta1/domains.projects.locations.registrations.patch/name": name +"/domains:v1beta1/domains.projects.locations.registrations.patch/updateMask": update_mask +"/domains:v1beta1/domains.projects.locations.registrations.register": register_registration_domain +"/domains:v1beta1/domains.projects.locations.registrations.register/parent": parent +"/domains:v1beta1/domains.projects.locations.registrations.resetAuthorizationCode": reset_registration_authorization_code +"/domains:v1beta1/domains.projects.locations.registrations.resetAuthorizationCode/registration": registration +"/domains:v1beta1/domains.projects.locations.registrations.retrieveAuthorizationCode": retrieve_project_location_registration_authorization_code +"/domains:v1beta1/domains.projects.locations.registrations.retrieveAuthorizationCode/registration": registration +"/domains:v1beta1/domains.projects.locations.registrations.retrieveRegisterParameters": retrieve_project_location_registration_register_parameters +"/domains:v1beta1/domains.projects.locations.registrations.retrieveRegisterParameters/domainName": domain_name +"/domains:v1beta1/domains.projects.locations.registrations.retrieveRegisterParameters/location": location +"/domains:v1beta1/domains.projects.locations.registrations.searchDomains": search_project_location_registration_domains +"/domains:v1beta1/domains.projects.locations.registrations.searchDomains/location": location +"/domains:v1beta1/domains.projects.locations.registrations.searchDomains/query": query +"/domains:v1beta1/domains.projects.locations.registrations.setIamPolicy": set_registration_iam_policy +"/domains:v1beta1/domains.projects.locations.registrations.setIamPolicy/resource": resource +"/domains:v1beta1/domains.projects.locations.registrations.testIamPermissions": test_registration_iam_permissions +"/domains:v1beta1/domains.projects.locations.registrations.testIamPermissions/resource": resource +"/domains:v1beta1/fields": fields +"/domains:v1beta1/key": key +"/domains:v1beta1/quotaUser": quota_user "/domainsrdap:v1/HttpBody": http_body "/domainsrdap:v1/HttpBody/contentType": content_type "/domainsrdap:v1/HttpBody/data": data @@ -120666,6 +121176,15 @@ "/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.deployments.list/pageSize": page_size "/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.deployments.list/pageToken": page_token "/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.deployments.list/parent": parent +"/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.devices.create": create_customer_node_device +"/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.devices.create/parent": parent +"/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.devices.createSigned": create_customer_node_device_signed +"/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.devices.createSigned/parent": parent +"/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.devices.list": list_customer_node_devices +"/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.devices.list/filter": filter +"/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.devices.list/pageSize": page_size +"/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.devices.list/pageToken": page_token +"/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.devices.list/parent": parent "/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.get": get_customer_node "/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.get/name": name "/prod_tt_sasportal:v1alpha1/prod_tt_sasportal.customers.nodes.list": list_customer_nodes diff --git a/generated/google/apis/admin_directory_v1.rb b/generated/google/apis/admin_directory_v1.rb index 0aeebfb4c..1fb01ca18 100644 --- a/generated/google/apis/admin_directory_v1.rb +++ b/generated/google/apis/admin_directory_v1.rb @@ -27,7 +27,7 @@ module Google # @see http://developers.google.com/admin-sdk/ module AdminDirectoryV1 VERSION = 'DirectoryV1' - REVISION = '20200909' + REVISION = '20201013' # View and manage customer related information AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer' diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index c80c80a00..1589fade9 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -1367,6 +1367,141 @@ module Google end end + # Information regarding a command that was issued to a device. + class DirectoryChromeosdevicesCommand + include Google::Apis::Core::Hashable + + # The time at which the command will expire. If the device doesn't execute the + # command within this time the command will become expired. + # Corresponds to the JSON property `commandExpireTime` + # @return [String] + attr_accessor :command_expire_time + + # Unique ID of a device command. + # Corresponds to the JSON property `commandId` + # @return [Fixnum] + attr_accessor :command_id + + # The result of executing a command. + # Corresponds to the JSON property `commandResult` + # @return [Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommandResult] + attr_accessor :command_result + + # The timestamp when the command was issued by the admin. + # Corresponds to the JSON property `issueTime` + # @return [String] + attr_accessor :issue_time + + # The payload that the command specified, if any. + # Corresponds to the JSON property `payload` + # @return [String] + attr_accessor :payload + + # Indicates the command state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The type of the command. + # 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) + @command_expire_time = args[:command_expire_time] if args.key?(:command_expire_time) + @command_id = args[:command_id] if args.key?(:command_id) + @command_result = args[:command_result] if args.key?(:command_result) + @issue_time = args[:issue_time] if args.key?(:issue_time) + @payload = args[:payload] if args.key?(:payload) + @state = args[:state] if args.key?(:state) + @type = args[:type] if args.key?(:type) + end + end + + # The result of executing a command. + class DirectoryChromeosdevicesCommandResult + include Google::Apis::Core::Hashable + + # The error message with a short explanation as to why the command failed. Only + # present if the command failed. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + + # The time at which the command was executed or failed to execute. + # Corresponds to the JSON property `executeTime` + # @return [String] + attr_accessor :execute_time + + # The result of the command. + # Corresponds to the JSON property `result` + # @return [String] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_message = args[:error_message] if args.key?(:error_message) + @execute_time = args[:execute_time] if args.key?(:execute_time) + @result = args[:result] if args.key?(:result) + end + end + + # A request for issuing a command. + class DirectoryChromeosdevicesIssueCommandRequest + include Google::Apis::Core::Hashable + + # The type of command. + # Corresponds to the JSON property `commandType` + # @return [String] + attr_accessor :command_type + + # The payload for the command, provide it only if command supports it. The + # following commands support adding payload: - SET_VOLUME: Payload is a JSON + # object in the form: ` "volume": 50 `. The volume has to be an integer in the + # range [0,100]. + # Corresponds to the JSON property `payload` + # @return [String] + attr_accessor :payload + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @command_type = args[:command_type] if args.key?(:command_type) + @payload = args[:payload] if args.key?(:payload) + end + end + + # A response for issuing a command. + class DirectoryChromeosdevicesIssueCommandResponse + include Google::Apis::Core::Hashable + + # The unique ID of the issued command, used to retrieve the command status. + # Corresponds to the JSON property `commandId` + # @return [Fixnum] + attr_accessor :command_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @command_id = args[:command_id] if args.key?(:command_id) + end + end + # class DomainAlias include Google::Apis::Core::Hashable diff --git a/generated/google/apis/admin_directory_v1/representations.rb b/generated/google/apis/admin_directory_v1/representations.rb index d14bea369..a45ac357e 100644 --- a/generated/google/apis/admin_directory_v1/representations.rb +++ b/generated/google/apis/admin_directory_v1/representations.rb @@ -184,6 +184,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DirectoryChromeosdevicesCommand + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DirectoryChromeosdevicesCommandResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DirectoryChromeosdevicesIssueCommandRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DirectoryChromeosdevicesIssueCommandResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DomainAlias class Representation < Google::Apis::Core::JsonRepresentation; end @@ -857,6 +881,44 @@ module Google end end + class DirectoryChromeosdevicesCommand + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :command_expire_time, as: 'commandExpireTime' + property :command_id, :numeric_string => true, as: 'commandId' + property :command_result, as: 'commandResult', class: Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommandResult, decorator: Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommandResult::Representation + + property :issue_time, as: 'issueTime' + property :payload, as: 'payload' + property :state, as: 'state' + property :type, as: 'type' + end + end + + class DirectoryChromeosdevicesCommandResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_message, as: 'errorMessage' + property :execute_time, as: 'executeTime' + property :result, as: 'result' + end + end + + class DirectoryChromeosdevicesIssueCommandRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :command_type, as: 'commandType' + property :payload, as: 'payload' + end + end + + class DirectoryChromeosdevicesIssueCommandResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :command_id, :numeric_string => true, as: 'commandId' + end + end + class DomainAlias # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/admin_directory_v1/service.rb b/generated/google/apis/admin_directory_v1/service.rb index 1ee25fc85..2362f9185 100644 --- a/generated/google/apis/admin_directory_v1/service.rb +++ b/generated/google/apis/admin_directory_v1/service.rb @@ -409,6 +409,78 @@ module Google execute_or_queue_command(command, &block) end + # Issues a command for the device to execute. + # @param [String] customer_id + # Immutable. Immutable ID of the G Suite account. + # @param [String] device_id + # Immutable. Immutable ID of Chrome OS Device. + # @param [Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandRequest] directory_chromeosdevices_issue_command_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def issue_customer_device_chromeo_command(customer_id, device_id, directory_chromeosdevices_issue_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}:issueCommand', options) + command.request_representation = Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandRequest::Representation + command.request_object = directory_chromeosdevices_issue_command_request_object + command.response_representation = Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandResponse::Representation + command.response_class = Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandResponse + command.params['customerId'] = customer_id unless customer_id.nil? + command.params['deviceId'] = device_id unless device_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 command data a specific command issued to the device. + # @param [String] customer_id + # Immutable. Immutable ID of the G Suite account. + # @param [String] device_id + # Immutable. Immutable ID of Chrome OS Device. + # @param [Fixnum] command_id + # Immutable. Immutable ID of Chrome OS Device Command. + # @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::AdminDirectoryV1::DirectoryChromeosdevicesCommand] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommand] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_customer_device_chromeo_command(customer_id, device_id, command_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}/commands/{commandId}', options) + command.response_representation = Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommand::Representation + command.response_class = Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommand + command.params['customerId'] = customer_id unless customer_id.nil? + command.params['deviceId'] = device_id unless device_id.nil? + command.params['commandId'] = command_id unless command_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 + # Retrieves a customer. # @param [String] customer_key # Id of the customer to be retrieved diff --git a/generated/google/apis/analyticsdata_v1alpha.rb b/generated/google/apis/analyticsdata_v1alpha.rb index 2ca12dcde..074c62b88 100644 --- a/generated/google/apis/analyticsdata_v1alpha.rb +++ b/generated/google/apis/analyticsdata_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/analytics/trusted-testing/analytics-data/ module AnalyticsdataV1alpha VERSION = 'V1alpha' - REVISION = '20201006' + REVISION = '20201013' # View and manage your Google Analytics data AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' diff --git a/generated/google/apis/analyticsdata_v1alpha/classes.rb b/generated/google/apis/analyticsdata_v1alpha/classes.rb index 26211f40f..ddb889402 100644 --- a/generated/google/apis/analyticsdata_v1alpha/classes.rb +++ b/generated/google/apis/analyticsdata_v1alpha/classes.rb @@ -527,7 +527,7 @@ module Google class Entity include Google::Apis::Core::Hashable - # A Google Analytics App + Web property id. + # A Google Analytics GA4 property id. # Corresponds to the JSON property `propertyId` # @return [String] attr_accessor :property_id diff --git a/generated/google/apis/analyticsdata_v1alpha/service.rb b/generated/google/apis/analyticsdata_v1alpha/service.rb index dc010b8d3..bcf8861fd 100644 --- a/generated/google/apis/analyticsdata_v1alpha/service.rb +++ b/generated/google/apis/analyticsdata_v1alpha/service.rb @@ -49,16 +49,16 @@ module Google # Returns metadata for dimensions and metrics available in reporting methods. # Used to explore the dimensions and metrics. In this method, a Google Analytics - # App + Web Property Identifier is specified in the request, and the metadata - # response includes Custom dimensions and metrics as well as Universal metadata. - # For example if a custom metric with parameter name `levels_unlocked` is - # registered to a property, the Metadata response will contain `customEvent: - # levels_unlocked`. Universal metadata are dimensions and metrics applicable to - # any property such as `country` and `totalUsers`. + # GA4 Property Identifier is specified in the request, and the metadata response + # includes Custom dimensions and metrics as well as Universal metadata. For + # example if a custom metric with parameter name `levels_unlocked` is registered + # to a property, the Metadata response will contain `customEvent:levels_unlocked` + # . Universal metadata are dimensions and metrics applicable to any property + # such as `country` and `totalUsers`. # @param [String] name # Required. The resource name of the metadata to retrieve. This name field is # specified in the URL path and not URL parameters. Property is a numeric Google - # Analytics App + Web Property identifier. Example: properties/1234/metadata + # Analytics GA4 Property identifier. Example: properties/1234/metadata # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/billingbudgets_v1.rb b/generated/google/apis/billingbudgets_v1.rb index e38269eda..c114756a9 100644 --- a/generated/google/apis/billingbudgets_v1.rb +++ b/generated/google/apis/billingbudgets_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/billing/docs/how-to/budget-api-overview module BillingbudgetsV1 VERSION = 'V1' - REVISION = '20200919' + REVISION = '20201012' # View and manage your Google Cloud Platform billing accounts AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing' diff --git a/generated/google/apis/billingbudgets_v1/classes.rb b/generated/google/apis/billingbudgets_v1/classes.rb index 78da8194e..25e1bfd04 100644 --- a/generated/google/apis/billingbudgets_v1/classes.rb +++ b/generated/google/apis/billingbudgets_v1/classes.rb @@ -326,7 +326,7 @@ module Google class GoogleTypeMoney include Google::Apis::Core::Hashable - # The 3-letter currency code defined in ISO 4217. + # The three-letter currency code defined in ISO 4217. # Corresponds to the JSON property `currencyCode` # @return [String] attr_accessor :currency_code diff --git a/generated/google/apis/billingbudgets_v1beta1.rb b/generated/google/apis/billingbudgets_v1beta1.rb index 9a06a48d6..42c92af7c 100644 --- a/generated/google/apis/billingbudgets_v1beta1.rb +++ b/generated/google/apis/billingbudgets_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/billing/docs/how-to/budget-api-overview module BillingbudgetsV1beta1 VERSION = 'V1beta1' - REVISION = '20200912' + REVISION = '20201012' # View and manage your Google Cloud Platform billing accounts AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing' diff --git a/generated/google/apis/billingbudgets_v1beta1/classes.rb b/generated/google/apis/billingbudgets_v1beta1/classes.rb index b32cf45a7..aa5445932 100644 --- a/generated/google/apis/billingbudgets_v1beta1/classes.rb +++ b/generated/google/apis/billingbudgets_v1beta1/classes.rb @@ -381,7 +381,7 @@ module Google class GoogleTypeMoney include Google::Apis::Core::Hashable - # The 3-letter currency code defined in ISO 4217. + # The three-letter currency code defined in ISO 4217. # Corresponds to the JSON property `currencyCode` # @return [String] attr_accessor :currency_code diff --git a/generated/google/apis/classroom_v1.rb b/generated/google/apis/classroom_v1.rb index 0cc133344..bb52c8cec 100644 --- a/generated/google/apis/classroom_v1.rb +++ b/generated/google/apis/classroom_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/classroom/ module ClassroomV1 VERSION = 'V1' - REVISION = '20200915' + REVISION = '20201012' # View and manage announcements in Google Classroom AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements' diff --git a/generated/google/apis/classroom_v1/classes.rb b/generated/google/apis/classroom_v1/classes.rb index 7074b37b5..3af3c5fa4 100644 --- a/generated/google/apis/classroom_v1/classes.rb +++ b/generated/google/apis/classroom_v1/classes.rb @@ -526,14 +526,14 @@ module Google # @return [String] attr_accessor :description - # 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 - # is relative to the Proleptic Gregorian Calendar. This can represent: * A full - # date, with non-zero year, month and day values * A month and day value, with a - # zero year, e.g. an anniversary * A year on its own, with zero month and day - # values * 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`. + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. # Corresponds to the JSON property `dueDate` # @return [Google::Apis::ClassroomV1::Date] attr_accessor :due_date @@ -768,31 +768,31 @@ module Google end end - # 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 - # is relative to the Proleptic Gregorian Calendar. This can represent: * A full - # date, with non-zero year, month and day values * A month and day value, with a - # zero year, e.g. an anniversary * A year on its own, with zero month and day - # values * 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`. + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. class Date include Google::Apis::Core::Hashable - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if - # specifying a year by itself or a year and month where the day is not - # significant. + # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to + # specify a year by itself or a year and month where the day isn't significant. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day - # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month + # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month # and day. # Corresponds to the JSON property `month` # @return [Fixnum] attr_accessor :month - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. + # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a + # year. # Corresponds to the JSON property `year` # @return [Fixnum] attr_accessor :year diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index 61399d3c6..1863d25a8 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20200928' + REVISION = '20201007' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index 2566753fc..7acbb8c58 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -645,7 +645,14 @@ module Google attr_accessor :location # The list of Google Compute Engine [zones](https://cloud.google.com/compute/ - # docs/zones#available) in which the cluster's nodes should be located. + # docs/zones#available) in which the cluster's nodes should be located. This + # field provides a default value if [NodePool.Locations](https://cloud.google. + # com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters. + # nodePools#NodePool.FIELDS.locations) are not specified during node pool + # creation. Warning: changing cluster locations will update the [NodePool. + # Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/ + # projects.locations.clusters.nodePools#NodePool.FIELDS.locations) of all node + # pools and will result in nodes being added and/or removed. # Corresponds to the JSON property `locations` # @return [Array] attr_accessor :locations @@ -1053,9 +1060,9 @@ module Google # The desired list of Google Compute Engine [zones](https://cloud.google.com/ # compute/docs/zones#available) in which the cluster's nodes should be located. - # Changing the locations a cluster is in will result in nodes being either - # created or removed from the cluster, depending on whether locations are being - # added or removed. This list must always include the cluster's primary zone. + # This list must always include the cluster's primary zone. Warning: changing + # cluster locations will update the locations of all node pools and will result + # in nodes being added and/or removed. # Corresponds to the JSON property `desiredLocations` # @return [Array] attr_accessor :desired_locations @@ -2631,11 +2638,12 @@ module Google # - "gci-ensure-gke-docker" - "gci-metrics-enabled" - "gci-update-strategy" - " # instance-template" - "kube-env" - "startup-script" - "user-data" - "disable- # address-manager" - "windows-startup-script-ps1" - "common-psm1" - "k8s-node- - # setup-psm1" - "install-ssh-psm1" - "user-profile-psm1" - "serial-port-logging- - # enable" Values are free-form strings, and only have meaning as interpreted by - # the image running in the instance. The only restriction placed on them is that - # each value's size must be less than or equal to 32 KB. The total size of all - # keys and values must be less than 512 KB. + # setup-psm1" - "install-ssh-psm1" - "user-profile-psm1" The following keys are + # reserved for Windows nodes: - "serial-port-logging-enable" Values are free- + # form strings, and only have meaning as interpreted by the image running in the + # instance. The only restriction placed on them is that each value's size must + # be less than or equal to 32 KB. The total size of all keys and values must be + # less than 512 KB. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata @@ -2876,7 +2884,11 @@ module Google attr_accessor :instance_group_urls # The list of Google Compute Engine [zones](https://cloud.google.com/compute/ - # docs/zones#available) in which the NodePool's nodes should be located. + # docs/zones#available) in which the NodePool's nodes should be located. If this + # value is unspecified during node pool creation, the [Cluster.Locations](https:/ + # /cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations. + # clusters#Cluster.FIELDS.locations) value will be used, instead. Warning: + # changing node pool locations will result in nodes being added and/or removed. # Corresponds to the JSON property `locations` # @return [Array] attr_accessor :locations diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index a61d32523..60ac15d42 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20201007' + REVISION = '20201014' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/displayvideo_v1.rb b/generated/google/apis/displayvideo_v1.rb index d9fdc979c..717c951f9 100644 --- a/generated/google/apis/displayvideo_v1.rb +++ b/generated/google/apis/displayvideo_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/display-video/ module DisplayvideoV1 VERSION = 'V1' - REVISION = '20201006' + REVISION = '20201013' # Create, see, edit, and permanently delete your Display & Video 360 entities and reports AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video' diff --git a/generated/google/apis/displayvideo_v1/classes.rb b/generated/google/apis/displayvideo_v1/classes.rb index 9fc3b71a1..8cbc719fb 100644 --- a/generated/google/apis/displayvideo_v1/classes.rb +++ b/generated/google/apis/displayvideo_v1/classes.rb @@ -3113,31 +3113,31 @@ module Google end end - # 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 - # is relative to the Proleptic Gregorian Calendar. This can represent: * A full - # date, with non-zero year, month and day values * A month and day value, with a - # zero year, e.g. an anniversary * A year on its own, with zero month and day - # values * 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`. + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. class Date include Google::Apis::Core::Hashable - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if - # specifying a year by itself or a year and month where the day is not - # significant. + # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to + # specify a year by itself or a year and month where the day isn't significant. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day - # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month + # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month # and day. # Corresponds to the JSON property `month` # @return [Fixnum] attr_accessor :month - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. + # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a + # year. # Corresponds to the JSON property `year` # @return [Fixnum] attr_accessor :year @@ -3158,26 +3158,26 @@ module Google class DateRange include Google::Apis::Core::Hashable - # 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 - # is relative to the Proleptic Gregorian Calendar. This can represent: * A full - # date, with non-zero year, month and day values * A month and day value, with a - # zero year, e.g. an anniversary * A year on its own, with zero month and day - # values * 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`. + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. # Corresponds to the JSON property `endDate` # @return [Google::Apis::DisplayvideoV1::Date] attr_accessor :end_date - # 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 - # is relative to the Proleptic Gregorian Calendar. This can represent: * A full - # date, with non-zero year, month and day values * A month and day value, with a - # zero year, e.g. an anniversary * A year on its own, with zero month and day - # values * 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`. + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. # Corresponds to the JSON property `startDate` # @return [Google::Apis::DisplayvideoV1::Date] attr_accessor :start_date @@ -6242,7 +6242,7 @@ module Google class Money include Google::Apis::Core::Hashable - # The 3-letter currency code defined in ISO 4217. + # The three-letter currency code defined in ISO 4217. # Corresponds to the JSON property `currencyCode` # @return [String] attr_accessor :currency_code diff --git a/generated/google/apis/domains_v1alpha2.rb b/generated/google/apis/domains_v1alpha2.rb new file mode 100644 index 000000000..fe82f11a9 --- /dev/null +++ b/generated/google/apis/domains_v1alpha2.rb @@ -0,0 +1,34 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/domains_v1alpha2/service.rb' +require 'google/apis/domains_v1alpha2/classes.rb' +require 'google/apis/domains_v1alpha2/representations.rb' + +module Google + module Apis + # Cloud Domains API + # + # Enables management and configuration of domain names. + # + # @see https://cloud.google.com/domains/ + module DomainsV1alpha2 + VERSION = 'V1alpha2' + REVISION = '20201013' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/domains_v1alpha2/classes.rb b/generated/google/apis/domains_v1alpha2/classes.rb new file mode 100644 index 000000000..6ac739187 --- /dev/null +++ b/generated/google/apis/domains_v1alpha2/classes.rb @@ -0,0 +1,1534 @@ +# 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 DomainsV1alpha2 + + # Specifies the audit configuration for a service. The configuration determines + # which permission types are logged, and what identities, if any, are exempted + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. + class AuditConfig + include Google::Apis::Core::Hashable + + # The configuration for logging of each type of permission. + # Corresponds to the JSON property `auditLogConfigs` + # @return [Array] + attr_accessor :audit_log_configs + + # Specifies a service that will be enabled for audit logging. For example, ` + # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special + # value that covers all services. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) + @service = args[:service] if args.key?(:service) + end + end + + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. + class AuditLogConfig + include Google::Apis::Core::Hashable + + # Specifies the identities that do not cause logging for this type of permission. + # Follows the same format of Binding.members. + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + + # The log type that this config enables. + # Corresponds to the JSON property `logType` + # @return [String] + attr_accessor :log_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @log_type = args[:log_type] if args.key?(:log_type) + end + end + + # Defines an authorization code. + class AuthorizationCode + include Google::Apis::Core::Hashable + + # The Authorization Code in ASCII. It can be used to transfer the domain to or + # from another registrar. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. + # Corresponds to the JSON property `condition` + # @return [Google::Apis::DomainsV1alpha2::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Request for the `ConfigureContactSettings` method. + class ConfigureContactSettingsRequest + include Google::Apis::Core::Hashable + + # The list of contact notices that the caller acknowledges. The notices required + # here depend on the values specified in `contact_settings`. + # Corresponds to the JSON property `contactNotices` + # @return [Array] + attr_accessor :contact_notices + + # Defines the contact information associated with a `Registration`. [ICANN]( + # https://icann.org/) requires all domain names to have associated contact + # information. The `registrant_contact` is considered the domain's legal owner, + # and often the other contacts are identical. + # Corresponds to the JSON property `contactSettings` + # @return [Google::Apis::DomainsV1alpha2::ContactSettings] + attr_accessor :contact_settings + + # Required. The field mask describing which fields to update as a comma- + # separated list. For example, if only the registrant contact is being updated, + # the `update_mask` would be `"registrant_contact"`. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + # Validate the request without actually updating the contact settings. + # Corresponds to the JSON property `validateOnly` + # @return [Boolean] + attr_accessor :validate_only + alias_method :validate_only?, :validate_only + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_notices = args[:contact_notices] if args.key?(:contact_notices) + @contact_settings = args[:contact_settings] if args.key?(:contact_settings) + @update_mask = args[:update_mask] if args.key?(:update_mask) + @validate_only = args[:validate_only] if args.key?(:validate_only) + end + end + + # Request for the `ConfigureDnsSettings` method. + class ConfigureDnsSettingsRequest + include Google::Apis::Core::Hashable + + # Defines the DNS configuration of a `Registration`, including name servers, + # DNSSEC, and glue records. + # Corresponds to the JSON property `dnsSettings` + # @return [Google::Apis::DomainsV1alpha2::DnsSettings] + attr_accessor :dns_settings + + # Required. The field mask describing which fields to update as a comma- + # separated list. For example, if only the name servers are being updated for an + # existing Custom DNS configuration, the `update_mask` would be `"custom_dns. + # name_servers"`. When changing the DNS provider from one type to another, pass + # the new provider's field name as part of the field mask. For example, when + # changing from a Google Domains DNS configuration to a Custom DNS configuration, + # the `update_mask` would be `"custom_dns"`. // + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + # Validate the request without actually updating the DNS settings. + # Corresponds to the JSON property `validateOnly` + # @return [Boolean] + attr_accessor :validate_only + alias_method :validate_only?, :validate_only + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dns_settings = args[:dns_settings] if args.key?(:dns_settings) + @update_mask = args[:update_mask] if args.key?(:update_mask) + @validate_only = args[:validate_only] if args.key?(:validate_only) + end + end + + # Request for the `ConfigureManagementSettings` method. + class ConfigureManagementSettingsRequest + include Google::Apis::Core::Hashable + + # Defines renewal, billing, and transfer settings for a `Registration`. + # Corresponds to the JSON property `managementSettings` + # @return [Google::Apis::DomainsV1alpha2::ManagementSettings] + attr_accessor :management_settings + + # Required. The field mask describing which fields to update as a comma- + # separated list. For example, if only the transfer lock is being updated, the ` + # update_mask` would be `"transfer_lock_state"`. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @management_settings = args[:management_settings] if args.key?(:management_settings) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # Details required for a contact associated with a `Registration`. + class Contact + include Google::Apis::Core::Hashable + + # Required. Email address of the contact. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # Fax number of the contact in international format. For example, `"+1-800-555- + # 0123"`. + # Corresponds to the JSON property `faxNumber` + # @return [String] + attr_accessor :fax_number + + # Required. Phone number of the contact in international format. For example, `"+ + # 1-800-555-0123"`. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # Represents a postal address, e.g. for postal delivery or payments addresses. + # Given a postal address, a postal service can deliver items to a premise, P.O. + # Box or similar. It is not intended to model geographical locations (roads, + # towns, mountains). In typical usage an address would be created via user input + # or from importing existing data, depending on the type of process. Advice on + # address input / editing: - Use an i18n-ready address widget such as https:// + # github.com/google/libaddressinput) - Users should not be presented with UI + # elements for input or editing of fields outside countries where that field is + # used. For more guidance on how to use this schema, please see: https://support. + # google.com/business/answer/6397478 + # Corresponds to the JSON property `postalAddress` + # @return [Google::Apis::DomainsV1alpha2::PostalAddress] + attr_accessor :postal_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] if args.key?(:email) + @fax_number = args[:fax_number] if args.key?(:fax_number) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @postal_address = args[:postal_address] if args.key?(:postal_address) + end + end + + # Defines the contact information associated with a `Registration`. [ICANN]( + # https://icann.org/) requires all domain names to have associated contact + # information. The `registrant_contact` is considered the domain's legal owner, + # and often the other contacts are identical. + class ContactSettings + include Google::Apis::Core::Hashable + + # Details required for a contact associated with a `Registration`. + # Corresponds to the JSON property `adminContact` + # @return [Google::Apis::DomainsV1alpha2::Contact] + attr_accessor :admin_contact + + # Required. Privacy setting for the contacts associated with the `Registration`. + # Corresponds to the JSON property `privacy` + # @return [String] + attr_accessor :privacy + + # Details required for a contact associated with a `Registration`. + # Corresponds to the JSON property `registrantContact` + # @return [Google::Apis::DomainsV1alpha2::Contact] + attr_accessor :registrant_contact + + # Details required for a contact associated with a `Registration`. + # Corresponds to the JSON property `technicalContact` + # @return [Google::Apis::DomainsV1alpha2::Contact] + attr_accessor :technical_contact + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @admin_contact = args[:admin_contact] if args.key?(:admin_contact) + @privacy = args[:privacy] if args.key?(:privacy) + @registrant_contact = args[:registrant_contact] if args.key?(:registrant_contact) + @technical_contact = args[:technical_contact] if args.key?(:technical_contact) + end + end + + # Configuration for an arbitrary DNS provider. + class CustomDns + include Google::Apis::Core::Hashable + + # The list of DS records for this domain, which are used to enable DNSSEC. The + # domain's DNS provider can provide the values to set here. If this field is + # empty, DNSSEC is disabled. + # Corresponds to the JSON property `dsRecords` + # @return [Array] + attr_accessor :ds_records + + # Required. A list of name servers that store the DNS zone for this domain. Each + # name server is a domain name, with Unicode domain names expressed in Punycode + # format. + # Corresponds to the JSON property `nameServers` + # @return [Array] + attr_accessor :name_servers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ds_records = args[:ds_records] if args.key?(:ds_records) + @name_servers = args[:name_servers] if args.key?(:name_servers) + end + end + + # Defines the DNS configuration of a `Registration`, including name servers, + # DNSSEC, and glue records. + class DnsSettings + include Google::Apis::Core::Hashable + + # Configuration for an arbitrary DNS provider. + # Corresponds to the JSON property `customDns` + # @return [Google::Apis::DomainsV1alpha2::CustomDns] + attr_accessor :custom_dns + + # The list of glue records for this `Registration`. Commonly empty. + # Corresponds to the JSON property `glueRecords` + # @return [Array] + attr_accessor :glue_records + + # Configuration for using the free DNS zone provided by Google Domains as a ` + # Registration`'s `dns_provider`. You cannot configure the DNS zone itself using + # the API. To configure the DNS zone, go to [Google Domains](https://domains. + # google/). + # Corresponds to the JSON property `googleDomainsDns` + # @return [Google::Apis::DomainsV1alpha2::GoogleDomainsDns] + attr_accessor :google_domains_dns + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @custom_dns = args[:custom_dns] if args.key?(:custom_dns) + @glue_records = args[:glue_records] if args.key?(:glue_records) + @google_domains_dns = args[:google_domains_dns] if args.key?(:google_domains_dns) + end + end + + # Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC for + # a domain. It contains a digest (hash) of a DNSKEY record that must be present + # in the domain's DNS zone. + class DsRecord + include Google::Apis::Core::Hashable + + # The algorithm used to generate the referenced DNSKEY. + # Corresponds to the JSON property `algorithm` + # @return [String] + attr_accessor :algorithm + + # The digest generated from the referenced DNSKEY. + # Corresponds to the JSON property `digest` + # @return [String] + attr_accessor :digest + + # The hash function used to generate the digest of the referenced DNSKEY. + # Corresponds to the JSON property `digestType` + # @return [String] + attr_accessor :digest_type + + # The key tag of the record. Must be set in range 0 -- 65535. + # Corresponds to the JSON property `keyTag` + # @return [Fixnum] + attr_accessor :key_tag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @algorithm = args[:algorithm] if args.key?(:algorithm) + @digest = args[:digest] if args.key?(:digest) + @digest_type = args[:digest_type] if args.key?(:digest_type) + @key_tag = args[:key_tag] if args.key?(:key_tag) + end + end + + # Request for the `ExportRegistration` method. + class ExportRegistrationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. + class Expr + include Google::Apis::Core::Hashable + + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in Common Expression Language syntax. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Defines a host on your domain that is a DNS name server for your domain and/or + # other domains. Glue records are a way of making the IP address of a name + # server known, even when it serves DNS queries for its parent domain. For + # example, when `ns.example.com` is a name server for `example.com`, the host ` + # ns.example.com` must have a glue record to break the circular DNS reference. + class GlueRecord + include Google::Apis::Core::Hashable + + # Required. Domain name of the host in Punycode format. + # Corresponds to the JSON property `hostName` + # @return [String] + attr_accessor :host_name + + # List of IPv4 addresses corresponding to this host in the standard decimal + # format (e.g. `198.51.100.1`). At least one of `ipv4_address` and `ipv6_address` + # must be set. + # Corresponds to the JSON property `ipv4Addresses` + # @return [Array] + attr_accessor :ipv4_addresses + + # List of IPv6 addresses corresponding to this host in the standard hexadecimal + # format (e.g. `2001:db8::`). At least one of `ipv4_address` and `ipv6_address` + # must be set. + # Corresponds to the JSON property `ipv6Addresses` + # @return [Array] + attr_accessor :ipv6_addresses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @host_name = args[:host_name] if args.key?(:host_name) + @ipv4_addresses = args[:ipv4_addresses] if args.key?(:ipv4_addresses) + @ipv6_addresses = args[:ipv6_addresses] if args.key?(:ipv6_addresses) + end + end + + # Configuration for using the free DNS zone provided by Google Domains as a ` + # Registration`'s `dns_provider`. You cannot configure the DNS zone itself using + # the API. To configure the DNS zone, go to [Google Domains](https://domains. + # google/). + class GoogleDomainsDns + include Google::Apis::Core::Hashable + + # Output only. The list of DS records published for this domain. The list is + # automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`, otherwise + # it remains empty. + # Corresponds to the JSON property `dsRecords` + # @return [Array] + attr_accessor :ds_records + + # Required. The state of DS records for this domain. Used to enable or disable + # automatic DNSSEC. + # Corresponds to the JSON property `dsState` + # @return [String] + attr_accessor :ds_state + + # Output only. A list of name servers that store the DNS zone for this domain. + # Each name server is a domain name, with Unicode domain names expressed in + # Punycode format. This field is automatically populated with the name servers + # assigned to the Google Domains DNS zone. + # Corresponds to the JSON property `nameServers` + # @return [Array] + attr_accessor :name_servers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ds_records = args[:ds_records] if args.key?(:ds_records) + @ds_state = args[:ds_state] if args.key?(:ds_state) + @name_servers = args[:name_servers] if args.key?(:name_servers) + end + end + + # The response message for Locations.ListLocations. + class ListLocationsResponse + include Google::Apis::Core::Hashable + + # A list of locations that matches the specified filter in the request. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for Operations.ListOperations. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) + end + end + + # Response for the `ListRegistrations` method. + class ListRegistrationsResponse + include Google::Apis::Core::Hashable + + # When present, there are more results to retrieve. Set `page_token` to this + # value on a subsequent call to get the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of `Registration`s. + # Corresponds to the JSON property `registrations` + # @return [Array] + attr_accessor :registrations + + 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) + @registrations = args[:registrations] if args.key?(:registrations) + end + end + + # A resource that represents Google Cloud Platform location. + class Location + include Google::Apis::Core::Hashable + + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The canonical id for this location. For example: `"us-east1"`. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Service-specific metadata. For example the available capacity at the given + # location. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @location_id = args[:location_id] if args.key?(:location_id) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + end + end + + # Defines renewal, billing, and transfer settings for a `Registration`. + class ManagementSettings + include Google::Apis::Core::Hashable + + # Output only. The renewal method for this `Registration`. + # Corresponds to the JSON property `renewalMethod` + # @return [String] + attr_accessor :renewal_method + + # Controls whether the domain can be transferred to another registrar. + # Corresponds to the JSON property `transferLockState` + # @return [String] + attr_accessor :transfer_lock_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @renewal_method = args[:renewal_method] if args.key?(:renewal_method) + @transfer_lock_state = args[:transfer_lock_state] if args.key?(:transfer_lock_state) + end + end + + # Represents an amount of money with its currency type. + class Money + include Google::Apis::Core::Hashable + + # The three-letter currency code defined in ISO 4217. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # Number of nano (10^-9) units of the amount. The value must be between -999,999, + # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be + # positive or zero. If `units` is zero, `nanos` can be positive, zero, or + # negative. If `units` is negative, `nanos` must be negative or zero. For + # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # The whole units of the amount. For example if `currencyCode` is `"USD"`, then + # 1 unit is one US dollar. + # Corresponds to the JSON property `units` + # @return [Fixnum] + attr_accessor :units + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @nanos = args[:nanos] if args.key?(:nanos) + @units = args[:units] if args.key?(:units) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::DomainsV1alpha2::Status] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # Represents the metadata of the long-running operation. Output only. + class OperationMetadata + include Google::Apis::Core::Hashable + + # API version used to start the operation. + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # The time the operation was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The time the operation finished running. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Human-readable status of the operation, if any. + # Corresponds to the JSON property `statusDetail` + # @return [String] + attr_accessor :status_detail + + # Server-defined resource path for the target of the operation. + # Corresponds to the JSON property `target` + # @return [String] + attr_accessor :target + + # Name of the verb executed by the operation. + # Corresponds to the JSON property `verb` + # @return [String] + attr_accessor :verb + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @create_time = args[:create_time] if args.key?(:create_time) + @end_time = args[:end_time] if args.key?(:end_time) + @status_detail = args[:status_detail] if args.key?(:status_detail) + @target = args[:target] if args.key?(:target) + @verb = args[:verb] if args.key?(:verb) + end + end + + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). + class Policy + include Google::Apis::Core::Hashable + + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_configs = args[:audit_configs] if args.key?(:audit_configs) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # Represents a postal address, e.g. for postal delivery or payments addresses. + # Given a postal address, a postal service can deliver items to a premise, P.O. + # Box or similar. It is not intended to model geographical locations (roads, + # towns, mountains). In typical usage an address would be created via user input + # or from importing existing data, depending on the type of process. Advice on + # address input / editing: - Use an i18n-ready address widget such as https:// + # github.com/google/libaddressinput) - Users should not be presented with UI + # elements for input or editing of fields outside countries where that field is + # used. For more guidance on how to use this schema, please see: https://support. + # google.com/business/answer/6397478 + class PostalAddress + include Google::Apis::Core::Hashable + + # Unstructured address lines describing the lower levels of an address. Because + # values in address_lines do not have type information and may sometimes contain + # multiple values in a single field (e.g. "Austin, TX"), it is important that + # the line order is clear. The order of address lines should be "envelope order" + # for the country/region of the address. In places where this can vary (e.g. + # Japan), address_language is used to make it explicit (e.g. "ja" for large-to- + # small ordering and "ja-Latn" or "en" for small-to-large). This way, the most + # specific line of an address can be selected based on the language. The minimum + # permitted structural representation of an address consists of a region_code + # with all remaining information placed in the address_lines. It would be + # possible to format such an address very approximately without geocoding, but + # no semantic reasoning could be made about any of the address components until + # it was at least partially resolved. Creating an address only containing a + # region_code and address_lines, and then geocoding is the recommended way to + # handle completely unstructured addresses (as opposed to guessing which parts + # of the address should be localities or administrative areas). + # Corresponds to the JSON property `addressLines` + # @return [Array] + attr_accessor :address_lines + + # Optional. Highest administrative subdivision which is used for postal + # addresses of a country or region. For example, this can be a state, a province, + # an oblast, or a prefecture. Specifically, for Spain this is the province and + # not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many + # countries don't use an administrative area in postal addresses. E.g. in + # Switzerland this should be left unpopulated. + # Corresponds to the JSON property `administrativeArea` + # @return [String] + attr_accessor :administrative_area + + # Optional. BCP-47 language code of the contents of this address (if known). + # This is often the UI language of the input form or is expected to match one of + # the languages used in the address' country/region, or their transliterated + # equivalents. This can affect formatting in certain countries, but is not + # critical to the correctness of the data and will never affect any validation + # or other non-formatting related operations. If this value is not known, it + # should be omitted (rather than specifying a possibly incorrect default). + # Examples: "zh-Hant", "ja", "ja-Latn", "en". + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Optional. Generally refers to the city/town portion of the address. Examples: + # US city, IT comune, UK post town. In regions of the world where localities are + # not well defined or do not fit into this structure well, leave locality empty + # and use address_lines. + # Corresponds to the JSON property `locality` + # @return [String] + attr_accessor :locality + + # Optional. The name of the organization at the address. + # Corresponds to the JSON property `organization` + # @return [String] + attr_accessor :organization + + # Optional. Postal code of the address. Not all countries use or require postal + # codes to be present, but where they are used, they may trigger additional + # validation with other parts of the address (e.g. state/zip validation in the U. + # S.A.). + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # Optional. The recipient at the address. This field may, under certain + # circumstances, contain multiline information. For example, it might contain " + # care of" information. + # Corresponds to the JSON property `recipients` + # @return [Array] + attr_accessor :recipients + + # Required. CLDR region code of the country/region of the address. This is never + # inferred and it is up to the user to ensure the value is correct. See http:// + # cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/ + # territory_information.html for details. Example: "CH" for Switzerland. + # Corresponds to the JSON property `regionCode` + # @return [String] + attr_accessor :region_code + + # The schema revision of the `PostalAddress`. This must be set to 0, which is + # the latest revision. All new revisions **must** be backward compatible with + # old revisions. + # Corresponds to the JSON property `revision` + # @return [Fixnum] + attr_accessor :revision + + # Optional. Additional, country-specific, sorting code. This is not used in most + # regions. Where it is used, the value is either a string like "CEDEX", + # optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, + # representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) + # or "post office indicator" (e.g. Côte d'Ivoire). + # Corresponds to the JSON property `sortingCode` + # @return [String] + attr_accessor :sorting_code + + # Optional. Sublocality of the address. For example, this can be neighborhoods, + # boroughs, districts. + # Corresponds to the JSON property `sublocality` + # @return [String] + attr_accessor :sublocality + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address_lines = args[:address_lines] if args.key?(:address_lines) + @administrative_area = args[:administrative_area] if args.key?(:administrative_area) + @language_code = args[:language_code] if args.key?(:language_code) + @locality = args[:locality] if args.key?(:locality) + @organization = args[:organization] if args.key?(:organization) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @recipients = args[:recipients] if args.key?(:recipients) + @region_code = args[:region_code] if args.key?(:region_code) + @revision = args[:revision] if args.key?(:revision) + @sorting_code = args[:sorting_code] if args.key?(:sorting_code) + @sublocality = args[:sublocality] if args.key?(:sublocality) + end + end + + # Request for the `RegisterDomain` method. + class RegisterDomainRequest + include Google::Apis::Core::Hashable + + # The list of contact notices that the caller acknowledges. The notices required + # here depend on the values specified in `registration.contact_settings`. + # Corresponds to the JSON property `contactNotices` + # @return [Array] + attr_accessor :contact_notices + + # The list of domain notices that you acknowledge. Call ` + # RetrieveRegisterParameters` to see the notices that need acknowledgement. + # Corresponds to the JSON property `domainNotices` + # @return [Array] + attr_accessor :domain_notices + + # The `Registration` resource facilitates managing and configuring domain name + # registrations. To create a new `Registration` resource, find a suitable domain + # name by calling the `SearchDomains` method with a query to see available + # domain name options. After choosing a name, call `RetrieveRegisterParameters` + # to ensure availability and obtain information like pricing, which is needed to + # build a call to `RegisterDomain`. + # Corresponds to the JSON property `registration` + # @return [Google::Apis::DomainsV1alpha2::Registration] + attr_accessor :registration + + # When true, only validation will be performed, without actually registering the + # domain. Follows: https://cloud.google.com/apis/design/design_patterns# + # request_validation + # Corresponds to the JSON property `validateOnly` + # @return [Boolean] + attr_accessor :validate_only + alias_method :validate_only?, :validate_only + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `yearlyPrice` + # @return [Google::Apis::DomainsV1alpha2::Money] + attr_accessor :yearly_price + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_notices = args[:contact_notices] if args.key?(:contact_notices) + @domain_notices = args[:domain_notices] if args.key?(:domain_notices) + @registration = args[:registration] if args.key?(:registration) + @validate_only = args[:validate_only] if args.key?(:validate_only) + @yearly_price = args[:yearly_price] if args.key?(:yearly_price) + end + end + + # Parameters required to register a new domain. + class RegisterParameters + include Google::Apis::Core::Hashable + + # Indicates whether the domain is available for registration. This value is + # accurate when obtained by calling `RetrieveRegisterParameters`, but is + # approximate when obtained by calling `SearchDomains`. + # Corresponds to the JSON property `availability` + # @return [String] + attr_accessor :availability + + # The domain name. Unicode domain names are expressed in Punycode format. + # Corresponds to the JSON property `domainName` + # @return [String] + attr_accessor :domain_name + + # Notices about special properties of the domain. + # Corresponds to the JSON property `domainNotices` + # @return [Array] + attr_accessor :domain_notices + + # Contact privacy options that the domain supports. + # Corresponds to the JSON property `supportedPrivacy` + # @return [Array] + attr_accessor :supported_privacy + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `yearlyPrice` + # @return [Google::Apis::DomainsV1alpha2::Money] + attr_accessor :yearly_price + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @availability = args[:availability] if args.key?(:availability) + @domain_name = args[:domain_name] if args.key?(:domain_name) + @domain_notices = args[:domain_notices] if args.key?(:domain_notices) + @supported_privacy = args[:supported_privacy] if args.key?(:supported_privacy) + @yearly_price = args[:yearly_price] if args.key?(:yearly_price) + end + end + + # The `Registration` resource facilitates managing and configuring domain name + # registrations. To create a new `Registration` resource, find a suitable domain + # name by calling the `SearchDomains` method with a query to see available + # domain name options. After choosing a name, call `RetrieveRegisterParameters` + # to ensure availability and obtain information like pricing, which is needed to + # build a call to `RegisterDomain`. + class Registration + include Google::Apis::Core::Hashable + + # Defines the contact information associated with a `Registration`. [ICANN]( + # https://icann.org/) requires all domain names to have associated contact + # information. The `registrant_contact` is considered the domain's legal owner, + # and often the other contacts are identical. + # Corresponds to the JSON property `contactSettings` + # @return [Google::Apis::DomainsV1alpha2::ContactSettings] + attr_accessor :contact_settings + + # Output only. The creation timestamp of the `Registration` resource. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Defines the DNS configuration of a `Registration`, including name servers, + # DNSSEC, and glue records. + # Corresponds to the JSON property `dnsSettings` + # @return [Google::Apis::DomainsV1alpha2::DnsSettings] + attr_accessor :dns_settings + + # Required. Immutable. The domain name. Unicode domain names must be expressed + # in Punycode format. + # Corresponds to the JSON property `domainName` + # @return [String] + attr_accessor :domain_name + + # Output only. The expiration timestamp of the `Registration`. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + # Output only. The set of issues with the `Registration` that require attention. + # Corresponds to the JSON property `issues` + # @return [Array] + attr_accessor :issues + + # Set of labels associated with the `Registration`. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Defines renewal, billing, and transfer settings for a `Registration`. + # Corresponds to the JSON property `managementSettings` + # @return [Google::Apis::DomainsV1alpha2::ManagementSettings] + attr_accessor :management_settings + + # Output only. Name of the `Registration` resource, in the format `projects/*/ + # locations/*/registrations/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Defines the contact information associated with a `Registration`. [ICANN]( + # https://icann.org/) requires all domain names to have associated contact + # information. The `registrant_contact` is considered the domain's legal owner, + # and often the other contacts are identical. + # Corresponds to the JSON property `pendingContactSettings` + # @return [Google::Apis::DomainsV1alpha2::ContactSettings] + attr_accessor :pending_contact_settings + + # Output only. The state of the `Registration` + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. Set of options for the `contact_settings.privacy` field that this + # `Registration` supports. + # Corresponds to the JSON property `supportedPrivacy` + # @return [Array] + attr_accessor :supported_privacy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_settings = args[:contact_settings] if args.key?(:contact_settings) + @create_time = args[:create_time] if args.key?(:create_time) + @dns_settings = args[:dns_settings] if args.key?(:dns_settings) + @domain_name = args[:domain_name] if args.key?(:domain_name) + @expire_time = args[:expire_time] if args.key?(:expire_time) + @issues = args[:issues] if args.key?(:issues) + @labels = args[:labels] if args.key?(:labels) + @management_settings = args[:management_settings] if args.key?(:management_settings) + @name = args[:name] if args.key?(:name) + @pending_contact_settings = args[:pending_contact_settings] if args.key?(:pending_contact_settings) + @state = args[:state] if args.key?(:state) + @supported_privacy = args[:supported_privacy] if args.key?(:supported_privacy) + end + end + + # Request for the `ResetAuthorizationCode` method. + class ResetAuthorizationCodeRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response for the `RetrieveRegisterParameters` method. + class RetrieveRegisterParametersResponse + include Google::Apis::Core::Hashable + + # Parameters required to register a new domain. + # Corresponds to the JSON property `registerParameters` + # @return [Google::Apis::DomainsV1alpha2::RegisterParameters] + attr_accessor :register_parameters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @register_parameters = args[:register_parameters] if args.key?(:register_parameters) + end + end + + # Response for the `SearchDomains` method. + class SearchDomainsResponse + include Google::Apis::Core::Hashable + + # Results of the domain name search. + # Corresponds to the JSON property `registerParameters` + # @return [Array] + attr_accessor :register_parameters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @register_parameters = args[:register_parameters] if args.key?(:register_parameters) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::DomainsV1alpha2::Policy] + attr_accessor :policy + + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + end + end +end diff --git a/generated/google/apis/domains_v1alpha2/representations.rb b/generated/google/apis/domains_v1alpha2/representations.rb new file mode 100644 index 000000000..25201991c --- /dev/null +++ b/generated/google/apis/domains_v1alpha2/representations.rb @@ -0,0 +1,605 @@ +# 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 DomainsV1alpha2 + + class AuditConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuthorizationCode + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConfigureContactSettingsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConfigureDnsSettingsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConfigureManagementSettingsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Contact + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContactSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CustomDns + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DnsSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DsRecord + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportRegistrationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GlueRecord + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDomainsDns + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListLocationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListRegistrationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Location + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ManagementSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Money + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PostalAddress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegisterDomainRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegisterParameters + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Registration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResetAuthorizationCodeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RetrieveRegisterParametersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SearchDomainsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DomainsV1alpha2::AuditLogConfig, decorator: Google::Apis::DomainsV1alpha2::AuditLogConfig::Representation + + property :service, as: 'service' + end + end + + class AuditLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' + property :log_type, as: 'logType' + end + end + + class AuthorizationCode + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::DomainsV1alpha2::Expr, decorator: Google::Apis::DomainsV1alpha2::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class ConfigureContactSettingsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :contact_notices, as: 'contactNotices' + property :contact_settings, as: 'contactSettings', class: Google::Apis::DomainsV1alpha2::ContactSettings, decorator: Google::Apis::DomainsV1alpha2::ContactSettings::Representation + + property :update_mask, as: 'updateMask' + property :validate_only, as: 'validateOnly' + end + end + + class ConfigureDnsSettingsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dns_settings, as: 'dnsSettings', class: Google::Apis::DomainsV1alpha2::DnsSettings, decorator: Google::Apis::DomainsV1alpha2::DnsSettings::Representation + + property :update_mask, as: 'updateMask' + property :validate_only, as: 'validateOnly' + end + end + + class ConfigureManagementSettingsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :management_settings, as: 'managementSettings', class: Google::Apis::DomainsV1alpha2::ManagementSettings, decorator: Google::Apis::DomainsV1alpha2::ManagementSettings::Representation + + property :update_mask, as: 'updateMask' + end + end + + class Contact + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :fax_number, as: 'faxNumber' + property :phone_number, as: 'phoneNumber' + property :postal_address, as: 'postalAddress', class: Google::Apis::DomainsV1alpha2::PostalAddress, decorator: Google::Apis::DomainsV1alpha2::PostalAddress::Representation + + end + end + + class ContactSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :admin_contact, as: 'adminContact', class: Google::Apis::DomainsV1alpha2::Contact, decorator: Google::Apis::DomainsV1alpha2::Contact::Representation + + property :privacy, as: 'privacy' + property :registrant_contact, as: 'registrantContact', class: Google::Apis::DomainsV1alpha2::Contact, decorator: Google::Apis::DomainsV1alpha2::Contact::Representation + + property :technical_contact, as: 'technicalContact', class: Google::Apis::DomainsV1alpha2::Contact, decorator: Google::Apis::DomainsV1alpha2::Contact::Representation + + end + end + + class CustomDns + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ds_records, as: 'dsRecords', class: Google::Apis::DomainsV1alpha2::DsRecord, decorator: Google::Apis::DomainsV1alpha2::DsRecord::Representation + + collection :name_servers, as: 'nameServers' + end + end + + class DnsSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :custom_dns, as: 'customDns', class: Google::Apis::DomainsV1alpha2::CustomDns, decorator: Google::Apis::DomainsV1alpha2::CustomDns::Representation + + collection :glue_records, as: 'glueRecords', class: Google::Apis::DomainsV1alpha2::GlueRecord, decorator: Google::Apis::DomainsV1alpha2::GlueRecord::Representation + + property :google_domains_dns, as: 'googleDomainsDns', class: Google::Apis::DomainsV1alpha2::GoogleDomainsDns, decorator: Google::Apis::DomainsV1alpha2::GoogleDomainsDns::Representation + + end + end + + class DsRecord + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :algorithm, as: 'algorithm' + property :digest, as: 'digest' + property :digest_type, as: 'digestType' + property :key_tag, as: 'keyTag' + end + end + + class ExportRegistrationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class GlueRecord + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :host_name, as: 'hostName' + collection :ipv4_addresses, as: 'ipv4Addresses' + collection :ipv6_addresses, as: 'ipv6Addresses' + end + end + + class GoogleDomainsDns + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ds_records, as: 'dsRecords', class: Google::Apis::DomainsV1alpha2::DsRecord, decorator: Google::Apis::DomainsV1alpha2::DsRecord::Representation + + property :ds_state, as: 'dsState' + collection :name_servers, as: 'nameServers' + end + end + + class ListLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::DomainsV1alpha2::Location, decorator: Google::Apis::DomainsV1alpha2::Location::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::DomainsV1alpha2::Operation, decorator: Google::Apis::DomainsV1alpha2::Operation::Representation + + end + end + + class ListRegistrationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :registrations, as: 'registrations', class: Google::Apis::DomainsV1alpha2::Registration, decorator: Google::Apis::DomainsV1alpha2::Registration::Representation + + end + end + + class Location + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + hash :labels, as: 'labels' + property :location_id, as: 'locationId' + hash :metadata, as: 'metadata' + property :name, as: 'name' + end + end + + class ManagementSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :renewal_method, as: 'renewalMethod' + property :transfer_lock_state, as: 'transferLockState' + end + end + + class Money + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :currency_code, as: 'currencyCode' + property :nanos, as: 'nanos' + property :units, :numeric_string => true, as: 'units' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::DomainsV1alpha2::Status, decorator: Google::Apis::DomainsV1alpha2::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + property :create_time, as: 'createTime' + property :end_time, as: 'endTime' + property :status_detail, as: 'statusDetail' + property :target, as: 'target' + property :verb, as: 'verb' + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::DomainsV1alpha2::AuditConfig, decorator: Google::Apis::DomainsV1alpha2::AuditConfig::Representation + + collection :bindings, as: 'bindings', class: Google::Apis::DomainsV1alpha2::Binding, decorator: Google::Apis::DomainsV1alpha2::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + end + end + + class PostalAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :address_lines, as: 'addressLines' + property :administrative_area, as: 'administrativeArea' + property :language_code, as: 'languageCode' + property :locality, as: 'locality' + property :organization, as: 'organization' + property :postal_code, as: 'postalCode' + collection :recipients, as: 'recipients' + property :region_code, as: 'regionCode' + property :revision, as: 'revision' + property :sorting_code, as: 'sortingCode' + property :sublocality, as: 'sublocality' + end + end + + class RegisterDomainRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :contact_notices, as: 'contactNotices' + collection :domain_notices, as: 'domainNotices' + property :registration, as: 'registration', class: Google::Apis::DomainsV1alpha2::Registration, decorator: Google::Apis::DomainsV1alpha2::Registration::Representation + + property :validate_only, as: 'validateOnly' + property :yearly_price, as: 'yearlyPrice', class: Google::Apis::DomainsV1alpha2::Money, decorator: Google::Apis::DomainsV1alpha2::Money::Representation + + end + end + + class RegisterParameters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :availability, as: 'availability' + property :domain_name, as: 'domainName' + collection :domain_notices, as: 'domainNotices' + collection :supported_privacy, as: 'supportedPrivacy' + property :yearly_price, as: 'yearlyPrice', class: Google::Apis::DomainsV1alpha2::Money, decorator: Google::Apis::DomainsV1alpha2::Money::Representation + + end + end + + class Registration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :contact_settings, as: 'contactSettings', class: Google::Apis::DomainsV1alpha2::ContactSettings, decorator: Google::Apis::DomainsV1alpha2::ContactSettings::Representation + + property :create_time, as: 'createTime' + property :dns_settings, as: 'dnsSettings', class: Google::Apis::DomainsV1alpha2::DnsSettings, decorator: Google::Apis::DomainsV1alpha2::DnsSettings::Representation + + property :domain_name, as: 'domainName' + property :expire_time, as: 'expireTime' + collection :issues, as: 'issues' + hash :labels, as: 'labels' + property :management_settings, as: 'managementSettings', class: Google::Apis::DomainsV1alpha2::ManagementSettings, decorator: Google::Apis::DomainsV1alpha2::ManagementSettings::Representation + + property :name, as: 'name' + property :pending_contact_settings, as: 'pendingContactSettings', class: Google::Apis::DomainsV1alpha2::ContactSettings, decorator: Google::Apis::DomainsV1alpha2::ContactSettings::Representation + + property :state, as: 'state' + collection :supported_privacy, as: 'supportedPrivacy' + end + end + + class ResetAuthorizationCodeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class RetrieveRegisterParametersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :register_parameters, as: 'registerParameters', class: Google::Apis::DomainsV1alpha2::RegisterParameters, decorator: Google::Apis::DomainsV1alpha2::RegisterParameters::Representation + + end + end + + class SearchDomainsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :register_parameters, as: 'registerParameters', class: Google::Apis::DomainsV1alpha2::RegisterParameters, decorator: Google::Apis::DomainsV1alpha2::RegisterParameters::Representation + + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::DomainsV1alpha2::Policy, decorator: Google::Apis::DomainsV1alpha2::Policy::Representation + + property :update_mask, as: 'updateMask' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + end + end +end diff --git a/generated/google/apis/domains_v1alpha2/service.rb b/generated/google/apis/domains_v1alpha2/service.rb new file mode 100644 index 000000000..0c7bb5413 --- /dev/null +++ b/generated/google/apis/domains_v1alpha2/service.rb @@ -0,0 +1,805 @@ +# 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 DomainsV1alpha2 + # Cloud Domains API + # + # Enables management and configuration of domain names. + # + # @example + # require 'google/apis/domains_v1alpha2' + # + # Domains = Google::Apis::DomainsV1alpha2 # Alias the module + # service = Domains::CloudDomainsService.new + # + # @see https://cloud.google.com/domains/ + class CloudDomainsService < 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://domains.googleapis.com/', '') + @batch_path = 'batch' + end + + # Gets information about a location. + # @param [String] name + # Resource name for the location. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1alpha2::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Location] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha2/{+name}', options) + command.response_representation = Google::Apis::DomainsV1alpha2::Location::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1alpha2::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::ListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha2/{+name}/locations', options) + command.response_representation = Google::Apis::DomainsV1alpha2::ListLocationsResponse::Representation + command.response_class = Google::Apis::DomainsV1alpha2::ListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1alpha2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha2/{+name}', options) + command.response_representation = Google::Apis::DomainsV1alpha2::Operation::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding allows API services to override the binding to use different resource + # name schemes, such as `users/*/operations`. To override the binding, API + # services can add a binding such as `"/v1/`name=users/*`/operations"` to their + # service configuration. For backwards compatibility, the default name includes + # the operations collection id, however overriding users must ensure the name + # binding is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1alpha2::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha2/{+name}/operations', options) + command.response_representation = Google::Apis::DomainsV1alpha2::ListOperationsResponse::Representation + command.response_class = Google::Apis::DomainsV1alpha2::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a `Registration`'s contact settings. Some changes require confirmation + # by the domain's registrant contact . + # @param [String] registration + # Required. The name of the `Registration` whose contact settings are being + # updated, in the format `projects/*/locations/*/registrations/*`. + # @param [Google::Apis::DomainsV1alpha2::ConfigureContactSettingsRequest] configure_contact_settings_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::DomainsV1alpha2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def configure_registration_contact_settings(registration, configure_contact_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha2/{+registration}:configureContactSettings', options) + command.request_representation = Google::Apis::DomainsV1alpha2::ConfigureContactSettingsRequest::Representation + command.request_object = configure_contact_settings_request_object + command.response_representation = Google::Apis::DomainsV1alpha2::Operation::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Operation + command.params['registration'] = registration unless registration.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a `Registration`'s DNS settings. + # @param [String] registration + # Required. The name of the `Registration` whose DNS settings are being updated, + # in the format `projects/*/locations/*/registrations/*`. + # @param [Google::Apis::DomainsV1alpha2::ConfigureDnsSettingsRequest] configure_dns_settings_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::DomainsV1alpha2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def configure_registration_dns_settings(registration, configure_dns_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha2/{+registration}:configureDnsSettings', options) + command.request_representation = Google::Apis::DomainsV1alpha2::ConfigureDnsSettingsRequest::Representation + command.request_object = configure_dns_settings_request_object + command.response_representation = Google::Apis::DomainsV1alpha2::Operation::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Operation + command.params['registration'] = registration unless registration.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a `Registration`'s management settings. + # @param [String] registration + # Required. The name of the `Registration` whose management settings are being + # updated, in the format `projects/*/locations/*/registrations/*`. + # @param [Google::Apis::DomainsV1alpha2::ConfigureManagementSettingsRequest] configure_management_settings_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::DomainsV1alpha2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def configure_registration_management_settings(registration, configure_management_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha2/{+registration}:configureManagementSettings', options) + command.request_representation = Google::Apis::DomainsV1alpha2::ConfigureManagementSettingsRequest::Representation + command.request_object = configure_management_settings_request_object + command.response_representation = Google::Apis::DomainsV1alpha2::Operation::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Operation + command.params['registration'] = registration unless registration.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a `Registration` resource. This method only works on resources in one + # of the following states: * `state` is `EXPORTED` with `expire_time` in the + # past * `state` is `REGISTRATION_FAILED` + # @param [String] name + # Required. The name of the `Registration` to delete, in the format `projects/*/ + # locations/*/registrations/*`. + # @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::DomainsV1alpha2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_registration(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha2/{+name}', options) + command.response_representation = Google::Apis::DomainsV1alpha2::Operation::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exports a `Registration` that you no longer want to use with Cloud Domains. + # You can continue to use the domain in [Google Domains](https://domains.google/) + # until it expires. If the export is successful: * The resource's `state` + # becomes `EXPORTED`, meaning that it is no longer managed by Cloud Domains * + # Because individual users can own domains in Google Domains, the calling user + # becomes the domain's sole owner. Permissions for the domain are subsequently + # managed in Google Domains. * Without further action, the domain does not renew + # automatically. The new owner can set up billing in Google Domains to renew the + # domain if needed. + # @param [String] name + # Required. The name of the `Registration` to export, in the format `projects/*/ + # locations/*/registrations/*`. + # @param [Google::Apis::DomainsV1alpha2::ExportRegistrationRequest] export_registration_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::DomainsV1alpha2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_registration(name, export_registration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha2/{+name}:export', options) + command.request_representation = Google::Apis::DomainsV1alpha2::ExportRegistrationRequest::Representation + command.request_object = export_registration_request_object + command.response_representation = Google::Apis::DomainsV1alpha2::Operation::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the details of a `Registration` resource. + # @param [String] name + # Required. The name of the `Registration` to get, in the format `projects/*/ + # locations/*/registrations/*`. + # @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::DomainsV1alpha2::Registration] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Registration] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_registration(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha2/{+name}', options) + command.response_representation = Google::Apis::DomainsV1alpha2::Registration::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Registration + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). + # @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::DomainsV1alpha2::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_registration_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::DomainsV1alpha2::Policy::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Policy + command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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 `Registration` resources in a project. + # @param [String] parent + # Required. The project and location from which to list `Registration`s, + # specified in the format `projects/*/locations/*`. + # @param [String] filter + # Filter expression to restrict the `Registration`s returned. The expression + # must specify the field name, a comparison operator, and the value that you + # want to use for filtering. The value must be a string, a number, a boolean, or + # an enum value. The comparison operator should be one of =, !=, >, <, >=, <=, + # or : for prefix or wildcard matches. For example, to filter to a specific + # domain name, use an expression like `domainName="example.com"`. You can also + # check for the existence of a field; for example, to find domains using custom + # DNS settings, use an expression like `dnsSettings.customDns:*`. You can also + # create compound filters by combining expressions with the `AND` and `OR` + # operators. For example, to find domains that are suspended or have specific + # issues flagged, use an expression like `(state=SUSPENDED) OR (issue:*)`. + # @param [Fixnum] page_size + # Maximum number of results to return. + # @param [String] page_token + # When set to the `next_page_token` from a prior response, provides the next + # page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1alpha2::ListRegistrationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::ListRegistrationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_registrations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha2/{+parent}/registrations', options) + command.response_representation = Google::Apis::DomainsV1alpha2::ListRegistrationsResponse::Representation + command.response_class = Google::Apis::DomainsV1alpha2::ListRegistrationsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates select fields of a `Registration` resource, notably `labels`. To + # update other fields, use the appropriate custom update method: * To update + # management settings, see `ConfigureManagementSettings` * To update DNS + # configuration, see `ConfigureDnsSettings` * To update contact information, see + # `ConfigureContactSettings` + # @param [String] name + # Output only. Name of the `Registration` resource, in the format `projects/*/ + # locations/*/registrations/`. + # @param [Google::Apis::DomainsV1alpha2::Registration] registration_object + # @param [String] update_mask + # Required. The field mask describing which fields to update as a comma- + # separated list. For example, if only the labels are being updated, the ` + # update_mask` would be `"labels"`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1alpha2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_registration(name, registration_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha2/{+name}', options) + command.request_representation = Google::Apis::DomainsV1alpha2::Registration::Representation + command.request_object = registration_object + command.response_representation = Google::Apis::DomainsV1alpha2::Operation::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Registers a new domain name and creates a corresponding `Registration` + # resource. Call `RetrieveRegisterParameters` first to check availability of the + # domain name and determine parameters like price that are needed to build a + # call to this method. A successful call creates a `Registration` resource in + # state `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 minutes, + # indicating that the domain was successfully registered. If the resource ends + # up in state `REGISTRATION_FAILED`, it indicates that the domain was not + # registered successfully, and you can safely delete the resource and retry + # registration. + # @param [String] parent + # Required. The parent resource of the `Registration`. Must be in the format ` + # projects/*/locations/*`. + # @param [Google::Apis::DomainsV1alpha2::RegisterDomainRequest] register_domain_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::DomainsV1alpha2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def register_registration_domain(parent, register_domain_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha2/{+parent}/registrations:register', options) + command.request_representation = Google::Apis::DomainsV1alpha2::RegisterDomainRequest::Representation + command.request_object = register_domain_request_object + command.response_representation = Google::Apis::DomainsV1alpha2::Operation::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Operation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Resets the authorization code of the `Registration` to a new random string. + # You can call this method only after 60 days have elapsed since the initial + # domain registration. + # @param [String] registration + # Required. The name of the `Registration` whose authorization code is being + # reset, in the format `projects/*/locations/*/registrations/*`. + # @param [Google::Apis::DomainsV1alpha2::ResetAuthorizationCodeRequest] reset_authorization_code_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::DomainsV1alpha2::AuthorizationCode] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::AuthorizationCode] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_registration_authorization_code(registration, reset_authorization_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha2/{+registration}:resetAuthorizationCode', options) + command.request_representation = Google::Apis::DomainsV1alpha2::ResetAuthorizationCodeRequest::Representation + command.request_object = reset_authorization_code_request_object + command.response_representation = Google::Apis::DomainsV1alpha2::AuthorizationCode::Representation + command.response_class = Google::Apis::DomainsV1alpha2::AuthorizationCode + command.params['registration'] = registration unless registration.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 authorization code of the `Registration` for the purpose of + # transferring the domain to another registrar. You can call this method only + # after 60 days have elapsed since the initial domain registration. + # @param [String] registration + # Required. The name of the `Registration` whose authorization code is being + # retrieved, in the format `projects/*/locations/*/registrations/*`. + # @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::DomainsV1alpha2::AuthorizationCode] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::AuthorizationCode] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def retrieve_project_location_registration_authorization_code(registration, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha2/{+registration}:retrieveAuthorizationCode', options) + command.response_representation = Google::Apis::DomainsV1alpha2::AuthorizationCode::Representation + command.response_class = Google::Apis::DomainsV1alpha2::AuthorizationCode + command.params['registration'] = registration unless registration.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 parameters needed to register a new domain name, including price and up- + # to-date availability. Use the returned values to call `RegisterDomain`. + # @param [String] location + # Required. The location. Must be in the format `projects/*/locations/*`. + # @param [String] domain_name + # Required. The domain name. Unicode domain names must be expressed in Punycode + # format. + # @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::DomainsV1alpha2::RetrieveRegisterParametersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::RetrieveRegisterParametersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def retrieve_project_location_registration_register_parameters(location, domain_name: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha2/{+location}/registrations:retrieveRegisterParameters', options) + command.response_representation = Google::Apis::DomainsV1alpha2::RetrieveRegisterParametersResponse::Representation + command.response_class = Google::Apis::DomainsV1alpha2::RetrieveRegisterParametersResponse + command.params['location'] = location unless location.nil? + command.query['domainName'] = domain_name unless domain_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 + + # Searches for available domain names similar to the provided query. + # Availability results from this method are approximate; call ` + # RetrieveRegisterParameters` on a domain before registering to confirm + # availability. + # @param [String] location + # Required. The location. Must be in the format `projects/*/locations/*`. + # @param [String] query + # Required. String used to search for available domain names. + # @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::DomainsV1alpha2::SearchDomainsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::SearchDomainsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def search_project_location_registration_domains(location, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha2/{+location}/registrations:searchDomains', options) + command.response_representation = Google::Apis::DomainsV1alpha2::SearchDomainsResponse::Representation + command.response_class = Google::Apis::DomainsV1alpha2::SearchDomainsResponse + command.params['location'] = location unless location.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. + # @param [Google::Apis::DomainsV1alpha2::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1alpha2::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_registration_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::DomainsV1alpha2::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::DomainsV1alpha2::Policy::Representation + command.response_class = Google::Apis::DomainsV1alpha2::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. + # @param [Google::Apis::DomainsV1alpha2::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1alpha2::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1alpha2::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_registration_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::DomainsV1alpha2::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::DomainsV1alpha2::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::DomainsV1alpha2::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/domains_v1beta1.rb b/generated/google/apis/domains_v1beta1.rb new file mode 100644 index 000000000..fbf9fbffb --- /dev/null +++ b/generated/google/apis/domains_v1beta1.rb @@ -0,0 +1,34 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/domains_v1beta1/service.rb' +require 'google/apis/domains_v1beta1/classes.rb' +require 'google/apis/domains_v1beta1/representations.rb' + +module Google + module Apis + # Cloud Domains API + # + # Enables management and configuration of domain names. + # + # @see https://cloud.google.com/domains/ + module DomainsV1beta1 + VERSION = 'V1beta1' + REVISION = '20201013' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/domains_v1beta1/classes.rb b/generated/google/apis/domains_v1beta1/classes.rb new file mode 100644 index 000000000..613d9df40 --- /dev/null +++ b/generated/google/apis/domains_v1beta1/classes.rb @@ -0,0 +1,1534 @@ +# 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 DomainsV1beta1 + + # Specifies the audit configuration for a service. The configuration determines + # which permission types are logged, and what identities, if any, are exempted + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. + class AuditConfig + include Google::Apis::Core::Hashable + + # The configuration for logging of each type of permission. + # Corresponds to the JSON property `auditLogConfigs` + # @return [Array] + attr_accessor :audit_log_configs + + # Specifies a service that will be enabled for audit logging. For example, ` + # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special + # value that covers all services. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) + @service = args[:service] if args.key?(:service) + end + end + + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. + class AuditLogConfig + include Google::Apis::Core::Hashable + + # Specifies the identities that do not cause logging for this type of permission. + # Follows the same format of Binding.members. + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + + # The log type that this config enables. + # Corresponds to the JSON property `logType` + # @return [String] + attr_accessor :log_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @log_type = args[:log_type] if args.key?(:log_type) + end + end + + # Defines an authorization code. + class AuthorizationCode + include Google::Apis::Core::Hashable + + # The Authorization Code in ASCII. It can be used to transfer the domain to or + # from another registrar. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. + # Corresponds to the JSON property `condition` + # @return [Google::Apis::DomainsV1beta1::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Request for the `ConfigureContactSettings` method. + class ConfigureContactSettingsRequest + include Google::Apis::Core::Hashable + + # The list of contact notices that the caller acknowledges. The notices required + # here depend on the values specified in `contact_settings`. + # Corresponds to the JSON property `contactNotices` + # @return [Array] + attr_accessor :contact_notices + + # Defines the contact information associated with a `Registration`. [ICANN]( + # https://icann.org/) requires all domain names to have associated contact + # information. The `registrant_contact` is considered the domain's legal owner, + # and often the other contacts are identical. + # Corresponds to the JSON property `contactSettings` + # @return [Google::Apis::DomainsV1beta1::ContactSettings] + attr_accessor :contact_settings + + # Required. The field mask describing which fields to update as a comma- + # separated list. For example, if only the registrant contact is being updated, + # the `update_mask` would be `"registrant_contact"`. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + # Validate the request without actually updating the contact settings. + # Corresponds to the JSON property `validateOnly` + # @return [Boolean] + attr_accessor :validate_only + alias_method :validate_only?, :validate_only + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_notices = args[:contact_notices] if args.key?(:contact_notices) + @contact_settings = args[:contact_settings] if args.key?(:contact_settings) + @update_mask = args[:update_mask] if args.key?(:update_mask) + @validate_only = args[:validate_only] if args.key?(:validate_only) + end + end + + # Request for the `ConfigureDnsSettings` method. + class ConfigureDnsSettingsRequest + include Google::Apis::Core::Hashable + + # Defines the DNS configuration of a `Registration`, including name servers, + # DNSSEC, and glue records. + # Corresponds to the JSON property `dnsSettings` + # @return [Google::Apis::DomainsV1beta1::DnsSettings] + attr_accessor :dns_settings + + # Required. The field mask describing which fields to update as a comma- + # separated list. For example, if only the name servers are being updated for an + # existing Custom DNS configuration, the `update_mask` would be `"custom_dns. + # name_servers"`. When changing the DNS provider from one type to another, pass + # the new provider's field name as part of the field mask. For example, when + # changing from a Google Domains DNS configuration to a Custom DNS configuration, + # the `update_mask` would be `"custom_dns"`. // + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + # Validate the request without actually updating the DNS settings. + # Corresponds to the JSON property `validateOnly` + # @return [Boolean] + attr_accessor :validate_only + alias_method :validate_only?, :validate_only + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dns_settings = args[:dns_settings] if args.key?(:dns_settings) + @update_mask = args[:update_mask] if args.key?(:update_mask) + @validate_only = args[:validate_only] if args.key?(:validate_only) + end + end + + # Request for the `ConfigureManagementSettings` method. + class ConfigureManagementSettingsRequest + include Google::Apis::Core::Hashable + + # Defines renewal, billing, and transfer settings for a `Registration`. + # Corresponds to the JSON property `managementSettings` + # @return [Google::Apis::DomainsV1beta1::ManagementSettings] + attr_accessor :management_settings + + # Required. The field mask describing which fields to update as a comma- + # separated list. For example, if only the transfer lock is being updated, the ` + # update_mask` would be `"transfer_lock_state"`. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @management_settings = args[:management_settings] if args.key?(:management_settings) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # Details required for a contact associated with a `Registration`. + class Contact + include Google::Apis::Core::Hashable + + # Required. Email address of the contact. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # Fax number of the contact in international format. For example, `"+1-800-555- + # 0123"`. + # Corresponds to the JSON property `faxNumber` + # @return [String] + attr_accessor :fax_number + + # Required. Phone number of the contact in international format. For example, `"+ + # 1-800-555-0123"`. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # Represents a postal address, e.g. for postal delivery or payments addresses. + # Given a postal address, a postal service can deliver items to a premise, P.O. + # Box or similar. It is not intended to model geographical locations (roads, + # towns, mountains). In typical usage an address would be created via user input + # or from importing existing data, depending on the type of process. Advice on + # address input / editing: - Use an i18n-ready address widget such as https:// + # github.com/google/libaddressinput) - Users should not be presented with UI + # elements for input or editing of fields outside countries where that field is + # used. For more guidance on how to use this schema, please see: https://support. + # google.com/business/answer/6397478 + # Corresponds to the JSON property `postalAddress` + # @return [Google::Apis::DomainsV1beta1::PostalAddress] + attr_accessor :postal_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] if args.key?(:email) + @fax_number = args[:fax_number] if args.key?(:fax_number) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @postal_address = args[:postal_address] if args.key?(:postal_address) + end + end + + # Defines the contact information associated with a `Registration`. [ICANN]( + # https://icann.org/) requires all domain names to have associated contact + # information. The `registrant_contact` is considered the domain's legal owner, + # and often the other contacts are identical. + class ContactSettings + include Google::Apis::Core::Hashable + + # Details required for a contact associated with a `Registration`. + # Corresponds to the JSON property `adminContact` + # @return [Google::Apis::DomainsV1beta1::Contact] + attr_accessor :admin_contact + + # Required. Privacy setting for the contacts associated with the `Registration`. + # Corresponds to the JSON property `privacy` + # @return [String] + attr_accessor :privacy + + # Details required for a contact associated with a `Registration`. + # Corresponds to the JSON property `registrantContact` + # @return [Google::Apis::DomainsV1beta1::Contact] + attr_accessor :registrant_contact + + # Details required for a contact associated with a `Registration`. + # Corresponds to the JSON property `technicalContact` + # @return [Google::Apis::DomainsV1beta1::Contact] + attr_accessor :technical_contact + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @admin_contact = args[:admin_contact] if args.key?(:admin_contact) + @privacy = args[:privacy] if args.key?(:privacy) + @registrant_contact = args[:registrant_contact] if args.key?(:registrant_contact) + @technical_contact = args[:technical_contact] if args.key?(:technical_contact) + end + end + + # Configuration for an arbitrary DNS provider. + class CustomDns + include Google::Apis::Core::Hashable + + # The list of DS records for this domain, which are used to enable DNSSEC. The + # domain's DNS provider can provide the values to set here. If this field is + # empty, DNSSEC is disabled. + # Corresponds to the JSON property `dsRecords` + # @return [Array] + attr_accessor :ds_records + + # Required. A list of name servers that store the DNS zone for this domain. Each + # name server is a domain name, with Unicode domain names expressed in Punycode + # format. + # Corresponds to the JSON property `nameServers` + # @return [Array] + attr_accessor :name_servers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ds_records = args[:ds_records] if args.key?(:ds_records) + @name_servers = args[:name_servers] if args.key?(:name_servers) + end + end + + # Defines the DNS configuration of a `Registration`, including name servers, + # DNSSEC, and glue records. + class DnsSettings + include Google::Apis::Core::Hashable + + # Configuration for an arbitrary DNS provider. + # Corresponds to the JSON property `customDns` + # @return [Google::Apis::DomainsV1beta1::CustomDns] + attr_accessor :custom_dns + + # The list of glue records for this `Registration`. Commonly empty. + # Corresponds to the JSON property `glueRecords` + # @return [Array] + attr_accessor :glue_records + + # Configuration for using the free DNS zone provided by Google Domains as a ` + # Registration`'s `dns_provider`. You cannot configure the DNS zone itself using + # the API. To configure the DNS zone, go to [Google Domains](https://domains. + # google/). + # Corresponds to the JSON property `googleDomainsDns` + # @return [Google::Apis::DomainsV1beta1::GoogleDomainsDns] + attr_accessor :google_domains_dns + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @custom_dns = args[:custom_dns] if args.key?(:custom_dns) + @glue_records = args[:glue_records] if args.key?(:glue_records) + @google_domains_dns = args[:google_domains_dns] if args.key?(:google_domains_dns) + end + end + + # Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC for + # a domain. It contains a digest (hash) of a DNSKEY record that must be present + # in the domain's DNS zone. + class DsRecord + include Google::Apis::Core::Hashable + + # The algorithm used to generate the referenced DNSKEY. + # Corresponds to the JSON property `algorithm` + # @return [String] + attr_accessor :algorithm + + # The digest generated from the referenced DNSKEY. + # Corresponds to the JSON property `digest` + # @return [String] + attr_accessor :digest + + # The hash function used to generate the digest of the referenced DNSKEY. + # Corresponds to the JSON property `digestType` + # @return [String] + attr_accessor :digest_type + + # The key tag of the record. Must be set in range 0 -- 65535. + # Corresponds to the JSON property `keyTag` + # @return [Fixnum] + attr_accessor :key_tag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @algorithm = args[:algorithm] if args.key?(:algorithm) + @digest = args[:digest] if args.key?(:digest) + @digest_type = args[:digest_type] if args.key?(:digest_type) + @key_tag = args[:key_tag] if args.key?(:key_tag) + end + end + + # Request for the `ExportRegistration` method. + class ExportRegistrationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. + class Expr + include Google::Apis::Core::Hashable + + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in Common Expression Language syntax. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Defines a host on your domain that is a DNS name server for your domain and/or + # other domains. Glue records are a way of making the IP address of a name + # server known, even when it serves DNS queries for its parent domain. For + # example, when `ns.example.com` is a name server for `example.com`, the host ` + # ns.example.com` must have a glue record to break the circular DNS reference. + class GlueRecord + include Google::Apis::Core::Hashable + + # Required. Domain name of the host in Punycode format. + # Corresponds to the JSON property `hostName` + # @return [String] + attr_accessor :host_name + + # List of IPv4 addresses corresponding to this host in the standard decimal + # format (e.g. `198.51.100.1`). At least one of `ipv4_address` and `ipv6_address` + # must be set. + # Corresponds to the JSON property `ipv4Addresses` + # @return [Array] + attr_accessor :ipv4_addresses + + # List of IPv6 addresses corresponding to this host in the standard hexadecimal + # format (e.g. `2001:db8::`). At least one of `ipv4_address` and `ipv6_address` + # must be set. + # Corresponds to the JSON property `ipv6Addresses` + # @return [Array] + attr_accessor :ipv6_addresses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @host_name = args[:host_name] if args.key?(:host_name) + @ipv4_addresses = args[:ipv4_addresses] if args.key?(:ipv4_addresses) + @ipv6_addresses = args[:ipv6_addresses] if args.key?(:ipv6_addresses) + end + end + + # Configuration for using the free DNS zone provided by Google Domains as a ` + # Registration`'s `dns_provider`. You cannot configure the DNS zone itself using + # the API. To configure the DNS zone, go to [Google Domains](https://domains. + # google/). + class GoogleDomainsDns + include Google::Apis::Core::Hashable + + # Output only. The list of DS records published for this domain. The list is + # automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`, otherwise + # it remains empty. + # Corresponds to the JSON property `dsRecords` + # @return [Array] + attr_accessor :ds_records + + # Required. The state of DS records for this domain. Used to enable or disable + # automatic DNSSEC. + # Corresponds to the JSON property `dsState` + # @return [String] + attr_accessor :ds_state + + # Output only. A list of name servers that store the DNS zone for this domain. + # Each name server is a domain name, with Unicode domain names expressed in + # Punycode format. This field is automatically populated with the name servers + # assigned to the Google Domains DNS zone. + # Corresponds to the JSON property `nameServers` + # @return [Array] + attr_accessor :name_servers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ds_records = args[:ds_records] if args.key?(:ds_records) + @ds_state = args[:ds_state] if args.key?(:ds_state) + @name_servers = args[:name_servers] if args.key?(:name_servers) + end + end + + # The response message for Locations.ListLocations. + class ListLocationsResponse + include Google::Apis::Core::Hashable + + # A list of locations that matches the specified filter in the request. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for Operations.ListOperations. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) + end + end + + # Response for the `ListRegistrations` method. + class ListRegistrationsResponse + include Google::Apis::Core::Hashable + + # When present, there are more results to retrieve. Set `page_token` to this + # value on a subsequent call to get the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of `Registration`s. + # Corresponds to the JSON property `registrations` + # @return [Array] + attr_accessor :registrations + + 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) + @registrations = args[:registrations] if args.key?(:registrations) + end + end + + # A resource that represents Google Cloud Platform location. + class Location + include Google::Apis::Core::Hashable + + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The canonical id for this location. For example: `"us-east1"`. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Service-specific metadata. For example the available capacity at the given + # location. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @location_id = args[:location_id] if args.key?(:location_id) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + end + end + + # Defines renewal, billing, and transfer settings for a `Registration`. + class ManagementSettings + include Google::Apis::Core::Hashable + + # Output only. The renewal method for this `Registration`. + # Corresponds to the JSON property `renewalMethod` + # @return [String] + attr_accessor :renewal_method + + # Controls whether the domain can be transferred to another registrar. + # Corresponds to the JSON property `transferLockState` + # @return [String] + attr_accessor :transfer_lock_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @renewal_method = args[:renewal_method] if args.key?(:renewal_method) + @transfer_lock_state = args[:transfer_lock_state] if args.key?(:transfer_lock_state) + end + end + + # Represents an amount of money with its currency type. + class Money + include Google::Apis::Core::Hashable + + # The three-letter currency code defined in ISO 4217. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # Number of nano (10^-9) units of the amount. The value must be between -999,999, + # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be + # positive or zero. If `units` is zero, `nanos` can be positive, zero, or + # negative. If `units` is negative, `nanos` must be negative or zero. For + # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # The whole units of the amount. For example if `currencyCode` is `"USD"`, then + # 1 unit is one US dollar. + # Corresponds to the JSON property `units` + # @return [Fixnum] + attr_accessor :units + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @nanos = args[:nanos] if args.key?(:nanos) + @units = args[:units] if args.key?(:units) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::DomainsV1beta1::Status] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # Represents the metadata of the long-running operation. Output only. + class OperationMetadata + include Google::Apis::Core::Hashable + + # API version used to start the operation. + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # The time the operation was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The time the operation finished running. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Human-readable status of the operation, if any. + # Corresponds to the JSON property `statusDetail` + # @return [String] + attr_accessor :status_detail + + # Server-defined resource path for the target of the operation. + # Corresponds to the JSON property `target` + # @return [String] + attr_accessor :target + + # Name of the verb executed by the operation. + # Corresponds to the JSON property `verb` + # @return [String] + attr_accessor :verb + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @create_time = args[:create_time] if args.key?(:create_time) + @end_time = args[:end_time] if args.key?(:end_time) + @status_detail = args[:status_detail] if args.key?(:status_detail) + @target = args[:target] if args.key?(:target) + @verb = args[:verb] if args.key?(:verb) + end + end + + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). + class Policy + include Google::Apis::Core::Hashable + + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_configs = args[:audit_configs] if args.key?(:audit_configs) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # Represents a postal address, e.g. for postal delivery or payments addresses. + # Given a postal address, a postal service can deliver items to a premise, P.O. + # Box or similar. It is not intended to model geographical locations (roads, + # towns, mountains). In typical usage an address would be created via user input + # or from importing existing data, depending on the type of process. Advice on + # address input / editing: - Use an i18n-ready address widget such as https:// + # github.com/google/libaddressinput) - Users should not be presented with UI + # elements for input or editing of fields outside countries where that field is + # used. For more guidance on how to use this schema, please see: https://support. + # google.com/business/answer/6397478 + class PostalAddress + include Google::Apis::Core::Hashable + + # Unstructured address lines describing the lower levels of an address. Because + # values in address_lines do not have type information and may sometimes contain + # multiple values in a single field (e.g. "Austin, TX"), it is important that + # the line order is clear. The order of address lines should be "envelope order" + # for the country/region of the address. In places where this can vary (e.g. + # Japan), address_language is used to make it explicit (e.g. "ja" for large-to- + # small ordering and "ja-Latn" or "en" for small-to-large). This way, the most + # specific line of an address can be selected based on the language. The minimum + # permitted structural representation of an address consists of a region_code + # with all remaining information placed in the address_lines. It would be + # possible to format such an address very approximately without geocoding, but + # no semantic reasoning could be made about any of the address components until + # it was at least partially resolved. Creating an address only containing a + # region_code and address_lines, and then geocoding is the recommended way to + # handle completely unstructured addresses (as opposed to guessing which parts + # of the address should be localities or administrative areas). + # Corresponds to the JSON property `addressLines` + # @return [Array] + attr_accessor :address_lines + + # Optional. Highest administrative subdivision which is used for postal + # addresses of a country or region. For example, this can be a state, a province, + # an oblast, or a prefecture. Specifically, for Spain this is the province and + # not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many + # countries don't use an administrative area in postal addresses. E.g. in + # Switzerland this should be left unpopulated. + # Corresponds to the JSON property `administrativeArea` + # @return [String] + attr_accessor :administrative_area + + # Optional. BCP-47 language code of the contents of this address (if known). + # This is often the UI language of the input form or is expected to match one of + # the languages used in the address' country/region, or their transliterated + # equivalents. This can affect formatting in certain countries, but is not + # critical to the correctness of the data and will never affect any validation + # or other non-formatting related operations. If this value is not known, it + # should be omitted (rather than specifying a possibly incorrect default). + # Examples: "zh-Hant", "ja", "ja-Latn", "en". + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Optional. Generally refers to the city/town portion of the address. Examples: + # US city, IT comune, UK post town. In regions of the world where localities are + # not well defined or do not fit into this structure well, leave locality empty + # and use address_lines. + # Corresponds to the JSON property `locality` + # @return [String] + attr_accessor :locality + + # Optional. The name of the organization at the address. + # Corresponds to the JSON property `organization` + # @return [String] + attr_accessor :organization + + # Optional. Postal code of the address. Not all countries use or require postal + # codes to be present, but where they are used, they may trigger additional + # validation with other parts of the address (e.g. state/zip validation in the U. + # S.A.). + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # Optional. The recipient at the address. This field may, under certain + # circumstances, contain multiline information. For example, it might contain " + # care of" information. + # Corresponds to the JSON property `recipients` + # @return [Array] + attr_accessor :recipients + + # Required. CLDR region code of the country/region of the address. This is never + # inferred and it is up to the user to ensure the value is correct. See http:// + # cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/ + # territory_information.html for details. Example: "CH" for Switzerland. + # Corresponds to the JSON property `regionCode` + # @return [String] + attr_accessor :region_code + + # The schema revision of the `PostalAddress`. This must be set to 0, which is + # the latest revision. All new revisions **must** be backward compatible with + # old revisions. + # Corresponds to the JSON property `revision` + # @return [Fixnum] + attr_accessor :revision + + # Optional. Additional, country-specific, sorting code. This is not used in most + # regions. Where it is used, the value is either a string like "CEDEX", + # optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, + # representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) + # or "post office indicator" (e.g. Côte d'Ivoire). + # Corresponds to the JSON property `sortingCode` + # @return [String] + attr_accessor :sorting_code + + # Optional. Sublocality of the address. For example, this can be neighborhoods, + # boroughs, districts. + # Corresponds to the JSON property `sublocality` + # @return [String] + attr_accessor :sublocality + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address_lines = args[:address_lines] if args.key?(:address_lines) + @administrative_area = args[:administrative_area] if args.key?(:administrative_area) + @language_code = args[:language_code] if args.key?(:language_code) + @locality = args[:locality] if args.key?(:locality) + @organization = args[:organization] if args.key?(:organization) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @recipients = args[:recipients] if args.key?(:recipients) + @region_code = args[:region_code] if args.key?(:region_code) + @revision = args[:revision] if args.key?(:revision) + @sorting_code = args[:sorting_code] if args.key?(:sorting_code) + @sublocality = args[:sublocality] if args.key?(:sublocality) + end + end + + # Request for the `RegisterDomain` method. + class RegisterDomainRequest + include Google::Apis::Core::Hashable + + # The list of contact notices that the caller acknowledges. The notices required + # here depend on the values specified in `registration.contact_settings`. + # Corresponds to the JSON property `contactNotices` + # @return [Array] + attr_accessor :contact_notices + + # The list of domain notices that you acknowledge. Call ` + # RetrieveRegisterParameters` to see the notices that need acknowledgement. + # Corresponds to the JSON property `domainNotices` + # @return [Array] + attr_accessor :domain_notices + + # The `Registration` resource facilitates managing and configuring domain name + # registrations. To create a new `Registration` resource, find a suitable domain + # name by calling the `SearchDomains` method with a query to see available + # domain name options. After choosing a name, call `RetrieveRegisterParameters` + # to ensure availability and obtain information like pricing, which is needed to + # build a call to `RegisterDomain`. + # Corresponds to the JSON property `registration` + # @return [Google::Apis::DomainsV1beta1::Registration] + attr_accessor :registration + + # When true, only validation will be performed, without actually registering the + # domain. Follows: https://cloud.google.com/apis/design/design_patterns# + # request_validation + # Corresponds to the JSON property `validateOnly` + # @return [Boolean] + attr_accessor :validate_only + alias_method :validate_only?, :validate_only + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `yearlyPrice` + # @return [Google::Apis::DomainsV1beta1::Money] + attr_accessor :yearly_price + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_notices = args[:contact_notices] if args.key?(:contact_notices) + @domain_notices = args[:domain_notices] if args.key?(:domain_notices) + @registration = args[:registration] if args.key?(:registration) + @validate_only = args[:validate_only] if args.key?(:validate_only) + @yearly_price = args[:yearly_price] if args.key?(:yearly_price) + end + end + + # Parameters required to register a new domain. + class RegisterParameters + include Google::Apis::Core::Hashable + + # Indicates whether the domain is available for registration. This value is + # accurate when obtained by calling `RetrieveRegisterParameters`, but is + # approximate when obtained by calling `SearchDomains`. + # Corresponds to the JSON property `availability` + # @return [String] + attr_accessor :availability + + # The domain name. Unicode domain names are expressed in Punycode format. + # Corresponds to the JSON property `domainName` + # @return [String] + attr_accessor :domain_name + + # Notices about special properties of the domain. + # Corresponds to the JSON property `domainNotices` + # @return [Array] + attr_accessor :domain_notices + + # Contact privacy options that the domain supports. + # Corresponds to the JSON property `supportedPrivacy` + # @return [Array] + attr_accessor :supported_privacy + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `yearlyPrice` + # @return [Google::Apis::DomainsV1beta1::Money] + attr_accessor :yearly_price + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @availability = args[:availability] if args.key?(:availability) + @domain_name = args[:domain_name] if args.key?(:domain_name) + @domain_notices = args[:domain_notices] if args.key?(:domain_notices) + @supported_privacy = args[:supported_privacy] if args.key?(:supported_privacy) + @yearly_price = args[:yearly_price] if args.key?(:yearly_price) + end + end + + # The `Registration` resource facilitates managing and configuring domain name + # registrations. To create a new `Registration` resource, find a suitable domain + # name by calling the `SearchDomains` method with a query to see available + # domain name options. After choosing a name, call `RetrieveRegisterParameters` + # to ensure availability and obtain information like pricing, which is needed to + # build a call to `RegisterDomain`. + class Registration + include Google::Apis::Core::Hashable + + # Defines the contact information associated with a `Registration`. [ICANN]( + # https://icann.org/) requires all domain names to have associated contact + # information. The `registrant_contact` is considered the domain's legal owner, + # and often the other contacts are identical. + # Corresponds to the JSON property `contactSettings` + # @return [Google::Apis::DomainsV1beta1::ContactSettings] + attr_accessor :contact_settings + + # Output only. The creation timestamp of the `Registration` resource. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Defines the DNS configuration of a `Registration`, including name servers, + # DNSSEC, and glue records. + # Corresponds to the JSON property `dnsSettings` + # @return [Google::Apis::DomainsV1beta1::DnsSettings] + attr_accessor :dns_settings + + # Required. Immutable. The domain name. Unicode domain names must be expressed + # in Punycode format. + # Corresponds to the JSON property `domainName` + # @return [String] + attr_accessor :domain_name + + # Output only. The expiration timestamp of the `Registration`. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + # Output only. The set of issues with the `Registration` that require attention. + # Corresponds to the JSON property `issues` + # @return [Array] + attr_accessor :issues + + # Set of labels associated with the `Registration`. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Defines renewal, billing, and transfer settings for a `Registration`. + # Corresponds to the JSON property `managementSettings` + # @return [Google::Apis::DomainsV1beta1::ManagementSettings] + attr_accessor :management_settings + + # Output only. Name of the `Registration` resource, in the format `projects/*/ + # locations/*/registrations/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Defines the contact information associated with a `Registration`. [ICANN]( + # https://icann.org/) requires all domain names to have associated contact + # information. The `registrant_contact` is considered the domain's legal owner, + # and often the other contacts are identical. + # Corresponds to the JSON property `pendingContactSettings` + # @return [Google::Apis::DomainsV1beta1::ContactSettings] + attr_accessor :pending_contact_settings + + # Output only. The state of the `Registration` + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. Set of options for the `contact_settings.privacy` field that this + # `Registration` supports. + # Corresponds to the JSON property `supportedPrivacy` + # @return [Array] + attr_accessor :supported_privacy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_settings = args[:contact_settings] if args.key?(:contact_settings) + @create_time = args[:create_time] if args.key?(:create_time) + @dns_settings = args[:dns_settings] if args.key?(:dns_settings) + @domain_name = args[:domain_name] if args.key?(:domain_name) + @expire_time = args[:expire_time] if args.key?(:expire_time) + @issues = args[:issues] if args.key?(:issues) + @labels = args[:labels] if args.key?(:labels) + @management_settings = args[:management_settings] if args.key?(:management_settings) + @name = args[:name] if args.key?(:name) + @pending_contact_settings = args[:pending_contact_settings] if args.key?(:pending_contact_settings) + @state = args[:state] if args.key?(:state) + @supported_privacy = args[:supported_privacy] if args.key?(:supported_privacy) + end + end + + # Request for the `ResetAuthorizationCode` method. + class ResetAuthorizationCodeRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response for the `RetrieveRegisterParameters` method. + class RetrieveRegisterParametersResponse + include Google::Apis::Core::Hashable + + # Parameters required to register a new domain. + # Corresponds to the JSON property `registerParameters` + # @return [Google::Apis::DomainsV1beta1::RegisterParameters] + attr_accessor :register_parameters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @register_parameters = args[:register_parameters] if args.key?(:register_parameters) + end + end + + # Response for the `SearchDomains` method. + class SearchDomainsResponse + include Google::Apis::Core::Hashable + + # Results of the domain name search. + # Corresponds to the JSON property `registerParameters` + # @return [Array] + attr_accessor :register_parameters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @register_parameters = args[:register_parameters] if args.key?(:register_parameters) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::DomainsV1beta1::Policy] + attr_accessor :policy + + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + end + end +end diff --git a/generated/google/apis/domains_v1beta1/representations.rb b/generated/google/apis/domains_v1beta1/representations.rb new file mode 100644 index 000000000..6eddab093 --- /dev/null +++ b/generated/google/apis/domains_v1beta1/representations.rb @@ -0,0 +1,605 @@ +# 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 DomainsV1beta1 + + class AuditConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuthorizationCode + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConfigureContactSettingsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConfigureDnsSettingsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConfigureManagementSettingsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Contact + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContactSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CustomDns + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DnsSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DsRecord + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportRegistrationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GlueRecord + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDomainsDns + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListLocationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListRegistrationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Location + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ManagementSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Money + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PostalAddress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegisterDomainRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegisterParameters + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Registration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResetAuthorizationCodeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RetrieveRegisterParametersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SearchDomainsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DomainsV1beta1::AuditLogConfig, decorator: Google::Apis::DomainsV1beta1::AuditLogConfig::Representation + + property :service, as: 'service' + end + end + + class AuditLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' + property :log_type, as: 'logType' + end + end + + class AuthorizationCode + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::DomainsV1beta1::Expr, decorator: Google::Apis::DomainsV1beta1::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class ConfigureContactSettingsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :contact_notices, as: 'contactNotices' + property :contact_settings, as: 'contactSettings', class: Google::Apis::DomainsV1beta1::ContactSettings, decorator: Google::Apis::DomainsV1beta1::ContactSettings::Representation + + property :update_mask, as: 'updateMask' + property :validate_only, as: 'validateOnly' + end + end + + class ConfigureDnsSettingsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dns_settings, as: 'dnsSettings', class: Google::Apis::DomainsV1beta1::DnsSettings, decorator: Google::Apis::DomainsV1beta1::DnsSettings::Representation + + property :update_mask, as: 'updateMask' + property :validate_only, as: 'validateOnly' + end + end + + class ConfigureManagementSettingsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :management_settings, as: 'managementSettings', class: Google::Apis::DomainsV1beta1::ManagementSettings, decorator: Google::Apis::DomainsV1beta1::ManagementSettings::Representation + + property :update_mask, as: 'updateMask' + end + end + + class Contact + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :fax_number, as: 'faxNumber' + property :phone_number, as: 'phoneNumber' + property :postal_address, as: 'postalAddress', class: Google::Apis::DomainsV1beta1::PostalAddress, decorator: Google::Apis::DomainsV1beta1::PostalAddress::Representation + + end + end + + class ContactSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :admin_contact, as: 'adminContact', class: Google::Apis::DomainsV1beta1::Contact, decorator: Google::Apis::DomainsV1beta1::Contact::Representation + + property :privacy, as: 'privacy' + property :registrant_contact, as: 'registrantContact', class: Google::Apis::DomainsV1beta1::Contact, decorator: Google::Apis::DomainsV1beta1::Contact::Representation + + property :technical_contact, as: 'technicalContact', class: Google::Apis::DomainsV1beta1::Contact, decorator: Google::Apis::DomainsV1beta1::Contact::Representation + + end + end + + class CustomDns + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ds_records, as: 'dsRecords', class: Google::Apis::DomainsV1beta1::DsRecord, decorator: Google::Apis::DomainsV1beta1::DsRecord::Representation + + collection :name_servers, as: 'nameServers' + end + end + + class DnsSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :custom_dns, as: 'customDns', class: Google::Apis::DomainsV1beta1::CustomDns, decorator: Google::Apis::DomainsV1beta1::CustomDns::Representation + + collection :glue_records, as: 'glueRecords', class: Google::Apis::DomainsV1beta1::GlueRecord, decorator: Google::Apis::DomainsV1beta1::GlueRecord::Representation + + property :google_domains_dns, as: 'googleDomainsDns', class: Google::Apis::DomainsV1beta1::GoogleDomainsDns, decorator: Google::Apis::DomainsV1beta1::GoogleDomainsDns::Representation + + end + end + + class DsRecord + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :algorithm, as: 'algorithm' + property :digest, as: 'digest' + property :digest_type, as: 'digestType' + property :key_tag, as: 'keyTag' + end + end + + class ExportRegistrationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class GlueRecord + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :host_name, as: 'hostName' + collection :ipv4_addresses, as: 'ipv4Addresses' + collection :ipv6_addresses, as: 'ipv6Addresses' + end + end + + class GoogleDomainsDns + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ds_records, as: 'dsRecords', class: Google::Apis::DomainsV1beta1::DsRecord, decorator: Google::Apis::DomainsV1beta1::DsRecord::Representation + + property :ds_state, as: 'dsState' + collection :name_servers, as: 'nameServers' + end + end + + class ListLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::DomainsV1beta1::Location, decorator: Google::Apis::DomainsV1beta1::Location::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::DomainsV1beta1::Operation, decorator: Google::Apis::DomainsV1beta1::Operation::Representation + + end + end + + class ListRegistrationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :registrations, as: 'registrations', class: Google::Apis::DomainsV1beta1::Registration, decorator: Google::Apis::DomainsV1beta1::Registration::Representation + + end + end + + class Location + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + hash :labels, as: 'labels' + property :location_id, as: 'locationId' + hash :metadata, as: 'metadata' + property :name, as: 'name' + end + end + + class ManagementSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :renewal_method, as: 'renewalMethod' + property :transfer_lock_state, as: 'transferLockState' + end + end + + class Money + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :currency_code, as: 'currencyCode' + property :nanos, as: 'nanos' + property :units, :numeric_string => true, as: 'units' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::DomainsV1beta1::Status, decorator: Google::Apis::DomainsV1beta1::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + property :create_time, as: 'createTime' + property :end_time, as: 'endTime' + property :status_detail, as: 'statusDetail' + property :target, as: 'target' + property :verb, as: 'verb' + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::DomainsV1beta1::AuditConfig, decorator: Google::Apis::DomainsV1beta1::AuditConfig::Representation + + collection :bindings, as: 'bindings', class: Google::Apis::DomainsV1beta1::Binding, decorator: Google::Apis::DomainsV1beta1::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + end + end + + class PostalAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :address_lines, as: 'addressLines' + property :administrative_area, as: 'administrativeArea' + property :language_code, as: 'languageCode' + property :locality, as: 'locality' + property :organization, as: 'organization' + property :postal_code, as: 'postalCode' + collection :recipients, as: 'recipients' + property :region_code, as: 'regionCode' + property :revision, as: 'revision' + property :sorting_code, as: 'sortingCode' + property :sublocality, as: 'sublocality' + end + end + + class RegisterDomainRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :contact_notices, as: 'contactNotices' + collection :domain_notices, as: 'domainNotices' + property :registration, as: 'registration', class: Google::Apis::DomainsV1beta1::Registration, decorator: Google::Apis::DomainsV1beta1::Registration::Representation + + property :validate_only, as: 'validateOnly' + property :yearly_price, as: 'yearlyPrice', class: Google::Apis::DomainsV1beta1::Money, decorator: Google::Apis::DomainsV1beta1::Money::Representation + + end + end + + class RegisterParameters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :availability, as: 'availability' + property :domain_name, as: 'domainName' + collection :domain_notices, as: 'domainNotices' + collection :supported_privacy, as: 'supportedPrivacy' + property :yearly_price, as: 'yearlyPrice', class: Google::Apis::DomainsV1beta1::Money, decorator: Google::Apis::DomainsV1beta1::Money::Representation + + end + end + + class Registration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :contact_settings, as: 'contactSettings', class: Google::Apis::DomainsV1beta1::ContactSettings, decorator: Google::Apis::DomainsV1beta1::ContactSettings::Representation + + property :create_time, as: 'createTime' + property :dns_settings, as: 'dnsSettings', class: Google::Apis::DomainsV1beta1::DnsSettings, decorator: Google::Apis::DomainsV1beta1::DnsSettings::Representation + + property :domain_name, as: 'domainName' + property :expire_time, as: 'expireTime' + collection :issues, as: 'issues' + hash :labels, as: 'labels' + property :management_settings, as: 'managementSettings', class: Google::Apis::DomainsV1beta1::ManagementSettings, decorator: Google::Apis::DomainsV1beta1::ManagementSettings::Representation + + property :name, as: 'name' + property :pending_contact_settings, as: 'pendingContactSettings', class: Google::Apis::DomainsV1beta1::ContactSettings, decorator: Google::Apis::DomainsV1beta1::ContactSettings::Representation + + property :state, as: 'state' + collection :supported_privacy, as: 'supportedPrivacy' + end + end + + class ResetAuthorizationCodeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class RetrieveRegisterParametersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :register_parameters, as: 'registerParameters', class: Google::Apis::DomainsV1beta1::RegisterParameters, decorator: Google::Apis::DomainsV1beta1::RegisterParameters::Representation + + end + end + + class SearchDomainsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :register_parameters, as: 'registerParameters', class: Google::Apis::DomainsV1beta1::RegisterParameters, decorator: Google::Apis::DomainsV1beta1::RegisterParameters::Representation + + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::DomainsV1beta1::Policy, decorator: Google::Apis::DomainsV1beta1::Policy::Representation + + property :update_mask, as: 'updateMask' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + end + end +end diff --git a/generated/google/apis/domains_v1beta1/service.rb b/generated/google/apis/domains_v1beta1/service.rb new file mode 100644 index 000000000..68f1e2f95 --- /dev/null +++ b/generated/google/apis/domains_v1beta1/service.rb @@ -0,0 +1,805 @@ +# 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 DomainsV1beta1 + # Cloud Domains API + # + # Enables management and configuration of domain names. + # + # @example + # require 'google/apis/domains_v1beta1' + # + # Domains = Google::Apis::DomainsV1beta1 # Alias the module + # service = Domains::CloudDomainsService.new + # + # @see https://cloud.google.com/domains/ + class CloudDomainsService < 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://domains.googleapis.com/', '') + @batch_path = 'batch' + end + + # Gets information about a location. + # @param [String] name + # Resource name for the location. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1beta1::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Location] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DomainsV1beta1::Location::Representation + command.response_class = Google::Apis::DomainsV1beta1::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1beta1::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::ListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/locations', options) + command.response_representation = Google::Apis::DomainsV1beta1::ListLocationsResponse::Representation + command.response_class = Google::Apis::DomainsV1beta1::ListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DomainsV1beta1::Operation::Representation + command.response_class = Google::Apis::DomainsV1beta1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding allows API services to override the binding to use different resource + # name schemes, such as `users/*/operations`. To override the binding, API + # services can add a binding such as `"/v1/`name=users/*`/operations"` to their + # service configuration. For backwards compatibility, the default name includes + # the operations collection id, however overriding users must ensure the name + # binding is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1beta1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::DomainsV1beta1::ListOperationsResponse::Representation + command.response_class = Google::Apis::DomainsV1beta1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a `Registration`'s contact settings. Some changes require confirmation + # by the domain's registrant contact . + # @param [String] registration + # Required. The name of the `Registration` whose contact settings are being + # updated, in the format `projects/*/locations/*/registrations/*`. + # @param [Google::Apis::DomainsV1beta1::ConfigureContactSettingsRequest] configure_contact_settings_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::DomainsV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def configure_registration_contact_settings(registration, configure_contact_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+registration}:configureContactSettings', options) + command.request_representation = Google::Apis::DomainsV1beta1::ConfigureContactSettingsRequest::Representation + command.request_object = configure_contact_settings_request_object + command.response_representation = Google::Apis::DomainsV1beta1::Operation::Representation + command.response_class = Google::Apis::DomainsV1beta1::Operation + command.params['registration'] = registration unless registration.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a `Registration`'s DNS settings. + # @param [String] registration + # Required. The name of the `Registration` whose DNS settings are being updated, + # in the format `projects/*/locations/*/registrations/*`. + # @param [Google::Apis::DomainsV1beta1::ConfigureDnsSettingsRequest] configure_dns_settings_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::DomainsV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def configure_registration_dns_settings(registration, configure_dns_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+registration}:configureDnsSettings', options) + command.request_representation = Google::Apis::DomainsV1beta1::ConfigureDnsSettingsRequest::Representation + command.request_object = configure_dns_settings_request_object + command.response_representation = Google::Apis::DomainsV1beta1::Operation::Representation + command.response_class = Google::Apis::DomainsV1beta1::Operation + command.params['registration'] = registration unless registration.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a `Registration`'s management settings. + # @param [String] registration + # Required. The name of the `Registration` whose management settings are being + # updated, in the format `projects/*/locations/*/registrations/*`. + # @param [Google::Apis::DomainsV1beta1::ConfigureManagementSettingsRequest] configure_management_settings_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::DomainsV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def configure_registration_management_settings(registration, configure_management_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+registration}:configureManagementSettings', options) + command.request_representation = Google::Apis::DomainsV1beta1::ConfigureManagementSettingsRequest::Representation + command.request_object = configure_management_settings_request_object + command.response_representation = Google::Apis::DomainsV1beta1::Operation::Representation + command.response_class = Google::Apis::DomainsV1beta1::Operation + command.params['registration'] = registration unless registration.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a `Registration` resource. This method only works on resources in one + # of the following states: * `state` is `EXPORTED` with `expire_time` in the + # past * `state` is `REGISTRATION_FAILED` + # @param [String] name + # Required. The name of the `Registration` to delete, in the format `projects/*/ + # locations/*/registrations/*`. + # @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::DomainsV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_registration(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DomainsV1beta1::Operation::Representation + command.response_class = Google::Apis::DomainsV1beta1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exports a `Registration` that you no longer want to use with Cloud Domains. + # You can continue to use the domain in [Google Domains](https://domains.google/) + # until it expires. If the export is successful: * The resource's `state` + # becomes `EXPORTED`, meaning that it is no longer managed by Cloud Domains * + # Because individual users can own domains in Google Domains, the calling user + # becomes the domain's sole owner. Permissions for the domain are subsequently + # managed in Google Domains. * Without further action, the domain does not renew + # automatically. The new owner can set up billing in Google Domains to renew the + # domain if needed. + # @param [String] name + # Required. The name of the `Registration` to export, in the format `projects/*/ + # locations/*/registrations/*`. + # @param [Google::Apis::DomainsV1beta1::ExportRegistrationRequest] export_registration_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::DomainsV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_registration(name, export_registration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:export', options) + command.request_representation = Google::Apis::DomainsV1beta1::ExportRegistrationRequest::Representation + command.request_object = export_registration_request_object + command.response_representation = Google::Apis::DomainsV1beta1::Operation::Representation + command.response_class = Google::Apis::DomainsV1beta1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the details of a `Registration` resource. + # @param [String] name + # Required. The name of the `Registration` to get, in the format `projects/*/ + # locations/*/registrations/*`. + # @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::DomainsV1beta1::Registration] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Registration] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_registration(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DomainsV1beta1::Registration::Representation + command.response_class = Google::Apis::DomainsV1beta1::Registration + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). + # @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::DomainsV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_registration_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::DomainsV1beta1::Policy::Representation + command.response_class = Google::Apis::DomainsV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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 `Registration` resources in a project. + # @param [String] parent + # Required. The project and location from which to list `Registration`s, + # specified in the format `projects/*/locations/*`. + # @param [String] filter + # Filter expression to restrict the `Registration`s returned. The expression + # must specify the field name, a comparison operator, and the value that you + # want to use for filtering. The value must be a string, a number, a boolean, or + # an enum value. The comparison operator should be one of =, !=, >, <, >=, <=, + # or : for prefix or wildcard matches. For example, to filter to a specific + # domain name, use an expression like `domainName="example.com"`. You can also + # check for the existence of a field; for example, to find domains using custom + # DNS settings, use an expression like `dnsSettings.customDns:*`. You can also + # create compound filters by combining expressions with the `AND` and `OR` + # operators. For example, to find domains that are suspended or have specific + # issues flagged, use an expression like `(state=SUSPENDED) OR (issue:*)`. + # @param [Fixnum] page_size + # Maximum number of results to return. + # @param [String] page_token + # When set to the `next_page_token` from a prior response, provides the next + # page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1beta1::ListRegistrationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::ListRegistrationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_registrations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/registrations', options) + command.response_representation = Google::Apis::DomainsV1beta1::ListRegistrationsResponse::Representation + command.response_class = Google::Apis::DomainsV1beta1::ListRegistrationsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates select fields of a `Registration` resource, notably `labels`. To + # update other fields, use the appropriate custom update method: * To update + # management settings, see `ConfigureManagementSettings` * To update DNS + # configuration, see `ConfigureDnsSettings` * To update contact information, see + # `ConfigureContactSettings` + # @param [String] name + # Output only. Name of the `Registration` resource, in the format `projects/*/ + # locations/*/registrations/`. + # @param [Google::Apis::DomainsV1beta1::Registration] registration_object + # @param [String] update_mask + # Required. The field mask describing which fields to update as a comma- + # separated list. For example, if only the labels are being updated, the ` + # update_mask` would be `"labels"`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_registration(name, registration_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::DomainsV1beta1::Registration::Representation + command.request_object = registration_object + command.response_representation = Google::Apis::DomainsV1beta1::Operation::Representation + command.response_class = Google::Apis::DomainsV1beta1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Registers a new domain name and creates a corresponding `Registration` + # resource. Call `RetrieveRegisterParameters` first to check availability of the + # domain name and determine parameters like price that are needed to build a + # call to this method. A successful call creates a `Registration` resource in + # state `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 minutes, + # indicating that the domain was successfully registered. If the resource ends + # up in state `REGISTRATION_FAILED`, it indicates that the domain was not + # registered successfully, and you can safely delete the resource and retry + # registration. + # @param [String] parent + # Required. The parent resource of the `Registration`. Must be in the format ` + # projects/*/locations/*`. + # @param [Google::Apis::DomainsV1beta1::RegisterDomainRequest] register_domain_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::DomainsV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def register_registration_domain(parent, register_domain_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/registrations:register', options) + command.request_representation = Google::Apis::DomainsV1beta1::RegisterDomainRequest::Representation + command.request_object = register_domain_request_object + command.response_representation = Google::Apis::DomainsV1beta1::Operation::Representation + command.response_class = Google::Apis::DomainsV1beta1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Resets the authorization code of the `Registration` to a new random string. + # You can call this method only after 60 days have elapsed since the initial + # domain registration. + # @param [String] registration + # Required. The name of the `Registration` whose authorization code is being + # reset, in the format `projects/*/locations/*/registrations/*`. + # @param [Google::Apis::DomainsV1beta1::ResetAuthorizationCodeRequest] reset_authorization_code_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::DomainsV1beta1::AuthorizationCode] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::AuthorizationCode] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_registration_authorization_code(registration, reset_authorization_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+registration}:resetAuthorizationCode', options) + command.request_representation = Google::Apis::DomainsV1beta1::ResetAuthorizationCodeRequest::Representation + command.request_object = reset_authorization_code_request_object + command.response_representation = Google::Apis::DomainsV1beta1::AuthorizationCode::Representation + command.response_class = Google::Apis::DomainsV1beta1::AuthorizationCode + command.params['registration'] = registration unless registration.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 authorization code of the `Registration` for the purpose of + # transferring the domain to another registrar. You can call this method only + # after 60 days have elapsed since the initial domain registration. + # @param [String] registration + # Required. The name of the `Registration` whose authorization code is being + # retrieved, in the format `projects/*/locations/*/registrations/*`. + # @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::DomainsV1beta1::AuthorizationCode] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::AuthorizationCode] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def retrieve_project_location_registration_authorization_code(registration, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+registration}:retrieveAuthorizationCode', options) + command.response_representation = Google::Apis::DomainsV1beta1::AuthorizationCode::Representation + command.response_class = Google::Apis::DomainsV1beta1::AuthorizationCode + command.params['registration'] = registration unless registration.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 parameters needed to register a new domain name, including price and up- + # to-date availability. Use the returned values to call `RegisterDomain`. + # @param [String] location + # Required. The location. Must be in the format `projects/*/locations/*`. + # @param [String] domain_name + # Required. The domain name. Unicode domain names must be expressed in Punycode + # format. + # @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::DomainsV1beta1::RetrieveRegisterParametersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::RetrieveRegisterParametersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def retrieve_project_location_registration_register_parameters(location, domain_name: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+location}/registrations:retrieveRegisterParameters', options) + command.response_representation = Google::Apis::DomainsV1beta1::RetrieveRegisterParametersResponse::Representation + command.response_class = Google::Apis::DomainsV1beta1::RetrieveRegisterParametersResponse + command.params['location'] = location unless location.nil? + command.query['domainName'] = domain_name unless domain_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 + + # Searches for available domain names similar to the provided query. + # Availability results from this method are approximate; call ` + # RetrieveRegisterParameters` on a domain before registering to confirm + # availability. + # @param [String] location + # Required. The location. Must be in the format `projects/*/locations/*`. + # @param [String] query + # Required. String used to search for available domain names. + # @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::DomainsV1beta1::SearchDomainsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::SearchDomainsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def search_project_location_registration_domains(location, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+location}/registrations:searchDomains', options) + command.response_representation = Google::Apis::DomainsV1beta1::SearchDomainsResponse::Representation + command.response_class = Google::Apis::DomainsV1beta1::SearchDomainsResponse + command.params['location'] = location unless location.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. + # @param [Google::Apis::DomainsV1beta1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_registration_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::DomainsV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::DomainsV1beta1::Policy::Representation + command.response_class = Google::Apis::DomainsV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. + # @param [Google::Apis::DomainsV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DomainsV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsV1beta1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_registration_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::DomainsV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::DomainsV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::DomainsV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 376d0ec46..ebcba780b 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20201005' + REVISION = '20201011' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index c044df60d..b296eec7e 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -2176,10 +2176,10 @@ module Google # which time series should be compared with the threshold.The filter is similar # to the one that is specified in the ListTimeSeries request (https://cloud. # google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that call - # is useful to verify the time series that will be retrieved / processed) and - # must specify the metric type and optionally may contain restrictions on - # resource type, resource labels, and metric labels. This field may not exceed - # 2048 Unicode characters in length. + # is useful to verify the time series that will be retrieved / processed). The + # filter must specify the metric type and the resource type. Optionally, it can + # specify resource labels and metric labels. This field must not exceed 2048 + # Unicode characters in length. # Corresponds to the JSON property `filter` # @return [String] attr_accessor :filter @@ -2473,10 +2473,10 @@ module Google # which time series should be compared with the threshold.The filter is similar # to the one that is specified in the ListTimeSeries request (https://cloud. # google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that call - # is useful to verify the time series that will be retrieved / processed) and - # must specify the metric type and optionally may contain restrictions on - # resource type, resource labels, and metric labels. This field may not exceed - # 2048 Unicode characters in length. + # is useful to verify the time series that will be retrieved / processed). The + # filter must specify the metric type and the resource type. Optionally, it can + # specify resource labels and metric labels. This field must not exceed 2048 + # Unicode characters in length. # Corresponds to the JSON property `filter` # @return [String] attr_accessor :filter diff --git a/generated/google/apis/playablelocations_v3.rb b/generated/google/apis/playablelocations_v3.rb index fc75160af..e9490a60f 100644 --- a/generated/google/apis/playablelocations_v3.rb +++ b/generated/google/apis/playablelocations_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/maps/contact-sales/ module PlayablelocationsV3 VERSION = 'V3' - REVISION = '20200826' + REVISION = '20201013' end end end diff --git a/generated/google/apis/playablelocations_v3/classes.rb b/generated/google/apis/playablelocations_v3/classes.rb index 287faf787..c65fd01e4 100644 --- a/generated/google/apis/playablelocations_v3/classes.rb +++ b/generated/google/apis/playablelocations_v3/classes.rb @@ -303,8 +303,8 @@ module Google class GoogleMapsPlayablelocationsV3SamplePlayableLocation include Google::Apis::Core::Hashable - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless + # An object that represents a latitude/longitude pair. This is expressed as a + # pair of doubles to represent degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the WGS84 standard. Values must be # within normalized ranges. # Corresponds to the JSON property `centerPoint` @@ -326,8 +326,8 @@ module Google # @return [String] attr_accessor :plus_code - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless + # An object that represents a latitude/longitude pair. This is expressed as a + # pair of doubles to represent degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the WGS84 standard. Values must be # within normalized ranges. # Corresponds to the JSON property `snappedPoint` @@ -554,8 +554,8 @@ module Google end end - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless + # An object that represents a latitude/longitude pair. This is expressed as a + # pair of doubles to represent degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the WGS84 standard. Values must be # within normalized ranges. class GoogleTypeLatLng diff --git a/generated/google/apis/prod_tt_sasportal_v1alpha1.rb b/generated/google/apis/prod_tt_sasportal_v1alpha1.rb index 182fac0a0..a67531653 100644 --- a/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +++ b/generated/google/apis/prod_tt_sasportal_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/spectrum-access-system/ module ProdTtSasportalV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200908' + REVISION = '20201013' # View your email address AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' diff --git a/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb b/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb index b784b73e1..ab15f7395 100644 --- a/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +++ b/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb @@ -825,6 +825,115 @@ module Google execute_or_queue_command(command, &block) end + # Creates a device under a node or customer. + # @param [String] parent + # Required. The name of the parent resource. + # @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice] sas_portal_device_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::ProdTtSasportalV1alpha1::SasPortalDevice] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_customer_node_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options) + command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation + command.request_object = sas_portal_device_object + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice + 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 + + # Creates a signed device under a node or customer. + # @param [String] parent + # Required. The name of the parent resource. + # @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_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::ProdTtSasportalV1alpha1::SasPortalDevice] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_customer_node_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options) + command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation + command.request_object = sas_portal_create_signed_device_request_object + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice + 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 devices under a node or customer. + # @param [String] parent + # Required. The name of the parent resource. + # @param [String] filter + # The filter expression. The filter should have one of the following formats: " + # sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the + # device. The filter is case insensitive. + # @param [Fixnum] page_size + # The maximum number of devices to return in the response. If empty or zero, all + # devices will be listed. Must be in the range [0, 1000]. + # @param [String] page_token + # A pagination token returned from a previous call to ListDevices that indicates + # where this listing should continue from. + # @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::ProdTtSasportalV1alpha1::SasPortalListDevicesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDevicesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_customer_node_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options) + command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDevicesResponse::Representation + command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDevicesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a new node. # @param [String] parent # Required. The parent resource name where the node is to be created. diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index dd9826ea2..fa707801d 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://devsite.googleplex.com/youtube/partner/docs/v1/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20201008' + REVISION = '20201014' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index a2c1acb4a..85e9c4a78 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/ module YoutubeV3 VERSION = 'V3' - REVISION = '20201007' + REVISION = '20201013' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index e851ea4d8..5696c3f31 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -44,8 +44,8 @@ module Google attr_accessor :quota_user def initialize - super('https://www.googleapis.com/', '') - @batch_path = 'batch/youtube/v3' + super('https://youtube.googleapis.com/', '') + @batch_path = 'batch' end # Inserts a new resource into this collection.