Autogenerated update (2020-08-12)

Update:
- accesscontextmanager_v1
- accesscontextmanager_v1beta
- admin_datatransfer_v1
- cloudasset_v1
- cloudasset_v1beta1
- cloudasset_v1p1beta1
- cloudasset_v1p4beta1
- cloudasset_v1p5beta1
- cloudidentity_v1
- cloudidentity_v1beta1
- cloudsearch_v1
- dialogflow_v2
- dialogflow_v2beta1
- dlp_v2
- dns_v1
- dns_v1beta2
- dns_v2beta1
- file_v1
- file_v1beta1
- firebaserules_v1
- homegraph_v1
- iam_v1
- osconfig_v1
- osconfig_v1beta
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- secretmanager_v1
- secretmanager_v1beta1
- servicedirectory_v1beta1
This commit is contained in:
Google APIs 2020-08-12 00:39:11 +00:00
parent f087c37dbe
commit 17cd118131
95 changed files with 13912 additions and 14968 deletions

View File

@ -20864,6 +20864,80 @@
"/cloudfunctions:v1beta2/fields": fields "/cloudfunctions:v1beta2/fields": fields
"/cloudfunctions:v1beta2/key": key "/cloudfunctions:v1beta2/key": key
"/cloudfunctions:v1beta2/quotaUser": quota_user "/cloudfunctions:v1beta2/quotaUser": quota_user
"/cloudidentity:v1/AndroidAttributes": android_attributes
"/cloudidentity:v1/AndroidAttributes/enabledUnknownSources": enabled_unknown_sources
"/cloudidentity:v1/AndroidAttributes/ownerProfileAccount": owner_profile_account
"/cloudidentity:v1/AndroidAttributes/ownershipPrivilege": ownership_privilege
"/cloudidentity:v1/AndroidAttributes/supportsWorkProfile": supports_work_profile
"/cloudidentity:v1/ApproveDeviceUserResponse": approve_device_user_response
"/cloudidentity:v1/ApproveDeviceUserResponse/deviceUser": device_user
"/cloudidentity:v1/BlockDeviceUserResponse": block_device_user_response
"/cloudidentity:v1/BlockDeviceUserResponse/deviceUser": device_user
"/cloudidentity:v1/CancelWipeDeviceResponse": cancel_wipe_device_response
"/cloudidentity:v1/CancelWipeDeviceResponse/device": device
"/cloudidentity:v1/CancelWipeDeviceUserResponse": cancel_wipe_device_user_response
"/cloudidentity:v1/CancelWipeDeviceUserResponse/deviceUser": device_user
"/cloudidentity:v1/ClientState": client_state
"/cloudidentity:v1/ClientState/assetTags": asset_tags
"/cloudidentity:v1/ClientState/assetTags/asset_tag": asset_tag
"/cloudidentity:v1/ClientState/complianceState": compliance_state
"/cloudidentity:v1/ClientState/createTime": create_time
"/cloudidentity:v1/ClientState/customId": custom_id
"/cloudidentity:v1/ClientState/etag": etag
"/cloudidentity:v1/ClientState/healthScore": health_score
"/cloudidentity:v1/ClientState/keyValuePairs": key_value_pairs
"/cloudidentity:v1/ClientState/keyValuePairs/key_value_pair": key_value_pair
"/cloudidentity:v1/ClientState/lastUpdateTime": last_update_time
"/cloudidentity:v1/ClientState/managed": managed
"/cloudidentity:v1/ClientState/name": name
"/cloudidentity:v1/ClientState/ownerType": owner_type
"/cloudidentity:v1/ClientState/scoreReason": score_reason
"/cloudidentity:v1/CustomAttributeValue": custom_attribute_value
"/cloudidentity:v1/CustomAttributeValue/boolValue": bool_value
"/cloudidentity:v1/CustomAttributeValue/numberValue": number_value
"/cloudidentity:v1/CustomAttributeValue/stringValue": string_value
"/cloudidentity:v1/Device": device
"/cloudidentity:v1/Device/androidSpecificAttributes": android_specific_attributes
"/cloudidentity:v1/Device/assetTag": asset_tag
"/cloudidentity:v1/Device/basebandVersion": baseband_version
"/cloudidentity:v1/Device/bootloaderVersion": bootloader_version
"/cloudidentity:v1/Device/brand": brand
"/cloudidentity:v1/Device/buildNumber": build_number
"/cloudidentity:v1/Device/compromisedState": compromised_state
"/cloudidentity:v1/Device/createTime": create_time
"/cloudidentity:v1/Device/deviceType": device_type
"/cloudidentity:v1/Device/enabledDeveloperOptions": enabled_developer_options
"/cloudidentity:v1/Device/enabledUsbDebugging": enabled_usb_debugging
"/cloudidentity:v1/Device/encryptionState": encryption_state
"/cloudidentity:v1/Device/imei": imei
"/cloudidentity:v1/Device/kernelVersion": kernel_version
"/cloudidentity:v1/Device/lastSyncTime": last_sync_time
"/cloudidentity:v1/Device/managementState": management_state
"/cloudidentity:v1/Device/manufacturer": manufacturer
"/cloudidentity:v1/Device/meid": meid
"/cloudidentity:v1/Device/model": model
"/cloudidentity:v1/Device/name": name
"/cloudidentity:v1/Device/networkOperator": network_operator
"/cloudidentity:v1/Device/osVersion": os_version
"/cloudidentity:v1/Device/otherAccounts": other_accounts
"/cloudidentity:v1/Device/otherAccounts/other_account": other_account
"/cloudidentity:v1/Device/ownerType": owner_type
"/cloudidentity:v1/Device/releaseVersion": release_version
"/cloudidentity:v1/Device/securityPatchTime": security_patch_time
"/cloudidentity:v1/Device/serialNumber": serial_number
"/cloudidentity:v1/Device/wifiMacAddresses": wifi_mac_addresses
"/cloudidentity:v1/Device/wifiMacAddresses/wifi_mac_address": wifi_mac_address
"/cloudidentity:v1/DeviceUser": device_user
"/cloudidentity:v1/DeviceUser/compromisedState": compromised_state
"/cloudidentity:v1/DeviceUser/createTime": create_time
"/cloudidentity:v1/DeviceUser/firstSyncTime": first_sync_time
"/cloudidentity:v1/DeviceUser/languageCode": language_code
"/cloudidentity:v1/DeviceUser/lastSyncTime": last_sync_time
"/cloudidentity:v1/DeviceUser/managementState": management_state
"/cloudidentity:v1/DeviceUser/name": name
"/cloudidentity:v1/DeviceUser/passwordState": password_state
"/cloudidentity:v1/DeviceUser/userAgent": user_agent
"/cloudidentity:v1/DeviceUser/userEmail": user_email
"/cloudidentity:v1/EntityKey": entity_key "/cloudidentity:v1/EntityKey": entity_key
"/cloudidentity:v1/EntityKey/id": id "/cloudidentity:v1/EntityKey/id": id
"/cloudidentity:v1/EntityKey/namespace": namespace "/cloudidentity:v1/EntityKey/namespace": namespace
@ -20916,6 +20990,10 @@
"/cloudidentity:v1/Status/details/detail": detail "/cloudidentity:v1/Status/details/detail": detail
"/cloudidentity:v1/Status/details/detail/detail": detail "/cloudidentity:v1/Status/details/detail/detail": detail
"/cloudidentity:v1/Status/message": message "/cloudidentity:v1/Status/message": message
"/cloudidentity:v1/WipeDeviceResponse": wipe_device_response
"/cloudidentity:v1/WipeDeviceResponse/device": device
"/cloudidentity:v1/WipeDeviceUserResponse": wipe_device_user_response
"/cloudidentity:v1/WipeDeviceUserResponse/deviceUser": device_user
"/cloudidentity:v1/cloudidentity.groups.create": create_group "/cloudidentity:v1/cloudidentity.groups.create": create_group
"/cloudidentity:v1/cloudidentity.groups.delete": delete_group "/cloudidentity:v1/cloudidentity.groups.delete": delete_group
"/cloudidentity:v1/cloudidentity.groups.delete/name": name "/cloudidentity:v1/cloudidentity.groups.delete/name": name
@ -20960,12 +21038,20 @@
"/cloudidentity:v1beta1/AndroidAttributes/ownerProfileAccount": owner_profile_account "/cloudidentity:v1beta1/AndroidAttributes/ownerProfileAccount": owner_profile_account
"/cloudidentity:v1beta1/AndroidAttributes/ownershipPrivilege": ownership_privilege "/cloudidentity:v1beta1/AndroidAttributes/ownershipPrivilege": ownership_privilege
"/cloudidentity:v1beta1/AndroidAttributes/supportsWorkProfile": supports_work_profile "/cloudidentity:v1beta1/AndroidAttributes/supportsWorkProfile": supports_work_profile
"/cloudidentity:v1beta1/ApproveDeviceUserRequest": approve_device_user_request
"/cloudidentity:v1beta1/ApproveDeviceUserRequest/customer": customer
"/cloudidentity:v1beta1/ApproveDeviceUserResponse": approve_device_user_response "/cloudidentity:v1beta1/ApproveDeviceUserResponse": approve_device_user_response
"/cloudidentity:v1beta1/ApproveDeviceUserResponse/deviceUser": device_user "/cloudidentity:v1beta1/ApproveDeviceUserResponse/deviceUser": device_user
"/cloudidentity:v1beta1/BlockDeviceUserRequest": block_device_user_request
"/cloudidentity:v1beta1/BlockDeviceUserRequest/customer": customer
"/cloudidentity:v1beta1/BlockDeviceUserResponse": block_device_user_response "/cloudidentity:v1beta1/BlockDeviceUserResponse": block_device_user_response
"/cloudidentity:v1beta1/BlockDeviceUserResponse/deviceUser": device_user "/cloudidentity:v1beta1/BlockDeviceUserResponse/deviceUser": device_user
"/cloudidentity:v1beta1/CancelWipeDeviceRequest": cancel_wipe_device_request
"/cloudidentity:v1beta1/CancelWipeDeviceRequest/customer": customer
"/cloudidentity:v1beta1/CancelWipeDeviceResponse": cancel_wipe_device_response "/cloudidentity:v1beta1/CancelWipeDeviceResponse": cancel_wipe_device_response
"/cloudidentity:v1beta1/CancelWipeDeviceResponse/device": device "/cloudidentity:v1beta1/CancelWipeDeviceResponse/device": device
"/cloudidentity:v1beta1/CancelWipeDeviceUserRequest": cancel_wipe_device_user_request
"/cloudidentity:v1beta1/CancelWipeDeviceUserRequest/customer": customer
"/cloudidentity:v1beta1/CancelWipeDeviceUserResponse": cancel_wipe_device_user_response "/cloudidentity:v1beta1/CancelWipeDeviceUserResponse": cancel_wipe_device_user_response
"/cloudidentity:v1beta1/CancelWipeDeviceUserResponse/deviceUser": device_user "/cloudidentity:v1beta1/CancelWipeDeviceUserResponse/deviceUser": device_user
"/cloudidentity:v1beta1/ClientState": client_state "/cloudidentity:v1beta1/ClientState": client_state
@ -20983,6 +21069,9 @@
"/cloudidentity:v1beta1/ClientState/name": name "/cloudidentity:v1beta1/ClientState/name": name
"/cloudidentity:v1beta1/ClientState/ownerType": owner_type "/cloudidentity:v1beta1/ClientState/ownerType": owner_type
"/cloudidentity:v1beta1/ClientState/scoreReason": score_reason "/cloudidentity:v1beta1/ClientState/scoreReason": score_reason
"/cloudidentity:v1beta1/CreateDeviceRequest": create_device_request
"/cloudidentity:v1beta1/CreateDeviceRequest/customer": customer
"/cloudidentity:v1beta1/CreateDeviceRequest/device": device
"/cloudidentity:v1beta1/CustomAttributeValue": custom_attribute_value "/cloudidentity:v1beta1/CustomAttributeValue": custom_attribute_value
"/cloudidentity:v1beta1/CustomAttributeValue/boolValue": bool_value "/cloudidentity:v1beta1/CustomAttributeValue/boolValue": bool_value
"/cloudidentity:v1beta1/CustomAttributeValue/numberValue": number_value "/cloudidentity:v1beta1/CustomAttributeValue/numberValue": number_value
@ -21138,10 +21227,67 @@
"/cloudidentity:v1beta1/UpdateMembershipRolesParams": update_membership_roles_params "/cloudidentity:v1beta1/UpdateMembershipRolesParams": update_membership_roles_params
"/cloudidentity:v1beta1/UpdateMembershipRolesParams/fieldMask": field_mask "/cloudidentity:v1beta1/UpdateMembershipRolesParams/fieldMask": field_mask
"/cloudidentity:v1beta1/UpdateMembershipRolesParams/membershipRole": membership_role "/cloudidentity:v1beta1/UpdateMembershipRolesParams/membershipRole": membership_role
"/cloudidentity:v1beta1/WipeDeviceRequest": wipe_device_request
"/cloudidentity:v1beta1/WipeDeviceRequest/customer": customer
"/cloudidentity:v1beta1/WipeDeviceResponse": wipe_device_response "/cloudidentity:v1beta1/WipeDeviceResponse": wipe_device_response
"/cloudidentity:v1beta1/WipeDeviceResponse/device": device "/cloudidentity:v1beta1/WipeDeviceResponse/device": device
"/cloudidentity:v1beta1/WipeDeviceUserRequest": wipe_device_user_request
"/cloudidentity:v1beta1/WipeDeviceUserRequest/customer": customer
"/cloudidentity:v1beta1/WipeDeviceUserResponse": wipe_device_user_response "/cloudidentity:v1beta1/WipeDeviceUserResponse": wipe_device_user_response
"/cloudidentity:v1beta1/WipeDeviceUserResponse/deviceUser": device_user "/cloudidentity:v1beta1/WipeDeviceUserResponse/deviceUser": device_user
"/cloudidentity:v1beta1/cloudidentity.devices.cancelWipe": cancel_wipe_device
"/cloudidentity:v1beta1/cloudidentity.devices.cancelWipe/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.create": create_device
"/cloudidentity:v1beta1/cloudidentity.devices.delete": delete_device
"/cloudidentity:v1beta1/cloudidentity.devices.delete/customer": customer
"/cloudidentity:v1beta1/cloudidentity.devices.delete/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.approve": approve_device_user
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.approve/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.block": block_device_user
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.block/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.cancelWipe": cancel_wipe_device_user
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.cancelWipe/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.clientStates.get": get_device_device_user_client_state
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.clientStates.get/customer": customer
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.clientStates.get/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.clientStates.patch": patch_device_device_user_client_state
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.clientStates.patch/customer": customer
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.clientStates.patch/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.clientStates.patch/updateMask": update_mask
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.delete": delete_device_device_user
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.delete/customer": customer
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.delete/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.get": get_device_device_user
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.get/customer": customer
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.get/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.list": list_device_device_users
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.list/customer": customer
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.list/filter": filter
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.list/orderBy": order_by
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.list/pageSize": page_size
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.list/pageToken": page_token
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.list/parent": parent
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.lookup": lookup_device_device_user
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.lookup/androidId": android_id
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.lookup/pageSize": page_size
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.lookup/pageToken": page_token
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.lookup/parent": parent
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.lookup/rawResourceId": raw_resource_id
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.lookup/userId": user_id
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.wipe": wipe_device_user
"/cloudidentity:v1beta1/cloudidentity.devices.deviceUsers.wipe/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.get": get_device
"/cloudidentity:v1beta1/cloudidentity.devices.get/customer": customer
"/cloudidentity:v1beta1/cloudidentity.devices.get/name": name
"/cloudidentity:v1beta1/cloudidentity.devices.list": list_devices
"/cloudidentity:v1beta1/cloudidentity.devices.list/customer": customer
"/cloudidentity:v1beta1/cloudidentity.devices.list/filter": filter
"/cloudidentity:v1beta1/cloudidentity.devices.list/orderBy": order_by
"/cloudidentity:v1beta1/cloudidentity.devices.list/pageSize": page_size
"/cloudidentity:v1beta1/cloudidentity.devices.list/pageToken": page_token
"/cloudidentity:v1beta1/cloudidentity.devices.list/view": view
"/cloudidentity:v1beta1/cloudidentity.devices.wipe": wipe_device
"/cloudidentity:v1beta1/cloudidentity.devices.wipe/name": name
"/cloudidentity:v1beta1/cloudidentity.groups.create": create_group "/cloudidentity:v1beta1/cloudidentity.groups.create": create_group
"/cloudidentity:v1beta1/cloudidentity.groups.create/initialGroupConfig": initial_group_config "/cloudidentity:v1beta1/cloudidentity.groups.create/initialGroupConfig": initial_group_config
"/cloudidentity:v1beta1/cloudidentity.groups.delete": delete_group "/cloudidentity:v1beta1/cloudidentity.groups.delete": delete_group
@ -80857,6 +81003,8 @@
"/dfareporting:v3.4/key": key "/dfareporting:v3.4/key": key
"/dfareporting:v3.4/quotaUser": quota_user "/dfareporting:v3.4/quotaUser": quota_user
"/dfareporting:v3.4/userIp": user_ip "/dfareporting:v3.4/userIp": user_ip
"/dialogflow:v2/GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata": google_cloud_dialogflow_cx_v3beta1_create_version_operation_metadata
"/dialogflow:v2/GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata/version": version
"/dialogflow:v2/GoogleCloudDialogflowCxV3beta1ExportAgentResponse": google_cloud_dialogflow_cx_v3beta1_export_agent_response "/dialogflow:v2/GoogleCloudDialogflowCxV3beta1ExportAgentResponse": google_cloud_dialogflow_cx_v3beta1_export_agent_response
"/dialogflow:v2/GoogleCloudDialogflowCxV3beta1ExportAgentResponse/agentContent": agent_content "/dialogflow:v2/GoogleCloudDialogflowCxV3beta1ExportAgentResponse/agentContent": agent_content
"/dialogflow:v2/GoogleCloudDialogflowCxV3beta1ExportAgentResponse/agentUri": agent_uri "/dialogflow:v2/GoogleCloudDialogflowCxV3beta1ExportAgentResponse/agentUri": agent_uri
@ -81755,6 +81903,8 @@
"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes": session_entity_types "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes": session_entity_types
"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes/session_entity_type": session_entity_type "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes/session_entity_type": session_entity_type
"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/source": source "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/source": source
"/dialogflow:v2/GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata": google_cloud_dialogflow_v3alpha1_create_version_operation_metadata
"/dialogflow:v2/GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata/version": version
"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportAgentResponse": google_cloud_dialogflow_v3alpha1_export_agent_response "/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportAgentResponse": google_cloud_dialogflow_v3alpha1_export_agent_response
"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentContent": agent_content "/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentContent": agent_content
"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentUri": agent_uri "/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentUri": agent_uri
@ -82060,6 +82210,8 @@
"/dialogflow:v2beta1/ExportAgentResponse": export_agent_response "/dialogflow:v2beta1/ExportAgentResponse": export_agent_response
"/dialogflow:v2beta1/ExportAgentResponse/agentContent": agent_content "/dialogflow:v2beta1/ExportAgentResponse/agentContent": agent_content
"/dialogflow:v2beta1/ExportAgentResponse/agentUri": agent_uri "/dialogflow:v2beta1/ExportAgentResponse/agentUri": agent_uri
"/dialogflow:v2beta1/GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata": google_cloud_dialogflow_cx_v3beta1_create_version_operation_metadata
"/dialogflow:v2beta1/GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata/version": version
"/dialogflow:v2beta1/GoogleCloudDialogflowCxV3beta1ExportAgentResponse": google_cloud_dialogflow_cx_v3beta1_export_agent_response "/dialogflow:v2beta1/GoogleCloudDialogflowCxV3beta1ExportAgentResponse": google_cloud_dialogflow_cx_v3beta1_export_agent_response
"/dialogflow:v2beta1/GoogleCloudDialogflowCxV3beta1ExportAgentResponse/agentContent": agent_content "/dialogflow:v2beta1/GoogleCloudDialogflowCxV3beta1ExportAgentResponse/agentContent": agent_content
"/dialogflow:v2beta1/GoogleCloudDialogflowCxV3beta1ExportAgentResponse/agentUri": agent_uri "/dialogflow:v2beta1/GoogleCloudDialogflowCxV3beta1ExportAgentResponse/agentUri": agent_uri
@ -83161,6 +83313,8 @@
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes": session_entity_types "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes": session_entity_types
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes/session_entity_type": session_entity_type "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes/session_entity_type": session_entity_type
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/source": source "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/source": source
"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata": google_cloud_dialogflow_v3alpha1_create_version_operation_metadata
"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata/version": version
"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse": google_cloud_dialogflow_v3alpha1_export_agent_response "/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse": google_cloud_dialogflow_v3alpha1_export_agent_response
"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentContent": agent_content "/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentContent": agent_content
"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentUri": agent_uri "/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentUri": agent_uri
@ -116210,11 +116364,26 @@
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest/name": name "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest/name": name
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_delete_worker_pool_request "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_delete_worker_pool_request
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest/name": name "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest/name": name
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy": google_devtools_remotebuildexecution_admin_v1alpha_feature_policy
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/containerImageSources": container_image_sources
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerAddCapabilities": docker_add_capabilities
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerChrootPath": docker_chroot_path
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerNetwork": docker_network
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerPrivileged": docker_privileged
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerRunAsRoot": docker_run_as_root
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerRuntime": docker_runtime
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerSiblingContainers": docker_sibling_containers
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/linuxIsolation": linux_isolation
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature": google_devtools_remotebuildexecution_admin_v1alpha_feature_policy_feature
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature/allowedValues": allowed_values
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature/allowedValues/allowed_value": allowed_value
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature/policy": policy
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_instance_request "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_instance_request
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest/name": name "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest/name": name
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_worker_pool_request "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_worker_pool_request
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest/name": name "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest/name": name
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance": google_devtools_remotebuildexecution_admin_v1alpha_instance "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance": google_devtools_remotebuildexecution_admin_v1alpha_instance
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/featurePolicy": feature_policy
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/location": location "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/location": location
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/loggingEnabled": logging_enabled "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/loggingEnabled": logging_enabled
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/name": name "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/name": name
@ -116616,11 +116785,26 @@
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest/name": name "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest/name": name
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_delete_worker_pool_request "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_delete_worker_pool_request
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest/name": name "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest/name": name
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy": google_devtools_remotebuildexecution_admin_v1alpha_feature_policy
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/containerImageSources": container_image_sources
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerAddCapabilities": docker_add_capabilities
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerChrootPath": docker_chroot_path
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerNetwork": docker_network
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerPrivileged": docker_privileged
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerRunAsRoot": docker_run_as_root
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerRuntime": docker_runtime
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerSiblingContainers": docker_sibling_containers
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/linuxIsolation": linux_isolation
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature": google_devtools_remotebuildexecution_admin_v1alpha_feature_policy_feature
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature/allowedValues": allowed_values
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature/allowedValues/allowed_value": allowed_value
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature/policy": policy
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_instance_request "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_instance_request
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest/name": name "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest/name": name
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_worker_pool_request "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_worker_pool_request
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest/name": name "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest/name": name
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance": google_devtools_remotebuildexecution_admin_v1alpha_instance "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance": google_devtools_remotebuildexecution_admin_v1alpha_instance
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/featurePolicy": feature_policy
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/location": location "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/location": location
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/loggingEnabled": logging_enabled "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/loggingEnabled": logging_enabled
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/name": name "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/name": name
@ -116824,6 +117008,11 @@
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.get/name": name "/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.get/name": name
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.list": list_project_instances "/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.list": list_project_instances
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.list/parent": parent "/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.list/parent": parent
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.patch": patch_project_instance
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.patch/loggingEnabled": logging_enabled
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.patch/name": name
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.patch/name1": name1
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.patch/updateMask": update_mask
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.workerpools.create": create_project_instance_workerpool "/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.workerpools.create": create_project_instance_workerpool
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.workerpools.create/parent": parent "/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.workerpools.create/parent": parent
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.workerpools.delete": delete_project_instance_workerpool "/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.workerpools.delete": delete_project_instance_workerpool
@ -117084,11 +117273,26 @@
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest/name": name "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest/name": name
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_delete_worker_pool_request "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_delete_worker_pool_request
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest/name": name "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest/name": name
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy": google_devtools_remotebuildexecution_admin_v1alpha_feature_policy
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/containerImageSources": container_image_sources
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerAddCapabilities": docker_add_capabilities
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerChrootPath": docker_chroot_path
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerNetwork": docker_network
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerPrivileged": docker_privileged
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerRunAsRoot": docker_run_as_root
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerRuntime": docker_runtime
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/dockerSiblingContainers": docker_sibling_containers
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy/linuxIsolation": linux_isolation
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature": google_devtools_remotebuildexecution_admin_v1alpha_feature_policy_feature
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature/allowedValues": allowed_values
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature/allowedValues/allowed_value": allowed_value
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature/policy": policy
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_instance_request "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_instance_request
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest/name": name "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest/name": name
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_worker_pool_request "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_worker_pool_request
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest/name": name "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest/name": name
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance": google_devtools_remotebuildexecution_admin_v1alpha_instance "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance": google_devtools_remotebuildexecution_admin_v1alpha_instance
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/featurePolicy": feature_policy
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/location": location "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/location": location
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/loggingEnabled": logging_enabled "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/loggingEnabled": logging_enabled
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/name": name "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/name": name

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/ # @see https://cloud.google.com/access-context-manager/docs/reference/rest/
module AccesscontextmanagerV1 module AccesscontextmanagerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200405' REVISION = '20200801'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -34,8 +34,8 @@ module Google
attr_accessor :basic attr_accessor :basic
# `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language # `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
# to represent the necessary conditions for the level to apply to a request. # to represent the necessary conditions for the level to apply to a request. See
# See CEL spec at: https://github.com/google/cel-spec # CEL spec at: https://github.com/google/cel-spec
# Corresponds to the JSON property `custom` # Corresponds to the JSON property `custom`
# @return [Google::Apis::AccesscontextmanagerV1::CustomLevel] # @return [Google::Apis::AccesscontextmanagerV1::CustomLevel]
attr_accessor :custom attr_accessor :custom
@ -45,10 +45,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Required. Resource name for the Access Level. The `short_name` component # Required. Resource name for the Access Level. The `short_name` component must
# must begin with a letter and only include alphanumeric and '_'. Format: # begin with a letter and only include alphanumeric and '_'. Format: `
# `accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length # accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length of
# of the `short_name` component is 50 characters. # the `short_name` component is 50 characters.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -73,30 +73,29 @@ module Google
end end
# `AccessPolicy` is a container for `AccessLevels` (which define the necessary # `AccessPolicy` is a container for `AccessLevels` (which define the necessary
# attributes to use Google Cloud services) and `ServicePerimeters` (which # attributes to use Google Cloud services) and `ServicePerimeters` (which define
# define regions of services able to freely pass data within a perimeter). An # regions of services able to freely pass data within a perimeter). An access
# access policy is globally visible within an organization, and the # policy is globally visible within an organization, and the restrictions it
# restrictions it specifies apply to all projects within an organization. # specifies apply to all projects within an organization.
class AccessPolicy class AccessPolicy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. An opaque identifier for the current version of the # Output only. An opaque identifier for the current version of the `AccessPolicy`
# `AccessPolicy`. This will always be a strongly validated etag, meaning that # . This will always be a strongly validated etag, meaning that two Access
# two Access Polices will be identical if and only if their etags are # Polices will be identical if and only if their etags are identical. Clients
# identical. Clients should not expect this to be in any specific format. # should not expect this to be in any specific format.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Output only. Resource name of the `AccessPolicy`. Format: # Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/`
# `accessPolicies/`policy_id`` # policy_id``
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The parent of this `AccessPolicy` in the Cloud Resource # Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy.
# Hierarchy. Currently immutable once created. Format: # Currently immutable once created. Format: `organizations/`organization_id``
# `organizations/`organization_id``
# Corresponds to the JSON property `parent` # Corresponds to the JSON property `parent`
# @return [String] # @return [String]
attr_accessor :parent attr_accessor :parent
@ -124,10 +123,10 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# How the `conditions` list should be combined to determine if a request is # How the `conditions` list should be combined to determine if a request is
# granted this `AccessLevel`. If AND is used, each `Condition` in # granted this `AccessLevel`. If AND is used, each `Condition` in `conditions`
# `conditions` must be satisfied for the `AccessLevel` to be applied. If OR # must be satisfied for the `AccessLevel` to be applied. If OR is used, at least
# is used, at least one `Condition` in `conditions` must be satisfied for the # one `Condition` in `conditions` must be satisfied for the `AccessLevel` to be
# `AccessLevel` to be applied. Default behavior is AND. # applied. Default behavior is AND.
# Corresponds to the JSON property `combiningFunction` # Corresponds to the JSON property `combiningFunction`
# @return [String] # @return [String]
attr_accessor :combining_function attr_accessor :combining_function
@ -161,17 +160,17 @@ module Google
end end
end end
# A request to commit dry-run specs in all Service Perimeters belonging to # A request to commit dry-run specs in all Service Perimeters belonging to an
# an Access Policy. # Access Policy.
class CommitServicePerimetersRequest class CommitServicePerimetersRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The etag for the version of the Access Policy that this # Optional. The etag for the version of the Access Policy that this commit
# commit operation is to be performed on. If, at the time of commit, the # operation is to be performed on. If, at the time of commit, the etag for the
# etag for the Access Policy stored in Access Context Manager is different # Access Policy stored in Access Context Manager is different from the specified
# from the specified etag, then the commit operation will not be performed # etag, then the commit operation will not be performed and the call will fail.
# and the call will fail. This field is not required. If etag is not # This field is not required. If etag is not provided, the operation will be
# provided, the operation will be performed as if a valid etag is provided. # performed as if a valid etag is provided.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
@ -191,8 +190,7 @@ module Google
class CommitServicePerimetersResponse class CommitServicePerimetersResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of all the Service Perimeter instances in # List of all the Service Perimeter instances in the Access Policy.
# the Access Policy.
# Corresponds to the JSON property `servicePerimeters` # Corresponds to the JSON property `servicePerimeters`
# @return [Array<Google::Apis::AccesscontextmanagerV1::ServicePerimeter>] # @return [Array<Google::Apis::AccesscontextmanagerV1::ServicePerimeter>]
attr_accessor :service_perimeters attr_accessor :service_perimeters
@ -220,54 +218,48 @@ module Google
# devices to be granted access levels, it does not do any enforcement on the # devices to be granted access levels, it does not do any enforcement on the
# device. `DevicePolicy` acts as an AND over all specified fields, and each # device. `DevicePolicy` acts as an AND over all specified fields, and each
# repeated field is an OR over its elements. Any unset fields are ignored. For # repeated field is an OR over its elements. Any unset fields are ignored. For
# example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : # example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX,
# DESKTOP_LINUX, encryption_status: ENCRYPTED`, then the DevicePolicy will be # encryption_status: ENCRYPTED`, then the DevicePolicy will be true for requests
# true for requests originating from encrypted Linux desktops and encrypted # originating from encrypted Linux desktops and encrypted Windows desktops.
# Windows desktops.
# Corresponds to the JSON property `devicePolicy` # Corresponds to the JSON property `devicePolicy`
# @return [Google::Apis::AccesscontextmanagerV1::DevicePolicy] # @return [Google::Apis::AccesscontextmanagerV1::DevicePolicy]
attr_accessor :device_policy attr_accessor :device_policy
# CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for # CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for a
# a CIDR IP address block, the specified IP address portion must be properly # CIDR IP address block, the specified IP address portion must be properly
# truncated (i.e. all the host bits must be zero) or the input is considered # truncated (i.e. all the host bits must be zero) or the input is considered
# malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is # malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is not.
# not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas # Similarly, for IPv6, "2001:db8::/32" is accepted whereas "2001:db8::1/32" is
# "2001:db8::1/32" is not. The originating IP of a request must be in one of # not. The originating IP of a request must be in one of the listed subnets in
# the listed subnets in order for this Condition to be true. If empty, all IP # order for this Condition to be true. If empty, all IP addresses are allowed.
# addresses are allowed.
# Corresponds to the JSON property `ipSubnetworks` # Corresponds to the JSON property `ipSubnetworks`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ip_subnetworks attr_accessor :ip_subnetworks
# The request must be made by one of the provided user or service # The request must be made by one of the provided user or service accounts.
# accounts. Groups are not supported. # Groups are not supported. Syntax: `user:`emailid`` `serviceAccount:`emailid``
# Syntax:
# `user:`emailid``
# `serviceAccount:`emailid``
# If not specified, a request may come from any user. # If not specified, a request may come from any user.
# Corresponds to the JSON property `members` # Corresponds to the JSON property `members`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :members attr_accessor :members
# Whether to negate the Condition. If true, the Condition becomes a NAND over # Whether to negate the Condition. If true, the Condition becomes a NAND over
# its non-empty fields, each field must be false for the Condition overall to # its non-empty fields, each field must be false for the Condition overall to be
# be satisfied. Defaults to false. # satisfied. Defaults to false.
# Corresponds to the JSON property `negate` # Corresponds to the JSON property `negate`
# @return [Boolean] # @return [Boolean]
attr_accessor :negate attr_accessor :negate
alias_method :negate?, :negate alias_method :negate?, :negate
# The request must originate from one of the provided countries/regions. # The request must originate from one of the provided countries/regions. Must be
# Must be valid ISO 3166-1 alpha-2 codes. # valid ISO 3166-1 alpha-2 codes.
# Corresponds to the JSON property `regions` # Corresponds to the JSON property `regions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :regions attr_accessor :regions
# A list of other access levels defined in the same `Policy`, referenced by # A list of other access levels defined in the same `Policy`, referenced by
# resource name. Referencing an `AccessLevel` which does not exist is an # resource name. Referencing an `AccessLevel` which does not exist is an error.
# error. All access levels listed must be granted for the Condition # All access levels listed must be granted for the Condition to be true. Example:
# to be true. Example:
# "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"` # "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"`
# Corresponds to the JSON property `requiredAccessLevels` # Corresponds to the JSON property `requiredAccessLevels`
# @return [Array<String>] # @return [Array<String>]
@ -289,33 +281,26 @@ module Google
end end
# `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language # `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
# to represent the necessary conditions for the level to apply to a request. # to represent the necessary conditions for the level to apply to a request. See
# See CEL spec at: https://github.com/google/cel-spec # CEL spec at: https://github.com/google/cel-spec
class CustomLevel class CustomLevel
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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 `expr` # Corresponds to the JSON property `expr`
# @return [Google::Apis::AccesscontextmanagerV1::Expr] # @return [Google::Apis::AccesscontextmanagerV1::Expr]
attr_accessor :expr attr_accessor :expr
@ -335,15 +320,13 @@ module Google
# devices to be granted access levels, it does not do any enforcement on the # devices to be granted access levels, it does not do any enforcement on the
# device. `DevicePolicy` acts as an AND over all specified fields, and each # device. `DevicePolicy` acts as an AND over all specified fields, and each
# repeated field is an OR over its elements. Any unset fields are ignored. For # repeated field is an OR over its elements. Any unset fields are ignored. For
# example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : # example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX,
# DESKTOP_LINUX, encryption_status: ENCRYPTED`, then the DevicePolicy will be # encryption_status: ENCRYPTED`, then the DevicePolicy will be true for requests
# true for requests originating from encrypted Linux desktops and encrypted # originating from encrypted Linux desktops and encrypted Windows desktops.
# Windows desktops.
class DevicePolicy class DevicePolicy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Allowed device management levels, an empty list allows all management # Allowed device management levels, an empty list allows all management levels.
# levels.
# Corresponds to the JSON property `allowedDeviceManagementLevels` # Corresponds to the JSON property `allowedDeviceManagementLevels`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :allowed_device_management_levels attr_accessor :allowed_device_management_levels
@ -392,13 +375,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -411,52 +392,43 @@ module Google
end end
end end
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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 class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which describes
# describes the expression, e.g. when hovered over it in a UI. # the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in Common Expression Language # Textual representation of an expression in Common Expression Language syntax.
# syntax.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# Optional. String indicating the location of the expression for error # Optional. String indicating the location of the expression for error reporting,
# reporting, e.g. a file name and a position in the file. # e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. Title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing its purpose.
# its purpose. This can be used e.g. in UIs which allow to enter the # This can be used e.g. in UIs which allow to enter the expression.
# expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
@ -582,47 +554,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::AccesscontextmanagerV1::Status] # @return [Google::Apis::AccesscontextmanagerV1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # 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 # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -645,9 +615,9 @@ module Google
class OsConstraint class OsConstraint
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The minimum allowed OS version. If not set, any version of this OS # The minimum allowed OS version. If not set, any version of this OS satisfies
# satisfies the constraint. Format: `"major.minor.patch"`. # the constraint. Format: `"major.minor.patch"`. Examples: `"10.5.301"`, `"9.2.1"
# Examples: `"10.5.301"`, `"9.2.1"`. # `.
# Corresponds to the JSON property `minimumVersion` # Corresponds to the JSON property `minimumVersion`
# @return [String] # @return [String]
attr_accessor :minimum_version attr_accessor :minimum_version
@ -657,10 +627,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :os_type attr_accessor :os_type
# Only allows requests from devices with a verified Chrome OS. # Only allows requests from devices with a verified Chrome OS. Verifications
# Verifications includes requirements that the device is enterprise-managed, # includes requirements that the device is enterprise-managed, conformant to
# conformant to domain policies, and the caller has permission to call # domain policies, and the caller has permission to call the API targeted by the
# the API targeted by the request. # request.
# Corresponds to the JSON property `requireVerifiedChromeOs` # Corresponds to the JSON property `requireVerifiedChromeOs`
# @return [Boolean] # @return [Boolean]
attr_accessor :require_verified_chrome_os attr_accessor :require_verified_chrome_os
@ -678,24 +648,23 @@ module Google
end end
end end
# A request to replace all existing Access Levels in an Access Policy with # A request to replace all existing Access Levels in an Access Policy with the
# the Access Levels provided. This is done atomically. # Access Levels provided. This is done atomically.
class ReplaceAccessLevelsRequest class ReplaceAccessLevelsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The desired Access Levels that should # Required. The desired Access Levels that should replace all existing Access
# replace all existing Access Levels in the # Levels in the Access Policy.
# Access Policy.
# Corresponds to the JSON property `accessLevels` # Corresponds to the JSON property `accessLevels`
# @return [Array<Google::Apis::AccesscontextmanagerV1::AccessLevel>] # @return [Array<Google::Apis::AccesscontextmanagerV1::AccessLevel>]
attr_accessor :access_levels attr_accessor :access_levels
# Optional. The etag for the version of the Access Policy that this # Optional. The etag for the version of the Access Policy that this replace
# replace operation is to be performed on. If, at the time of replace, the # operation is to be performed on. If, at the time of replace, the etag for the
# etag for the Access Policy stored in Access Context Manager is different # Access Policy stored in Access Context Manager is different from the specified
# from the specified etag, then the replace operation will not be performed # etag, then the replace operation will not be performed and the call will fail.
# and the call will fail. This field is not required. If etag is not # This field is not required. If etag is not provided, the operation will be
# provided, the operation will be performed as if a valid etag is provided. # performed as if a valid etag is provided.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
@ -711,8 +680,8 @@ module Google
end end
end end
# A response to ReplaceAccessLevelsRequest. This will be put inside of # A response to ReplaceAccessLevelsRequest. This will be put inside of Operation.
# Operation.response field. # response field.
class ReplaceAccessLevelsResponse class ReplaceAccessLevelsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -731,24 +700,23 @@ module Google
end end
end end
# A request to replace all existing Service Perimeters in an Access Policy # A request to replace all existing Service Perimeters in an Access Policy with
# with the Service Perimeters provided. This is done atomically. # the Service Perimeters provided. This is done atomically.
class ReplaceServicePerimetersRequest class ReplaceServicePerimetersRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The etag for the version of the Access Policy that this # Optional. The etag for the version of the Access Policy that this replace
# replace operation is to be performed on. If, at the time of replace, the # operation is to be performed on. If, at the time of replace, the etag for the
# etag for the Access Policy stored in Access Context Manager is different # Access Policy stored in Access Context Manager is different from the specified
# from the specified etag, then the replace operation will not be performed # etag, then the replace operation will not be performed and the call will fail.
# and the call will fail. This field is not required. If etag is not # This field is not required. If etag is not provided, the operation will be
# provided, the operation will be performed as if a valid etag is provided. # performed as if a valid etag is provided.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Required. The desired Service Perimeters that should # Required. The desired Service Perimeters that should replace all existing
# replace all existing Service Perimeters in the # Service Perimeters in the Access Policy.
# Access Policy.
# Corresponds to the JSON property `servicePerimeters` # Corresponds to the JSON property `servicePerimeters`
# @return [Array<Google::Apis::AccesscontextmanagerV1::ServicePerimeter>] # @return [Array<Google::Apis::AccesscontextmanagerV1::ServicePerimeter>]
attr_accessor :service_perimeters attr_accessor :service_perimeters
@ -785,37 +753,34 @@ module Google
end end
# `ServicePerimeter` describes a set of Google Cloud resources which can freely # `ServicePerimeter` describes a set of Google Cloud resources which can freely
# import and export data amongst themselves, but not export outside of the # import and export data amongst themselves, but not export outside of the `
# `ServicePerimeter`. If a request with a source within this `ServicePerimeter` # ServicePerimeter`. If a request with a source within this `ServicePerimeter`
# has a target outside of the `ServicePerimeter`, the request will be blocked. # has a target outside of the `ServicePerimeter`, the request will be blocked.
# Otherwise the request is allowed. There are two types of Service Perimeter - # Otherwise the request is allowed. There are two types of Service Perimeter -
# Regular and Bridge. Regular Service Perimeters cannot overlap, a single # Regular and Bridge. Regular Service Perimeters cannot overlap, a single Google
# Google Cloud project can only belong to a single regular Service Perimeter. # Cloud project can only belong to a single regular Service Perimeter. Service
# Service Perimeter Bridges can contain only Google Cloud projects as members, # Perimeter Bridges can contain only Google Cloud projects as members, a single
# a single Google Cloud project may belong to multiple Service Perimeter # Google Cloud project may belong to multiple Service Perimeter Bridges.
# Bridges.
class ServicePerimeter class ServicePerimeter
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Description of the `ServicePerimeter` and its use. Does not affect # Description of the `ServicePerimeter` and its use. Does not affect behavior.
# behavior.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Required. Resource name for the ServicePerimeter. The `short_name` # Required. Resource name for the ServicePerimeter. The `short_name` component
# component must begin with a letter and only include alphanumeric and '_'. # must begin with a letter and only include alphanumeric and '_'. Format: `
# Format: `accessPolicies/`policy_id`/servicePerimeters/`short_name`` # accessPolicies/`policy_id`/servicePerimeters/`short_name``
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Perimeter type indicator. A single project is # Perimeter type indicator. A single project is allowed to be a member of single
# allowed to be a member of single regular perimeter, but multiple service # regular perimeter, but multiple service perimeter bridges. A project cannot be
# perimeter bridges. A project cannot be a included in a perimeter bridge # a included in a perimeter bridge without being included in regular perimeter.
# without being included in regular perimeter. For perimeter bridges, # For perimeter bridges, the restricted service list as well as access level
# the restricted service list as well as access level lists must be # lists must be empty.
# empty.
# Corresponds to the JSON property `perimeterType` # Corresponds to the JSON property `perimeterType`
# @return [String] # @return [String]
attr_accessor :perimeter_type attr_accessor :perimeter_type
@ -837,16 +802,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
# Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly # Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists
# exists for all Service Perimeters, and that spec is identical to the # for all Service Perimeters, and that spec is identical to the status for those
# status for those Service Perimeters. When this flag is set, it inhibits the # Service Perimeters. When this flag is set, it inhibits the generation of the
# generation of the implicit spec, thereby allowing the user to explicitly # implicit spec, thereby allowing the user to explicitly provide a configuration
# provide a configuration ("spec") to use in a dry-run version of the Service # ("spec") to use in a dry-run version of the Service Perimeter. This allows the
# Perimeter. This allows the user to test changes to the enforced config # user to test changes to the enforced config ("status") without actually
# ("status") without actually enforcing them. This testing is done through # enforcing them. This testing is done through analyzing the differences between
# analyzing the differences between currently enforced and suggested # currently enforced and suggested restrictions. use_explicit_dry_run_spec must
# restrictions. use_explicit_dry_run_spec must bet set to True if any of the # bet set to True if any of the fields in the spec are set to non-default values.
# fields in the spec are set to non-default values.
# Corresponds to the JSON property `useExplicitDryRunSpec` # Corresponds to the JSON property `useExplicitDryRunSpec`
# @return [Boolean] # @return [Boolean]
attr_accessor :use_explicit_dry_run_spec attr_accessor :use_explicit_dry_run_spec
@ -873,14 +837,13 @@ module Google
class ServicePerimeterConfig class ServicePerimeterConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A list of `AccessLevel` resource names that allow resources within the # A list of `AccessLevel` resource names that allow resources within the `
# `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed # ServicePerimeter` to be accessed from the internet. `AccessLevels` listed must
# must be in the same policy as this `ServicePerimeter`. Referencing a # be in the same policy as this `ServicePerimeter`. Referencing a nonexistent `
# nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are # AccessLevel` is a syntax error. If no `AccessLevel` names are listed,
# listed, resources within the perimeter can only be accessed via Google # resources within the perimeter can only be accessed via Google Cloud calls
# Cloud calls with request origins within the perimeter. Example: # with request origins within the perimeter. Example: `"accessPolicies/MY_POLICY/
# `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. # accessLevels/MY_LEVEL"`. For Service Perimeter Bridge, must be empty.
# For Service Perimeter Bridge, must be empty.
# Corresponds to the JSON property `accessLevels` # Corresponds to the JSON property `accessLevels`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :access_levels attr_accessor :access_levels
@ -891,16 +854,14 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :resources attr_accessor :resources
# Google Cloud services that are subject to the Service Perimeter # Google Cloud services that are subject to the Service Perimeter restrictions.
# restrictions. For example, if `storage.googleapis.com` is specified, access # For example, if `storage.googleapis.com` is specified, access to the storage
# to the storage buckets inside the perimeter must meet the perimeter's # buckets inside the perimeter must meet the perimeter's access restrictions.
# access restrictions.
# Corresponds to the JSON property `restrictedServices` # Corresponds to the JSON property `restrictedServices`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :restricted_services attr_accessor :restricted_services
# Specifies how APIs are allowed to communicate within the Service # Specifies how APIs are allowed to communicate within the Service Perimeter.
# Perimeter.
# Corresponds to the JSON property `vpcAccessibleServices` # Corresponds to the JSON property `vpcAccessibleServices`
# @return [Google::Apis::AccesscontextmanagerV1::VpcAccessibleServices] # @return [Google::Apis::AccesscontextmanagerV1::VpcAccessibleServices]
attr_accessor :vpc_accessible_services attr_accessor :vpc_accessible_services
@ -918,12 +879,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -938,9 +899,9 @@ module Google
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message
@ -957,19 +918,20 @@ module Google
end end
end end
# Specifies how APIs are allowed to communicate within the Service # Specifies how APIs are allowed to communicate within the Service Perimeter.
# Perimeter.
class VpcAccessibleServices class VpcAccessibleServices
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The list of APIs usable within the Service Perimeter. Must be empty # The list of APIs usable within the Service Perimeter. Must be empty unless '
# unless 'enable_restriction' is True. # enable_restriction' is True. You can specify a list of individual services, as
# well as include the 'RESTRICTED-SERVICES' value, which automatically includes
# all of the services protected by the perimeter.
# Corresponds to the JSON property `allowedServices` # Corresponds to the JSON property `allowedServices`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :allowed_services attr_accessor :allowed_services
# Whether to restrict API calls within the Service Perimeter to the list of # Whether to restrict API calls within the Service Perimeter to the list of APIs
# APIs specified in 'allowed_services'. # specified in 'allowed_services'.
# Corresponds to the JSON property `enableRestriction` # Corresponds to the JSON property `enableRestriction`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_restriction attr_accessor :enable_restriction

View File

@ -47,11 +47,10 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Create an `AccessPolicy`. Fails if this organization already has a # Create an `AccessPolicy`. Fails if this organization already has a `
# `AccessPolicy`. The longrunning Operation will have a successful status # AccessPolicy`. The longrunning Operation will have a successful status once
# once the `AccessPolicy` has propagated to long-lasting storage. # the `AccessPolicy` has propagated to long-lasting storage. Syntactic and basic
# Syntactic and basic semantic errors will be returned in `metadata` as a # semantic errors will be returned in `metadata` as a BadRequest proto.
# BadRequest proto.
# @param [Google::Apis::AccesscontextmanagerV1::AccessPolicy] access_policy_object # @param [Google::Apis::AccesscontextmanagerV1::AccessPolicy] access_policy_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -81,13 +80,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Delete an AccessPolicy by resource # Delete an AccessPolicy by resource name. The longrunning Operation will have a
# name. The longrunning Operation will have a successful status once the # successful status once the AccessPolicy has been removed from long-lasting
# AccessPolicy # storage.
# has been removed from long-lasting storage.
# @param [String] name # @param [String] name
# Required. Resource name for the access policy to delete. # Required. Resource name for the access policy to delete. Format `
# Format `accessPolicies/`policy_id`` # accessPolicies/`policy_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -117,8 +115,8 @@ module Google
# Get an AccessPolicy by name. # Get an AccessPolicy by name.
# @param [String] name # @param [String] name
# Required. Resource name for the access policy to get. # Required. Resource name for the access policy to get. Format `accessPolicies/`
# Format `accessPolicies/`policy_id`` # policy_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -146,18 +144,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# List all AccessPolicies under a # List all AccessPolicies under a container.
# container.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Number of AccessPolicy instances to include in the list. Default 100. # Number of AccessPolicy instances to include in the list. Default 100.
# @param [String] page_token # @param [String] page_token
# Next page token for the next batch of AccessPolicy instances. Defaults to # Next page token for the next batch of AccessPolicy instances. Defaults to the
# the first page of results. # first page of results.
# @param [String] parent # @param [String] parent
# Required. Resource name for the container to list AccessPolicy instances # Required. Resource name for the container to list AccessPolicy instances from.
# from. # Format: `organizations/`org_id``
# Format:
# `organizations/`org_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -187,14 +182,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update an AccessPolicy. The # Update an AccessPolicy. The longrunning Operation from this RPC will have a
# longrunning Operation from this RPC will have a successful status once the # successful status once the changes to the AccessPolicy have propagated to long-
# changes to the AccessPolicy have propagated # lasting storage. Syntactic and basic semantic errors will be returned in `
# to long-lasting storage. Syntactic and basic semantic errors will be # metadata` as a BadRequest proto.
# returned in `metadata` as a BadRequest proto.
# @param [String] name # @param [String] name
# Output only. Resource name of the `AccessPolicy`. Format: # Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/`
# `accessPolicies/`policy_id`` # policy_id``
# @param [Google::Apis::AccesscontextmanagerV1::AccessPolicy] access_policy_object # @param [Google::Apis::AccesscontextmanagerV1::AccessPolicy] access_policy_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask to control which fields get updated. Must be non-empty. # Required. Mask to control which fields get updated. Must be non-empty.
@ -228,14 +222,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Create an Access Level. The longrunning # Create an Access Level. The longrunning operation from this RPC will have a
# operation from this RPC will have a successful status once the Access # successful status once the Access Level has propagated to long-lasting storage.
# Level has # Access Levels containing errors will result in an error response for the
# propagated to long-lasting storage. Access Levels containing # first error encountered.
# errors will result in an error response for the first error encountered.
# @param [String] parent # @param [String] parent
# Required. Resource name for the access policy which owns this Access # Required. Resource name for the access policy which owns this Access Level.
# Level.
# Format: `accessPolicies/`policy_id`` # Format: `accessPolicies/`policy_id``
# @param [Google::Apis::AccesscontextmanagerV1::AccessLevel] access_level_object # @param [Google::Apis::AccesscontextmanagerV1::AccessLevel] access_level_object
# @param [String] fields # @param [String] fields
@ -267,14 +259,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Delete an Access Level by resource # Delete an Access Level by resource name. The longrunning operation from this
# name. The longrunning operation from this RPC will have a successful status # RPC will have a successful status once the Access Level has been removed from
# once the Access Level has been removed # long-lasting storage.
# from long-lasting storage.
# @param [String] name # @param [String] name
# Required. Resource name for the Access Level. # Required. Resource name for the Access Level. Format: `accessPolicies/`
# Format: # policy_id`/accessLevels/`access_level_id``
# `accessPolicies/`policy_id`/accessLevels/`access_level_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -302,20 +292,16 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get an Access Level by resource # Get an Access Level by resource name.
# name.
# @param [String] name # @param [String] name
# Required. Resource name for the Access Level. # Required. Resource name for the Access Level. Format: `accessPolicies/`
# Format: # policy_id`/accessLevels/`access_level_id``
# `accessPolicies/`policy_id`/accessLevels/`access_level_id``
# @param [String] access_level_format # @param [String] access_level_format
# Whether to return `BasicLevels` in the Cloud Common Expression # Whether to return `BasicLevels` in the Cloud Common Expression Language rather
# Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where # than as `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are
# Access Levels # returned as `BasicLevels` or `CustomLevels` based on how they were created. If
# are returned as `BasicLevels` or `CustomLevels` based on how they were # set to CEL, all Access Levels are returned as `CustomLevels`. In the CEL case,
# created. If set to CEL, all Access Levels are returned as # `BasicLevels` are translated to equivalent `CustomLevels`.
# `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent
# `CustomLevels`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -344,22 +330,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# List all Access Levels for an access # List all Access Levels for an access policy.
# policy.
# @param [String] parent # @param [String] parent
# Required. Resource name for the access policy to list Access Levels from. # Required. Resource name for the access policy to list Access Levels from.
# Format: # Format: `accessPolicies/`policy_id``
# `accessPolicies/`policy_id``
# @param [String] access_level_format # @param [String] access_level_format
# Whether to return `BasicLevels` in the Cloud Common Expression language, as # Whether to return `BasicLevels` in the Cloud Common Expression language, as `
# `CustomLevels`, rather than as `BasicLevels`. Defaults to returning # CustomLevels`, rather than as `BasicLevels`. Defaults to returning `
# `AccessLevels` in the format they were defined. # AccessLevels` in the format they were defined.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Number of Access Levels to include in # Number of Access Levels to include in the list. Default 100.
# the list. Default 100.
# @param [String] page_token # @param [String] page_token
# Next page token for the next batch of Access Level instances. # Next page token for the next batch of Access Level instances. Defaults to the
# Defaults to the first page of results. # first page of results.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -390,16 +373,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update an Access Level. The longrunning # Update an Access Level. The longrunning operation from this RPC will have a
# operation from this RPC will have a successful status once the changes to # successful status once the changes to the Access Level have propagated to long-
# the Access Level have propagated # lasting storage. Access Levels containing errors will result in an error
# to long-lasting storage. Access Levels containing # response for the first error encountered.
# errors will result in an error response for the first error encountered.
# @param [String] name # @param [String] name
# Required. Resource name for the Access Level. The `short_name` component # Required. Resource name for the Access Level. The `short_name` component must
# must begin with a letter and only include alphanumeric and '_'. Format: # begin with a letter and only include alphanumeric and '_'. Format: `
# `accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length # accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length of
# of the `short_name` component is 50 characters. # the `short_name` component is 50 characters.
# @param [Google::Apis::AccesscontextmanagerV1::AccessLevel] access_level_object # @param [Google::Apis::AccesscontextmanagerV1::AccessLevel] access_level_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask to control which fields get updated. Must be non-empty. # Required. Mask to control which fields get updated. Must be non-empty.
@ -433,21 +415,16 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Replace all existing Access Levels in an Access # Replace all existing Access Levels in an Access Policy with the Access Levels
# Policy with # provided. This is done atomically. The longrunning operation from this RPC
# the Access Levels provided. This # will have a successful status once all replacements have propagated to long-
# is done atomically. The longrunning operation from this RPC will have a # lasting storage. Replacements containing errors will result in an error
# successful status once all replacements have propagated to long-lasting # response for the first error encountered. Replacement will be cancelled on
# storage. Replacements containing errors will result in an error response # error, existing Access Levels will not be affected. Operation.response field
# for the first error encountered. Replacement will be cancelled on error, # will contain ReplaceAccessLevelsResponse. Removing Access Levels contained in
# existing Access Levels will not be # existing Service Perimeters will result in error.
# affected. Operation.response field will contain
# ReplaceAccessLevelsResponse. Removing Access Levels contained in existing
# Service Perimeters will result in
# error.
# @param [String] parent # @param [String] parent
# Required. Resource name for the access policy which owns these # Required. Resource name for the access policy which owns these Access Levels.
# Access Levels.
# Format: `accessPolicies/`policy_id`` # Format: `accessPolicies/`policy_id``
# @param [Google::Apis::AccesscontextmanagerV1::ReplaceAccessLevelsRequest] replace_access_levels_request_object # @param [Google::Apis::AccesscontextmanagerV1::ReplaceAccessLevelsRequest] replace_access_levels_request_object
# @param [String] fields # @param [String] fields
@ -479,23 +456,21 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Commit the dry-run spec for all the Service Perimeters in an # Commit the dry-run spec for all the Service Perimeters in an Access Policy. A
# Access Policy. # commit operation on a Service Perimeter involves copying its `spec` field to
# A commit operation on a Service Perimeter involves copying its `spec` field # that Service Perimeter's `status` field. Only Service Perimeters with `
# to that Service Perimeter's `status` field. Only Service Perimeters with # use_explicit_dry_run_spec` field set to true are affected by a commit
# `use_explicit_dry_run_spec` field set to true are affected by a commit
# operation. The longrunning operation from this RPC will have a successful # operation. The longrunning operation from this RPC will have a successful
# status once the dry-run specs for all the Service Perimeters have been # status once the dry-run specs for all the Service Perimeters have been
# committed. If a commit fails, it will cause the longrunning operation to # committed. If a commit fails, it will cause the longrunning operation to
# return an error response and the entire commit operation will be cancelled. # return an error response and the entire commit operation will be cancelled.
# When successful, Operation.response field will contain # When successful, Operation.response field will contain
# CommitServicePerimetersResponse. The `dry_run` and the `spec` fields will # CommitServicePerimetersResponse. The `dry_run` and the `spec` fields will be
# be cleared after a successful commit operation. # cleared after a successful commit operation.
# @param [String] parent # @param [String] parent
# Required. Resource name for the parent Access Policy which owns all # Required. Resource name for the parent Access Policy which owns all Service
# Service Perimeters in scope for # Perimeters in scope for the commit operation. Format: `accessPolicies/`
# the commit operation. # policy_id``
# Format: `accessPolicies/`policy_id``
# @param [Google::Apis::AccesscontextmanagerV1::CommitServicePerimetersRequest] commit_service_perimeters_request_object # @param [Google::Apis::AccesscontextmanagerV1::CommitServicePerimetersRequest] commit_service_perimeters_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -526,15 +501,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Create a Service Perimeter. The # Create a Service Perimeter. The longrunning operation from this RPC will have
# longrunning operation from this RPC will have a successful status once the # a successful status once the Service Perimeter has propagated to long-lasting
# Service Perimeter has # storage. Service Perimeters containing errors will result in an error response
# propagated to long-lasting storage. Service Perimeters containing # for the first error encountered.
# errors will result in an error response for the first error encountered.
# @param [String] parent # @param [String] parent
# Required. Resource name for the access policy which owns this Service # Required. Resource name for the access policy which owns this Service
# Perimeter. # Perimeter. Format: `accessPolicies/`policy_id``
# Format: `accessPolicies/`policy_id``
# @param [Google::Apis::AccesscontextmanagerV1::ServicePerimeter] service_perimeter_object # @param [Google::Apis::AccesscontextmanagerV1::ServicePerimeter] service_perimeter_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -565,14 +538,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Delete a Service Perimeter by resource # Delete a Service Perimeter by resource name. The longrunning operation from
# name. The longrunning operation from this RPC will have a successful status # this RPC will have a successful status once the Service Perimeter has been
# once the Service Perimeter has been
# removed from long-lasting storage. # removed from long-lasting storage.
# @param [String] name # @param [String] name
# Required. Resource name for the Service Perimeter. # Required. Resource name for the Service Perimeter. Format: `accessPolicies/`
# Format: # policy_id`/servicePerimeters/`service_perimeter_id``
# `accessPolicies/`policy_id`/servicePerimeters/`service_perimeter_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -600,12 +571,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get a Service Perimeter by resource # Get a Service Perimeter by resource name.
# name.
# @param [String] name # @param [String] name
# Required. Resource name for the Service Perimeter. # Required. Resource name for the Service Perimeter. Format: `accessPolicies/`
# Format: # policy_id`/servicePerimeters/`service_perimeters_id``
# `accessPolicies/`policy_id`/servicePerimeters/`service_perimeters_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -633,18 +602,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# List all Service Perimeters for an # List all Service Perimeters for an access policy.
# access policy.
# @param [String] parent # @param [String] parent
# Required. Resource name for the access policy to list Service Perimeters from. # Required. Resource name for the access policy to list Service Perimeters from.
# Format: # Format: `accessPolicies/`policy_id``
# `accessPolicies/`policy_id``
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Number of Service Perimeters to include # Number of Service Perimeters to include in the list. Default 100.
# in the list. Default 100.
# @param [String] page_token # @param [String] page_token
# Next page token for the next batch of Service Perimeter instances. # Next page token for the next batch of Service Perimeter instances. Defaults to
# Defaults to the first page of results. # the first page of results.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -674,15 +640,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update a Service Perimeter. The # Update a Service Perimeter. The longrunning operation from this RPC will have
# longrunning operation from this RPC will have a successful status once the # a successful status once the changes to the Service Perimeter have propagated
# changes to the Service Perimeter have # to long-lasting storage. Service Perimeter containing errors will result in an
# propagated to long-lasting storage. Service Perimeter containing # error response for the first error encountered.
# errors will result in an error response for the first error encountered.
# @param [String] name # @param [String] name
# Required. Resource name for the ServicePerimeter. The `short_name` # Required. Resource name for the ServicePerimeter. The `short_name` component
# component must begin with a letter and only include alphanumeric and '_'. # must begin with a letter and only include alphanumeric and '_'. Format: `
# Format: `accessPolicies/`policy_id`/servicePerimeters/`short_name`` # accessPolicies/`policy_id`/servicePerimeters/`short_name``
# @param [Google::Apis::AccesscontextmanagerV1::ServicePerimeter] service_perimeter_object # @param [Google::Apis::AccesscontextmanagerV1::ServicePerimeter] service_perimeter_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask to control which fields get updated. Must be non-empty. # Required. Mask to control which fields get updated. Must be non-empty.
@ -716,20 +681,16 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Replace all existing Service Perimeters in an # Replace all existing Service Perimeters in an Access Policy with the Service
# Access Policy # Perimeters provided. This is done atomically. The longrunning operation from
# with the Service Perimeters provided. # this RPC will have a successful status once all replacements have propagated
# This is done atomically. The longrunning operation from this # to long-lasting storage. Replacements containing errors will result in an
# RPC will have a successful status once all replacements have propagated to # error response for the first error encountered. Replacement will be cancelled
# long-lasting storage. Replacements containing errors will result in an # on error, existing Service Perimeters will not be affected. Operation.response
# error response for the first error encountered. Replacement will be # field will contain ReplaceServicePerimetersResponse.
# cancelled on error, existing Service Perimeters will not be
# affected. Operation.response field will contain
# ReplaceServicePerimetersResponse.
# @param [String] parent # @param [String] parent
# Required. Resource name for the access policy which owns these # Required. Resource name for the access policy which owns these Service
# Service Perimeters. # Perimeters. Format: `accessPolicies/`policy_id``
# Format: `accessPolicies/`policy_id``
# @param [Google::Apis::AccesscontextmanagerV1::ReplaceServicePerimetersRequest] replace_service_perimeters_request_object # @param [Google::Apis::AccesscontextmanagerV1::ReplaceServicePerimetersRequest] replace_service_perimeters_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -760,15 +721,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -802,10 +761,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a long-running operation. This method indicates that the client is # Deletes a long-running operation. This method indicates that the client is no
# no longer interested in the operation result. It does not cancel the # longer interested in the operation result. It does not cancel the operation.
# operation. If the server doesn't support this method, it returns # If the server doesn't support this method, it returns `google.rpc.Code.
# `google.rpc.Code.UNIMPLEMENTED`. # UNIMPLEMENTED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be deleted. # The name of the operation resource to be deleted.
# @param [String] fields # @param [String] fields
@ -835,9 +794,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -867,15 +825,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/ # @see https://cloud.google.com/access-context-manager/docs/reference/rest/
module AccesscontextmanagerV1beta module AccesscontextmanagerV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20200405' REVISION = '20200801'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -34,8 +34,8 @@ module Google
attr_accessor :basic attr_accessor :basic
# `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language # `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
# to represent the necessary conditions for the level to apply to a request. # to represent the necessary conditions for the level to apply to a request. See
# See CEL spec at: https://github.com/google/cel-spec # CEL spec at: https://github.com/google/cel-spec
# Corresponds to the JSON property `custom` # Corresponds to the JSON property `custom`
# @return [Google::Apis::AccesscontextmanagerV1beta::CustomLevel] # @return [Google::Apis::AccesscontextmanagerV1beta::CustomLevel]
attr_accessor :custom attr_accessor :custom
@ -45,10 +45,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Required. Resource name for the Access Level. The `short_name` component # Required. Resource name for the Access Level. The `short_name` component must
# must begin with a letter and only include alphanumeric and '_'. Format: # begin with a letter and only include alphanumeric and '_'. Format: `
# `accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length # accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length //
# // of the `short_name` component is 50 characters. # of the `short_name` component is 50 characters.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -73,22 +73,21 @@ module Google
end end
# `AccessPolicy` is a container for `AccessLevels` (which define the necessary # `AccessPolicy` is a container for `AccessLevels` (which define the necessary
# attributes to use Google Cloud services) and `ServicePerimeters` (which # attributes to use Google Cloud services) and `ServicePerimeters` (which define
# define regions of services able to freely pass data within a perimeter). An # regions of services able to freely pass data within a perimeter). An access
# access policy is globally visible within an organization, and the # policy is globally visible within an organization, and the restrictions it
# restrictions it specifies apply to all projects within an organization. # specifies apply to all projects within an organization.
class AccessPolicy class AccessPolicy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. Resource name of the `AccessPolicy`. Format: # Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/`
# `accessPolicies/`policy_id`` # policy_id``
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The parent of this `AccessPolicy` in the Cloud Resource # Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy.
# Hierarchy. Currently immutable once created. Format: # Currently immutable once created. Format: `organizations/`organization_id``
# `organizations/`organization_id``
# Corresponds to the JSON property `parent` # Corresponds to the JSON property `parent`
# @return [String] # @return [String]
attr_accessor :parent attr_accessor :parent
@ -115,10 +114,10 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# How the `conditions` list should be combined to determine if a request is # How the `conditions` list should be combined to determine if a request is
# granted this `AccessLevel`. If AND is used, each `Condition` in # granted this `AccessLevel`. If AND is used, each `Condition` in `conditions`
# `conditions` must be satisfied for the `AccessLevel` to be applied. If OR # must be satisfied for the `AccessLevel` to be applied. If OR is used, at least
# is used, at least one `Condition` in `conditions` must be satisfied for the # one `Condition` in `conditions` must be satisfied for the `AccessLevel` to be
# `AccessLevel` to be applied. Default behavior is AND. # applied. Default behavior is AND.
# Corresponds to the JSON property `combiningFunction` # Corresponds to the JSON property `combiningFunction`
# @return [String] # @return [String]
attr_accessor :combining_function attr_accessor :combining_function
@ -152,54 +151,48 @@ module Google
# devices to be granted access levels, it does not do any enforcement on the # devices to be granted access levels, it does not do any enforcement on the
# device. `DevicePolicy` acts as an AND over all specified fields, and each # device. `DevicePolicy` acts as an AND over all specified fields, and each
# repeated field is an OR over its elements. Any unset fields are ignored. For # repeated field is an OR over its elements. Any unset fields are ignored. For
# example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : # example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX,
# DESKTOP_LINUX, encryption_status: ENCRYPTED`, then the DevicePolicy will be # encryption_status: ENCRYPTED`, then the DevicePolicy will be true for requests
# true for requests originating from encrypted Linux desktops and encrypted # originating from encrypted Linux desktops and encrypted Windows desktops.
# Windows desktops.
# Corresponds to the JSON property `devicePolicy` # Corresponds to the JSON property `devicePolicy`
# @return [Google::Apis::AccesscontextmanagerV1beta::DevicePolicy] # @return [Google::Apis::AccesscontextmanagerV1beta::DevicePolicy]
attr_accessor :device_policy attr_accessor :device_policy
# CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for # CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for a
# a CIDR IP address block, the specified IP address portion must be properly # CIDR IP address block, the specified IP address portion must be properly
# truncated (i.e. all the host bits must be zero) or the input is considered # truncated (i.e. all the host bits must be zero) or the input is considered
# malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is # malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is not.
# not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas # Similarly, for IPv6, "2001:db8::/32" is accepted whereas "2001:db8::1/32" is
# "2001:db8::1/32" is not. The originating IP of a request must be in one of # not. The originating IP of a request must be in one of the listed subnets in
# the listed subnets in order for this Condition to be true. If empty, all IP # order for this Condition to be true. If empty, all IP addresses are allowed.
# addresses are allowed.
# Corresponds to the JSON property `ipSubnetworks` # Corresponds to the JSON property `ipSubnetworks`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ip_subnetworks attr_accessor :ip_subnetworks
# The request must be made by one of the provided user or service # The request must be made by one of the provided user or service accounts.
# accounts. Groups are not supported. # Groups are not supported. Syntax: `user:`emailid`` `serviceAccount:`emailid``
# Syntax:
# `user:`emailid``
# `serviceAccount:`emailid``
# If not specified, a request may come from any user. # If not specified, a request may come from any user.
# Corresponds to the JSON property `members` # Corresponds to the JSON property `members`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :members attr_accessor :members
# Whether to negate the Condition. If true, the Condition becomes a NAND over # Whether to negate the Condition. If true, the Condition becomes a NAND over
# its non-empty fields, each field must be false for the Condition overall to # its non-empty fields, each field must be false for the Condition overall to be
# be satisfied. Defaults to false. # satisfied. Defaults to false.
# Corresponds to the JSON property `negate` # Corresponds to the JSON property `negate`
# @return [Boolean] # @return [Boolean]
attr_accessor :negate attr_accessor :negate
alias_method :negate?, :negate alias_method :negate?, :negate
# The request must originate from one of the provided countries/regions. # The request must originate from one of the provided countries/regions. Must be
# Must be valid ISO 3166-1 alpha-2 codes. # valid ISO 3166-1 alpha-2 codes.
# Corresponds to the JSON property `regions` # Corresponds to the JSON property `regions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :regions attr_accessor :regions
# A list of other access levels defined in the same `Policy`, referenced by # A list of other access levels defined in the same `Policy`, referenced by
# resource name. Referencing an `AccessLevel` which does not exist is an # resource name. Referencing an `AccessLevel` which does not exist is an error.
# error. All access levels listed must be granted for the Condition # All access levels listed must be granted for the Condition to be true. Example:
# to be true. Example:
# "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"` # "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"`
# Corresponds to the JSON property `requiredAccessLevels` # Corresponds to the JSON property `requiredAccessLevels`
# @return [Array<String>] # @return [Array<String>]
@ -221,33 +214,26 @@ module Google
end end
# `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language # `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
# to represent the necessary conditions for the level to apply to a request. # to represent the necessary conditions for the level to apply to a request. See
# See CEL spec at: https://github.com/google/cel-spec # CEL spec at: https://github.com/google/cel-spec
class CustomLevel class CustomLevel
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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 `expr` # Corresponds to the JSON property `expr`
# @return [Google::Apis::AccesscontextmanagerV1beta::Expr] # @return [Google::Apis::AccesscontextmanagerV1beta::Expr]
attr_accessor :expr attr_accessor :expr
@ -267,15 +253,13 @@ module Google
# devices to be granted access levels, it does not do any enforcement on the # devices to be granted access levels, it does not do any enforcement on the
# device. `DevicePolicy` acts as an AND over all specified fields, and each # device. `DevicePolicy` acts as an AND over all specified fields, and each
# repeated field is an OR over its elements. Any unset fields are ignored. For # repeated field is an OR over its elements. Any unset fields are ignored. For
# example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : # example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX,
# DESKTOP_LINUX, encryption_status: ENCRYPTED`, then the DevicePolicy will be # encryption_status: ENCRYPTED`, then the DevicePolicy will be true for requests
# true for requests originating from encrypted Linux desktops and encrypted # originating from encrypted Linux desktops and encrypted Windows desktops.
# Windows desktops.
class DevicePolicy class DevicePolicy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Allowed device management levels, an empty list allows all management # Allowed device management levels, an empty list allows all management levels.
# levels.
# Corresponds to the JSON property `allowedDeviceManagementLevels` # Corresponds to the JSON property `allowedDeviceManagementLevels`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :allowed_device_management_levels attr_accessor :allowed_device_management_levels
@ -324,52 +308,43 @@ module Google
end end
end end
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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 class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which describes
# describes the expression, e.g. when hovered over it in a UI. # the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in Common Expression Language # Textual representation of an expression in Common Expression Language syntax.
# syntax.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# Optional. String indicating the location of the expression for error # Optional. String indicating the location of the expression for error reporting,
# reporting, e.g. a file name and a position in the file. # e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. Title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing its purpose.
# its purpose. This can be used e.g. in UIs which allow to enter the # This can be used e.g. in UIs which allow to enter the expression.
# expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
@ -470,47 +445,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::AccesscontextmanagerV1beta::Status] # @return [Google::Apis::AccesscontextmanagerV1beta::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # 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 # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -533,9 +506,9 @@ module Google
class OsConstraint class OsConstraint
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The minimum allowed OS version. If not set, any version of this OS # The minimum allowed OS version. If not set, any version of this OS satisfies
# satisfies the constraint. Format: `"major.minor.patch"`. # the constraint. Format: `"major.minor.patch"`. Examples: `"10.5.301"`, `"9.2.1"
# Examples: `"10.5.301"`, `"9.2.1"`. # `.
# Corresponds to the JSON property `minimumVersion` # Corresponds to the JSON property `minimumVersion`
# @return [String] # @return [String]
attr_accessor :minimum_version attr_accessor :minimum_version
@ -545,10 +518,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :os_type attr_accessor :os_type
# Only allows requests from devices with a verified Chrome OS. # Only allows requests from devices with a verified Chrome OS. Verifications
# Verifications includes requirements that the device is enterprise-managed, # includes requirements that the device is enterprise-managed, conformant to
# conformant to domain policies, and the caller has permission to call # domain policies, and the caller has permission to call the API targeted by the
# the API targeted by the request. # request.
# Corresponds to the JSON property `requireVerifiedChromeOs` # Corresponds to the JSON property `requireVerifiedChromeOs`
# @return [Boolean] # @return [Boolean]
attr_accessor :require_verified_chrome_os attr_accessor :require_verified_chrome_os
@ -567,37 +540,34 @@ module Google
end end
# `ServicePerimeter` describes a set of Google Cloud resources which can freely # `ServicePerimeter` describes a set of Google Cloud resources which can freely
# import and export data amongst themselves, but not export outside of the # import and export data amongst themselves, but not export outside of the `
# `ServicePerimeter`. If a request with a source within this `ServicePerimeter` # ServicePerimeter`. If a request with a source within this `ServicePerimeter`
# has a target outside of the `ServicePerimeter`, the request will be blocked. # has a target outside of the `ServicePerimeter`, the request will be blocked.
# Otherwise the request is allowed. There are two types of Service Perimeter - # Otherwise the request is allowed. There are two types of Service Perimeter -
# Regular and Bridge. Regular Service Perimeters cannot overlap, a single # Regular and Bridge. Regular Service Perimeters cannot overlap, a single Google
# Google Cloud project can only belong to a single regular Service Perimeter. # Cloud project can only belong to a single regular Service Perimeter. Service
# Service Perimeter Bridges can contain only Google Cloud projects as members, # Perimeter Bridges can contain only Google Cloud projects as members, a single
# a single Google Cloud project may belong to multiple Service Perimeter # Google Cloud project may belong to multiple Service Perimeter Bridges.
# Bridges.
class ServicePerimeter class ServicePerimeter
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Description of the `ServicePerimeter` and its use. Does not affect # Description of the `ServicePerimeter` and its use. Does not affect behavior.
# behavior.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Required. Resource name for the ServicePerimeter. The `short_name` # Required. Resource name for the ServicePerimeter. The `short_name` component
# component must begin with a letter and only include alphanumeric and '_'. # must begin with a letter and only include alphanumeric and '_'. Format: `
# Format: `accessPolicies/`policy_id`/servicePerimeters/`short_name`` # accessPolicies/`policy_id`/servicePerimeters/`short_name``
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Perimeter type indicator. A single project is # Perimeter type indicator. A single project is allowed to be a member of single
# allowed to be a member of single regular perimeter, but multiple service # regular perimeter, but multiple service perimeter bridges. A project cannot be
# perimeter bridges. A project cannot be a included in a perimeter bridge # a included in a perimeter bridge without being included in regular perimeter.
# without being included in regular perimeter. For perimeter bridges, # For perimeter bridges, restricted/unrestricted service lists as well as access
# restricted/unrestricted service lists as well as access lists must be # lists must be empty.
# empty.
# Corresponds to the JSON property `perimeterType` # Corresponds to the JSON property `perimeterType`
# @return [String] # @return [String]
attr_accessor :perimeter_type attr_accessor :perimeter_type
@ -632,14 +602,13 @@ module Google
class ServicePerimeterConfig class ServicePerimeterConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A list of `AccessLevel` resource names that allow resources within the # A list of `AccessLevel` resource names that allow resources within the `
# `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed # ServicePerimeter` to be accessed from the internet. `AccessLevels` listed must
# must be in the same policy as this `ServicePerimeter`. Referencing a # be in the same policy as this `ServicePerimeter`. Referencing a nonexistent `
# nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are # AccessLevel` is a syntax error. If no `AccessLevel` names are listed,
# listed, resources within the perimeter can only be accessed via Google # resources within the perimeter can only be accessed via Google Cloud calls
# Cloud calls with request origins within the perimeter. Example: # with request origins within the perimeter. Example: `"accessPolicies/MY_POLICY/
# `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. # accessLevels/MY_LEVEL"`. For Service Perimeter Bridge, must be empty.
# For Service Perimeter Bridge, must be empty.
# Corresponds to the JSON property `accessLevels` # Corresponds to the JSON property `accessLevels`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :access_levels attr_accessor :access_levels
@ -650,24 +619,23 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :resources attr_accessor :resources
# Google Cloud services that are subject to the Service Perimeter # Google Cloud services that are subject to the Service Perimeter restrictions.
# restrictions. Must contain a list of services. For example, if # Must contain a list of services. For example, if `storage.googleapis.com` is
# `storage.googleapis.com` is specified, access to the storage buckets # specified, access to the storage buckets inside the perimeter must meet the
# inside the perimeter must meet the perimeter's access restrictions. # perimeter's access restrictions.
# Corresponds to the JSON property `restrictedServices` # Corresponds to the JSON property `restrictedServices`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :restricted_services attr_accessor :restricted_services
# Google Cloud services that are not subject to the Service Perimeter # Google Cloud services that are not subject to the Service Perimeter
# restrictions. Deprecated. Must be set to a single wildcard "*". # restrictions. Deprecated. Must be set to a single wildcard "*". The wildcard
# The wildcard means that unless explicitly specified by # means that unless explicitly specified by "restricted_services" list, any
# "restricted_services" list, any service is treated as unrestricted. # service is treated as unrestricted.
# Corresponds to the JSON property `unrestrictedServices` # Corresponds to the JSON property `unrestrictedServices`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :unrestricted_services attr_accessor :unrestricted_services
# Specifies how APIs are allowed to communicate within the Service # Specifies how APIs are allowed to communicate within the Service Perimeter.
# Perimeter.
# Corresponds to the JSON property `vpcAccessibleServices` # Corresponds to the JSON property `vpcAccessibleServices`
# @return [Google::Apis::AccesscontextmanagerV1beta::VpcAccessibleServices] # @return [Google::Apis::AccesscontextmanagerV1beta::VpcAccessibleServices]
attr_accessor :vpc_accessible_services attr_accessor :vpc_accessible_services
@ -686,12 +654,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -706,9 +674,9 @@ module Google
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message
@ -725,19 +693,20 @@ module Google
end end
end end
# Specifies how APIs are allowed to communicate within the Service # Specifies how APIs are allowed to communicate within the Service Perimeter.
# Perimeter.
class VpcAccessibleServices class VpcAccessibleServices
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The list of APIs usable within the Service Perimeter. Must be empty # The list of APIs usable within the Service Perimeter. Must be empty unless '
# unless 'enable_restriction' is True. # enable_restriction' is True. You can specify a list of individual services, as
# well as include the 'RESTRICTED-SERVICES' value, which automatically includes
# all of the services protected by the perimeter.
# Corresponds to the JSON property `allowedServices` # Corresponds to the JSON property `allowedServices`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :allowed_services attr_accessor :allowed_services
# Whether to restrict API calls within the Service Perimeter to the list of # Whether to restrict API calls within the Service Perimeter to the list of APIs
# APIs specified in 'allowed_services'. # specified in 'allowed_services'.
# Corresponds to the JSON property `enableRestriction` # Corresponds to the JSON property `enableRestriction`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_restriction attr_accessor :enable_restriction

View File

@ -47,11 +47,10 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Create an `AccessPolicy`. Fails if this organization already has a # Create an `AccessPolicy`. Fails if this organization already has a `
# `AccessPolicy`. The longrunning Operation will have a successful status # AccessPolicy`. The longrunning Operation will have a successful status once
# once the `AccessPolicy` has propagated to long-lasting storage. # the `AccessPolicy` has propagated to long-lasting storage. Syntactic and basic
# Syntactic and basic semantic errors will be returned in `metadata` as a # semantic errors will be returned in `metadata` as a BadRequest proto.
# BadRequest proto.
# @param [Google::Apis::AccesscontextmanagerV1beta::AccessPolicy] access_policy_object # @param [Google::Apis::AccesscontextmanagerV1beta::AccessPolicy] access_policy_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -81,13 +80,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Delete an AccessPolicy by resource # Delete an AccessPolicy by resource name. The longrunning Operation will have a
# name. The longrunning Operation will have a successful status once the # successful status once the AccessPolicy has been removed from long-lasting
# AccessPolicy # storage.
# has been removed from long-lasting storage.
# @param [String] name # @param [String] name
# Required. Resource name for the access policy to delete. # Required. Resource name for the access policy to delete. Format `
# Format `accessPolicies/`policy_id`` # accessPolicies/`policy_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -117,8 +115,8 @@ module Google
# Get an AccessPolicy by name. # Get an AccessPolicy by name.
# @param [String] name # @param [String] name
# Required. Resource name for the access policy to get. # Required. Resource name for the access policy to get. Format `accessPolicies/`
# Format `accessPolicies/`policy_id`` # policy_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -146,18 +144,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# List all AccessPolicies under a # List all AccessPolicies under a container.
# container.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Number of AccessPolicy instances to include in the list. Default 100. # Number of AccessPolicy instances to include in the list. Default 100.
# @param [String] page_token # @param [String] page_token
# Next page token for the next batch of AccessPolicy instances. Defaults to # Next page token for the next batch of AccessPolicy instances. Defaults to the
# the first page of results. # first page of results.
# @param [String] parent # @param [String] parent
# Required. Resource name for the container to list AccessPolicy instances # Required. Resource name for the container to list AccessPolicy instances from.
# from. # Format: `organizations/`org_id``
# Format:
# `organizations/`org_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -187,14 +182,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update an AccessPolicy. The # Update an AccessPolicy. The longrunning Operation from this RPC will have a
# longrunning Operation from this RPC will have a successful status once the # successful status once the changes to the AccessPolicy have propagated to long-
# changes to the AccessPolicy have propagated # lasting storage. Syntactic and basic semantic errors will be returned in `
# to long-lasting storage. Syntactic and basic semantic errors will be # metadata` as a BadRequest proto.
# returned in `metadata` as a BadRequest proto.
# @param [String] name # @param [String] name
# Output only. Resource name of the `AccessPolicy`. Format: # Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/`
# `accessPolicies/`policy_id`` # policy_id``
# @param [Google::Apis::AccesscontextmanagerV1beta::AccessPolicy] access_policy_object # @param [Google::Apis::AccesscontextmanagerV1beta::AccessPolicy] access_policy_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask to control which fields get updated. Must be non-empty. # Required. Mask to control which fields get updated. Must be non-empty.
@ -228,14 +222,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Create an Access Level. The longrunning # Create an Access Level. The longrunning operation from this RPC will have a
# operation from this RPC will have a successful status once the Access # successful status once the Access Level has propagated to long-lasting storage.
# Level has # Access Levels containing errors will result in an error response for the
# propagated to long-lasting storage. Access Levels containing # first error encountered.
# errors will result in an error response for the first error encountered.
# @param [String] parent # @param [String] parent
# Required. Resource name for the access policy which owns this Access # Required. Resource name for the access policy which owns this Access Level.
# Level.
# Format: `accessPolicies/`policy_id`` # Format: `accessPolicies/`policy_id``
# @param [Google::Apis::AccesscontextmanagerV1beta::AccessLevel] access_level_object # @param [Google::Apis::AccesscontextmanagerV1beta::AccessLevel] access_level_object
# @param [String] fields # @param [String] fields
@ -267,14 +259,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Delete an Access Level by resource # Delete an Access Level by resource name. The longrunning operation from this
# name. The longrunning operation from this RPC will have a successful status # RPC will have a successful status once the Access Level has been removed from
# once the Access Level has been removed # long-lasting storage.
# from long-lasting storage.
# @param [String] name # @param [String] name
# Required. Resource name for the Access Level. # Required. Resource name for the Access Level. Format: `accessPolicies/`
# Format: # policy_id`/accessLevels/`access_level_id``
# `accessPolicies/`policy_id`/accessLevels/`access_level_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -302,20 +292,16 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get an Access Level by resource # Get an Access Level by resource name.
# name.
# @param [String] name # @param [String] name
# Required. Resource name for the Access Level. # Required. Resource name for the Access Level. Format: `accessPolicies/`
# Format: # policy_id`/accessLevels/`access_level_id``
# `accessPolicies/`policy_id`/accessLevels/`access_level_id``
# @param [String] access_level_format # @param [String] access_level_format
# Whether to return `BasicLevels` in the Cloud Common Expression # Whether to return `BasicLevels` in the Cloud Common Expression Language rather
# Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where # than as `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are
# Access Levels # returned as `BasicLevels` or `CustomLevels` based on how they were created. If
# are returned as `BasicLevels` or `CustomLevels` based on how they were # set to CEL, all Access Levels are returned as `CustomLevels`. In the CEL case,
# created. If set to CEL, all Access Levels are returned as # `BasicLevels` are translated to equivalent `CustomLevels`.
# `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent
# `CustomLevels`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -344,22 +330,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# List all Access Levels for an access # List all Access Levels for an access policy.
# policy.
# @param [String] parent # @param [String] parent
# Required. Resource name for the access policy to list Access Levels from. # Required. Resource name for the access policy to list Access Levels from.
# Format: # Format: `accessPolicies/`policy_id``
# `accessPolicies/`policy_id``
# @param [String] access_level_format # @param [String] access_level_format
# Whether to return `BasicLevels` in the Cloud Common Expression language, as # Whether to return `BasicLevels` in the Cloud Common Expression language, as `
# `CustomLevels`, rather than as `BasicLevels`. Defaults to returning # CustomLevels`, rather than as `BasicLevels`. Defaults to returning `
# `AccessLevels` in the format they were defined. # AccessLevels` in the format they were defined.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Number of Access Levels to include in # Number of Access Levels to include in the list. Default 100.
# the list. Default 100.
# @param [String] page_token # @param [String] page_token
# Next page token for the next batch of Access Level instances. # Next page token for the next batch of Access Level instances. Defaults to the
# Defaults to the first page of results. # first page of results.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -390,16 +373,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update an Access Level. The longrunning # Update an Access Level. The longrunning operation from this RPC will have a
# operation from this RPC will have a successful status once the changes to # successful status once the changes to the Access Level have propagated to long-
# the Access Level have propagated # lasting storage. Access Levels containing errors will result in an error
# to long-lasting storage. Access Levels containing # response for the first error encountered.
# errors will result in an error response for the first error encountered.
# @param [String] name # @param [String] name
# Required. Resource name for the Access Level. The `short_name` component # Required. Resource name for the Access Level. The `short_name` component must
# must begin with a letter and only include alphanumeric and '_'. Format: # begin with a letter and only include alphanumeric and '_'. Format: `
# `accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length # accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length //
# // of the `short_name` component is 50 characters. # of the `short_name` component is 50 characters.
# @param [Google::Apis::AccesscontextmanagerV1beta::AccessLevel] access_level_object # @param [Google::Apis::AccesscontextmanagerV1beta::AccessLevel] access_level_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask to control which fields get updated. Must be non-empty. # Required. Mask to control which fields get updated. Must be non-empty.
@ -433,15 +415,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Create a Service Perimeter. The # Create a Service Perimeter. The longrunning operation from this RPC will have
# longrunning operation from this RPC will have a successful status once the # a successful status once the Service Perimeter has propagated to long-lasting
# Service Perimeter has # storage. Service Perimeters containing errors will result in an error response
# propagated to long-lasting storage. Service Perimeters containing # for the first error encountered.
# errors will result in an error response for the first error encountered.
# @param [String] parent # @param [String] parent
# Required. Resource name for the access policy which owns this Service # Required. Resource name for the access policy which owns this Service
# Perimeter. # Perimeter. Format: `accessPolicies/`policy_id``
# Format: `accessPolicies/`policy_id``
# @param [Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter] service_perimeter_object # @param [Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter] service_perimeter_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -472,14 +452,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Delete a Service Perimeter by resource # Delete a Service Perimeter by resource name. The longrunning operation from
# name. The longrunning operation from this RPC will have a successful status # this RPC will have a successful status once the Service Perimeter has been
# once the Service Perimeter has been
# removed from long-lasting storage. # removed from long-lasting storage.
# @param [String] name # @param [String] name
# Required. Resource name for the Service Perimeter. # Required. Resource name for the Service Perimeter. Format: `accessPolicies/`
# Format: # policy_id`/servicePerimeters/`service_perimeter_id``
# `accessPolicies/`policy_id`/servicePerimeters/`service_perimeter_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -507,12 +485,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get a Service Perimeter by resource # Get a Service Perimeter by resource name.
# name.
# @param [String] name # @param [String] name
# Required. Resource name for the Service Perimeter. # Required. Resource name for the Service Perimeter. Format: `accessPolicies/`
# Format: # policy_id`/servicePerimeters/`service_perimeters_id``
# `accessPolicies/`policy_id`/servicePerimeters/`service_perimeters_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -540,18 +516,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# List all Service Perimeters for an # List all Service Perimeters for an access policy.
# access policy.
# @param [String] parent # @param [String] parent
# Required. Resource name for the access policy to list Service Perimeters from. # Required. Resource name for the access policy to list Service Perimeters from.
# Format: # Format: `accessPolicies/`policy_id``
# `accessPolicies/`policy_id``
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Number of Service Perimeters to include # Number of Service Perimeters to include in the list. Default 100.
# in the list. Default 100.
# @param [String] page_token # @param [String] page_token
# Next page token for the next batch of Service Perimeter instances. # Next page token for the next batch of Service Perimeter instances. Defaults to
# Defaults to the first page of results. # the first page of results.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -581,15 +554,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update a Service Perimeter. The # Update a Service Perimeter. The longrunning operation from this RPC will have
# longrunning operation from this RPC will have a successful status once the # a successful status once the changes to the Service Perimeter have propagated
# changes to the Service Perimeter have # to long-lasting storage. Service Perimeter containing errors will result in an
# propagated to long-lasting storage. Service Perimeter containing # error response for the first error encountered.
# errors will result in an error response for the first error encountered.
# @param [String] name # @param [String] name
# Required. Resource name for the ServicePerimeter. The `short_name` # Required. Resource name for the ServicePerimeter. The `short_name` component
# component must begin with a letter and only include alphanumeric and '_'. # must begin with a letter and only include alphanumeric and '_'. Format: `
# Format: `accessPolicies/`policy_id`/servicePerimeters/`short_name`` # accessPolicies/`policy_id`/servicePerimeters/`short_name``
# @param [Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter] service_perimeter_object # @param [Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter] service_perimeter_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask to control which fields get updated. Must be non-empty. # Required. Mask to control which fields get updated. Must be non-empty.
@ -623,9 +595,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields

View File

@ -18,14 +18,16 @@ require 'google/apis/admin_datatransfer_v1/representations.rb'
module Google module Google
module Apis module Apis
# Admin Data Transfer API # Admin SDK
# #
# Transfers user data from one user to another. # Admin SDK lets administrators of enterprise domains to view and manage
# resources like user, groups etc. It also provides audit and usage reports of
# domain.
# #
# @see https://developers.google.com/admin-sdk/data-transfer/ # @see http://developers.google.com/admin-sdk/
module AdminDatatransferV1 module AdminDatatransferV1
VERSION = 'DatatransferV1' VERSION = 'DatatransferV1'
REVISION = '20190829' REVISION = '20200810'
# View and manage data transfers between users in your organization # View and manage data transfers between users in your organization
AUTH_ADMIN_DATATRANSFER = 'https://www.googleapis.com/auth/admin.datatransfer' AUTH_ADMIN_DATATRANSFER = 'https://www.googleapis.com/auth/admin.datatransfer'

View File

@ -22,7 +22,10 @@ module Google
module Apis module Apis
module AdminDatatransferV1 module AdminDatatransferV1
# The JSON template for an Application resource. # The JSON template for an Application resource. STEPLADDER: Generated unstable
# field number for field 'kind'. (See http://go/stepladder-help#fieldNumber)
# STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/
# stepladder-help#fieldNumber)
class Application class Application
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -124,7 +127,10 @@ module Google
end end
end end
# Template for a collection of Applications. # Template for a collection of Applications. STEPLADDER: Generated unstable
# field number for field 'kind'. (See http://go/stepladder-help#fieldNumber)
# STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/
# stepladder-help#fieldNumber)
class ApplicationsListResponse class ApplicationsListResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -162,7 +168,10 @@ module Google
end end
end end
# The JSON template for a DataTransfer resource. # The JSON template for a DataTransfer resource. STEPLADDER: Generated unstable
# field number for field 'kind'. (See http://go/stepladder-help#fieldNumber)
# STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/
# stepladder-help#fieldNumber)
class DataTransfer class DataTransfer
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -226,7 +235,10 @@ module Google
end end
end end
# Template for a collection of DataTransfer resources. # Template for a collection of DataTransfer resources. STEPLADDER: Generated
# unstable field number for field 'kind'. (See http://go/stepladder-help#
# fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (
# See http://go/stepladder-help#fieldNumber)
class DataTransfersListResponse class DataTransfersListResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -20,9 +20,11 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module AdminDatatransferV1 module AdminDatatransferV1
# Admin Data Transfer API # Admin SDK
# #
# Transfers user data from one user to another. # Admin SDK lets administrators of enterprise domains to view and manage
# resources like user, groups etc. It also provides audit and usage reports of
# domain.
# #
# @example # @example
# require 'google/apis/admin_datatransfer_v1' # require 'google/apis/admin_datatransfer_v1'
@ -30,7 +32,7 @@ module Google
# Admin = Google::Apis::AdminDatatransferV1 # Alias the module # Admin = Google::Apis::AdminDatatransferV1 # Alias the module
# service = Admin::DataTransferService.new # service = Admin::DataTransferService.new
# #
# @see https://developers.google.com/admin-sdk/data-transfer/ # @see http://developers.google.com/admin-sdk/
class DataTransferService < Google::Apis::Core::BaseService class DataTransferService < Google::Apis::Core::BaseService
# @return [String] # @return [String]
# API key. Your API key identifies your project and provides you with API access, # API key. Your API key identifies your project and provides you with API access,
@ -38,16 +40,12 @@ module Google
attr_accessor :key attr_accessor :key
# @return [String] # @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user attr_accessor :quota_user
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize def initialize
super('https://www.googleapis.com/', 'admin/datatransfer/v1/') super('https://www.googleapis.com/', '')
@batch_path = 'batch/admin/datatransfer_v1' @batch_path = 'batch/admin/datatransfer_v1'
end end
@ -57,10 +55,8 @@ module Google
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -73,20 +69,19 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_application(application_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'applications/{applicationId}', options) command = make_simple_command(:get, 'admin/datatransfer/v1/applications/{applicationId}', options)
command.response_representation = Google::Apis::AdminDatatransferV1::Application::Representation command.response_representation = Google::Apis::AdminDatatransferV1::Application::Representation
command.response_class = Google::Apis::AdminDatatransferV1::Application command.response_class = Google::Apis::AdminDatatransferV1::Application
command.params['applicationId'] = application_id unless application_id.nil? command.params['applicationId'] = application_id unless application_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the applications available for data transfer for a customer. # Lists the applications available for data transfer for a customer.
# @param [String] customer_id # @param [String] customer_id
# Immutable ID of the G Suite account. # Immutable ID of the Google Apps account.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Maximum number of results to return. Default is 100. # Maximum number of results to return. Default is 100.
# @param [String] page_token # @param [String] page_token
@ -94,10 +89,8 @@ module Google
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -110,8 +103,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_applications(customer_id: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_applications(customer_id: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'applications', options) command = make_simple_command(:get, 'admin/datatransfer/v1/applications', options)
command.response_representation = Google::Apis::AdminDatatransferV1::ApplicationsListResponse::Representation command.response_representation = Google::Apis::AdminDatatransferV1::ApplicationsListResponse::Representation
command.response_class = Google::Apis::AdminDatatransferV1::ApplicationsListResponse command.response_class = Google::Apis::AdminDatatransferV1::ApplicationsListResponse
command.query['customerId'] = customer_id unless customer_id.nil? command.query['customerId'] = customer_id unless customer_id.nil?
@ -119,7 +112,6 @@ module Google
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -130,10 +122,8 @@ module Google
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -146,14 +136,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_transfer(data_transfer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_transfer(data_transfer_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'transfers/{dataTransferId}', options) command = make_simple_command(:get, 'admin/datatransfer/v1/transfers/{dataTransferId}', options)
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer
command.params['dataTransferId'] = data_transfer_id unless data_transfer_id.nil? command.params['dataTransferId'] = data_transfer_id unless data_transfer_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -162,10 +151,8 @@ module Google
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -178,21 +165,20 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_transfer(data_transfer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_transfer(data_transfer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'transfers', options) command = make_simple_command(:post, 'admin/datatransfer/v1/transfers', options)
command.request_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation command.request_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
command.request_object = data_transfer_object command.request_object = data_transfer_object
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the transfers for a customer by source user, destination user, or status. # Lists the transfers for a customer by source user, destination user, or status.
# @param [String] customer_id # @param [String] customer_id
# Immutable ID of the G Suite account. # Immutable ID of the Google Apps account.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Maximum number of results to return. Default is 100. # Maximum number of results to return. Default is 100.
# @param [String] new_owner_user_id # @param [String] new_owner_user_id
@ -206,10 +192,8 @@ module Google
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -222,8 +206,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_transfers(customer_id: nil, max_results: nil, new_owner_user_id: nil, old_owner_user_id: nil, page_token: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_transfers(customer_id: nil, max_results: nil, new_owner_user_id: nil, old_owner_user_id: nil, page_token: nil, status: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'transfers', options) command = make_simple_command(:get, 'admin/datatransfer/v1/transfers', options)
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfersListResponse::Representation command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfersListResponse::Representation
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfersListResponse command.response_class = Google::Apis::AdminDatatransferV1::DataTransfersListResponse
command.query['customerId'] = customer_id unless customer_id.nil? command.query['customerId'] = customer_id unless customer_id.nil?
@ -234,7 +218,6 @@ module Google
command.query['status'] = status unless status.nil? command.query['status'] = status unless status.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -243,7 +226,6 @@ module Google
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['key'] = key unless key.nil? command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end end
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1 module CloudassetV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200731' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -47,14 +47,13 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Creates a feed in a parent project/folder/organization to listen to its # Creates a feed in a parent project/folder/organization to listen to its asset
# asset updates. # updates.
# @param [String] parent # @param [String] parent
# Required. The name of the project/folder/organization where this feed # Required. The name of the project/folder/organization where this feed should
# should be created in. It can only be an organization number (such as # be created in. It can only be an organization number (such as "organizations/
# "organizations/123"), a folder number (such as "folders/123"), a project ID # 123"), a folder number (such as "folders/123"), a project ID (such as "
# (such as "projects/my-project-id")", or a project number (such as # projects/my-project-id")", or a project number (such as "projects/12345").
# "projects/12345").
# @param [Google::Apis::CloudassetV1::CreateFeedRequest] create_feed_request_object # @param [Google::Apis::CloudassetV1::CreateFeedRequest] create_feed_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -87,10 +86,9 @@ module Google
# Deletes an asset feed. # Deletes an asset feed.
# @param [String] name # @param [String] name
# Required. The name of the feed and it must be in the format of: # Required. The name of the feed and it must be in the format of: projects/
# projects/project_number/feeds/feed_id # project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/
# folders/folder_number/feeds/feed_id # organization_number/feeds/feed_id
# organizations/organization_number/feeds/feed_id
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -120,10 +118,9 @@ module Google
# Gets details about an asset feed. # Gets details about an asset feed.
# @param [String] name # @param [String] name
# Required. The name of the Feed and it must be in the format of: # Required. The name of the Feed and it must be in the format of: projects/
# projects/project_number/feeds/feed_id # project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/
# folders/folder_number/feeds/feed_id # organization_number/feeds/feed_id
# organizations/organization_number/feeds/feed_id
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -153,9 +150,9 @@ module Google
# Lists all asset feeds in a parent project/folder/organization. # Lists all asset feeds in a parent project/folder/organization.
# @param [String] parent # @param [String] parent
# Required. The parent project/folder/organization whose feeds are to be # Required. The parent project/folder/organization whose feeds are to be listed.
# listed. It can only be using project/folder/organization number (such as # It can only be using project/folder/organization number (such as "folders/
# "folders/12345")", or a project ID (such as "projects/my-project-id"). # 12345")", or a project ID (such as "projects/my-project-id").
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -185,12 +182,11 @@ module Google
# Updates an asset feed configuration. # Updates an asset feed configuration.
# @param [String] name # @param [String] name
# Required. The format will be # Required. The format will be projects/`project_number`/feeds/`client-
# projects/`project_number`/feeds/`client-assigned_feed_identifier` or # assigned_feed_identifier` or folders/`folder_number`/feeds/`client-
# folders/`folder_number`/feeds/`client-assigned_feed_identifier` or # assigned_feed_identifier` or organizations/`organization_number`/feeds/`client-
# organizations/`organization_number`/feeds/`client-assigned_feed_identifier` # assigned_feed_identifier` The client-assigned feed identifier must be unique
# The client-assigned feed identifier must be unique within the parent # within the parent project/folder/organization.
# project/folder/organization.
# @param [Google::Apis::CloudassetV1::UpdateFeedRequest] update_feed_request_object # @param [Google::Apis::CloudassetV1::UpdateFeedRequest] update_feed_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -221,9 +217,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -253,25 +248,21 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Batch gets the update history of assets that overlap a time window. # Batch gets the update history of assets that overlap a time window. For
# For IAM_POLICY content, this API outputs history when the asset and its # IAM_POLICY content, this API outputs history when the asset and its attached
# attached IAM POLICY both exist. This can create gaps in the output history. # IAM POLICY both exist. This can create gaps in the output history. Otherwise,
# Otherwise, this API outputs history with asset in both non-delete or # this API outputs history with asset in both non-delete or deleted status. If a
# deleted status. # specified asset does not exist, this API returns an INVALID_ARGUMENT error.
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT
# error.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. It can only be an # Required. The relative name of the root asset. It can only be an organization
# organization number (such as "organizations/123"), a project ID (such as # number (such as "organizations/123"), a project ID (such as "projects/my-
# "projects/my-project-id")", or a project number (such as "projects/12345"). # project-id")", or a project number (such as "projects/12345").
# @param [Array<String>, String] asset_names # @param [Array<String>, String] asset_names
# A list of the full names of the assets. # A list of the full names of the assets. See: https://cloud.google.com/asset-
# See: https://cloud.google.com/asset-inventory/docs/resource-name-format # inventory/docs/resource-name-format Example: `//compute.googleapis.com/
# Example: # projects/my_project_123/zones/zone1/instances/instance1`. The request becomes
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ # a no-op if the asset name list is empty, and the max size of the asset name
# instance1`. # list is 100 in one request.
# The request becomes a no-op if the asset name list is empty, and the max
# size of the asset name list is 100 in one request.
# @param [String] content_type # @param [String] content_type
# Optional. The content type. # Optional. The content type.
# @param [String] read_time_window_end_time # @param [String] read_time_window_end_time
@ -310,21 +301,20 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Exports assets with time and resource types to a given Cloud Storage # Exports assets with time and resource types to a given Cloud Storage location/
# location/BigQuery table. For Cloud Storage location destinations, the # BigQuery table. For Cloud Storage location destinations, the output format is
# output format is newline-delimited JSON. Each line represents a # newline-delimited JSON. Each line represents a google.cloud.asset.v1.Asset in
# google.cloud.asset.v1.Asset in the JSON format; for BigQuery table # the JSON format; for BigQuery table destinations, the output table stores the
# destinations, the output table stores the fields in asset proto as columns. # fields in asset proto as columns. This API implements the google.longrunning.
# This API implements the google.longrunning.Operation API # Operation API , which allows you to keep track of the export. We recommend
# , which allows you to keep track of the export. We recommend intervals of # intervals of at least 2 seconds with exponential retry to poll the export
# at least 2 seconds with exponential retry to poll the export operation # operation result. For regular-size resource parent, the export operation
# result. For regular-size resource parent, the export operation usually # usually finishes within 5 minutes.
# finishes within 5 minutes.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. This can only be an # Required. The relative name of the root asset. This can only be an
# organization number (such as "organizations/123"), a project ID (such as # organization number (such as "organizations/123"), a project ID (such as "
# "projects/my-project-id"), or a project number (such as "projects/12345"), # projects/my-project-id"), or a project number (such as "projects/12345"), or a
# or a folder number (such as "folders/123"). # folder number (such as "folders/123").
# @param [Google::Apis::CloudassetV1::ExportAssetsRequest] export_assets_request_object # @param [Google::Apis::CloudassetV1::ExportAssetsRequest] export_assets_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -356,60 +346,47 @@ module Google
end end
# Searches all IAM policies within the specified scope, such as a project, # Searches all IAM policies within the specified scope, such as a project,
# folder, or organization. The caller must be granted the # folder, or organization. The caller must be granted the `cloudasset.assets.
# `cloudasset.assets.searchAllIamPolicies` permission on the desired scope, # searchAllIamPolicies` permission on the desired scope, otherwise the request
# otherwise the request will be rejected. # will be rejected.
# @param [String] scope # @param [String] scope
# Required. A scope can be a project, a folder, or an organization. The search # Required. A scope can be a project, a folder, or an organization. The search
# is # is limited to the IAM policies within the `scope`. The caller must be granted
# limited to the IAM policies within the `scope`. The caller must be granted # the [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-
# the # inventory/docs/access-control#required_permissions) permission on the desired
# [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset- # scope. The allowed values are: * projects/`PROJECT_ID` (e.g., "projects/foo-
# inventory/docs/access-control#required_permissions) # bar") * projects/`PROJECT_NUMBER` (e.g., "projects/12345678") * folders/`
# permission on the desired scope. # FOLDER_NUMBER` (e.g., "folders/1234567") * organizations/`ORGANIZATION_NUMBER`
# The allowed values are: # (e.g., "organizations/123456")
# * projects/`PROJECT_ID` (e.g., "projects/foo-bar")
# * projects/`PROJECT_NUMBER` (e.g., "projects/12345678")
# * folders/`FOLDER_NUMBER` (e.g., "folders/1234567")
# * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456")
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at # Optional. The page size for search result pagination. Page size is capped at
# 500 even # 500 even if a larger value is given. If set to zero, server will pick an
# if a larger value is given. If set to zero, server will pick an appropriate # appropriate default. Returned results may be fewer than requested. When this
# default. Returned results may be fewer than requested. When this happens, # happens, there could be more results as long as `next_page_token` is returned.
# there could be more results as long as `next_page_token` is returned.
# @param [String] page_token # @param [String] page_token
# Optional. If present, retrieve the next batch of results from the preceding # Optional. If present, retrieve the next batch of results from the preceding
# call to # call to this method. `page_token` must be the value of `next_page_token` from
# this method. `page_token` must be the value of `next_page_token` from the # the previous response. The values of all other method parameters must be
# previous response. The values of all other method parameters must be
# identical to those in the previous call. # identical to those in the previous call.
# @param [String] query # @param [String] query
# Optional. The query statement. See [how to construct a # Optional. The query statement. See [how to construct a query](https://cloud.
# query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies# # google.com/asset-inventory/docs/searching-iam-policies#
# how_to_construct_a_query) # how_to_construct_a_query) for more information. If not specified or empty, it
# for more information. If not specified or empty, it will search all the # will search all the IAM policies within the specified `scope`. Examples: * `
# IAM policies within the specified `scope`. # policy:amy@gmail.com` to find IAM policy bindings that specify user "amy@gmail.
# Examples: # com". * `policy:roles/compute.admin` to find IAM policy bindings that specify
# * `policy : "amy@gmail.com"` to find IAM policy bindings that specify user # the Compute Admin role. * `policy.role.permissions:storage.buckets.update` to
# "amy@gmail.com". # find IAM policy bindings that specify a role containing "storage.buckets.
# * `policy : "roles/compute.admin"` to find IAM policy bindings that specify # update" permission. Note that if callers don't have `iam.roles.get` access to
# the Compute Admin role. # a role's included permissions, policy bindings that specify this role will be
# * `policy.role.permissions : "storage.buckets.update"` to find IAM policy # dropped from the search results. * `resource:organizations/123456` to find IAM
# bindings that specify a role containing "storage.buckets.update" # policy bindings that are set on "organizations/123456". * `Important` to find
# permission. Note that if callers don't have `iam.roles.get` access to a # IAM policy bindings that contain "Important" as a word in any of the
# role's included permissions, policy bindings that specify this role will # searchable fields (except for the included permissions). * `*por*` to find IAM
# be dropped from the search results. # policy bindings that contain "por" as a substring in any of the searchable
# * `resource : "organizations/123456"` to find IAM policy bindings # fields (except for the included permissions). * `resource:(instance1 OR
# that are set on "organizations/123456". # instance2) policy:amy` to find IAM policy bindings that are set on resources "
# * `"Important"` to find IAM policy bindings that contain "Important" as a # instance1" or "instance2" and also specify user "amy".
# word in any of the searchable fields (except for the included
# permissions).
# * `"*por*"` to find IAM policy bindings which contain "por" as a substring
# in any of the searchable fields (except for the included permissions).
# * `(resource : ("instance1" OR "instance2") AND policy : "amy")` to find
# IAM policy bindings that are set on resources "instance1" or
# "instance2" and also specify user "amy".
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -441,83 +418,64 @@ module Google
end end
# Searches all Cloud resources within the specified scope, such as a project, # Searches all Cloud resources within the specified scope, such as a project,
# folder, or organization. The caller must be granted the # folder, or organization. The caller must be granted the `cloudasset.assets.
# `cloudasset.assets.searchAllResources` permission on the desired scope, # searchAllResources` permission on the desired scope, otherwise the request
# otherwise the request will be rejected. # will be rejected.
# @param [String] scope # @param [String] scope
# Required. A scope can be a project, a folder, or an organization. The search # Required. A scope can be a project, a folder, or an organization. The search
# is # is limited to the resources within the `scope`. The caller must be granted the
# limited to the resources within the `scope`. The caller must be granted the
# [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset- # [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-
# inventory/docs/access-control#required_permissions) # inventory/docs/access-control#required_permissions) permission on the desired
# permission on the desired scope. # scope. The allowed values are: * projects/`PROJECT_ID` (e.g., "projects/foo-
# The allowed values are: # bar") * projects/`PROJECT_NUMBER` (e.g., "projects/12345678") * folders/`
# * projects/`PROJECT_ID` (e.g., "projects/foo-bar") # FOLDER_NUMBER` (e.g., "folders/1234567") * organizations/`ORGANIZATION_NUMBER`
# * projects/`PROJECT_NUMBER` (e.g., "projects/12345678") # (e.g., "organizations/123456")
# * folders/`FOLDER_NUMBER` (e.g., "folders/1234567")
# * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456")
# @param [Array<String>, String] asset_types # @param [Array<String>, String] asset_types
# Optional. A list of asset types that this request searches for. If empty, it # Optional. A list of asset types that this request searches for. If empty, it
# will # will search all the [searchable asset types](https://cloud.google.com/asset-
# search all the [searchable asset # inventory/docs/supported-asset-types#searchable_asset_types).
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#
# searchable_asset_types).
# @param [String] order_by # @param [String] order_by
# Optional. A comma separated list of fields specifying the sorting order of the # Optional. A comma separated list of fields specifying the sorting order of the
# results. The default order is ascending. Add " DESC" after the field name # results. The default order is ascending. Add " DESC" after the field name to
# to indicate descending order. Redundant space characters are ignored. # indicate descending order. Redundant space characters are ignored. Example: "
# Example: "location DESC, name". Only string fields in the response are # location DESC, name". Only string fields in the response are sortable,
# sortable, including `name`, `displayName`, `description`, `location`. All # including `name`, `displayName`, `description`, `location`. All the other
# the other fields such as repeated fields (e.g., `networkTags`), map # fields such as repeated fields (e.g., `networkTags`), map fields (e.g., `
# fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`) # labels`) and struct fields (e.g., `additionalAttributes`) are not supported.
# are not supported.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at # Optional. The page size for search result pagination. Page size is capped at
# 500 even # 500 even if a larger value is given. If set to zero, server will pick an
# if a larger value is given. If set to zero, server will pick an appropriate # appropriate default. Returned results may be fewer than requested. When this
# default. Returned results may be fewer than requested. When this happens, # happens, there could be more results as long as `next_page_token` is returned.
# there could be more results as long as `next_page_token` is returned.
# @param [String] page_token # @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the # Optional. If present, then retrieve the next batch of results from the
# preceding call # preceding call to this method. `page_token` must be the value of `
# to this method. `page_token` must be the value of `next_page_token` from # next_page_token` from the previous response. The values of all other method
# the previous response. The values of all other method parameters, must be # parameters, must be identical to those in the previous call.
# identical to those in the previous call.
# @param [String] query # @param [String] query
# Optional. The query statement. See [how to construct a # Optional. The query statement. See [how to construct a query](http://cloud.
# query](http://cloud.google.com/asset-inventory/docs/searching-resources# # google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
# how_to_construct_a_query)
# for more information. If not specified or empty, it will search all the # for more information. If not specified or empty, it will search all the
# resources within the specified `scope`. Note that the query string is # resources within the specified `scope`. Note that the query string is compared
# compared against each Cloud IAM policy binding, including its members, # against each Cloud IAM policy binding, including its members, roles, and Cloud
# roles, and Cloud IAM conditions. The returned Cloud IAM policies will only # IAM conditions. The returned Cloud IAM policies will only contain the bindings
# contain the bindings that match your query. To learn more about the IAM # that match your query. To learn more about the IAM policy structure, see [IAM
# policy structure, see [IAM policy # policy doc](https://cloud.google.com/iam/docs/policies#structure). Examples: *
# doc](https://cloud.google.com/iam/docs/policies#structure). # `name:Important` to find Cloud resources whose name contains "Important" as a
# Examples: # word. * `displayName:Impor*` to find Cloud resources whose display name
# * `name : "Important"` to find Cloud resources whose name contains # contains "Impor" as a prefix. * `description:*por*` to find Cloud resources
# "Important" as a word. # whose description contains "por" as a substring. * `location:us-west*` to find
# * `displayName : "Impor*"` to find Cloud resources whose display name # Cloud resources whose location is prefixed with "us-west". * `labels:prod` to
# contains "Impor" as a prefix. # find Cloud resources whose labels contain "prod" as a key or value. * `labels.
# * `description : "*por*"` to find Cloud resources whose description # env:prod` to find Cloud resources that have a label "env" and its value is "
# contains "por" as a substring. # prod". * `labels.env:*` to find Cloud resources that have a label "env". * `
# * `location : "us-west*"` to find Cloud resources whose location is # Important` to find Cloud resources that contain "Important" as a word in any
# prefixed with "us-west". # of the searchable fields. * `Impor*` to find Cloud resources that contain "
# * `labels : "prod"` to find Cloud resources whose labels contain "prod" as # Impor" as a prefix in any of the searchable fields. * `*por*` to find Cloud
# a key or value. # resources that contain "por" as a substring in any of the searchable fields. *
# * `labels.env : "prod"` to find Cloud resources which have a label "env" # `Important location:(us-west1 OR global)` to find Cloud resources that contain
# and its value is "prod". # "Important" as a word in any of the searchable fields and are also located in
# * `labels.env : *` to find Cloud resources which have a label "env". # the "us-west1" region or the "global" location.
# * `"Important"` to find Cloud resources which contain "Important" as a word
# in any of the searchable fields.
# * `"Impor*"` to find Cloud resources which contain "Impor" as a prefix
# in any of the searchable fields.
# * `"*por*"` to find Cloud resources which contain "por" as a substring in
# any of the searchable fields.
# * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
# resources which contain "Important" as a word in any of the searchable
# fields and are also located in the "us-west1" region or the "global"
# location.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1beta1 module CloudassetV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200731' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -47,18 +47,17 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Exports assets with time and resource types to a given Cloud Storage # Exports assets with time and resource types to a given Cloud Storage location.
# location. The output format is newline-delimited JSON. # The output format is newline-delimited JSON. This API implements the google.
# This API implements the google.longrunning.Operation API allowing you # longrunning.Operation API allowing you to keep track of the export. We
# to keep track of the export. We recommend intervals of at least 2 seconds # recommend intervals of at least 2 seconds with exponential retry to poll the
# with exponential retry to poll the export operation result. For # export operation result. For regular-size resource parent, the export
# regular-size resource parent, the export operation usually finishes within # operation usually finishes within 5 minutes.
# 5 minutes.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. This can only be an # Required. The relative name of the root asset. This can only be an
# organization number (such as "organizations/123"), a project ID (such as # organization number (such as "organizations/123"), a project ID (such as "
# "projects/my-project-id"), a project number (such as "projects/12345"), or # projects/my-project-id"), a project number (such as "projects/12345"), or a
# a folder number (such as "folders/123"). # folder number (such as "folders/123").
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object # @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -89,9 +88,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -121,26 +119,21 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Batch gets the update history of assets that overlap a time window. # Batch gets the update history of assets that overlap a time window. For
# For IAM_POLICY content, this API outputs history when the asset and its # IAM_POLICY content, this API outputs history when the asset and its attached
# attached IAM POLICY both exist. This can create gaps in the output history. # IAM POLICY both exist. This can create gaps in the output history. Otherwise,
# Otherwise, this API outputs history with asset in both non-delete or # this API outputs history with asset in both non-delete or deleted status. If a
# deleted status. # specified asset does not exist, this API returns an INVALID_ARGUMENT error.
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT
# error.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. It can only be an # Required. The relative name of the root asset. It can only be an organization
# organization number (such as "organizations/123"), a project ID (such as # number (such as "organizations/123"), a project ID (such as "projects/my-
# "projects/my-project-id")", or a project number (such as "projects/12345"). # project-id")", or a project number (such as "projects/12345").
# @param [Array<String>, String] asset_names # @param [Array<String>, String] asset_names
# A list of the full names of the assets. For example: # A list of the full names of the assets. For example: `//compute.googleapis.com/
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ # projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](
# instance1`. # https://cloud.google.com/apis/design/resource_names#full_resource_name) for
# See [Resource # more info. The request becomes a no-op if the asset name list is empty, and
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) # the max size of the asset name list is 100 in one request.
# for more info.
# The request becomes a no-op if the asset name list is empty, and the max
# size of the asset name list is 100 in one request.
# @param [String] content_type # @param [String] content_type
# Optional. The content type. # Optional. The content type.
# @param [String] read_time_window_end_time # @param [String] read_time_window_end_time
@ -179,18 +172,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Exports assets with time and resource types to a given Cloud Storage # Exports assets with time and resource types to a given Cloud Storage location.
# location. The output format is newline-delimited JSON. # The output format is newline-delimited JSON. This API implements the google.
# This API implements the google.longrunning.Operation API allowing you # longrunning.Operation API allowing you to keep track of the export. We
# to keep track of the export. We recommend intervals of at least 2 seconds # recommend intervals of at least 2 seconds with exponential retry to poll the
# with exponential retry to poll the export operation result. For # export operation result. For regular-size resource parent, the export
# regular-size resource parent, the export operation usually finishes within # operation usually finishes within 5 minutes.
# 5 minutes.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. This can only be an # Required. The relative name of the root asset. This can only be an
# organization number (such as "organizations/123"), a project ID (such as # organization number (such as "organizations/123"), a project ID (such as "
# "projects/my-project-id"), a project number (such as "projects/12345"), or # projects/my-project-id"), a project number (such as "projects/12345"), or a
# a folder number (such as "folders/123"). # folder number (such as "folders/123").
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object # @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -221,9 +213,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -253,26 +244,21 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Batch gets the update history of assets that overlap a time window. # Batch gets the update history of assets that overlap a time window. For
# For IAM_POLICY content, this API outputs history when the asset and its # IAM_POLICY content, this API outputs history when the asset and its attached
# attached IAM POLICY both exist. This can create gaps in the output history. # IAM POLICY both exist. This can create gaps in the output history. Otherwise,
# Otherwise, this API outputs history with asset in both non-delete or # this API outputs history with asset in both non-delete or deleted status. If a
# deleted status. # specified asset does not exist, this API returns an INVALID_ARGUMENT error.
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT
# error.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. It can only be an # Required. The relative name of the root asset. It can only be an organization
# organization number (such as "organizations/123"), a project ID (such as # number (such as "organizations/123"), a project ID (such as "projects/my-
# "projects/my-project-id")", or a project number (such as "projects/12345"). # project-id")", or a project number (such as "projects/12345").
# @param [Array<String>, String] asset_names # @param [Array<String>, String] asset_names
# A list of the full names of the assets. For example: # A list of the full names of the assets. For example: `//compute.googleapis.com/
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ # projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](
# instance1`. # https://cloud.google.com/apis/design/resource_names#full_resource_name) for
# See [Resource # more info. The request becomes a no-op if the asset name list is empty, and
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) # the max size of the asset name list is 100 in one request.
# for more info.
# The request becomes a no-op if the asset name list is empty, and the max
# size of the asset name list is 100 in one request.
# @param [String] content_type # @param [String] content_type
# Optional. The content type. # Optional. The content type.
# @param [String] read_time_window_end_time # @param [String] read_time_window_end_time
@ -311,18 +297,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Exports assets with time and resource types to a given Cloud Storage # Exports assets with time and resource types to a given Cloud Storage location.
# location. The output format is newline-delimited JSON. # The output format is newline-delimited JSON. This API implements the google.
# This API implements the google.longrunning.Operation API allowing you # longrunning.Operation API allowing you to keep track of the export. We
# to keep track of the export. We recommend intervals of at least 2 seconds # recommend intervals of at least 2 seconds with exponential retry to poll the
# with exponential retry to poll the export operation result. For # export operation result. For regular-size resource parent, the export
# regular-size resource parent, the export operation usually finishes within # operation usually finishes within 5 minutes.
# 5 minutes.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. This can only be an # Required. The relative name of the root asset. This can only be an
# organization number (such as "organizations/123"), a project ID (such as # organization number (such as "organizations/123"), a project ID (such as "
# "projects/my-project-id"), a project number (such as "projects/12345"), or # projects/my-project-id"), a project number (such as "projects/12345"), or a
# a folder number (such as "folders/123"). # folder number (such as "folders/123").
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object # @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -353,9 +338,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1p1beta1 module CloudassetV1p1beta1
VERSION = 'V1p1beta1' VERSION = 'V1p1beta1'
REVISION = '20200605' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,53 +22,21 @@ module Google
module Apis module Apis
module CloudassetV1p1beta1 module CloudassetV1p1beta1
# Specifies the audit configuration for a service. # Specifies the audit configuration for a service. The configuration determines
# The configuration determines which permission types are logged, and what # which permission types are logged, and what identities, if any, are exempted
# identities, if any, are exempted from logging. # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
# An AuditConfig must have one or more AuditLogConfigs. # are AuditConfigs for both `allServices` and a specific service, the union of
# If there are AuditConfigs for both `allServices` and a specific service, # the two AuditConfigs is used for that service: the log_types specified in each
# the union of the two AuditConfigs is used for that service: the log_types # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
# specified in each AuditConfig are enabled, and the exempted_members in each # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
# AuditLogConfig are exempted. # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
# Example Policy with multiple AuditConfigs: # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
# ` # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
# "audit_configs": [ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
# ` # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
# "service": "allServices", # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
# "audit_log_configs": [ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
# ` # DATA_WRITE logging.
# "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 class AuditConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -77,9 +45,9 @@ module Google
# @return [Array<Google::Apis::CloudassetV1p1beta1::AuditLogConfig>] # @return [Array<Google::Apis::CloudassetV1p1beta1::AuditLogConfig>]
attr_accessor :audit_log_configs attr_accessor :audit_log_configs
# Specifies a service that will be enabled for audit logging. # Specifies a service that will be enabled for audit logging. For example, `
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
# `allServices` is a special value that covers all services. # value that covers all services.
# Corresponds to the JSON property `service` # Corresponds to the JSON property `service`
# @return [String] # @return [String]
attr_accessor :service attr_accessor :service
@ -95,28 +63,15 @@ module Google
end end
end end
# Provides the configuration for logging a type of permissions. # Provides the configuration for logging a type of permissions. Example: ` "
# Example: # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
# ` # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
# "audit_log_configs": [ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
# ` # DATA_READ logging.
# "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 class AuditLogConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of # Specifies the identities that do not cause logging for this type of permission.
# permission.
# Follows the same format of Binding.members. # Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers` # Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>] # @return [Array<String>]
@ -142,69 +97,57 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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` # Corresponds to the JSON property `condition`
# @return [Google::Apis::CloudassetV1p1beta1::Expr] # @return [Google::Apis::CloudassetV1p1beta1::Expr]
attr_accessor :condition attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource. `
# `members` can have the following values: # members` can have the following values: * `allUsers`: A special identifier
# * `allUsers`: A special identifier that represents anyone who is # that represents anyone who is on the internet; with or without a Google
# on the internet; with or without a Google account. # account. * `allAuthenticatedUsers`: A special identifier that represents
# * `allAuthenticatedUsers`: A special identifier that represents anyone # anyone who is authenticated with a Google account or a service account. * `
# who is authenticated with a Google account or a service account. # user:`emailid``: An email address that represents a specific Google account.
# * `user:`emailid``: An email address that represents a specific Google # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
# account. For example, `alice@example.com` . # address that represents a service account. For example, `my-other-app@appspot.
# * `serviceAccount:`emailid``: An email address that represents a service # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
# account. For example, `my-other-app@appspot.gserviceaccount.com`. # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
# * `group:`emailid``: An email address that represents a Google group. # `uniqueid``: An email address (plus unique identifier) representing a user
# For example, `admins@example.com`. # that has been recently deleted. For example, `alice@example.com?uid=
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
# identifier) representing a user that has been recently deleted. For # emailid`` and the recovered user retains the role in the binding. * `deleted:
# example, `alice@example.com?uid=123456789012345678901`. If the user is # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
# recovered, this value reverts to `user:`emailid`` and the recovered user # identifier) representing a service account that has been recently deleted. For
# retains the role in the binding. # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus # If the service account is undeleted, this value reverts to `serviceAccount:`
# unique identifier) representing a service account that has been recently # emailid`` and the undeleted service account retains the role in the binding. *
# deleted. For example, # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. # identifier) representing a Google group that has been recently deleted. For
# If the service account is undeleted, this value reverts to # example, `admins@example.com?uid=123456789012345678901`. If the group is
# `serviceAccount:`emailid`` and the undeleted service account retains the # recovered, this value reverts to `group:`emailid`` and the recovered group
# role in the binding. # retains the role in the binding. * `domain:`domain``: The G Suite domain (
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique # primary) that represents all the users of that domain. For example, `google.
# identifier) representing a Google group that has been recently # com` or `example.com`.
# 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` # Corresponds to the JSON property `members`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :members attr_accessor :members
# Role that is assigned to `members`. # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`. # , or `roles/owner`.
# Corresponds to the JSON property `role` # Corresponds to the JSON property `role`
# @return [String] # @return [String]
attr_accessor :role attr_accessor :role
@ -225,11 +168,11 @@ module Google
class Explanation class Explanation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The map from roles to their included permission matching the permission # The map from roles to their included permission matching the permission query (
# query (e.g. containing `policy.role.permissions:`). A sample role string: # e.g. containing `policy.role.permissions:`). A sample role string: "roles/
# "roles/compute.instanceAdmin". The roles can also be found in the # compute.instanceAdmin". The roles can also be found in the returned `policy`
# returned `policy` bindings. Note that the map is populated only if # bindings. Note that the map is populated only if requesting with a permission
# requesting with a permission query. # query.
# Corresponds to the JSON property `matchedPermissions` # Corresponds to the JSON property `matchedPermissions`
# @return [Hash<String,Google::Apis::CloudassetV1p1beta1::Permissions>] # @return [Hash<String,Google::Apis::CloudassetV1p1beta1::Permissions>]
attr_accessor :matched_permissions attr_accessor :matched_permissions
@ -244,52 +187,43 @@ module Google
end end
end end
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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 class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which describes
# describes the expression, e.g. when hovered over it in a UI. # the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in Common Expression Language # Textual representation of an expression in Common Expression Language syntax.
# syntax.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# Optional. String indicating the location of the expression for error # Optional. String indicating the location of the expression for error reporting,
# reporting, e.g. a file name and a position in the file. # e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. Title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing its purpose.
# its purpose. This can be used e.g. in UIs which allow to enter the # This can be used e.g. in UIs which allow to enter the expression.
# expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
@ -317,82 +251,47 @@ module Google
attr_accessor :explanation attr_accessor :explanation
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # 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/).
# "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` # Corresponds to the JSON property `policy`
# @return [Google::Apis::CloudassetV1p1beta1::Policy] # @return [Google::Apis::CloudassetV1p1beta1::Policy]
attr_accessor :policy attr_accessor :policy
# The project that the associated GCP resource belongs to, in the form of # The project that the associated GCP resource belongs to, in the form of `
# `projects/`project_number``. If an IAM policy is set on a resource (like VM # projects/`project_number``. If an IAM policy is set on a resource (like VM
# instance, Cloud Storage bucket), the project field will indicate the # instance, Cloud Storage bucket), the project field will indicate the project
# project that contains the resource. If an IAM policy is set on a folder or # that contains the resource. If an IAM policy is set on a folder or orgnization,
# orgnization, the project field will be empty. # the project field will be empty.
# Corresponds to the JSON property `project` # Corresponds to the JSON property `project`
# @return [String] # @return [String]
attr_accessor :project attr_accessor :project
# The [full resource # The [full resource name](https://cloud.google.com/apis/design/resource_names#
# name](https://cloud.google.com/apis/design/resource_names#full_resource_name) # full_resource_name) of the resource associated with this IAM policy.
# of the resource associated with this IAM policy.
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [String] # @return [String]
attr_accessor :resource attr_accessor :resource
@ -430,66 +329,32 @@ module Google
end end
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # 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/).
# "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 class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -498,48 +363,44 @@ module Google
# @return [Array<Google::Apis::CloudassetV1p1beta1::AuditConfig>] # @return [Array<Google::Apis::CloudassetV1p1beta1::AuditConfig>]
attr_accessor :audit_configs attr_accessor :audit_configs
# Associates a list of `members` to a `role`. Optionally, may specify a # Associates a list of `members` to a `role`. Optionally, may specify a `
# `condition` that determines how and when the `bindings` are applied. Each # condition` that determines how and when the `bindings` are applied. Each of
# of the `bindings` must contain at least one member. # the `bindings` must contain at least one member.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::CloudassetV1p1beta1::Binding>] # @return [Array<Google::Apis::CloudassetV1p1beta1::Binding>]
attr_accessor :bindings attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help # `etag` is used for optimistic concurrency control as a way to help prevent
# prevent simultaneous updates of a policy from overwriting each other. # simultaneous updates of a policy from overwriting each other. It is strongly
# It is strongly suggested that systems make use of the `etag` in the # suggested that systems make use of the `etag` in the read-modify-write cycle
# read-modify-write cycle to perform policy updates in order to avoid race # to perform policy updates in order to avoid race conditions: An `etag` is
# conditions: An `etag` is returned in the response to `getIamPolicy`, and # returned in the response to `getIamPolicy`, and systems are expected to put
# systems are expected to put that etag in the request to `setIamPolicy` to # that etag in the request to `setIamPolicy` to ensure that their change will be
# ensure that their change will be applied to the same version of the policy. # applied to the same version of the policy. **Important:** If you use IAM
# **Important:** If you use IAM Conditions, you must include the `etag` field # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # If you omit this field, then IAM allows you to overwrite a version `3` policy
# you to overwrite a version `3` policy with a version `1` policy, and all of # with a version `1` policy, and all of the conditions in the version `3` policy
# the conditions in the version `3` policy are lost. # are lost.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Specifies the format of the policy. # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value # Requests that specify an invalid value are rejected. Any operation that
# are rejected. # affects conditional role bindings must specify version `3`. This requirement
# Any operation that affects conditional role bindings must specify version # applies to the following operations: * Getting a policy that includes a
# `3`. This requirement applies to the following operations: # conditional role binding * Adding a conditional role binding to a policy *
# * Getting a policy that includes a conditional role binding # Changing a conditional role binding in a policy * Removing any role binding,
# * Adding a conditional role binding to a policy # with or without a condition, from a policy that includes conditions **
# * Changing a conditional role binding in a policy # Important:** If you use IAM Conditions, you must include the `etag` field
# * Removing any role binding, with or without a condition, from a policy # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
# that includes conditions # to overwrite a version `3` policy with a version `1` policy, and all of the
# **Important:** If you use IAM Conditions, you must include the `etag` field # conditions in the version `3` policy are lost. If a policy does not include
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # any conditions, operations on that policy may specify any valid version or
# you to overwrite a version `3` policy with a version `1` policy, and all of # leave the field unset. To learn which resources support conditions in their
# the conditions in the version `3` policy are lost. # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
# If a policy does not include any conditions, operations on that policy may # conditions/resource-policies).
# 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` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -562,14 +423,14 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Set if there are more results than those appearing in this response; to get # Set if there are more results than those appearing in this response; to get
# the next set of results, call this method again, using this value as the # the next set of results, call this method again, using this value as the `
# `page_token`. # page_token`.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# A list of IamPolicy that match the search query. Related information such # A list of IamPolicy that match the search query. Related information such as
# as the associated resource is returned along with the policy. # the associated resource is returned along with the policy.
# Corresponds to the JSON property `results` # Corresponds to the JSON property `results`
# @return [Array<Google::Apis::CloudassetV1p1beta1::IamPolicySearchResult>] # @return [Array<Google::Apis::CloudassetV1p1beta1::IamPolicySearchResult>]
attr_accessor :results attr_accessor :results
@ -589,9 +450,9 @@ module Google
class SearchAllResourcesResponse class SearchAllResourcesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If there are more results than those appearing in this response, then # If there are more results than those appearing in this response, then `
# `next_page_token` is included. To get the next set of results, call this # next_page_token` is included. To get the next set of results, call this method
# method again using the value of `next_page_token` as `page_token`. # again using the value of `next_page_token` as `page_token`.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -616,15 +477,14 @@ module Google
class StandardResourceMetadata class StandardResourceMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Additional searchable attributes of this resource. # Additional searchable attributes of this resource. Informational only. The
# Informational only. The exact set of attributes is subject to change. # exact set of attributes is subject to change. For example: project id, DNS
# For example: project id, DNS name etc. # name etc.
# Corresponds to the JSON property `additionalAttributes` # Corresponds to the JSON property `additionalAttributes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :additional_attributes attr_accessor :additional_attributes
# The type of this resource. # The type of this resource. For example: "compute.googleapis.com/Disk".
# For example: "compute.googleapis.com/Disk".
# Corresponds to the JSON property `assetType` # Corresponds to the JSON property `assetType`
# @return [String] # @return [String]
attr_accessor :asset_type attr_accessor :asset_type
@ -642,39 +502,34 @@ module Google
# Labels associated with this resource. See [Labelling and grouping GCP # Labels associated with this resource. See [Labelling and grouping GCP
# resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping- # resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
# your-google-cloud-platform-resources) # your-google-cloud-platform-resources) for more information.
# for more information.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Location can be "global", regional like "us-east1", or zonal like # Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
# "us-west1-b".
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# The full resource name. For example: # The full resource name. For example: `//compute.googleapis.com/projects/
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ # my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://
# instance1`. # cloud.google.com/apis/design/resource_names#full_resource_name) for more
# See [Resource # information.
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# for more information.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Network tags associated with this resource. Like labels, network tags are a # Network tags associated with this resource. Like labels, network tags are a
# type of annotations used to group GCP resources. See [Labelling GCP # type of annotations used to group GCP resources. See [Labelling GCP resources](
# resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping- # lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-
# your-google-cloud-platform-resources) # cloud-platform-resources) for more information.
# for more information.
# Corresponds to the JSON property `networkTags` # Corresponds to the JSON property `networkTags`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :network_tags attr_accessor :network_tags
# The project that this resource belongs to, in the form of # The project that this resource belongs to, in the form of `projects/`
# `projects/`project_number``. # project_number``.
# Corresponds to the JSON property `project` # Corresponds to the JSON property `project`
# @return [String] # @return [String]
attr_accessor :project attr_accessor :project

View File

@ -47,36 +47,30 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Searches all the IAM policies within a given accessible CRM scope # Searches all the IAM policies within a given accessible CRM scope (project/
# (project/folder/organization). This RPC gives callers especially # folder/organization). This RPC gives callers especially administrators the
# administrators the ability to search all the IAM policies within a scope, # ability to search all the IAM policies within a scope, even if they don't have
# even if they don't have `.getIamPolicy` permission of all the IAM policies. # `.getIamPolicy` permission of all the IAM policies. Callers should have `cloud.
# Callers should have `cloud.assets.SearchAllIamPolicies` permission on the # assets.SearchAllIamPolicies` permission on the requested scope, otherwise the
# requested scope, otherwise the request will be rejected. # request will be rejected.
# @param [String] scope # @param [String] scope
# Required. The relative name of an asset. The search is limited to the # Required. The relative name of an asset. The search is limited to the
# resources # resources within the `scope`. The allowed value must be: * Organization number
# within the `scope`. The allowed value must be: # (such as "organizations/123") * Folder number(such as "folders/1234") *
# * Organization number (such as "organizations/123") # Project number (such as "projects/12345") * Project id (such as "projects/abc")
# * Folder number(such as "folders/1234")
# * Project number (such as "projects/12345")
# * Project id (such as "projects/abc")
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at # Optional. The page size for search result pagination. Page size is capped at
# 500 even # 500 even if a larger value is given. If set to zero, server will pick an
# if a larger value is given. If set to zero, server will pick an appropriate # appropriate default. Returned results may be fewer than requested. When this
# default. Returned results may be fewer than requested. When this happens, # happens, there could be more results as long as `next_page_token` is returned.
# there could be more results as long as `next_page_token` is returned.
# @param [String] page_token # @param [String] page_token
# Optional. If present, retrieve the next batch of results from the preceding # Optional. If present, retrieve the next batch of results from the preceding
# call to # call to this method. `page_token` must be the value of `next_page_token` from
# this method. `page_token` must be the value of `next_page_token` from the # the previous response. The values of all other method parameters must be
# previous response. The values of all other method parameters must be
# identical to those in the previous call. # identical to those in the previous call.
# @param [String] query # @param [String] query
# Optional. The query statement. Examples: # Optional. The query statement. Examples: * "policy:myuser@mydomain.com" * "
# * "policy:myuser@mydomain.com" # policy:(myuser@mydomain.com viewer)"
# * "policy:(myuser@mydomain.com viewer)"
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -107,41 +101,35 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Searches all the resources within a given accessible CRM scope # Searches all the resources within a given accessible CRM scope (project/folder/
# (project/folder/organization). This RPC gives callers especially # organization). This RPC gives callers especially administrators the ability to
# administrators the ability to search all the resources within a scope, even # search all the resources within a scope, even if they don't have `.get`
# if they don't have `.get` permission of all the resources. Callers should # permission of all the resources. Callers should have `cloud.assets.
# have `cloud.assets.SearchAllResources` permission on the requested scope, # SearchAllResources` permission on the requested scope, otherwise the request
# otherwise the request will be rejected. # will be rejected.
# @param [String] scope # @param [String] scope
# Required. The relative name of an asset. The search is limited to the # Required. The relative name of an asset. The search is limited to the
# resources # resources within the `scope`. The allowed value must be: * Organization number
# within the `scope`. The allowed value must be: # (such as "organizations/123") * Folder number(such as "folders/1234") *
# * Organization number (such as "organizations/123") # Project number (such as "projects/12345") * Project id (such as "projects/abc")
# * Folder number(such as "folders/1234")
# * Project number (such as "projects/12345")
# * Project id (such as "projects/abc")
# @param [Array<String>, String] asset_types # @param [Array<String>, String] asset_types
# Optional. A list of asset types that this request searches for. If empty, it # Optional. A list of asset types that this request searches for. If empty, it
# will # will search all the supported asset types.
# search all the supported asset types.
# @param [String] order_by # @param [String] order_by
# Optional. A comma separated list of fields specifying the sorting order of the # Optional. A comma separated list of fields specifying the sorting order of the
# results. The default order is ascending. Add ` DESC` after the field name # results. The default order is ascending. Add ` DESC` after the field name to
# to indicate descending order. Redundant space characters are ignored. For # indicate descending order. Redundant space characters are ignored. For example,
# example, ` location DESC , name `. # ` location DESC , name `.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at # Optional. The page size for search result pagination. Page size is capped at
# 500 even # 500 even if a larger value is given. If set to zero, server will pick an
# if a larger value is given. If set to zero, server will pick an appropriate # appropriate default. Returned results may be fewer than requested. When this
# default. Returned results may be fewer than requested. When this happens, # happens, there could be more results as long as `next_page_token` is returned.
# there could be more results as long as `next_page_token` is returned.
# @param [String] page_token # @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the # Optional. If present, then retrieve the next batch of results from the
# preceding call # preceding call to this method. `page_token` must be the value of `
# to this method. `page_token` must be the value of `next_page_token` from # next_page_token` from the previous response. The values of all other method
# the previous response. The values of all other method parameters, must be # parameters, must be identical to those in the previous call.
# identical to those in the previous call.
# @param [String] query # @param [String] query
# Optional. The query statement. # Optional. The query statement.
# @param [String] fields # @param [String] fields

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1p4beta1 module CloudassetV1p4beta1
VERSION = 'V1p4beta1' VERSION = 'V1p4beta1'
REVISION = '20200731' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -23,9 +23,9 @@ module Google
module CloudassetV1p4beta1 module CloudassetV1p4beta1
# Specifies roles and/or permissions to analyze, to determine both the # Specifies roles and/or permissions to analyze, to determine both the
# identities possessing them and the resources they control. If multiple # identities possessing them and the resources they control. If multiple values
# values are specified, results will include identities and resources # are specified, results will include identities and resources matching any of
# matching any of them. # them.
class AccessSelector class AccessSelector
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -55,8 +55,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents whether all entries in the main_analysis and # Represents whether all entries in the main_analysis and
# service_account_impersonation_analysis have been fully explored to # service_account_impersonation_analysis have been fully explored to answer the
# answer the query in the request. # query in the request.
# Corresponds to the JSON property `fullyExplored` # Corresponds to the JSON property `fullyExplored`
# @return [Boolean] # @return [Boolean]
attr_accessor :fully_explored attr_accessor :fully_explored
@ -67,15 +67,14 @@ module Google
# @return [Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysis] # @return [Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysis]
attr_accessor :main_analysis attr_accessor :main_analysis
# A list of non-critical errors happened during the request handling to # A list of non-critical errors happened during the request handling to explain
# explain why `fully_explored` is false, or empty if no error happened. # why `fully_explored` is false, or empty if no error happened.
# Corresponds to the JSON property `nonCriticalErrors` # Corresponds to the JSON property `nonCriticalErrors`
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState>] # @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState>]
attr_accessor :non_critical_errors attr_accessor :non_critical_errors
# The service account impersonation analysis if # The service account impersonation analysis if AnalyzeIamPolicyRequest.
# AnalyzeIamPolicyRequest.analyze_service_account_impersonation is # analyze_service_account_impersonation is enabled.
# enabled.
# Corresponds to the JSON property `serviceAccountImpersonationAnalysis` # Corresponds to the JSON property `serviceAccountImpersonationAnalysis`
# @return [Array<Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysis>] # @return [Array<Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysis>]
attr_accessor :service_account_impersonation_analysis attr_accessor :service_account_impersonation_analysis
@ -97,69 +96,57 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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` # Corresponds to the JSON property `condition`
# @return [Google::Apis::CloudassetV1p4beta1::Expr] # @return [Google::Apis::CloudassetV1p4beta1::Expr]
attr_accessor :condition attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource. `
# `members` can have the following values: # members` can have the following values: * `allUsers`: A special identifier
# * `allUsers`: A special identifier that represents anyone who is # that represents anyone who is on the internet; with or without a Google
# on the internet; with or without a Google account. # account. * `allAuthenticatedUsers`: A special identifier that represents
# * `allAuthenticatedUsers`: A special identifier that represents anyone # anyone who is authenticated with a Google account or a service account. * `
# who is authenticated with a Google account or a service account. # user:`emailid``: An email address that represents a specific Google account.
# * `user:`emailid``: An email address that represents a specific Google # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
# account. For example, `alice@example.com` . # address that represents a service account. For example, `my-other-app@appspot.
# * `serviceAccount:`emailid``: An email address that represents a service # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
# account. For example, `my-other-app@appspot.gserviceaccount.com`. # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
# * `group:`emailid``: An email address that represents a Google group. # `uniqueid``: An email address (plus unique identifier) representing a user
# For example, `admins@example.com`. # that has been recently deleted. For example, `alice@example.com?uid=
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
# identifier) representing a user that has been recently deleted. For # emailid`` and the recovered user retains the role in the binding. * `deleted:
# example, `alice@example.com?uid=123456789012345678901`. If the user is # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
# recovered, this value reverts to `user:`emailid`` and the recovered user # identifier) representing a service account that has been recently deleted. For
# retains the role in the binding. # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus # If the service account is undeleted, this value reverts to `serviceAccount:`
# unique identifier) representing a service account that has been recently # emailid`` and the undeleted service account retains the role in the binding. *
# deleted. For example, # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. # identifier) representing a Google group that has been recently deleted. For
# If the service account is undeleted, this value reverts to # example, `admins@example.com?uid=123456789012345678901`. If the group is
# `serviceAccount:`emailid`` and the undeleted service account retains the # recovered, this value reverts to `group:`emailid`` and the recovered group
# role in the binding. # retains the role in the binding. * `domain:`domain``: The G Suite domain (
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique # primary) that represents all the users of that domain. For example, `google.
# identifier) representing a Google group that has been recently # com` or `example.com`.
# 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` # Corresponds to the JSON property `members`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :members attr_accessor :members
# Role that is assigned to `members`. # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`. # , or `roles/owner`.
# Corresponds to the JSON property `role` # Corresponds to the JSON property `role`
# @return [String] # @return [String]
attr_accessor :role attr_accessor :role
@ -207,52 +194,43 @@ module Google
end end
end end
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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 class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which describes
# describes the expression, e.g. when hovered over it in a UI. # the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in Common Expression Language # Textual representation of an expression in Common Expression Language syntax.
# syntax.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# Optional. String indicating the location of the expression for error # Optional. String indicating the location of the expression for error reporting,
# reporting, e.g. a file name and a position in the file. # e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. Title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing its purpose.
# its purpose. This can be used e.g. in UIs which allow to enter the # This can be used e.g. in UIs which allow to enter the expression.
# expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
@ -275,11 +253,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The uri of the Cloud Storage object. It's the same uri that is used # Required. The uri of the Cloud Storage object. It's the same uri that is used
# by # by gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
# gsutil. For example: "gs://bucket_name/object_name". See [Viewing and # Editing Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-
# Editing Object # metadata) for more information.
# Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
# for more information.
# Corresponds to the JSON property `uri` # Corresponds to the JSON property `uri`
# @return [String] # @return [String]
attr_accessor :uri attr_accessor :uri
@ -298,8 +274,8 @@ module Google
class GoogleCloudAssetV1p4beta1Access class GoogleCloudAssetV1p4beta1Access
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents the detailed state of an entity under analysis, such as a # Represents the detailed state of an entity under analysis, such as a resource,
# resource, an identity or an access. # an identity or an access.
# Corresponds to the JSON property `analysisState` # Corresponds to the JSON property `analysisState`
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState] # @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
attr_accessor :analysis_state attr_accessor :analysis_state
@ -327,39 +303,36 @@ module Google
end end
# An access control list, derived from the above IAM policy binding, which # An access control list, derived from the above IAM policy binding, which
# contains a set of resources and accesses. May include one # contains a set of resources and accesses. May include one item from each set
# item from each set to compose an access control entry. # to compose an access control entry. NOTICE that there could be multiple access
# NOTICE that there could be multiple access control lists for one IAM policy # control lists for one IAM policy binding. The access control lists are created
# binding. The access control lists are created based on resource and access # based on resource and access combinations. For example, assume we have the
# combinations. # following cases in one IAM policy binding: - Permission P1 and P2 apply to
# For example, assume we have the following cases in one IAM policy binding: # resource R1 and R2; - Permission P3 applies to resource R2 and R3; This will
# - Permission P1 and P2 apply to resource R1 and R2; # result in the following access control lists: - AccessControlList 1: [R1, R2],
# - Permission P3 applies to resource R2 and R3; # [P1, P2] - AccessControlList 2: [R2, R3], [P3]
# This will result in the following access control lists:
# - AccessControlList 1: [R1, R2], [P1, P2]
# - AccessControlList 2: [R2, R3], [P3]
class GoogleCloudAssetV1p4beta1AccessControlList class GoogleCloudAssetV1p4beta1AccessControlList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The accesses that match one of the following conditions: # The accesses that match one of the following conditions: - The access_selector,
# - The access_selector, if it is specified in request; # if it is specified in request; - Otherwise, access specifiers reachable from
# - Otherwise, access specifiers reachable from the policy binding's role. # the policy binding's role.
# Corresponds to the JSON property `accesses` # Corresponds to the JSON property `accesses`
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Access>] # @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Access>]
attr_accessor :accesses attr_accessor :accesses
# Resource edges of the graph starting from the policy attached # Resource edges of the graph starting from the policy attached resource to any
# resource to any descendant resources. The Edge.source_node contains # descendant resources. The Edge.source_node contains the full resource name of
# the full resource name of a parent resource and Edge.target_node # a parent resource and Edge.target_node contains the full resource name of a
# contains the full resource name of a child resource. This field is # child resource. This field is present only if the output_resource_edges option
# present only if the output_resource_edges option is enabled in request. # is enabled in request.
# Corresponds to the JSON property `resourceEdges` # Corresponds to the JSON property `resourceEdges`
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge>] # @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge>]
attr_accessor :resource_edges attr_accessor :resource_edges
# The resources that match one of the following conditions: # The resources that match one of the following conditions: - The
# - The resource_selector, if it is specified in request; # resource_selector, if it is specified in request; - Otherwise, resources
# - Otherwise, resources reachable from the policy attached resource. # reachable from the policy attached resource.
# Corresponds to the JSON property `resources` # Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Resource>] # @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Resource>]
attr_accessor :resources attr_accessor :resources
@ -376,8 +349,8 @@ module Google
end end
end end
# Represents the detailed state of an entity under analysis, such as a # Represents the detailed state of an entity under analysis, such as a resource,
# resource, an identity or an access. # an identity or an access.
class GoogleCloudAssetV1p4beta1AnalysisState class GoogleCloudAssetV1p4beta1AnalysisState
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -386,12 +359,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :cause attr_accessor :cause
# The Google standard error code that best describes the state. # The Google standard error code that best describes the state. For example: -
# For example: # OK means the analysis on this entity has been successfully finished; -
# - OK means the analysis on this entity has been successfully finished; # PERMISSION_DENIED means an access denied error is encountered; -
# - PERMISSION_DENIED means an access denied error is encountered; # DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in
# - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started # time;
# in time;
# Corresponds to the JSON property `code` # Corresponds to the JSON property `code`
# @return [String] # @return [String]
attr_accessor :code attr_accessor :code
@ -436,23 +408,16 @@ module Google
class GoogleCloudAssetV1p4beta1Identity class GoogleCloudAssetV1p4beta1Identity
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents the detailed state of an entity under analysis, such as a # Represents the detailed state of an entity under analysis, such as a resource,
# resource, an identity or an access. # an identity or an access.
# Corresponds to the JSON property `analysisState` # Corresponds to the JSON property `analysisState`
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState] # @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
attr_accessor :analysis_state attr_accessor :analysis_state
# The identity name in any form of members appear in # The identity name in any form of members appear in [IAM policy binding](https:/
# [IAM policy # /cloud.google.com/iam/reference/rest/v1/Binding), such as: - user:foo@google.
# binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such # com - group:group1@google.com - serviceAccount:s1@prj1.iam.gserviceaccount.com
# as: # - projectOwner:some_project_id - domain:google.com - allUsers - etc.
# - user:foo@google.com
# - group:group1@google.com
# - serviceAccount:s1@prj1.iam.gserviceaccount.com
# - projectOwner:some_project_id
# - domain:google.com
# - allUsers
# - etc.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -472,21 +437,18 @@ module Google
class GoogleCloudAssetV1p4beta1IdentityList class GoogleCloudAssetV1p4beta1IdentityList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Group identity edges of the graph starting from the binding's # Group identity edges of the graph starting from the binding's group members to
# group members to any node of the identities. The Edge.source_node # any node of the identities. The Edge.source_node contains a group, such as "
# contains a group, such as "group:parent@google.com". The # group:parent@google.com". The Edge.target_node contains a member of the group,
# Edge.target_node contains a member of the group, # such as "group:child@google.com" or "user:foo@google.com". This field is
# such as "group:child@google.com" or "user:foo@google.com". # present only if the output_group_edges option is enabled in request.
# This field is present only if the output_group_edges option is enabled in
# request.
# Corresponds to the JSON property `groupEdges` # Corresponds to the JSON property `groupEdges`
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge>] # @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge>]
attr_accessor :group_edges attr_accessor :group_edges
# Only the identities that match one of the following conditions will be # Only the identities that match one of the following conditions will be
# presented: # presented: - The identity_selector, if it is specified in request; - Otherwise,
# - The identity_selector, if it is specified in request; # identities reachable from the policy binding's members.
# - Otherwise, identities reachable from the policy binding's members.
# Corresponds to the JSON property `identities` # Corresponds to the JSON property `identities`
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Identity>] # @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Identity>]
attr_accessor :identities attr_accessor :identities
@ -506,14 +468,14 @@ module Google
class GoogleCloudAssetV1p4beta1Resource class GoogleCloudAssetV1p4beta1Resource
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents the detailed state of an entity under analysis, such as a # Represents the detailed state of an entity under analysis, such as a resource,
# resource, an identity or an access. # an identity or an access.
# Corresponds to the JSON property `analysisState` # Corresponds to the JSON property `analysisState`
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState] # @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
attr_accessor :analysis_state attr_accessor :analysis_state
# The [full resource # The [full resource name](https://cloud.google.com/asset-inventory/docs/
# name](https://cloud.google.com/asset-inventory/docs/resource-name-format) # resource-name-format)
# Corresponds to the JSON property `fullResourceName` # Corresponds to the JSON property `fullResourceName`
# @return [String] # @return [String]
attr_accessor :full_resource_name attr_accessor :full_resource_name
@ -538,14 +500,14 @@ module Google
# @return [Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery] # @return [Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery]
attr_accessor :analysis_query attr_accessor :analysis_query
# A list of IamPolicyAnalysisResult that matches the analysis query, or # A list of IamPolicyAnalysisResult that matches the analysis query, or empty if
# empty if no result is found. # no result is found.
# Corresponds to the JSON property `analysisResults` # Corresponds to the JSON property `analysisResults`
# @return [Array<Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisResult>] # @return [Array<Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisResult>]
attr_accessor :analysis_results attr_accessor :analysis_results
# Represents whether all entries in the analysis_results have been # Represents whether all entries in the analysis_results have been fully
# fully explored to answer the query. # explored to answer the query.
# Corresponds to the JSON property `fullyExplored` # Corresponds to the JSON property `fullyExplored`
# @return [Boolean] # @return [Boolean]
attr_accessor :fully_explored attr_accessor :fully_explored
@ -587,29 +549,27 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies roles and/or permissions to analyze, to determine both the # Specifies roles and/or permissions to analyze, to determine both the
# identities possessing them and the resources they control. If multiple # identities possessing them and the resources they control. If multiple values
# values are specified, results will include identities and resources # are specified, results will include identities and resources matching any of
# matching any of them. # them.
# Corresponds to the JSON property `accessSelector` # Corresponds to the JSON property `accessSelector`
# @return [Google::Apis::CloudassetV1p4beta1::AccessSelector] # @return [Google::Apis::CloudassetV1p4beta1::AccessSelector]
attr_accessor :access_selector attr_accessor :access_selector
# Specifies an identity for which to determine resource access, based on # Specifies an identity for which to determine resource access, based on roles
# roles assigned either directly to them or to the groups they belong to, # assigned either directly to them or to the groups they belong to, directly or
# directly or indirectly. # indirectly.
# Corresponds to the JSON property `identitySelector` # Corresponds to the JSON property `identitySelector`
# @return [Google::Apis::CloudassetV1p4beta1::IdentitySelector] # @return [Google::Apis::CloudassetV1p4beta1::IdentitySelector]
attr_accessor :identity_selector attr_accessor :identity_selector
# Required. The relative name of the root asset. Only resources and IAM policies # Required. The relative name of the root asset. Only resources and IAM policies
# within # within the parent will be analyzed. This can only be an organization number (
# the parent will be analyzed. This can only be an organization number (such # such as "organizations/123") or a folder number (such as "folders/123"). To
# as "organizations/123") or a folder number (such as "folders/123"). # know how to get organization id, visit [here ](https://cloud.google.com/
# To know how to get organization id, visit [here # resource-manager/docs/creating-managing-organization#
# ](https://cloud.google.com/resource-manager/docs/creating-managing- # retrieving_your_organization_id). To know how to get folder id, visit [here ](
# organization#retrieving_your_organization_id). # https://cloud.google.com/resource-manager/docs/creating-managing-folders#
# To know how to get folder id, visit [here
# ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#
# viewing_or_listing_folders_and_projects). # viewing_or_listing_folders_and_projects).
# Corresponds to the JSON property `parent` # Corresponds to the JSON property `parent`
# @return [String] # @return [String]
@ -646,15 +606,13 @@ module Google
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AccessControlList>] # @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AccessControlList>]
attr_accessor :access_control_lists attr_accessor :access_control_lists
# The [full resource # The [full resource name](https://cloud.google.com/asset-inventory/docs/
# name](https://cloud.google.com/asset-inventory/docs/resource-name-format) # resource-name-format) of the resource to which the iam_binding policy attaches.
# of the resource to which the iam_binding policy attaches.
# Corresponds to the JSON property `attachedResourceFullName` # Corresponds to the JSON property `attachedResourceFullName`
# @return [String] # @return [String]
attr_accessor :attached_resource_full_name attr_accessor :attached_resource_full_name
# Represents whether all analyses on the iam_binding have successfully # Represents whether all analyses on the iam_binding have successfully finished.
# finished.
# Corresponds to the JSON property `fullyExplored` # Corresponds to the JSON property `fullyExplored`
# @return [Boolean] # @return [Boolean]
attr_accessor :fully_explored attr_accessor :fully_explored
@ -685,22 +643,18 @@ module Google
end end
end end
# Specifies an identity for which to determine resource access, based on # Specifies an identity for which to determine resource access, based on roles
# roles assigned either directly to them or to the groups they belong to, # assigned either directly to them or to the groups they belong to, directly or
# directly or indirectly. # indirectly.
class IdentitySelector class IdentitySelector
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The identity appear in the form of members in # Required. The identity appear in the form of members in [IAM policy binding](
# [IAM policy # https://cloud.google.com/iam/reference/rest/v1/Binding). The examples of
# binding](https://cloud.google.com/iam/reference/rest/v1/Binding). # supported forms are: "user:mike@example.com", "group:admins@example.com", "
# The examples of supported forms are: # domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com".
# "user:mike@example.com", # Notice that wildcard characters (such as * and ?) are not supported. You must
# "group:admins@example.com", # give a specific identity.
# "domain:google.com",
# "serviceAccount:my-project-id@appspot.gserviceaccount.com".
# Notice that wildcard characters (such as * and ?) are not supported.
# You must give a specific identity.
# Corresponds to the JSON property `identity` # Corresponds to the JSON property `identity`
# @return [String] # @return [String]
attr_accessor :identity attr_accessor :identity
@ -720,47 +674,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::CloudassetV1p4beta1::Status] # @return [Google::Apis::CloudassetV1p4beta1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # 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 # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -784,75 +736,67 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. If true, the response will include access analysis from identities # Optional. If true, the response will include access analysis from identities
# to # to resources via service account impersonation. This is a very expensive
# resources via service account impersonation. This is a very expensive # operation, because many derived queries will be executed. For example, if the
# operation, because many derived queries will be executed. # request analyzes for which resources user A has permission P, and there's an
# For example, if the request analyzes for which resources user A has # IAM policy states user A has iam.serviceAccounts.getAccessToken permission to
# permission P, and there's an IAM policy states user A has # a service account SA, and there's another IAM policy states service account SA
# iam.serviceAccounts.getAccessToken permission to a service account SA, # has permission P to a GCP folder F, then user A potentially has access to the
# and there's another IAM policy states service account SA has permission P # GCP folder F. And those advanced analysis results will be included in
# to a GCP folder F, then user A potentially has access to the GCP folder # AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another
# F. And those advanced analysis results will be included in # example, if the request analyzes for who has permission P to a GCP folder F,
# AnalyzeIamPolicyResponse.service_account_impersonation_analysis. # and there's an IAM policy states user A has iam.serviceAccounts.actAs
# Another example, if the request analyzes for who has # permission to a service account SA, and there's another IAM policy states
# permission P to a GCP folder F, and there's an IAM policy states user A # service account SA has permission P to the GCP folder F, then user A
# has iam.serviceAccounts.actAs permission to a service account SA, and # potentially has access to the GCP folder F. And those advanced analysis
# there's another IAM policy states service account SA has permission P to # results will be included in AnalyzeIamPolicyResponse.
# the GCP folder F, then user A potentially has access to the GCP folder # service_account_impersonation_analysis. Default is false.
# F. And those advanced analysis results will be included in
# AnalyzeIamPolicyResponse.service_account_impersonation_analysis.
# Default is false.
# Corresponds to the JSON property `analyzeServiceAccountImpersonation` # Corresponds to the JSON property `analyzeServiceAccountImpersonation`
# @return [Boolean] # @return [Boolean]
attr_accessor :analyze_service_account_impersonation attr_accessor :analyze_service_account_impersonation
alias_method :analyze_service_account_impersonation?, :analyze_service_account_impersonation alias_method :analyze_service_account_impersonation?, :analyze_service_account_impersonation
# Optional. If true, the identities section of the result will expand any # Optional. If true, the identities section of the result will expand any Google
# Google groups appearing in an IAM policy binding. # groups appearing in an IAM policy binding. If identity_selector is specified,
# If identity_selector is specified, the identity in the result will # the identity in the result will be determined by the selector, and this flag
# be determined by the selector, and this flag will have no effect. # will have no effect. Default is false.
# Default is false.
# Corresponds to the JSON property `expandGroups` # Corresponds to the JSON property `expandGroups`
# @return [Boolean] # @return [Boolean]
attr_accessor :expand_groups attr_accessor :expand_groups
alias_method :expand_groups?, :expand_groups alias_method :expand_groups?, :expand_groups
# Optional. If true, the resource section of the result will expand any # Optional. If true, the resource section of the result will expand any resource
# resource attached to an IAM policy to include resources lower in the # attached to an IAM policy to include resources lower in the resource hierarchy.
# resource hierarchy.
# For example, if the request analyzes for which resources user A has # For example, if the request analyzes for which resources user A has
# permission P, and the results include an IAM policy with P on a GCP # permission P, and the results include an IAM policy with P on a GCP folder,
# folder, the results will also include resources in that folder with # the results will also include resources in that folder with permission P. If
# permission P. # resource_selector is specified, the resource section of the result will be
# If resource_selector is specified, the resource section of the result # determined by the selector, and this flag will have no effect. Default is
# will be determined by the selector, and this flag will have no effect. # false.
# Default is false.
# Corresponds to the JSON property `expandResources` # Corresponds to the JSON property `expandResources`
# @return [Boolean] # @return [Boolean]
attr_accessor :expand_resources attr_accessor :expand_resources
alias_method :expand_resources?, :expand_resources alias_method :expand_resources?, :expand_resources
# Optional. If true, the access section of result will expand any roles # Optional. If true, the access section of result will expand any roles
# appearing in IAM policy bindings to include their permissions. # appearing in IAM policy bindings to include their permissions. If
# If access_selector is specified, the access section of the result # access_selector is specified, the access section of the result will be
# will be determined by the selector, and this flag will have no effect. # determined by the selector, and this flag will have no effect. Default is
# Default is false. # false.
# Corresponds to the JSON property `expandRoles` # Corresponds to the JSON property `expandRoles`
# @return [Boolean] # @return [Boolean]
attr_accessor :expand_roles attr_accessor :expand_roles
alias_method :expand_roles?, :expand_roles alias_method :expand_roles?, :expand_roles
# Optional. If true, the result will output group identity edges, starting # Optional. If true, the result will output group identity edges, starting from
# from the binding's group members, to any expanded identities. # the binding's group members, to any expanded identities. Default is false.
# Default is false.
# Corresponds to the JSON property `outputGroupEdges` # Corresponds to the JSON property `outputGroupEdges`
# @return [Boolean] # @return [Boolean]
attr_accessor :output_group_edges attr_accessor :output_group_edges
alias_method :output_group_edges?, :output_group_edges alias_method :output_group_edges?, :output_group_edges
# Optional. If true, the result will output resource edges, starting # Optional. If true, the result will output resource edges, starting from the
# from the policy attached resource, to any expanded resources. # policy attached resource, to any expanded resources. Default is false.
# Default is false.
# Corresponds to the JSON property `outputResourceEdges` # Corresponds to the JSON property `outputResourceEdges`
# @return [Boolean] # @return [Boolean]
attr_accessor :output_resource_edges attr_accessor :output_resource_edges
@ -879,10 +823,9 @@ module Google
class ResourceSelector class ResourceSelector
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The [full resource # Required. The [full resource name](https://cloud.google.com/asset-inventory/
# name](https://cloud.google.com/asset-inventory/docs/resource-name-format) # docs/resource-name-format) of a resource of [supported resource types](https://
# of a resource of [supported resource # cloud.google.com/asset-inventory/docs/supported-asset-types#
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#
# analyzable_asset_types). # analyzable_asset_types).
# Corresponds to the JSON property `fullResourceName` # Corresponds to the JSON property `fullResourceName`
# @return [String] # @return [String]
@ -898,12 +841,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -918,9 +861,9 @@ module Google
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message

View File

@ -47,102 +47,85 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Analyzes IAM policies to answer which identities have what accesses on # Analyzes IAM policies to answer which identities have what accesses on which
# which resources. # resources.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. Only resources and IAM policies # Required. The relative name of the root asset. Only resources and IAM policies
# within # within the parent will be analyzed. This can only be an organization number (
# the parent will be analyzed. This can only be an organization number (such # such as "organizations/123") or a folder number (such as "folders/123"). To
# as "organizations/123") or a folder number (such as "folders/123"). # know how to get organization id, visit [here ](https://cloud.google.com/
# To know how to get organization id, visit [here # resource-manager/docs/creating-managing-organization#
# ](https://cloud.google.com/resource-manager/docs/creating-managing- # retrieving_your_organization_id). To know how to get folder id, visit [here ](
# organization#retrieving_your_organization_id). # https://cloud.google.com/resource-manager/docs/creating-managing-folders#
# To know how to get folder id, visit [here
# ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#
# viewing_or_listing_folders_and_projects). # viewing_or_listing_folders_and_projects).
# @param [Array<String>, String] analysis_query_access_selector_permissions # @param [Array<String>, String] analysis_query_access_selector_permissions
# Optional. The permissions to appear in result. # Optional. The permissions to appear in result.
# @param [Array<String>, String] analysis_query_access_selector_roles # @param [Array<String>, String] analysis_query_access_selector_roles
# Optional. The roles to appear in result. # Optional. The roles to appear in result.
# @param [String] analysis_query_identity_selector_identity # @param [String] analysis_query_identity_selector_identity
# Required. The identity appear in the form of members in # Required. The identity appear in the form of members in [IAM policy binding](
# [IAM policy # https://cloud.google.com/iam/reference/rest/v1/Binding). The examples of
# binding](https://cloud.google.com/iam/reference/rest/v1/Binding). # supported forms are: "user:mike@example.com", "group:admins@example.com", "
# The examples of supported forms are: # domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com".
# "user:mike@example.com", # Notice that wildcard characters (such as * and ?) are not supported. You must
# "group:admins@example.com", # give a specific identity.
# "domain:google.com",
# "serviceAccount:my-project-id@appspot.gserviceaccount.com".
# Notice that wildcard characters (such as * and ?) are not supported.
# You must give a specific identity.
# @param [String] analysis_query_resource_selector_full_resource_name # @param [String] analysis_query_resource_selector_full_resource_name
# Required. The [full resource # Required. The [full resource name](https://cloud.google.com/asset-inventory/
# name](https://cloud.google.com/asset-inventory/docs/resource-name-format) # docs/resource-name-format) of a resource of [supported resource types](https://
# of a resource of [supported resource # cloud.google.com/asset-inventory/docs/supported-asset-types#
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#
# analyzable_asset_types). # analyzable_asset_types).
# @param [Boolean] options_analyze_service_account_impersonation # @param [Boolean] options_analyze_service_account_impersonation
# Optional. If true, the response will include access analysis from identities # Optional. If true, the response will include access analysis from identities
# to # to resources via service account impersonation. This is a very expensive
# resources via service account impersonation. This is a very expensive # operation, because many derived queries will be executed. We highly recommend
# operation, because many derived queries will be executed. We highly # you use AssetService.ExportIamPolicyAnalysis rpc instead. For example, if the
# recommend you use AssetService.ExportIamPolicyAnalysis rpc instead. # request analyzes for which resources user A has permission P, and there's an
# For example, if the request analyzes for which resources user A has # IAM policy states user A has iam.serviceAccounts.getAccessToken permission to
# permission P, and there's an IAM policy states user A has # a service account SA, and there's another IAM policy states service account SA
# iam.serviceAccounts.getAccessToken permission to a service account SA, # has permission P to a GCP folder F, then user A potentially has access to the
# and there's another IAM policy states service account SA has permission P # GCP folder F. And those advanced analysis results will be included in
# to a GCP folder F, then user A potentially has access to the GCP folder # AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another
# F. And those advanced analysis results will be included in # example, if the request analyzes for who has permission P to a GCP folder F,
# AnalyzeIamPolicyResponse.service_account_impersonation_analysis. # and there's an IAM policy states user A has iam.serviceAccounts.actAs
# Another example, if the request analyzes for who has # permission to a service account SA, and there's another IAM policy states
# permission P to a GCP folder F, and there's an IAM policy states user A # service account SA has permission P to the GCP folder F, then user A
# has iam.serviceAccounts.actAs permission to a service account SA, and # potentially has access to the GCP folder F. And those advanced analysis
# there's another IAM policy states service account SA has permission P to # results will be included in AnalyzeIamPolicyResponse.
# the GCP folder F, then user A potentially has access to the GCP folder # service_account_impersonation_analysis. Default is false.
# F. And those advanced analysis results will be included in
# AnalyzeIamPolicyResponse.service_account_impersonation_analysis.
# Default is false.
# @param [String] options_execution_timeout # @param [String] options_execution_timeout
# Optional. Amount of time executable has to complete. See JSON representation # Optional. Amount of time executable has to complete. See JSON representation
# of # of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
# [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
# If this field is set with a value less than the RPC deadline, and the # If this field is set with a value less than the RPC deadline, and the
# execution of your query hasn't finished in the specified # execution of your query hasn't finished in the specified execution timeout,
# execution timeout, you will get a response with partial result. # you will get a response with partial result. Otherwise, your query's execution
# Otherwise, your query's execution will continue until the RPC deadline. # will continue until the RPC deadline. If it's not finished until then, you
# If it's not finished until then, you will get a DEADLINE_EXCEEDED error. # will get a DEADLINE_EXCEEDED error. Default is empty.
# Default is empty.
# @param [Boolean] options_expand_groups # @param [Boolean] options_expand_groups
# Optional. If true, the identities section of the result will expand any # Optional. If true, the identities section of the result will expand any Google
# Google groups appearing in an IAM policy binding. # groups appearing in an IAM policy binding. If identity_selector is specified,
# If identity_selector is specified, the identity in the result will # the identity in the result will be determined by the selector, and this flag
# be determined by the selector, and this flag will have no effect. # will have no effect. Default is false.
# Default is false.
# @param [Boolean] options_expand_resources # @param [Boolean] options_expand_resources
# Optional. If true, the resource section of the result will expand any # Optional. If true, the resource section of the result will expand any resource
# resource attached to an IAM policy to include resources lower in the # attached to an IAM policy to include resources lower in the resource hierarchy.
# resource hierarchy.
# For example, if the request analyzes for which resources user A has # For example, if the request analyzes for which resources user A has
# permission P, and the results include an IAM policy with P on a GCP # permission P, and the results include an IAM policy with P on a GCP folder,
# folder, the results will also include resources in that folder with # the results will also include resources in that folder with permission P. If
# permission P. # resource_selector is specified, the resource section of the result will be
# If resource_selector is specified, the resource section of the result # determined by the selector, and this flag will have no effect. Default is
# will be determined by the selector, and this flag will have no effect. # false.
# Default is false.
# @param [Boolean] options_expand_roles # @param [Boolean] options_expand_roles
# Optional. If true, the access section of result will expand any roles # Optional. If true, the access section of result will expand any roles
# appearing in IAM policy bindings to include their permissions. # appearing in IAM policy bindings to include their permissions. If
# If access_selector is specified, the access section of the result # access_selector is specified, the access section of the result will be
# will be determined by the selector, and this flag will have no effect. # determined by the selector, and this flag will have no effect. Default is
# Default is false. # false.
# @param [Boolean] options_output_group_edges # @param [Boolean] options_output_group_edges
# Optional. If true, the result will output group identity edges, starting # Optional. If true, the result will output group identity edges, starting from
# from the binding's group members, to any expanded identities. # the binding's group members, to any expanded identities. Default is false.
# Default is false.
# @param [Boolean] options_output_resource_edges # @param [Boolean] options_output_resource_edges
# Optional. If true, the result will output resource edges, starting # Optional. If true, the result will output resource edges, starting from the
# from the policy attached resource, to any expanded resources. # policy attached resource, to any expanded resources. Default is false.
# Default is false.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -181,24 +164,21 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Exports the answers of which identities have what accesses on which # Exports the answers of which identities have what accesses on which resources
# resources to a Google Cloud Storage destination. The output format is # to a Google Cloud Storage destination. The output format is the JSON format
# the JSON format that represents a AnalyzeIamPolicyResponse # that represents a AnalyzeIamPolicyResponse in the JSON format. This method
# in the JSON format. # implements the google.longrunning.Operation, which allows you to keep track of
# This method implements the google.longrunning.Operation, which allows # the export. We recommend intervals of at least 2 seconds with exponential
# you to keep track of the export. We recommend intervals of at least 2 # retry to poll the export operation result. The metadata contains the request
# seconds with exponential retry to poll the export operation result. The # to help callers to map responses to requests.
# metadata contains the request to help callers to map responses to requests.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. Only resources and IAM policies # Required. The relative name of the root asset. Only resources and IAM policies
# within # within the parent will be analyzed. This can only be an organization number (
# the parent will be analyzed. This can only be an organization number (such # such as "organizations/123") or a folder number (such as "folders/123"). To
# as "organizations/123") or a folder number (such as "folders/123"). # know how to get organization id, visit [here ](https://cloud.google.com/
# To know how to get organization id, visit [here # resource-manager/docs/creating-managing-organization#
# ](https://cloud.google.com/resource-manager/docs/creating-managing- # retrieving_your_organization_id). To know how to get folder id, visit [here ](
# organization#retrieving_your_organization_id). # https://cloud.google.com/resource-manager/docs/creating-managing-folders#
# To know how to get folder id, visit [here
# ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#
# viewing_or_listing_folders_and_projects). # viewing_or_listing_folders_and_projects).
# @param [Google::Apis::CloudassetV1p4beta1::ExportIamPolicyAnalysisRequest] export_iam_policy_analysis_request_object # @param [Google::Apis::CloudassetV1p4beta1::ExportIamPolicyAnalysisRequest] export_iam_policy_analysis_request_object
# @param [String] fields # @param [String] fields

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1p5beta1 module CloudassetV1p5beta1
VERSION = 'V1p5beta1' VERSION = 'V1p5beta1'
REVISION = '20200731' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -50,41 +50,38 @@ module Google
# Lists assets with time and resource types and returns paged results in # Lists assets with time and resource types and returns paged results in
# response. # response.
# @param [String] parent # @param [String] parent
# Required. Name of the organization or project the assets belong to. Format: # Required. Name of the organization or project the assets belong to. Format: "
# "organizations/[organization-number]" (such as "organizations/123"), # organizations/[organization-number]" (such as "organizations/123"), "projects/[
# "projects/[project-number]" (such as "projects/my-project-id"), or # project-number]" (such as "projects/my-project-id"), or "projects/[project-id]"
# "projects/[project-id]" (such as "projects/12345"). # (such as "projects/12345").
# @param [Array<String>, String] asset_types # @param [Array<String>, String] asset_types
# A list of asset types to take a snapshot for. For example: # A list of asset types to take a snapshot for. For example: "compute.googleapis.
# "compute.googleapis.com/Disk". # com/Disk". Regular expression is also supported. For example: * "compute.
# Regular expression is also supported. For example: # googleapis.com.*" snapshots resources whose asset type starts with "compute.
# * "compute.googleapis.com.*" snapshots resources whose asset type starts # googleapis.com". * ".*Instance" snapshots resources whose asset type ends with
# with "compute.googleapis.com". # "Instance". * ".*Instance.*" snapshots resources whose asset type contains "
# * ".*Instance" snapshots resources whose asset type ends with "Instance". # Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all
# * ".*Instance.*" snapshots resources whose asset type contains "Instance". # supported regular expression syntax. If the regular expression does not match
# See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported # any supported asset type, an INVALID_ARGUMENT error will be returned. If
# regular expression syntax. If the regular expression does not match any # specified, only matching assets will be returned, otherwise, it will snapshot
# supported asset type, an INVALID_ARGUMENT error will be returned. # all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.
# If specified, only matching assets will be returned, otherwise, it will # google.com/asset-inventory/docs/overview) for all supported asset types.
# snapshot all asset types. See [Introduction to Cloud Asset
# Inventory](https://cloud.google.com/asset-inventory/docs/overview)
# for all supported asset types.
# @param [String] content_type # @param [String] content_type
# Asset content type. If not specified, no content but the asset name will # Asset content type. If not specified, no content but the asset name will be
# be returned. # returned.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of assets to be returned in a single response. Default # The maximum number of assets to be returned in a single response. Default is
# is 100, minimum is 1, and maximum is 1000. # 100, minimum is 1, and maximum is 1000.
# @param [String] page_token # @param [String] page_token
# The `next_page_token` returned from the previous `ListAssetsResponse`, or # The `next_page_token` returned from the previous `ListAssetsResponse`, or
# unspecified for the first `ListAssetsRequest`. It is a continuation of a # unspecified for the first `ListAssetsRequest`. It is a continuation of a prior
# prior `ListAssets` call, and the API should return the next page of assets. # `ListAssets` call, and the API should return the next page of assets.
# @param [String] read_time # @param [String] read_time
# Timestamp to take an asset snapshot. This can only be set to a timestamp # Timestamp to take an asset snapshot. This can only be set to a timestamp
# between the current time and the current time minus 35 days (inclusive). # between the current time and the current time minus 35 days (inclusive). If
# If not specified, the current time will be used. Due to delays in resource # not specified, the current time will be used. Due to delays in resource data
# data collection and indexing, there is a volatile window during which # collection and indexing, there is a volatile window during which running the
# running the same query may get different results. # same query may get different results.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/ # @see https://cloud.google.com/identity/
module CloudidentityV1 module CloudidentityV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200622' REVISION = '20200809'
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'

View File

@ -22,23 +22,541 @@ module Google
module Apis module Apis
module CloudidentityV1 module CloudidentityV1
# Resource representing the Android specific attributes of a Device.
class AndroidAttributes
include Google::Apis::Core::Hashable
# Whether applications from unknown sources can be installed on device.
# Corresponds to the JSON property `enabledUnknownSources`
# @return [Boolean]
attr_accessor :enabled_unknown_sources
alias_method :enabled_unknown_sources?, :enabled_unknown_sources
# Whether this account is on an owner/primary profile. For phones, only true for
# owner profiles. Android 4+ devices can have secondary or restricted user
# profiles.
# Corresponds to the JSON property `ownerProfileAccount`
# @return [Boolean]
attr_accessor :owner_profile_account
alias_method :owner_profile_account?, :owner_profile_account
# Ownership privileges on device.
# Corresponds to the JSON property `ownershipPrivilege`
# @return [String]
attr_accessor :ownership_privilege
# Whether device supports Android work profiles. If false, this service will not
# block access to corp data even if an administrator turns on the "Enforce Work
# Profile" policy.
# Corresponds to the JSON property `supportsWorkProfile`
# @return [Boolean]
attr_accessor :supports_work_profile
alias_method :supports_work_profile?, :supports_work_profile
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enabled_unknown_sources = args[:enabled_unknown_sources] if args.key?(:enabled_unknown_sources)
@owner_profile_account = args[:owner_profile_account] if args.key?(:owner_profile_account)
@ownership_privilege = args[:ownership_privilege] if args.key?(:ownership_privilege)
@supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
end
end
# Response message for approving the device to access user data.
class ApproveDeviceUserResponse
include Google::Apis::Core::Hashable
# Represents a user's use of a Device in the Cloud Identity Devices API. A
# DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
# Response message for blocking the device from accessing user data.
class BlockDeviceUserResponse
include Google::Apis::Core::Hashable
# Represents a user's use of a Device in the Cloud Identity Devices API. A
# DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
# Response message for cancelling an unfinished device wipe.
class CancelWipeDeviceResponse
include Google::Apis::Core::Hashable
# A Device within the Cloud Identity Devices API. Represents a Device known to
# Google Cloud, independent of the device ownership, type, and whether it is
# assigned or in use by a user.
# Corresponds to the JSON property `device`
# @return [Google::Apis::CloudidentityV1::Device]
attr_accessor :device
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device = args[:device] if args.key?(:device)
end
end
# Response message for cancelling an unfinished user account wipe.
class CancelWipeDeviceUserResponse
include Google::Apis::Core::Hashable
# Represents a user's use of a Device in the Cloud Identity Devices API. A
# DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
# Represents the state associated with an API client calling the Devices API.
# Resource representing ClientState and supports updates from API users
class ClientState
include Google::Apis::Core::Hashable
# The caller can specify asset tags for this resource
# Corresponds to the JSON property `assetTags`
# @return [Array<String>]
attr_accessor :asset_tags
# The compliance state of the resource as specified by the API client.
# Corresponds to the JSON property `complianceState`
# @return [String]
attr_accessor :compliance_state
# Output only. The time the client state data was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# This field may be used to store a unique identifier for the API resource
# within which these CustomAttributes are a field.
# Corresponds to the JSON property `customId`
# @return [String]
attr_accessor :custom_id
# The token that needs to be passed back for concurrency control in updates.
# Token needs to be passed back in UpdateRequest
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The Health score of the resource
# Corresponds to the JSON property `healthScore`
# @return [String]
attr_accessor :health_score
# The map of key-value attributes stored by callers specific to a device. The
# total serialized length of this map may not exceed 10KB. No limit is placed on
# the number of attributes in a map.
# Corresponds to the JSON property `keyValuePairs`
# @return [Hash<String,Google::Apis::CloudidentityV1::CustomAttributeValue>]
attr_accessor :key_value_pairs
# Output only. The time the client state data was last updated.
# Corresponds to the JSON property `lastUpdateTime`
# @return [String]
attr_accessor :last_update_time
# The management state of the resource as specified by the API client.
# Corresponds to the JSON property `managed`
# @return [String]
attr_accessor :managed
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
# `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
# the partner storing the data.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The owner of the ClientState
# Corresponds to the JSON property `ownerType`
# @return [String]
attr_accessor :owner_type
# A descriptive cause of the health score.
# Corresponds to the JSON property `scoreReason`
# @return [String]
attr_accessor :score_reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@asset_tags = args[:asset_tags] if args.key?(:asset_tags)
@compliance_state = args[:compliance_state] if args.key?(:compliance_state)
@create_time = args[:create_time] if args.key?(:create_time)
@custom_id = args[:custom_id] if args.key?(:custom_id)
@etag = args[:etag] if args.key?(:etag)
@health_score = args[:health_score] if args.key?(:health_score)
@key_value_pairs = args[:key_value_pairs] if args.key?(:key_value_pairs)
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
@managed = args[:managed] if args.key?(:managed)
@name = args[:name] if args.key?(:name)
@owner_type = args[:owner_type] if args.key?(:owner_type)
@score_reason = args[:score_reason] if args.key?(:score_reason)
end
end
# Additional custom attribute values may be one of these types
class CustomAttributeValue
include Google::Apis::Core::Hashable
# Represents a boolean value.
# Corresponds to the JSON property `boolValue`
# @return [Boolean]
attr_accessor :bool_value
alias_method :bool_value?, :bool_value
# Represents a double value.
# Corresponds to the JSON property `numberValue`
# @return [Float]
attr_accessor :number_value
# Represents a string value.
# Corresponds to the JSON property `stringValue`
# @return [String]
attr_accessor :string_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bool_value = args[:bool_value] if args.key?(:bool_value)
@number_value = args[:number_value] if args.key?(:number_value)
@string_value = args[:string_value] if args.key?(:string_value)
end
end
# A Device within the Cloud Identity Devices API. Represents a Device known to
# Google Cloud, independent of the device ownership, type, and whether it is
# assigned or in use by a user.
class Device
include Google::Apis::Core::Hashable
# Resource representing the Android specific attributes of a Device.
# Corresponds to the JSON property `androidSpecificAttributes`
# @return [Google::Apis::CloudidentityV1::AndroidAttributes]
attr_accessor :android_specific_attributes
# Asset tag of the device.
# Corresponds to the JSON property `assetTag`
# @return [String]
attr_accessor :asset_tag
# Output only. Baseband version of the device.
# Corresponds to the JSON property `basebandVersion`
# @return [String]
attr_accessor :baseband_version
# Output only. Device bootloader version. Example: 0.6.7.
# Corresponds to the JSON property `bootloaderVersion`
# @return [String]
attr_accessor :bootloader_version
# Output only. Device brand. Example: Samsung.
# Corresponds to the JSON property `brand`
# @return [String]
attr_accessor :brand
# Output only. Build number of the device.
# Corresponds to the JSON property `buildNumber`
# @return [String]
attr_accessor :build_number
# Output only. Represents whether the Device is compromised.
# Corresponds to the JSON property `compromisedState`
# @return [String]
attr_accessor :compromised_state
# Output only. When the Company-Owned device was imported. This field is empty
# for BYOD devices.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Type of device.
# Corresponds to the JSON property `deviceType`
# @return [String]
attr_accessor :device_type
# Output only. Whether developer options is enabled on device.
# Corresponds to the JSON property `enabledDeveloperOptions`
# @return [Boolean]
attr_accessor :enabled_developer_options
alias_method :enabled_developer_options?, :enabled_developer_options
# Output only. Whether USB debugging is enabled on device.
# Corresponds to the JSON property `enabledUsbDebugging`
# @return [Boolean]
attr_accessor :enabled_usb_debugging
alias_method :enabled_usb_debugging?, :enabled_usb_debugging
# Output only. Device encryption state.
# Corresponds to the JSON property `encryptionState`
# @return [String]
attr_accessor :encryption_state
# Output only. IMEI number of device if GSM device; empty otherwise.
# Corresponds to the JSON property `imei`
# @return [String]
attr_accessor :imei
# Output only. Kernel version of the device.
# Corresponds to the JSON property `kernelVersion`
# @return [String]
attr_accessor :kernel_version
# Most recent time when device synced with this service.
# Corresponds to the JSON property `lastSyncTime`
# @return [String]
attr_accessor :last_sync_time
# Output only. Management state of the device
# Corresponds to the JSON property `managementState`
# @return [String]
attr_accessor :management_state
# Output only. Device manufacturer. Example: Motorola.
# Corresponds to the JSON property `manufacturer`
# @return [String]
attr_accessor :manufacturer
# Output only. MEID number of device if CDMA device; empty otherwise.
# Corresponds to the JSON property `meid`
# @return [String]
attr_accessor :meid
# Output only. Model name of device. Example: Pixel 3.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of the Device in format: `devices/`device_id``, where
# device_id is the unique id assigned to the Device.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Mobile or network operator of device, if available.
# Corresponds to the JSON property `networkOperator`
# @return [String]
attr_accessor :network_operator
# Output only. OS version of the device. Example: Android 8.1.0.
# Corresponds to the JSON property `osVersion`
# @return [String]
attr_accessor :os_version
# Output only. Domain name for Google accounts on device. Type for other
# accounts on device. On Android, will only be populated if |ownership_privilege|
# is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in
# to the device policy app if that account's domain has only one account.
# Examples: "com.example", "xyz.com".
# Corresponds to the JSON property `otherAccounts`
# @return [Array<String>]
attr_accessor :other_accounts
# Output only. Whether the device is owned by the company or an individual
# Corresponds to the JSON property `ownerType`
# @return [String]
attr_accessor :owner_type
# Output only. OS release version. Example: 6.0.
# Corresponds to the JSON property `releaseVersion`
# @return [String]
attr_accessor :release_version
# Output only. OS security patch update time on device.
# Corresponds to the JSON property `securityPatchTime`
# @return [String]
attr_accessor :security_patch_time
# Serial Number of device. Example: HT82V1A01076.
# Corresponds to the JSON property `serialNumber`
# @return [String]
attr_accessor :serial_number
# WiFi MAC addresses of device.
# Corresponds to the JSON property `wifiMacAddresses`
# @return [Array<String>]
attr_accessor :wifi_mac_addresses
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@android_specific_attributes = args[:android_specific_attributes] if args.key?(:android_specific_attributes)
@asset_tag = args[:asset_tag] if args.key?(:asset_tag)
@baseband_version = args[:baseband_version] if args.key?(:baseband_version)
@bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
@brand = args[:brand] if args.key?(:brand)
@build_number = args[:build_number] if args.key?(:build_number)
@compromised_state = args[:compromised_state] if args.key?(:compromised_state)
@create_time = args[:create_time] if args.key?(:create_time)
@device_type = args[:device_type] if args.key?(:device_type)
@enabled_developer_options = args[:enabled_developer_options] if args.key?(:enabled_developer_options)
@enabled_usb_debugging = args[:enabled_usb_debugging] if args.key?(:enabled_usb_debugging)
@encryption_state = args[:encryption_state] if args.key?(:encryption_state)
@imei = args[:imei] if args.key?(:imei)
@kernel_version = args[:kernel_version] if args.key?(:kernel_version)
@last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
@management_state = args[:management_state] if args.key?(:management_state)
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
@meid = args[:meid] if args.key?(:meid)
@model = args[:model] if args.key?(:model)
@name = args[:name] if args.key?(:name)
@network_operator = args[:network_operator] if args.key?(:network_operator)
@os_version = args[:os_version] if args.key?(:os_version)
@other_accounts = args[:other_accounts] if args.key?(:other_accounts)
@owner_type = args[:owner_type] if args.key?(:owner_type)
@release_version = args[:release_version] if args.key?(:release_version)
@security_patch_time = args[:security_patch_time] if args.key?(:security_patch_time)
@serial_number = args[:serial_number] if args.key?(:serial_number)
@wifi_mac_addresses = args[:wifi_mac_addresses] if args.key?(:wifi_mac_addresses)
end
end
# Represents a user's use of a Device in the Cloud Identity Devices API. A
# DeviceUser is a resource representing a user's use of a Device
class DeviceUser
include Google::Apis::Core::Hashable
# Compromised State of the DeviceUser object
# Corresponds to the JSON property `compromisedState`
# @return [String]
attr_accessor :compromised_state
# When the user first signed in to the device
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Most recent time when user registered with this service.
# Corresponds to the JSON property `firstSyncTime`
# @return [String]
attr_accessor :first_sync_time
# Output only. Default locale used on device, in IETF BCP-47 format.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Output only. Last time when user synced with policies.
# Corresponds to the JSON property `lastSyncTime`
# @return [String]
attr_accessor :last_sync_time
# Output only. Management state of the user on the device.
# Corresponds to the JSON property `managementState`
# @return [String]
attr_accessor :management_state
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of the DeviceUser in format: `devices/`device_id`/deviceUsers/`
# user_id``, where user_id is the ID of the user associated with the user
# session.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Password state of the DeviceUser object
# Corresponds to the JSON property `passwordState`
# @return [String]
attr_accessor :password_state
# Output only. User agent on the device for this specific user
# Corresponds to the JSON property `userAgent`
# @return [String]
attr_accessor :user_agent
# Email address of the user registered on the device.
# Corresponds to the JSON property `userEmail`
# @return [String]
attr_accessor :user_email
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@compromised_state = args[:compromised_state] if args.key?(:compromised_state)
@create_time = args[:create_time] if args.key?(:create_time)
@first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time)
@language_code = args[:language_code] if args.key?(:language_code)
@last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
@management_state = args[:management_state] if args.key?(:management_state)
@name = args[:name] if args.key?(:name)
@password_state = args[:password_state] if args.key?(:password_state)
@user_agent = args[:user_agent] if args.key?(:user_agent)
@user_email = args[:user_email] if args.key?(:user_email)
end
end
# An EntityKey uniquely identifies an Entity. Namespaces are used to provide # An EntityKey uniquely identifies an Entity. Namespaces are used to provide
# isolation for IDs. A single ID can be reused across namespaces but the # isolation for IDs. A single ID can be reused across namespaces but the
# combination of a namespace and an ID must be unique. # combination of a namespace and an ID must be unique.
class EntityKey class EntityKey
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The ID of the entity within the given namespace. The ID must be unique # The ID of the entity within the given namespace. The ID must be unique within
# within its namespace. # its namespace.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# Namespaces provide isolation for IDs, so an ID only needs to be unique # Namespaces provide isolation for IDs, so an ID only needs to be unique within
# within its namespace. # its namespace. Namespaces are currently only created as part of IdentitySource
# Namespaces are currently only created as part of IdentitySource creation # creation from Admin Console. A namespace `"identitysources/`identity_source_id`
# from Admin Console. A namespace `"identitysources/`identity_source_id`"` is # "` is created corresponding to every Identity Source `identity_source_id`.
# created corresponding to every Identity Source `identity_source_id`.
# Corresponds to the JSON property `namespace` # Corresponds to the JSON property `namespace`
# @return [String] # @return [String]
attr_accessor :namespace attr_accessor :namespace
@ -58,8 +576,7 @@ module Google
class Group class Group
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. The time when the Group was created. # Output only. The time when the Group was created. Output only.
# Output only.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `createTime`
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
@ -84,32 +601,29 @@ module Google
# @return [Google::Apis::CloudidentityV1::EntityKey] # @return [Google::Apis::CloudidentityV1::EntityKey]
attr_accessor :group_key attr_accessor :group_key
# Required. `Required`. Labels for Group resource. # Required. `Required`. Labels for Group resource. For creating Groups under a
# For creating Groups under a namespace, set label key to # namespace, set label key to 'labels/system/groups/external' and label value as
# 'labels/system/groups/external' and label value as empty. # empty.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Output only. [Resource name](https://cloud.google.com/apis/design/ # Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of the # resource_names) of the Group in the format: `groups/`group_id``, where
# Group in the format: `groups/`group_id``, where group_id is the unique ID # group_id is the unique ID assigned to the Group. Must be left blank while
# assigned to the Group. # creating a Group.
# Must be left blank while creating a Group.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. Immutable. The entity under which this Group resides in Cloud # Required. Immutable. The entity under which this Group resides in Cloud
# Identity resource # Identity resource hierarchy. Must be set when creating a Group, read-only
# hierarchy. Must be set when creating a Group, read-only afterwards. # afterwards. Currently allowed types: `identitysources`.
# Currently allowed types: `identitysources`.
# Corresponds to the JSON property `parent` # Corresponds to the JSON property `parent`
# @return [String] # @return [String]
attr_accessor :parent attr_accessor :parent
# Output only. The time when the Group was last updated. # Output only. The time when the Group was last updated. Output only.
# Output only.
# Corresponds to the JSON property `updateTime` # Corresponds to the JSON property `updateTime`
# @return [String] # @return [String]
attr_accessor :update_time attr_accessor :update_time
@ -135,14 +649,13 @@ module Google
class ListGroupsResponse class ListGroupsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Groups returned in response to list request. # Groups returned in response to list request. The results are not sorted.
# The results are not sorted.
# Corresponds to the JSON property `groups` # Corresponds to the JSON property `groups`
# @return [Array<Google::Apis::CloudidentityV1::Group>] # @return [Array<Google::Apis::CloudidentityV1::Group>]
attr_accessor :groups attr_accessor :groups
# Token to retrieve the next page of results, or empty if there are no # Token to retrieve the next page of results, or empty if there are no more
# more results available for listing. # results available for listing.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -167,8 +680,8 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1::Membership>] # @return [Array<Google::Apis::CloudidentityV1::Membership>]
attr_accessor :memberships attr_accessor :memberships
# Token to retrieve the next page of results, or empty if there are no # Token to retrieve the next page of results, or empty if there are no more
# more results available for listing. # results available for listing.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -210,10 +723,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the # [Resource name](https://cloud.google.com/apis/design/resource_names) of the
# Membership being looked up. # Membership being looked up. Format: `groups/`group_id`/memberships/`member_id``
# Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is # , where `group_id` is the unique ID assigned to the Group to which Membership
# the unique ID assigned to the Group to which Membership belongs to, and # belongs to, and `member_id` is the unique ID assigned to the member.
# `member_id` is the unique ID assigned to the member.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -238,11 +750,10 @@ module Google
attr_accessor :create_time attr_accessor :create_time
# Output only. [Resource name](https://cloud.google.com/apis/design/ # Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of the # resource_names) of the Membership in the format: `groups/`group_id`/
# Membership in the format: `groups/`group_id`/memberships/`member_id``, # memberships/`member_id``, where group_id is the unique ID assigned to the
# where group_id is the unique ID assigned to the Group to which Membership # Group to which Membership belongs to, and member_id is the unique ID assigned
# belongs to, and member_id is the unique ID assigned to the member # to the member Must be left blank while creating a Membership.
# Must be left blank while creating a Membership.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -254,8 +765,8 @@ module Google
# @return [Google::Apis::CloudidentityV1::EntityKey] # @return [Google::Apis::CloudidentityV1::EntityKey]
attr_accessor :preferred_member_key attr_accessor :preferred_member_key
# Roles for a member within the Group. # Roles for a member within the Group. Currently supported MembershipRoles: `"
# Currently supported MembershipRoles: `"MEMBER"`. # MEMBER"`.
# Corresponds to the JSON property `roles` # Corresponds to the JSON property `roles`
# @return [Array<Google::Apis::CloudidentityV1::MembershipRole>] # @return [Array<Google::Apis::CloudidentityV1::MembershipRole>]
attr_accessor :roles attr_accessor :roles
@ -283,8 +794,8 @@ module Google
class MembershipRole class MembershipRole
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# MembershipRole in string format. # MembershipRole in string format. Currently supported MembershipRoles: `"MEMBER"
# Currently supported MembershipRoles: `"MEMBER"`. # `.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -304,47 +815,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::CloudidentityV1::Status] # @return [Google::Apis::CloudidentityV1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # 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 # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -372,8 +881,8 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1::Group>] # @return [Array<Google::Apis::CloudidentityV1::Group>]
attr_accessor :groups attr_accessor :groups
# Token to retrieve the next page of results, or empty if there are no # Token to retrieve the next page of results, or empty if there are no more
# more results available for specified query. # results available for specified query.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -389,12 +898,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -409,9 +918,9 @@ module Google
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message
@ -427,6 +936,47 @@ module Google
@message = args[:message] if args.key?(:message) @message = args[:message] if args.key?(:message)
end end
end end
# Response message for wiping all data on the device.
class WipeDeviceResponse
include Google::Apis::Core::Hashable
# A Device within the Cloud Identity Devices API. Represents a Device known to
# Google Cloud, independent of the device ownership, type, and whether it is
# assigned or in use by a user.
# Corresponds to the JSON property `device`
# @return [Google::Apis::CloudidentityV1::Device]
attr_accessor :device
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device = args[:device] if args.key?(:device)
end
end
# Response message for wiping the user's account from the device.
class WipeDeviceUserResponse
include Google::Apis::Core::Hashable
# Represents a user's use of a Device in the Cloud Identity Devices API. A
# DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
end end
end end
end end

View File

@ -22,6 +22,60 @@ module Google
module Apis module Apis
module CloudidentityV1 module CloudidentityV1
class AndroidAttributes
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApproveDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BlockDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelWipeDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelWipeDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClientState
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomAttributeValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceUser
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EntityKey class EntityKey
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -88,6 +142,139 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class WipeDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AndroidAttributes
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled_unknown_sources, as: 'enabledUnknownSources'
property :owner_profile_account, as: 'ownerProfileAccount'
property :ownership_privilege, as: 'ownershipPrivilege'
property :supports_work_profile, as: 'supportsWorkProfile'
end
end
class ApproveDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::DeviceUser, decorator: Google::Apis::CloudidentityV1::DeviceUser::Representation
end
end
class BlockDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::DeviceUser, decorator: Google::Apis::CloudidentityV1::DeviceUser::Representation
end
end
class CancelWipeDeviceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device, as: 'device', class: Google::Apis::CloudidentityV1::Device, decorator: Google::Apis::CloudidentityV1::Device::Representation
end
end
class CancelWipeDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::DeviceUser, decorator: Google::Apis::CloudidentityV1::DeviceUser::Representation
end
end
class ClientState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :asset_tags, as: 'assetTags'
property :compliance_state, as: 'complianceState'
property :create_time, as: 'createTime'
property :custom_id, as: 'customId'
property :etag, as: 'etag'
property :health_score, as: 'healthScore'
hash :key_value_pairs, as: 'keyValuePairs', class: Google::Apis::CloudidentityV1::CustomAttributeValue, decorator: Google::Apis::CloudidentityV1::CustomAttributeValue::Representation
property :last_update_time, as: 'lastUpdateTime'
property :managed, as: 'managed'
property :name, as: 'name'
property :owner_type, as: 'ownerType'
property :score_reason, as: 'scoreReason'
end
end
class CustomAttributeValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bool_value, as: 'boolValue'
property :number_value, as: 'numberValue'
property :string_value, as: 'stringValue'
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :android_specific_attributes, as: 'androidSpecificAttributes', class: Google::Apis::CloudidentityV1::AndroidAttributes, decorator: Google::Apis::CloudidentityV1::AndroidAttributes::Representation
property :asset_tag, as: 'assetTag'
property :baseband_version, as: 'basebandVersion'
property :bootloader_version, as: 'bootloaderVersion'
property :brand, as: 'brand'
property :build_number, as: 'buildNumber'
property :compromised_state, as: 'compromisedState'
property :create_time, as: 'createTime'
property :device_type, as: 'deviceType'
property :enabled_developer_options, as: 'enabledDeveloperOptions'
property :enabled_usb_debugging, as: 'enabledUsbDebugging'
property :encryption_state, as: 'encryptionState'
property :imei, as: 'imei'
property :kernel_version, as: 'kernelVersion'
property :last_sync_time, as: 'lastSyncTime'
property :management_state, as: 'managementState'
property :manufacturer, as: 'manufacturer'
property :meid, as: 'meid'
property :model, as: 'model'
property :name, as: 'name'
property :network_operator, as: 'networkOperator'
property :os_version, as: 'osVersion'
collection :other_accounts, as: 'otherAccounts'
property :owner_type, as: 'ownerType'
property :release_version, as: 'releaseVersion'
property :security_patch_time, as: 'securityPatchTime'
property :serial_number, as: 'serialNumber'
collection :wifi_mac_addresses, as: 'wifiMacAddresses'
end
end
class DeviceUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compromised_state, as: 'compromisedState'
property :create_time, as: 'createTime'
property :first_sync_time, as: 'firstSyncTime'
property :language_code, as: 'languageCode'
property :last_sync_time, as: 'lastSyncTime'
property :management_state, as: 'managementState'
property :name, as: 'name'
property :password_state, as: 'passwordState'
property :user_agent, as: 'userAgent'
property :user_email, as: 'userEmail'
end
end
class EntityKey class EntityKey
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -192,6 +379,22 @@ module Google
property :message, as: 'message' property :message, as: 'message'
end end
end end
class WipeDeviceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device, as: 'device', class: Google::Apis::CloudidentityV1::Device, decorator: Google::Apis::CloudidentityV1::Device::Representation
end
end
class WipeDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::DeviceUser, decorator: Google::Apis::CloudidentityV1::DeviceUser::Representation
end
end
end end
end end
end end

View File

@ -80,9 +80,8 @@ module Google
# Deletes a Group. # Deletes a Group.
# @param [String] name # @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names) # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the # of the Group in the format: `groups/`group_id``, where `group_id` is the
# Group in the format: `groups/`group_id``, where `group_id` is the unique ID # unique ID assigned to the Group.
# assigned to the Group.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -113,9 +112,8 @@ module Google
# Retrieves a Group. # Retrieves a Group.
# @param [String] name # @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names) # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the # of the Group in the format: `groups/`group_id``, where `group_id` is the
# Group in the format: `groups/`group_id``, where `group_id` is the unique ID # unique ID assigned to the Group.
# assigned to the Group.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -145,8 +143,8 @@ module Google
# Lists groups within a customer or a domain. # Lists groups within a customer or a domain.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The default page size is 200 (max 1000) for the BASIC view, and 50 # The default page size is 200 (max 1000) for the BASIC view, and 50 (max 500)
# (max 500) for the FULL view. # for the FULL view.
# @param [String] page_token # @param [String] page_token
# The next_page_token value returned from a previous list request, if any. # The next_page_token value returned from a previous list request, if any.
# @param [String] parent # @param [String] parent
@ -183,18 +181,16 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Looks up [resource # Looks up [resource name](https://cloud.google.com/apis/design/resource_names)
# name](https://cloud.google.com/apis/design/resource_names) of a Group by # of a Group by its EntityKey.
# its EntityKey.
# @param [String] group_key_id # @param [String] group_key_id
# The ID of the entity within the given namespace. The ID must be unique # The ID of the entity within the given namespace. The ID must be unique within
# within its namespace. # its namespace.
# @param [String] group_key_namespace # @param [String] group_key_namespace
# Namespaces provide isolation for IDs, so an ID only needs to be unique # Namespaces provide isolation for IDs, so an ID only needs to be unique within
# within its namespace. # its namespace. Namespaces are currently only created as part of IdentitySource
# Namespaces are currently only created as part of IdentitySource creation # creation from Admin Console. A namespace `"identitysources/`identity_source_id`
# from Admin Console. A namespace `"identitysources/`identity_source_id`"` is # "` is created corresponding to every Identity Source `identity_source_id`.
# created corresponding to every Identity Source `identity_source_id`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -226,10 +222,9 @@ module Google
# Updates a Group. # Updates a Group.
# @param [String] name # @param [String] name
# Output only. [Resource name](https://cloud.google.com/apis/design/ # Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of the # resource_names) of the Group in the format: `groups/`group_id``, where
# Group in the format: `groups/`group_id``, where group_id is the unique ID # group_id is the unique ID assigned to the Group. Must be left blank while
# assigned to the Group. # creating a Group.
# Must be left blank while creating a Group.
# @param [Google::Apis::CloudidentityV1::Group] group_object # @param [Google::Apis::CloudidentityV1::Group] group_object
# @param [String] update_mask # @param [String] update_mask
# Required. Editable fields: `display_name`, `description` # Required. Editable fields: `display_name`, `description`
@ -265,16 +260,14 @@ module Google
# Searches for Groups. # Searches for Groups.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The default page size is 200 (max 1000) for the BASIC view, and 50 # The default page size is 200 (max 1000) for the BASIC view, and 50 (max 500)
# (max 500) for the FULL view. # for the FULL view.
# @param [String] page_token # @param [String] page_token
# The next_page_token value returned from a previous search request, if any. # The next_page_token value returned from a previous search request, if any.
# @param [String] query # @param [String] query
# Required. `Required`. Query string for performing search on groups. Users can # Required. `Required`. Query string for performing search on groups. Users can
# search # search on parent and label attributes of groups. EXACT match ('==') is
# on parent and label attributes of groups. # supported on parent, and CONTAINS match ('in') is supported on labels.
# EXACT match ('==') is supported on parent, and CONTAINS match ('in') is
# supported on labels.
# @param [String] view # @param [String] view
# Group resource view to be returned. Defaults to [View.BASIC](). # Group resource view to be returned. Defaults to [View.BASIC]().
# @param [String] fields # @param [String] fields
@ -310,9 +303,8 @@ module Google
# Creates a Membership. # Creates a Membership.
# @param [String] parent # @param [String] parent
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names) # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the # of the Group to create Membership within. Format: `groups/`group_id``, where `
# Group to create Membership within. Format: `groups/`group_id``, where # group_id` is the unique ID assigned to the Group.
# `group_id` is the unique ID assigned to the Group.
# @param [Google::Apis::CloudidentityV1::Membership] membership_object # @param [Google::Apis::CloudidentityV1::Membership] membership_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -346,11 +338,9 @@ module Google
# Deletes a Membership. # Deletes a Membership.
# @param [String] name # @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names) # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the # of the Membership to be deleted. Format: `groups/`group_id`/memberships/`
# Membership to be deleted. # member_id``, where `group_id` is the unique ID assigned to the Group to which
# Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is # Membership belongs to, and member_id is the unique ID assigned to the member.
# the unique ID assigned to the Group to which Membership belongs to, and
# member_id is the unique ID assigned to the member.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -381,11 +371,9 @@ module Google
# Retrieves a Membership. # Retrieves a Membership.
# @param [String] name # @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names) # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the # of the Membership to be retrieved. Format: `groups/`group_id`/memberships/`
# Membership to be retrieved. # member_id``, where `group_id` is the unique id assigned to the Group to which
# Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is # Membership belongs to, and `member_id` is the unique ID assigned to the member.
# the unique id assigned to the Group to which Membership belongs to, and
# `member_id` is the unique ID assigned to the member.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -416,13 +404,11 @@ module Google
# Lists Memberships within a Group. # Lists Memberships within a Group.
# @param [String] parent # @param [String] parent
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names) # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the # of the Group to list Memberships within. Format: `groups/`group_id``, where `
# Group to list Memberships within. # group_id` is the unique ID assigned to the Group.
# Format: `groups/`group_id``, where `group_id` is the unique ID assigned to
# the Group.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The default page size is 200 (max 1000) for the BASIC view, and 50 # The default page size is 200 (max 1000) for the BASIC view, and 50 (max 500)
# (max 500) for the FULL view. # for the FULL view.
# @param [String] page_token # @param [String] page_token
# The next_page_token value returned from a previous list request, if any. # The next_page_token value returned from a previous list request, if any.
# @param [String] view # @param [String] view
@ -457,24 +443,20 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Looks up [resource # Looks up [resource name](https://cloud.google.com/apis/design/resource_names)
# name](https://cloud.google.com/apis/design/resource_names) of a Membership # of a Membership within a Group by member's EntityKey.
# within a Group by member's EntityKey.
# @param [String] parent # @param [String] parent
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names) # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the # of the Group to lookup Membership within. Format: `groups/`group_id``, where `
# Group to lookup Membership within. # group_id` is the unique ID assigned to the Group.
# Format: `groups/`group_id``, where `group_id` is the unique ID assigned to
# the Group.
# @param [String] member_key_id # @param [String] member_key_id
# The ID of the entity within the given namespace. The ID must be unique # The ID of the entity within the given namespace. The ID must be unique within
# within its namespace. # its namespace.
# @param [String] member_key_namespace # @param [String] member_key_namespace
# Namespaces provide isolation for IDs, so an ID only needs to be unique # Namespaces provide isolation for IDs, so an ID only needs to be unique within
# within its namespace. # its namespace. Namespaces are currently only created as part of IdentitySource
# Namespaces are currently only created as part of IdentitySource creation # creation from Admin Console. A namespace `"identitysources/`identity_source_id`
# from Admin Console. A namespace `"identitysources/`identity_source_id`"` is # "` is created corresponding to every Identity Source `identity_source_id`.
# created corresponding to every Identity Source `identity_source_id`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -25,7 +25,10 @@ module Google
# @see https://cloud.google.com/identity/ # @see https://cloud.google.com/identity/
module CloudidentityV1beta1 module CloudidentityV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200711' REVISION = '20200809'
# See your device details
AUTH_CLOUD_IDENTITY_DEVICES_LOOKUP = 'https://www.googleapis.com/auth/cloud-identity.devices.lookup'
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'

View File

@ -32,9 +32,9 @@ module Google
attr_accessor :enabled_unknown_sources attr_accessor :enabled_unknown_sources
alias_method :enabled_unknown_sources?, :enabled_unknown_sources alias_method :enabled_unknown_sources?, :enabled_unknown_sources
# Whether this account is on an owner/primary profile. # Whether this account is on an owner/primary profile. For phones, only true for
# For phones, only true for owner profiles. Android 4+ devices # owner profiles. Android 4+ devices can have secondary or restricted user
# can have secondary or restricted user profiles. # profiles.
# Corresponds to the JSON property `ownerProfileAccount` # Corresponds to the JSON property `ownerProfileAccount`
# @return [Boolean] # @return [Boolean]
attr_accessor :owner_profile_account attr_accessor :owner_profile_account
@ -45,9 +45,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :ownership_privilege attr_accessor :ownership_privilege
# Whether device supports Android work profiles. If false, this service # Whether device supports Android work profiles. If false, this service will not
# will not block access to corp data even if an administrator turns on the # block access to corp data even if an administrator turns on the "Enforce Work
# "Enforce Work Profile" policy. # Profile" policy.
# Corresponds to the JSON property `supportsWorkProfile` # Corresponds to the JSON property `supportsWorkProfile`
# @return [Boolean] # @return [Boolean]
attr_accessor :supports_work_profile attr_accessor :supports_work_profile
@ -66,11 +66,35 @@ module Google
end end
end end
# Request message for approving the device to access user data.
class ApproveDeviceUserRequest
include Google::Apis::Core::Hashable
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# Corresponds to the JSON property `customer`
# @return [String]
attr_accessor :customer
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer = args[:customer] if args.key?(:customer)
end
end
# Response message for approving the device to access user data. # Response message for approving the device to access user data.
class ApproveDeviceUserResponse class ApproveDeviceUserResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device # Represents a user's use of a Device in the Cloud Identity Devices API. A
# DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser` # Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser] # @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user attr_accessor :device_user
@ -85,11 +109,35 @@ module Google
end end
end end
# Request message for blocking account on device.
class BlockDeviceUserRequest
include Google::Apis::Core::Hashable
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# Corresponds to the JSON property `customer`
# @return [String]
attr_accessor :customer
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer = args[:customer] if args.key?(:customer)
end
end
# Response message for blocking the device from accessing user data. # Response message for blocking the device from accessing user data.
class BlockDeviceUserResponse class BlockDeviceUserResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device # Represents a user's use of a Device in the Cloud Identity Devices API. A
# DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser` # Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser] # @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user attr_accessor :device_user
@ -104,12 +152,36 @@ module Google
end end
end end
# Request message for cancelling an unfinished device wipe.
class CancelWipeDeviceRequest
include Google::Apis::Core::Hashable
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# Corresponds to the JSON property `customer`
# @return [String]
attr_accessor :customer
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer = args[:customer] if args.key?(:customer)
end
end
# Response message for cancelling an unfinished device wipe. # Response message for cancelling an unfinished device wipe.
class CancelWipeDeviceResponse class CancelWipeDeviceResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a Device known to Google Cloud, independent of the device # A Device within the Cloud Identity Devices API. Represents a Device known to
# ownership, type, and whether it is assigned or in use by a user. # Google Cloud, independent of the device ownership, type, and whether it is
# assigned or in use by a user.
# Corresponds to the JSON property `device` # Corresponds to the JSON property `device`
# @return [Google::Apis::CloudidentityV1beta1::Device] # @return [Google::Apis::CloudidentityV1beta1::Device]
attr_accessor :device attr_accessor :device
@ -124,11 +196,35 @@ module Google
end end
end end
# Request message for cancelling an unfinished user account wipe.
class CancelWipeDeviceUserRequest
include Google::Apis::Core::Hashable
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# Corresponds to the JSON property `customer`
# @return [String]
attr_accessor :customer
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer = args[:customer] if args.key?(:customer)
end
end
# Response message for cancelling an unfinished user account wipe. # Response message for cancelling an unfinished user account wipe.
class CancelWipeDeviceUserResponse class CancelWipeDeviceUserResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device # Represents a user's use of a Device in the Cloud Identity Devices API. A
# DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser` # Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser] # @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user attr_accessor :device_user
@ -143,6 +239,7 @@ module Google
end end
end end
# Represents the state associated with an API client calling the Devices API.
# Resource representing ClientState and supports updates from API users # Resource representing ClientState and supports updates from API users
class ClientState class ClientState
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -168,9 +265,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :custom_id attr_accessor :custom_id
# The token that needs to be passed back for # The token that needs to be passed back for concurrency control in updates.
# concurrency control in updates. Token needs to be passed back # Token needs to be passed back in UpdateRequest
# in UpdateRequest
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
@ -180,9 +276,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :health_score attr_accessor :health_score
# The map of key-value attributes stored by callers specific to a # The map of key-value attributes stored by callers specific to a device. The
# device. The total serialized length of this map may not exceed 10KB. No # total serialized length of this map may not exceed 10KB. No limit is placed on
# limit is placed on the number of attributes in a map. # the number of attributes in a map.
# Corresponds to the JSON property `keyValuePairs` # Corresponds to the JSON property `keyValuePairs`
# @return [Hash<String,Google::Apis::CloudidentityV1beta1::CustomAttributeValue>] # @return [Hash<String,Google::Apis::CloudidentityV1beta1::CustomAttributeValue>]
attr_accessor :key_value_pairs attr_accessor :key_value_pairs
@ -198,10 +294,9 @@ module Google
attr_accessor :managed attr_accessor :managed
# Output only. [Resource name](https://cloud.google.com/apis/design/ # Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
# the ClientState in format: # `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
# `devices/`device_id`/deviceUsers/`device_user_id`/clientState/`partner_id``, # the partner storing the data.
# where partner_id corresponds to the partner storing the data.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -237,6 +332,37 @@ module Google
end end
end end
# Request message for creating a Company Owned device.
class CreateDeviceRequest
include Google::Apis::Core::Hashable
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# Corresponds to the JSON property `customer`
# @return [String]
attr_accessor :customer
# A Device within the Cloud Identity Devices API. Represents a Device known to
# Google Cloud, independent of the device ownership, type, and whether it is
# assigned or in use by a user.
# Corresponds to the JSON property `device`
# @return [Google::Apis::CloudidentityV1beta1::Device]
attr_accessor :device
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer = args[:customer] if args.key?(:customer)
@device = args[:device] if args.key?(:device)
end
end
# Additional custom attribute values may be one of these types # Additional custom attribute values may be one of these types
class CustomAttributeValue class CustomAttributeValue
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -269,8 +395,9 @@ module Google
end end
end end
# Represents a Device known to Google Cloud, independent of the device # A Device within the Cloud Identity Devices API. Represents a Device known to
# ownership, type, and whether it is assigned or in use by a user. # Google Cloud, independent of the device ownership, type, and whether it is
# assigned or in use by a user.
class Device class Device
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -310,8 +437,7 @@ module Google
attr_accessor :compromised_state attr_accessor :compromised_state
# Output only. When the Company-Owned device was imported. This field is empty # Output only. When the Company-Owned device was imported. This field is empty
# for BYOD # for BYOD devices.
# devices.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `createTime`
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
@ -374,9 +500,8 @@ module Google
attr_accessor :model attr_accessor :model
# Output only. [Resource name](https://cloud.google.com/apis/design/ # Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) # resource_names) of the Device in format: `devices/`device_id``, where
# of the Device in format: `devices/`device_id``, where device_id is # device_id is the unique id assigned to the Device.
# the unique id assigned to the Device.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -392,9 +517,8 @@ module Google
attr_accessor :os_version attr_accessor :os_version
# Output only. Domain name for Google accounts on device. Type for other # Output only. Domain name for Google accounts on device. Type for other
# accounts on # accounts on device. On Android, will only be populated if |ownership_privilege|
# device. On Android, will only be populated if |ownership_privilege| is # is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in
# |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in
# to the device policy app if that account's domain has only one account. # to the device policy app if that account's domain has only one account.
# Examples: "com.example", "xyz.com". # Examples: "com.example", "xyz.com".
# Corresponds to the JSON property `otherAccounts` # Corresponds to the JSON property `otherAccounts`
@ -463,7 +587,8 @@ module Google
end end
end end
# A DeviceUser is a resource representing a user's use of a Device # Represents a user's use of a Device in the Cloud Identity Devices API. A
# DeviceUser is a resource representing a user's use of a Device
class DeviceUser class DeviceUser
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -498,9 +623,9 @@ module Google
attr_accessor :management_state attr_accessor :management_state
# Output only. [Resource name](https://cloud.google.com/apis/design/ # Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the DeviceUser in format: `devices/`device_id`/deviceUsers/`
# the DeviceUser in format: `devices/`device_id`/deviceUsers/`user_id``, # user_id``, where user_id is the ID of the user associated with the user
# where user_id is the ID of the user associated with the user session. # session.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -539,82 +664,26 @@ module Google
end end
end end
# An EndpointApp represents an app that is installed on a device # A unique identifier for an entity in the Cloud Identity Groups API. An entity
class EndpointApp # can represent either a group with an optional `namespace` or a user without a `
include Google::Apis::Core::Hashable # namespace`. The combination of `id` and `namespace` must be unique; however,
# the same `id` can be used with different `namespace`s.
# Output only. Name of the app displayed to the user
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the EndpointApp in format:
# `devices/`device`/deviceUsers/`device_user`/endpointApps/`endpoint_app``,
# where client_app_id is the ID of the app associated with the Device.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Full package name of the installed app
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
# Output only. Names of all permissions granted to the installed app
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
# Output only. Version code of the installed app
# Corresponds to the JSON property `versionCode`
# @return [Fixnum]
attr_accessor :version_code
# Output only. Version name of the installed app
# Corresponds to the JSON property `versionName`
# @return [String]
attr_accessor :version_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
@package_name = args[:package_name] if args.key?(:package_name)
@permissions = args[:permissions] if args.key?(:permissions)
@version_code = args[:version_code] if args.key?(:version_code)
@version_name = args[:version_name] if args.key?(:version_name)
end
end
# A unique identifier for an entity in the Cloud Identity Groups API.
# An entity can represent either a group with an optional `namespace` or a user
# without a `namespace`. The combination of `id` and `namespace` must be
# unique; however, the same `id` can be used with different `namespace`s.
class EntityKey class EntityKey
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The ID of the entity. # The ID of the entity. For Google-managed entities, the `id` must be the email
# For Google-managed entities, the `id` must be the email address of an # address of an existing group or user. For external-identity-mapped entities,
# existing group or user. # the `id` must be a string conforming to the Identity Source's requirements.
# For external-identity-mapped entities, the `id` must be a string conforming
# to the Identity Source's requirements.
# Must be unique within a `namespace`. # Must be unique within a `namespace`.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# The namespace in which the entity exists. # The namespace in which the entity exists. If not specified, the `EntityKey`
# If not specified, the `EntityKey` represents a Google-managed entity such # represents a Google-managed entity such as a Google user or a Google Group. If
# as a Google user or a Google Group. # specified, the `EntityKey` represents an external-identity-mapped group. The
# If specified, the `EntityKey` represents an external-identity-mapped group. # namespace must correspond to an identity source created in Admin Console and
# The namespace must correspond to an identity source created in Admin # must be in the form of `identitysources/`identity_source_id`.
# Console and must be in the form of `identitysources/`identity_source_id`.
# Corresponds to the JSON property `namespace` # Corresponds to the JSON property `namespace`
# @return [String] # @return [String]
attr_accessor :namespace attr_accessor :namespace
@ -658,9 +727,9 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::MembershipAdjacencyList>] # @return [Array<Google::Apis::CloudidentityV1beta1::MembershipAdjacencyList>]
attr_accessor :adjacency_list attr_accessor :adjacency_list
# The resources representing each group in the adjacency list. Each # The resources representing each group in the adjacency list. Each group in
# group in this list can be correlated to a 'group' of the # this list can be correlated to a 'group' of the MembershipAdjacencyList using
# MembershipAdjacencyList using the 'name' of the Group resource. # the 'name' of the Group resource.
# Corresponds to the JSON property `groups` # Corresponds to the JSON property `groups`
# @return [Array<Google::Apis::CloudidentityV1beta1::Group>] # @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
attr_accessor :groups attr_accessor :groups
@ -676,9 +745,9 @@ module Google
end end
end end
# A group within the Cloud Identity Groups API. # A group within the Cloud Identity Groups API. A `Group` is a collection of
# A `Group` is a collection of entities, where each entity is either a user, # entities, where each entity is either a user, another group, or a service
# another group or a service account. # account.
class Group class Group
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -692,8 +761,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# An extended description to help users determine the purpose of a `Group`. # An extended description to help users determine the purpose of a `Group`. Must
# Must not be longer than 4,096 characters. # not be longer than 4,096 characters.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
@ -703,36 +772,39 @@ module Google
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# A unique identifier for an entity in the Cloud Identity Groups API. # A unique identifier for an entity in the Cloud Identity Groups API. An entity
# An entity can represent either a group with an optional `namespace` or a user # can represent either a group with an optional `namespace` or a user without a `
# without a `namespace`. The combination of `id` and `namespace` must be # namespace`. The combination of `id` and `namespace` must be unique; however,
# unique; however, the same `id` can be used with different `namespace`s. # the same `id` can be used with different `namespace`s.
# Corresponds to the JSON property `groupKey` # Corresponds to the JSON property `groupKey`
# @return [Google::Apis::CloudidentityV1beta1::EntityKey] # @return [Google::Apis::CloudidentityV1beta1::EntityKey]
attr_accessor :group_key attr_accessor :group_key
# Required. The labels that apply to the `Group`. # Required. One or more label entries that apply to the Group. Currently
# Must not contain more than one entry. Must contain the entry # supported labels contain a key with an empty value. Google Groups are the
# `'cloudidentity.googleapis.com/groups.discussion_forum': ''` if the `Group` # default type of group and have a label with a key of 'cloudidentity.googleapis.
# is a Google Group or `'system/groups/external': ''` if the `Group` is an # com/groups.discussion_forum' and an empty value. Existing Google Groups can
# external-identity-mapped group. # have an additional label with a key of 'cloudidentity.googleapis.com/groups.
# security' and an empty value added to them. **This is an immutable change and
# the security label cannot be removed once added.** Dynamic groups have a label
# with a key of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped
# groups for Cloud Search have a label with a key of 'system/groups/external'
# and an empty value. Examples: `"cloudidentity.googleapis.com/groups.
# discussion_forum": ""` or `"system/groups/external": ""`.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Output only. The [resource name](https://cloud.google.com/apis/design/ # Output only. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the `Group`. Shall be of the form `groups/`group_id``.
# the `Group`.
# Shall be of the form `groups/`group_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. Immutable. The resource name of the entity under which this `Group` # Required. Immutable. The resource name of the entity under which this `Group`
# resides in the # resides in the Cloud Identity resource hierarchy. Must be of the form `
# Cloud Identity resource hierarchy. # identitysources/`identity_source_id`` for external- identity-mapped groups or `
# Must be of the form `identitysources/`identity_source_id`` for external- # customers/`customer_id`` for Google Groups.
# identity-mapped groups or `customers/`customer_id`` for Google Groups.
# Corresponds to the JSON property `parent` # Corresponds to the JSON property `parent`
# @return [String] # @return [String]
attr_accessor :parent attr_accessor :parent
@ -760,8 +832,7 @@ module Google
end end
end end
# Response message that is returned in LRO result of ListClientStates # Response message that is returned in LRO result of ListClientStates Operation.
# Operation.
class ListClientStatesResponse class ListClientStatesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -770,8 +841,7 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::ClientState>] # @return [Array<Google::Apis::CloudidentityV1beta1::ClientState>]
attr_accessor :client_states attr_accessor :client_states
# Token to retrieve the next page of results. Empty if there are no more # Token to retrieve the next page of results. Empty if there are no more results.
# results.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -787,7 +857,7 @@ module Google
end end
end end
# Response message that is returned in LRO result of ListDeviceUsers Operation. # Response message that is returned from the ListDeviceUsers method.
class ListDeviceUsersResponse class ListDeviceUsersResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -796,8 +866,7 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::DeviceUser>] # @return [Array<Google::Apis::CloudidentityV1beta1::DeviceUser>]
attr_accessor :device_users attr_accessor :device_users
# Token to retrieve the next page of results. Empty if there are no more # Token to retrieve the next page of results. Empty if there are no more results.
# results.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -813,7 +882,7 @@ module Google
end end
end end
# Response message that is returned in LRO result of ListDevices Operation. # Response message that is returned from the ListDevices method.
class ListDevicesResponse class ListDevicesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -822,8 +891,7 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::Device>] # @return [Array<Google::Apis::CloudidentityV1beta1::Device>]
attr_accessor :devices attr_accessor :devices
# Token to retrieve the next page of results. Empty if there are no more # Token to retrieve the next page of results. Empty if there are no more results.
# results.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -839,32 +907,6 @@ module Google
end end
end end
# Response message for listing all apps on the device.
class ListEndpointAppsResponse
include Google::Apis::Core::Hashable
# The list of matching EndpointApps found as a result of the request.
# Corresponds to the JSON property `endpointApps`
# @return [Array<Google::Apis::CloudidentityV1beta1::EndpointApp>]
attr_accessor :endpoint_apps
# Token to retrieve the next page of results. Empty if there are no more
# results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@endpoint_apps = args[:endpoint_apps] if args.key?(:endpoint_apps)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The response message for GroupsService.ListGroups. # The response message for GroupsService.ListGroups.
class ListGroupsResponse class ListGroupsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -874,8 +916,8 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::Group>] # @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
attr_accessor :groups attr_accessor :groups
# A continuation token to retrieve the next page of results, or empty if # A continuation token to retrieve the next page of results, or empty if there
# there are no more results available. # are no more results available.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -900,8 +942,8 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::Membership>] # @return [Array<Google::Apis::CloudidentityV1beta1::Membership>]
attr_accessor :memberships attr_accessor :memberships
# A continuation token to retrieve the next page of results, or empty if # A continuation token to retrieve the next page of results, or empty if there
# there are no more results available. # are no more results available.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -922,8 +964,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. The [resource name](https://cloud.google.com/apis/design/ # Output only. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the looked-up `Group`.
# the looked-up `Group`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -943,8 +984,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The [resource name](https://cloud.google.com/apis/design/resource_names) of # The [resource name](https://cloud.google.com/apis/design/resource_names) of
# the looked-up `Membership`. # the looked-up `Membership`. Must be of the form `groups/`group_id`/memberships/
# Must be of the form `groups/`group_id`/memberships/`membership_id``. # `membership_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -964,23 +1005,21 @@ module Google
class LookupSelfDeviceUsersResponse class LookupSelfDeviceUsersResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The obfuscated customer Id that may be passed back to other # The obfuscated customer Id that may be passed back to other Devices API
# Devices API methods such as List, Get, etc. # methods such as List, Get, etc.
# Corresponds to the JSON property `customer` # Corresponds to the JSON property `customer`
# @return [String] # @return [String]
attr_accessor :customer attr_accessor :customer
# [Resource names](https://cloud.google.com/apis/design/resource_names) of # [Resource names](https://cloud.google.com/apis/design/resource_names) of the
# the DeviceUsers in the format: # DeviceUsers in the format: `devices/`device_id`/deviceUsers/`user_resource_id``
# `devices/`device_id`/deviceUsers/`user_resource_id``, where # , where device_id is the unique ID assigned to a Device and user_resource_id
# device_id is the unique ID assigned to a Device and # is the unique user ID
# user_resource_id is the unique user ID
# Corresponds to the JSON property `names` # Corresponds to the JSON property `names`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :names attr_accessor :names
# Token to retrieve the next page of results. Empty if there are no more # Token to retrieve the next page of results. Empty if there are no more results.
# results.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -997,9 +1036,9 @@ module Google
end end
end end
# A membership within the Cloud Identity Groups API. # A membership within the Cloud Identity Groups API. A `Membership` defines a
# A `Membership` defines a relationship between a `Group` and an entity # relationship between a `Group` and an entity belonging to that `Group`,
# belonging to that `Group`, referred to as a "member". # referred to as a "member".
class Membership class Membership
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1008,33 +1047,32 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# A unique identifier for an entity in the Cloud Identity Groups API. # A unique identifier for an entity in the Cloud Identity Groups API. An entity
# An entity can represent either a group with an optional `namespace` or a user # can represent either a group with an optional `namespace` or a user without a `
# without a `namespace`. The combination of `id` and `namespace` must be # namespace`. The combination of `id` and `namespace` must be unique; however,
# unique; however, the same `id` can be used with different `namespace`s. # the same `id` can be used with different `namespace`s.
# Corresponds to the JSON property `memberKey` # Corresponds to the JSON property `memberKey`
# @return [Google::Apis::CloudidentityV1beta1::EntityKey] # @return [Google::Apis::CloudidentityV1beta1::EntityKey]
attr_accessor :member_key attr_accessor :member_key
# Output only. The [resource name](https://cloud.google.com/apis/design/ # Output only. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the `Membership`. Shall be of the form `groups/`group_id`/
# the `Membership`. # memberships/`membership_id``.
# Shall be of the form `groups/`group_id`/memberships/`membership_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# A unique identifier for an entity in the Cloud Identity Groups API. # A unique identifier for an entity in the Cloud Identity Groups API. An entity
# An entity can represent either a group with an optional `namespace` or a user # can represent either a group with an optional `namespace` or a user without a `
# without a `namespace`. The combination of `id` and `namespace` must be # namespace`. The combination of `id` and `namespace` must be unique; however,
# unique; however, the same `id` can be used with different `namespace`s. # the same `id` can be used with different `namespace`s.
# Corresponds to the JSON property `preferredMemberKey` # Corresponds to the JSON property `preferredMemberKey`
# @return [Google::Apis::CloudidentityV1beta1::EntityKey] # @return [Google::Apis::CloudidentityV1beta1::EntityKey]
attr_accessor :preferred_member_key attr_accessor :preferred_member_key
# The `MembershipRole`s that apply to the `Membership`. # The `MembershipRole`s that apply to the `Membership`. If unspecified, defaults
# If unspecified, defaults to a single `MembershipRole` with `name` `MEMBER`. # to a single `MembershipRole` with `name` `MEMBER`. Must not contain duplicate `
# Must not contain duplicate `MembershipRole`s with the same `name`. # MembershipRole`s with the same `name`.
# Corresponds to the JSON property `roles` # Corresponds to the JSON property `roles`
# @return [Array<Google::Apis::CloudidentityV1beta1::MembershipRole>] # @return [Array<Google::Apis::CloudidentityV1beta1::MembershipRole>]
attr_accessor :roles attr_accessor :roles
@ -1090,8 +1128,8 @@ module Google
end end
end end
# A membership role within the Cloud Identity Groups API. # A membership role within the Cloud Identity Groups API. A `MembershipRole`
# A `MembershipRole` defines the privileges granted to a `Membership`. # defines the privileges granted to a `Membership`.
class MembershipRole class MembershipRole
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1100,8 +1138,7 @@ module Google
# @return [Google::Apis::CloudidentityV1beta1::ExpiryDetail] # @return [Google::Apis::CloudidentityV1beta1::ExpiryDetail]
attr_accessor :expiry_detail attr_accessor :expiry_detail
# The name of the `MembershipRole`. # The name of the `MembershipRole`. Must be one of `OWNER`, `MANAGER`, `MEMBER`.
# Must be one of `OWNER`, `MANAGER`, `MEMBER`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -1121,29 +1158,25 @@ module Google
class ModifyMembershipRolesRequest class ModifyMembershipRolesRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The `MembershipRole`s to be added. # The `MembershipRole`s to be added. Adding or removing roles in the same
# Adding or removing roles in the same request as updating roles is not # request as updating roles is not supported. Must not be set if `
# supported. # update_roles_params` is set.
# Must not be set if `update_roles_params` is set.
# Corresponds to the JSON property `addRoles` # Corresponds to the JSON property `addRoles`
# @return [Array<Google::Apis::CloudidentityV1beta1::MembershipRole>] # @return [Array<Google::Apis::CloudidentityV1beta1::MembershipRole>]
attr_accessor :add_roles attr_accessor :add_roles
# The `name`s of the `MembershipRole`s to be removed. # The `name`s of the `MembershipRole`s to be removed. Adding or removing roles
# Adding or removing roles in the same request as updating roles is not # in the same request as updating roles is not supported. It is not possible to
# supported. # remove the `MEMBER` `MembershipRole`. If you wish to delete a `Membership`,
# It is not possible to remove the `MEMBER` `MembershipRole`. If you wish to # call MembershipsService.DeleteMembership instead. Must not contain `MEMBER`.
# delete a `Membership`, call MembershipsService.DeleteMembership # Must not be set if `update_roles_params` is set.
# instead.
# Must not contain `MEMBER`. Must not be set if `update_roles_params` is set.
# Corresponds to the JSON property `removeRoles` # Corresponds to the JSON property `removeRoles`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :remove_roles attr_accessor :remove_roles
# The `MembershipRole`s to be updated. # The `MembershipRole`s to be updated. Updating roles in the same request as
# Updating roles in the same request as adding or removing roles is not # adding or removing roles is not supported. Must not be set if either `
# supported. # add_roles` or `remove_roles` is set.
# Must not be set if either `add_roles` or `remove_roles` is set.
# Corresponds to the JSON property `updateRolesParams` # Corresponds to the JSON property `updateRolesParams`
# @return [Array<Google::Apis::CloudidentityV1beta1::UpdateMembershipRolesParams>] # @return [Array<Google::Apis::CloudidentityV1beta1::UpdateMembershipRolesParams>]
attr_accessor :update_roles_params attr_accessor :update_roles_params
@ -1164,9 +1197,9 @@ module Google
class ModifyMembershipRolesResponse class ModifyMembershipRolesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A membership within the Cloud Identity Groups API. # A membership within the Cloud Identity Groups API. A `Membership` defines a
# A `Membership` defines a relationship between a `Group` and an entity # relationship between a `Group` and an entity belonging to that `Group`,
# belonging to that `Group`, referred to as a "member". # referred to as a "member".
# Corresponds to the JSON property `membership` # Corresponds to the JSON property `membership`
# @return [Google::Apis::CloudidentityV1beta1::Membership] # @return [Google::Apis::CloudidentityV1beta1::Membership]
attr_accessor :membership attr_accessor :membership
@ -1186,47 +1219,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::CloudidentityV1beta1::Status] # @return [Google::Apis::CloudidentityV1beta1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # 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 # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -1254,8 +1285,8 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::Group>] # @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
attr_accessor :groups attr_accessor :groups
# A continuation token to retrieve the next page of results, or empty if # A continuation token to retrieve the next page of results, or empty if there
# there are no more results available. # are no more results available.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -1271,12 +1302,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1291,9 +1322,9 @@ module Google
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message
@ -1314,14 +1345,14 @@ module Google
class UpdateMembershipRolesParams class UpdateMembershipRolesParams
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The fully-qualified names of fields to update. # The fully-qualified names of fields to update. May only contain the field `
# May only contain the field `expiry_detail`. # expiry_detail`.
# Corresponds to the JSON property `fieldMask` # Corresponds to the JSON property `fieldMask`
# @return [String] # @return [String]
attr_accessor :field_mask attr_accessor :field_mask
# A membership role within the Cloud Identity Groups API. # A membership role within the Cloud Identity Groups API. A `MembershipRole`
# A `MembershipRole` defines the privileges granted to a `Membership`. # defines the privileges granted to a `Membership`.
# Corresponds to the JSON property `membershipRole` # Corresponds to the JSON property `membershipRole`
# @return [Google::Apis::CloudidentityV1beta1::MembershipRole] # @return [Google::Apis::CloudidentityV1beta1::MembershipRole]
attr_accessor :membership_role attr_accessor :membership_role
@ -1337,12 +1368,36 @@ module Google
end end
end end
# Request message for wiping all data on the device.
class WipeDeviceRequest
include Google::Apis::Core::Hashable
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# Corresponds to the JSON property `customer`
# @return [String]
attr_accessor :customer
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer = args[:customer] if args.key?(:customer)
end
end
# Response message for wiping all data on the device. # Response message for wiping all data on the device.
class WipeDeviceResponse class WipeDeviceResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a Device known to Google Cloud, independent of the device # A Device within the Cloud Identity Devices API. Represents a Device known to
# ownership, type, and whether it is assigned or in use by a user. # Google Cloud, independent of the device ownership, type, and whether it is
# assigned or in use by a user.
# Corresponds to the JSON property `device` # Corresponds to the JSON property `device`
# @return [Google::Apis::CloudidentityV1beta1::Device] # @return [Google::Apis::CloudidentityV1beta1::Device]
attr_accessor :device attr_accessor :device
@ -1357,11 +1412,35 @@ module Google
end end
end end
# Request message for starting an account wipe on device.
class WipeDeviceUserRequest
include Google::Apis::Core::Hashable
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# Corresponds to the JSON property `customer`
# @return [String]
attr_accessor :customer
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer = args[:customer] if args.key?(:customer)
end
end
# Response message for wiping the user's account from the device. # Response message for wiping the user's account from the device.
class WipeDeviceUserResponse class WipeDeviceUserResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device # Represents a user's use of a Device in the Cloud Identity Devices API. A
# DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser` # Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser] # @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user attr_accessor :device_user

View File

@ -28,24 +28,48 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ApproveDeviceUserRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApproveDeviceUserResponse class ApproveDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class BlockDeviceUserRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BlockDeviceUserResponse class BlockDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CancelWipeDeviceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelWipeDeviceResponse class CancelWipeDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CancelWipeDeviceUserRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelWipeDeviceUserResponse class CancelWipeDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -58,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CreateDeviceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomAttributeValue class CustomAttributeValue
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -76,12 +106,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class EndpointApp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EntityKey class EntityKey
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -124,12 +148,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListEndpointAppsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListGroupsResponse class ListGroupsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -214,12 +232,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class WipeDeviceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceResponse class WipeDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class WipeDeviceUserRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceUserResponse class WipeDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -236,6 +266,13 @@ module Google
end end
end end
class ApproveDeviceUserRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class ApproveDeviceUserResponse class ApproveDeviceUserResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -244,6 +281,13 @@ module Google
end end
end end
class BlockDeviceUserRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class BlockDeviceUserResponse class BlockDeviceUserResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -252,6 +296,13 @@ module Google
end end
end end
class CancelWipeDeviceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class CancelWipeDeviceResponse class CancelWipeDeviceResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -260,6 +311,13 @@ module Google
end end
end end
class CancelWipeDeviceUserRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class CancelWipeDeviceUserResponse class CancelWipeDeviceUserResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -287,6 +345,15 @@ module Google
end end
end end
class CreateDeviceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
property :device, as: 'device', class: Google::Apis::CloudidentityV1beta1::Device, decorator: Google::Apis::CloudidentityV1beta1::Device::Representation
end
end
class CustomAttributeValue class CustomAttributeValue
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -347,18 +414,6 @@ module Google
end end
end end
class EndpointApp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :name, as: 'name'
property :package_name, as: 'packageName'
collection :permissions, as: 'permissions'
property :version_code, as: 'versionCode'
property :version_name, as: 'versionName'
end
end
class EntityKey class EntityKey
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -428,15 +483,6 @@ module Google
end end
end end
class ListEndpointAppsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :endpoint_apps, as: 'endpointApps', class: Google::Apis::CloudidentityV1beta1::EndpointApp, decorator: Google::Apis::CloudidentityV1beta1::EndpointApp::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListGroupsResponse class ListGroupsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -570,6 +616,13 @@ module Google
end end
end end
class WipeDeviceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class WipeDeviceResponse class WipeDeviceResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -578,6 +631,13 @@ module Google
end end
end end
class WipeDeviceUserRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class WipeDeviceUserResponse class WipeDeviceUserResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -47,6 +47,681 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Cancels an unfinished device wipe. This operation can be used to cancel device
# wipe in the gap between the wipe operation returning success and the device
# being wiped.
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Device in format: `devices/`device_id``, where device_id is the unique
# ID assigned to the Device, and device_user_id is the unique ID assigned to the
# User.
# @param [Google::Apis::CloudidentityV1beta1::CancelWipeDeviceRequest] cancel_wipe_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::CloudidentityV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_wipe_device(name, cancel_wipe_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:cancelWipe', options)
command.request_representation = Google::Apis::CloudidentityV1beta1::CancelWipeDeviceRequest::Representation
command.request_object = cancel_wipe_device_request_object
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::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
# Creates a device. Only company-owned device may be created.
# @param [Google::Apis::CloudidentityV1beta1::CreateDeviceRequest] create_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::CloudidentityV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_device(create_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/devices', options)
command.request_representation = Google::Apis::CloudidentityV1beta1::CreateDeviceRequest::Representation
command.request_object = create_device_request_object
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::Operation
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified device.
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Device in format: `devices/`device_id``, where device_id is the unique
# ID assigned to the Device.
# @param [String] customer
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_device(name, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['customer'] = customer unless customer.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the specified device.
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Device in format: `devices/`device_id``, where device_id is the unique
# ID assigned to the Device.
# @param [String] customer
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Customer in format: `customers/`customer_id``, where customer_id is the
# customer to whom the device belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudidentityV1beta1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_device(name, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudidentityV1beta1::Device::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::Device
command.params['name'] = name unless name.nil?
command.query['customer'] = customer unless customer.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/Searches devices.
# @param [String] customer
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer.
# @param [String] filter
# Optional. Additional restrictions when fetching list of devices. [HC article
# link](https://support.google.com/a/answer/7549103)
# @param [String] order_by
# Optional. Order specification for devices in the response. Only one of the
# following field names may be used to specify the order: `create_time`, `
# last_sync_time`, `model`, `os_version`, `device_type` and `serial_number`. `
# desc` may be specified optionally to specify results to be sorted in
# descending order. Default order is ascending.
# @param [Fixnum] page_size
# Optional. The maximum number of Devices to return. If unspecified, at most 20
# Devices will be returned. The maximum value is 100; values above 100 will be
# coerced to 100.
# @param [String] page_token
# Optional. A page token, received from a previous `ListDevices` call. Provide
# this to retrieve the subsequent page. When paginating, all other parameters
# provided to `ListDevices` must match the call that provided the page token.
# @param [String] view
# Optional. The view to use for the List request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudidentityV1beta1::ListDevicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::ListDevicesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_devices(customer: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/devices', options)
command.response_representation = Google::Apis::CloudidentityV1beta1::ListDevicesResponse::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::ListDevicesResponse
command.query['customer'] = customer unless customer.nil?
command.query['filter'] = filter unless filter.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['view'] = view unless view.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Wipes all data on the specified device.
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
# where device_id is the unique ID assigned to the Device, and device_user_id is
# the unique ID assigned to the User.
# @param [Google::Apis::CloudidentityV1beta1::WipeDeviceRequest] wipe_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::CloudidentityV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def wipe_device(name, wipe_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:wipe', options)
command.request_representation = Google::Apis::CloudidentityV1beta1::WipeDeviceRequest::Representation
command.request_object = wipe_device_request_object
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::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
# Approves device to access user data.
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
# where device_id is the unique ID assigned to the Device, and device_user_id is
# the unique ID assigned to the User.
# @param [Google::Apis::CloudidentityV1beta1::ApproveDeviceUserRequest] approve_device_user_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::CloudidentityV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def approve_device_user(name, approve_device_user_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:approve', options)
command.request_representation = Google::Apis::CloudidentityV1beta1::ApproveDeviceUserRequest::Representation
command.request_object = approve_device_user_request_object
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::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
# Blocks device from accessing user data
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
# where device_id is the unique ID assigned to the Device, and device_user_id is
# the unique ID assigned to the User.
# @param [Google::Apis::CloudidentityV1beta1::BlockDeviceUserRequest] block_device_user_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::CloudidentityV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def block_device_user(name, block_device_user_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:block', options)
command.request_representation = Google::Apis::CloudidentityV1beta1::BlockDeviceUserRequest::Representation
command.request_object = block_device_user_request_object
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::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
# Cancels an unfinished user account wipe. This operation can be used to cancel
# device wipe in the gap between the wipe operation returning success and the
# device being wiped.
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
# where device_id is the unique ID assigned to the Device, and device_user_id is
# the unique ID assigned to the User.
# @param [Google::Apis::CloudidentityV1beta1::CancelWipeDeviceUserRequest] cancel_wipe_device_user_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::CloudidentityV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_wipe_device_user(name, cancel_wipe_device_user_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:cancelWipe', options)
command.request_representation = Google::Apis::CloudidentityV1beta1::CancelWipeDeviceUserRequest::Representation
command.request_object = cancel_wipe_device_user_request_object
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::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
# Deletes the specified DeviceUser. This also revokes the user's access to
# device data.
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
# where device_id is the unique ID assigned to the Device, and device_user_id is
# the unique ID assigned to the User.
# @param [String] customer
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_device_device_user(name, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['customer'] = customer unless customer.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the specified DeviceUser
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
# where device_id is the unique ID assigned to the Device, and device_user_id is
# the unique ID assigned to the User.
# @param [String] customer
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudidentityV1beta1::DeviceUser] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_device_device_user(name, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudidentityV1beta1::DeviceUser::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::DeviceUser
command.params['name'] = name unless name.nil?
command.query['customer'] = customer unless customer.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/Searches DeviceUsers.
# @param [String] parent
# Required. To list all DeviceUsers, set this to "devices/-". To list all
# DeviceUsers owned by a device, set this to the resource name of the device.
# Format: devices/`device`
# @param [String] customer
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# @param [String] filter
# Optional. Additional restrictions when fetching list of devices. [HC article](
# https://support.google.com/a/answer/7549103)
# @param [String] order_by
# Optional. Order specification for devices in the response.
# @param [Fixnum] page_size
# Optional. The maximum number of DeviceUsers to return. If unspecified, at most
# 5 DeviceUsers will be returned. The maximum value is 20; values above 20 will
# be coerced to 20.
# @param [String] page_token
# Optional. A page token, received from a previous `ListDeviceUsers` call.
# Provide this to retrieve the subsequent page. When paginating, all other
# parameters provided to `ListBooks` must match the call that provided the 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::CloudidentityV1beta1::ListDeviceUsersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::ListDeviceUsersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_device_device_users(parent, customer: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/deviceUsers', options)
command.response_representation = Google::Apis::CloudidentityV1beta1::ListDeviceUsersResponse::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::ListDeviceUsersResponse
command.params['parent'] = parent unless parent.nil?
command.query['customer'] = customer unless customer.nil?
command.query['filter'] = filter unless filter.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Looks up resource names of the DeviceUsers associated with the caller's
# credentials, as well as the properties provided in the request. This method
# must be called with end-user credentials with the scope: https://www.
# googleapis.com/auth/cloud-identity.devices.lookup If multiple properties are
# provided, only DeviceUsers having all of these properties are considered as
# matches - i.e. the query behaves like an AND. Different platforms require
# different amounts of information from the caller to ensure that the DeviceUser
# is uniquely identified. - iOS: No properties need to be passed, the caller's
# credentials are sufficient to identify the corresponding DeviceUser. - Android:
# Specifying the 'android_id' field is required. - Desktop: Specifying the '
# raw_resource_id' field is required.
# @param [String] parent
# Must be set to "devices/-/deviceUsers" to search across all DeviceUser
# belonging to the user.
# @param [String] android_id
# Android Id returned by [Settings.Secure#ANDROID_ID](https://developer.android.
# com/reference/android/provider/Settings.Secure.html#ANDROID_ID).
# @param [Fixnum] page_size
# The maximum number of DeviceUsers to return. If unspecified, at most 20
# DeviceUsers will be returned. The maximum value is 20; values above 20 will be
# coerced to 20.
# @param [String] page_token
# A page token, received from a previous `LookupDeviceUsers` call. Provide this
# to retrieve the subsequent page. When paginating, all other parameters
# provided to `LookupDeviceUsers` must match the call that provided the page
# token.
# @param [String] raw_resource_id
# Raw Resource Id used by Google Endpoint Verification. If the user is enrolled
# into Google Endpoint Verification, this id will be saved as the '
# device_resource_id' field in the following platform dependent files. Mac: ~/.
# secureConnect/context_aware_config.json Windows: C:\Users\%USERPROFILE%\.
# secureConnect\context_aware_config.json Linux: ~/.secureConnect/
# context_aware_config.json
# @param [String] user_id
# The user whose DeviceUser's resource name will be fetched. Must be set to 'me'
# to fetch the DeviceUser's resource name for the calling user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudidentityV1beta1::LookupSelfDeviceUsersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::LookupSelfDeviceUsersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def lookup_device_device_user(parent, android_id: nil, page_size: nil, page_token: nil, raw_resource_id: nil, user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}:lookup', options)
command.response_representation = Google::Apis::CloudidentityV1beta1::LookupSelfDeviceUsersResponse::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::LookupSelfDeviceUsersResponse
command.params['parent'] = parent unless parent.nil?
command.query['androidId'] = android_id unless android_id.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['rawResourceId'] = raw_resource_id unless raw_resource_id.nil?
command.query['userId'] = user_id unless user_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
# Wipes the user's account on a device.
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
# where device_id is the unique ID assigned to the Device, and device_user_id is
# the unique ID assigned to the User.
# @param [Google::Apis::CloudidentityV1beta1::WipeDeviceUserRequest] wipe_device_user_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::CloudidentityV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def wipe_device_user(name, wipe_device_user_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:wipe', options)
command.request_representation = Google::Apis::CloudidentityV1beta1::WipeDeviceUserRequest::Representation
command.request_object = wipe_device_user_request_object
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::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 client state for the device user
# @param [String] name
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the ClientState in format: `devices/`device_id`/deviceUsers/`device_user_id`
# /clientStates/`partner_id``, where device_id is the unique ID assigned to the
# Device, device_user_id is the unique ID assigned to the User and partner_id
# identifies the partner storing the data.
# @param [String] customer
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudidentityV1beta1::ClientState] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::ClientState]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_device_device_user_client_state(name, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudidentityV1beta1::ClientState::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::ClientState
command.params['name'] = name unless name.nil?
command.query['customer'] = customer unless customer.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the client state for the device user
# @param [String] name
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
# `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
# the partner storing the data.
# @param [Google::Apis::CloudidentityV1beta1::ClientState] client_state_object
# @param [String] customer
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
# of the customer. If you're using this API for your own organization, use `
# customers/my_customer` If you're using this API to manage another organization,
# use `customers/`customer_id``, where customer_id is the customer to whom the
# device belongs.
# @param [String] update_mask
# Optional. Comma-separated list of fully qualified names of fields to be
# updated. If not specified, all updatable fields in ClientState are updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudidentityV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_device_device_user_client_state(name, client_state_object = nil, customer: 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::CloudidentityV1beta1::ClientState::Representation
command.request_object = client_state_object
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudidentityV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['customer'] = customer unless customer.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a `Group`. # Creates a `Group`.
# @param [Google::Apis::CloudidentityV1beta1::Group] group_object # @param [Google::Apis::CloudidentityV1beta1::Group] group_object
# @param [String] initial_group_config # @param [String] initial_group_config
@ -83,9 +758,8 @@ module Google
# Deletes a `Group`. # Deletes a `Group`.
# @param [String] name # @param [String] name
# Required. The [resource name](https://cloud.google.com/apis/design/ # Required. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the `Group` to retrieve. Must be of the form `groups/`
# the `Group` to retrieve. # group_id``.
# Must be of the form `groups/`group_id``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -116,9 +790,8 @@ module Google
# Retrieves a `Group`. # Retrieves a `Group`.
# @param [String] name # @param [String] name
# Required. The [resource name](https://cloud.google.com/apis/design/ # Required. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the `Group` to retrieve. Must be of the form `groups/`
# the `Group` to retrieve. # group_id``.
# Must be of the form `groups/`group_id``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -148,22 +821,20 @@ module Google
# Lists the `Group`s under a customer or namespace. # Lists the `Group`s under a customer or namespace.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of results to return. # The maximum number of results to return. Note that the number of results
# Note that the number of results returned may be less than this value even # returned may be less than this value even if there are more available results.
# if there are more available results. To fetch all results, clients must # To fetch all results, clients must continue calling this method repeatedly
# continue calling this method repeatedly until the response no longer # until the response no longer contains a `next_page_token`. If unspecified,
# contains a `next_page_token`. # defaults to 200 for `View.BASIC` and to 50 for `View.FULL`. Must not be
# If unspecified, defaults to 200 for `View.BASIC` and to 50 for `View.FULL`. # greater than 1000 for `View.BASIC` or 500 for `View.FULL`.
# Must not be greater than 1000 for `View.BASIC` or 500 for `View.FULL`.
# @param [String] page_token # @param [String] page_token
# The `next_page_token` value returned from a previous list request, if any. # The `next_page_token` value returned from a previous list request, if any.
# @param [String] parent # @param [String] parent
# Required. The parent resource under which to list all `Group`s. # Required. The parent resource under which to list all `Group`s. Must be of the
# Must be of the form `identitysources/`identity_source_id`` for external- # form `identitysources/`identity_source_id`` for external- identity-mapped
# identity-mapped groups or `customers/`customer_id`` for Google Groups. # groups or `customers/`customer_id`` for Google Groups.
# @param [String] view # @param [String] view
# The level of detail to be returned. # The level of detail to be returned. If unspecified, defaults to `View.BASIC`.
# If unspecified, defaults to `View.BASIC`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -194,23 +865,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Looks up the [resource # Looks up the [resource name](https://cloud.google.com/apis/design/
# name](https://cloud.google.com/apis/design/resource_names) of a `Group` by # resource_names) of a `Group` by its `EntityKey`.
# its `EntityKey`.
# @param [String] group_key_id # @param [String] group_key_id
# The ID of the entity. # The ID of the entity. For Google-managed entities, the `id` must be the email
# For Google-managed entities, the `id` must be the email address of an # address of an existing group or user. For external-identity-mapped entities,
# existing group or user. # the `id` must be a string conforming to the Identity Source's requirements.
# For external-identity-mapped entities, the `id` must be a string conforming
# to the Identity Source's requirements.
# Must be unique within a `namespace`. # Must be unique within a `namespace`.
# @param [String] group_key_namespace # @param [String] group_key_namespace
# The namespace in which the entity exists. # The namespace in which the entity exists. If not specified, the `EntityKey`
# If not specified, the `EntityKey` represents a Google-managed entity such # represents a Google-managed entity such as a Google user or a Google Group. If
# as a Google user or a Google Group. # specified, the `EntityKey` represents an external-identity-mapped group. The
# If specified, the `EntityKey` represents an external-identity-mapped group. # namespace must correspond to an identity source created in Admin Console and
# The namespace must correspond to an identity source created in Admin # must be in the form of `identitysources/`identity_source_id`.
# Console and must be in the form of `identitysources/`identity_source_id`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -242,13 +909,11 @@ module Google
# Updates a `Group`. # Updates a `Group`.
# @param [String] name # @param [String] name
# Output only. The [resource name](https://cloud.google.com/apis/design/ # Output only. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the `Group`. Shall be of the form `groups/`group_id``.
# the `Group`.
# Shall be of the form `groups/`group_id``.
# @param [Google::Apis::CloudidentityV1beta1::Group] group_object # @param [Google::Apis::CloudidentityV1beta1::Group] group_object
# @param [String] update_mask # @param [String] update_mask
# Required. The fully-qualified names of fields to update. # Required. The fully-qualified names of fields to update. May only contain the
# May only contain the following fields: `display_name`, `description`. # following fields: `display_name`, `description`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -281,28 +946,22 @@ module Google
# Searches for `Group`s matching a specified query. # Searches for `Group`s matching a specified query.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of results to return. # The maximum number of results to return. Note that the number of results
# Note that the number of results returned may be less than this value even # returned may be less than this value even if there are more available results.
# if there are more available results. To fetch all results, clients must # To fetch all results, clients must continue calling this method repeatedly
# continue calling this method repeatedly until the response no longer # until the response no longer contains a `next_page_token`. If unspecified,
# contains a `next_page_token`. # defaults to 200 for `GroupView.BASIC` and to 50 for `GroupView.FULL`. Must not
# If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for # be greater than 1000 for `GroupView.BASIC` or 500 for `GroupView.FULL`.
# `GroupView.FULL`.
# Must not be greater than 1000 for `GroupView.BASIC` or 500 for
# `GroupView.FULL`.
# @param [String] page_token # @param [String] page_token
# The `next_page_token` value returned from a previous search request, if # The `next_page_token` value returned from a previous search request, if any.
# any.
# @param [String] query # @param [String] query
# Required. The search query. # Required. The search query. Must be specified in [Common Expression Language](
# Must be specified in [Common Expression # https://opensource.google/projects/cel). May only contain equality operators
# Language](https://opensource.google/projects/cel). May only contain # on the parent and inclusion operators on labels (e.g., `parent == 'customers/`
# equality operators on the parent and inclusion operators on labels (e.g., # customer_id`' && 'cloudidentity.googleapis.com/groups.discussion_forum' in
# `parent == 'customers/`customer_id`' && # labels`).
# 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`).
# @param [String] view # @param [String] view
# The level of detail to be returned. # The level of detail to be returned. If unspecified, defaults to `View.BASIC`.
# If unspecified, defaults to `View.BASIC`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -370,9 +1029,8 @@ module Google
# Deletes a `Membership`. # Deletes a `Membership`.
# @param [String] name # @param [String] name
# Required. The [resource name](https://cloud.google.com/apis/design/ # Required. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the `Membership` to delete. Must be of the form `groups/`
# the `Membership` to delete. # group_id`/memberships/`membership_id``.
# Must be of the form `groups/`group_id`/memberships/`membership_id``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -403,9 +1061,8 @@ module Google
# Retrieves a `Membership`. # Retrieves a `Membership`.
# @param [String] name # @param [String] name
# Required. The [resource name](https://cloud.google.com/apis/design/ # Required. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the `Membership` to retrieve. Must be of the form `groups/`
# the `Membership` to retrieve. # group_id`/memberships/`membership_id``.
# Must be of the form `groups/`group_id`/memberships/`membership_id``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -436,24 +1093,19 @@ module Google
# Lists the `Membership`s within a `Group`. # Lists the `Membership`s within a `Group`.
# @param [String] parent # @param [String] parent
# Required. The parent `Group` resource under which to lookup the `Membership` # Required. The parent `Group` resource under which to lookup the `Membership`
# name. # name. Must be of the form `groups/`group_id``.
# Must be of the form `groups/`group_id``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of results to return. # The maximum number of results to return. Note that the number of results
# Note that the number of results returned may be less than this value even # returned may be less than this value even if there are more available results.
# if there are more available results. To fetch all results, clients must # To fetch all results, clients must continue calling this method repeatedly
# continue calling this method repeatedly until the response no longer # until the response no longer contains a `next_page_token`. If unspecified,
# contains a `next_page_token`. # defaults to 200 for `GroupView.BASIC` and to 50 for `GroupView.FULL`. Must not
# If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for # be greater than 1000 for `GroupView.BASIC` or 500 for `GroupView.FULL`.
# `GroupView.FULL`.
# Must not be greater than 1000 for `GroupView.BASIC` or 500 for
# `GroupView.FULL`.
# @param [String] page_token # @param [String] page_token
# The `next_page_token` value returned from a previous search request, if # The `next_page_token` value returned from a previous search request, if any.
# any.
# @param [String] view # @param [String] view
# The level of detail to be returned. # The level of detail to be returned. If unspecified, defaults to `
# If unspecified, defaults to `MembershipView.BASIC`. # MembershipView.BASIC`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -484,27 +1136,22 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Looks up the [resource # Looks up the [resource name](https://cloud.google.com/apis/design/
# name](https://cloud.google.com/apis/design/resource_names) of a # resource_names) of a `Membership` by its `EntityKey`.
# `Membership` by its `EntityKey`.
# @param [String] parent # @param [String] parent
# Required. The parent `Group` resource under which to lookup the `Membership` # Required. The parent `Group` resource under which to lookup the `Membership`
# name. # name. Must be of the form `groups/`group_id``.
# Must be of the form `groups/`group_id``.
# @param [String] member_key_id # @param [String] member_key_id
# The ID of the entity. # The ID of the entity. For Google-managed entities, the `id` must be the email
# For Google-managed entities, the `id` must be the email address of an # address of an existing group or user. For external-identity-mapped entities,
# existing group or user. # the `id` must be a string conforming to the Identity Source's requirements.
# For external-identity-mapped entities, the `id` must be a string conforming
# to the Identity Source's requirements.
# Must be unique within a `namespace`. # Must be unique within a `namespace`.
# @param [String] member_key_namespace # @param [String] member_key_namespace
# The namespace in which the entity exists. # The namespace in which the entity exists. If not specified, the `EntityKey`
# If not specified, the `EntityKey` represents a Google-managed entity such # represents a Google-managed entity such as a Google user or a Google Group. If
# as a Google user or a Google Group. # specified, the `EntityKey` represents an external-identity-mapped group. The
# If specified, the `EntityKey` represents an external-identity-mapped group. # namespace must correspond to an identity source created in Admin Console and
# The namespace must correspond to an identity source created in Admin # must be in the form of `identitysources/`identity_source_id`.
# Console and must be in the form of `identitysources/`identity_source_id`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -537,9 +1184,8 @@ module Google
# Modifies the `MembershipRole`s of a `Membership`. # Modifies the `MembershipRole`s of a `Membership`.
# @param [String] name # @param [String] name
# Required. The [resource name](https://cloud.google.com/apis/design/ # Required. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of # resource_names) of the `Membership` whose roles are to be modified. Must be of
# the `Membership` whose roles are to be modified. # the form `groups/`group_id`/memberships/`membership_id``.
# Must be of the form `groups/`group_id`/memberships/`membership_id``.
# @param [Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesRequest] modify_membership_roles_request_object # @param [Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesRequest] modify_membership_roles_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-search/docs/guides/ # @see https://developers.google.com/cloud-search/docs/guides/
module CloudsearchV1 module CloudsearchV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200721' REVISION = '20200803'
# Index and serve your organization's data with Cloud Search # Index and serve your organization's data with Cloud Search
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search' AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'

File diff suppressed because it is too large Load Diff

View File

@ -48,15 +48,14 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Checks whether an item is accessible by specified principal. # Checks whether an item is accessible by specified principal. **Note:** This
# **Note:** This API requires an admin account to execute. # API requires an admin account to execute.
# @param [String] name # @param [String] name
# Item name, format: # Item name, format: datasources/`source_id`/items/`item_id`
# datasources/`source_id`/items/`item_id`
# @param [Google::Apis::CloudsearchV1::Principal] principal_object # @param [Google::Apis::CloudsearchV1::Principal] principal_object
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -87,12 +86,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Fetches the item whose viewUrl exactly matches that of the URL provided # Fetches the item whose viewUrl exactly matches that of the URL provided in the
# in the request. # request. **Note:** This API requires an admin account to execute.
# **Note:** This API requires an admin account to execute.
# @param [String] name # @param [String] name
# Source name, format: # Source name, format: datasources/`source_id`
# datasources/`source_id`
# @param [Google::Apis::CloudsearchV1::SearchItemsByViewUrlRequest] search_items_by_view_url_request_object # @param [Google::Apis::CloudsearchV1::SearchItemsByViewUrlRequest] search_items_by_view_url_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -123,17 +120,16 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# List all unmapped identities for a specific item. # List all unmapped identities for a specific item. **Note:** This API requires
# **Note:** This API requires an admin account to execute. # an admin account to execute.
# @param [String] parent # @param [String] parent
# The name of the item, in the following format: # The name of the item, in the following format: datasources/`source_id`/items/`
# datasources/`source_id`/items/`ID` # ID`
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of items to fetch in a request. # Maximum number of items to fetch in a request. Defaults to 100.
# Defaults to 100.
# @param [String] page_token # @param [String] page_token
# The next_page_token value returned from a previous List request, if any. # The next_page_token value returned from a previous List request, if any.
# @param [String] fields # @param [String] fields
@ -166,18 +162,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists names of items associated with an unmapped identity. # Lists names of items associated with an unmapped identity. **Note:** This API
# **Note:** This API requires an admin account to execute. # requires an admin account to execute.
# @param [String] parent # @param [String] parent
# The name of the identity source, in the following format: # The name of the identity source, in the following format: identitysources/`
# identitysources/`source_id`` # source_id``
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] group_resource_name # @param [String] group_resource_name
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of items to fetch in a request. # Maximum number of items to fetch in a request. Defaults to 100.
# Defaults to 100.
# @param [String] page_token # @param [String] page_token
# The next_page_token value returned from a previous List request, if any. # The next_page_token value returned from a previous List request, if any.
# @param [String] user_resource_name # @param [String] user_resource_name
@ -213,17 +208,16 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists unmapped user identities for an identity source. # Lists unmapped user identities for an identity source. **Note:** This API
# **Note:** This API requires an admin account to execute. # requires an admin account to execute.
# @param [String] parent # @param [String] parent
# The name of the identity source, in the following format: # The name of the identity source, in the following format: identitysources/`
# identitysources/`source_id` # source_id`
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of items to fetch in a request. # Maximum number of items to fetch in a request. Defaults to 100.
# Defaults to 100.
# @param [String] page_token # @param [String] page_token
# The next_page_token value returned from a previous List request, if any. # The next_page_token value returned from a previous List request, if any.
# @param [String] resolution_status_code # @param [String] resolution_status_code
@ -259,14 +253,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the schema of a data source. # Deletes the schema of a data source. **Note:** This API requires an admin or
# **Note:** This API requires an admin or service account to execute. # service account to execute.
# @param [String] name # @param [String] name
# Name of the data source to delete Schema. Format: # Name of the data source to delete Schema. Format: datasources/`source_id`
# datasources/`source_id`
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -295,14 +288,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the schema of a data source. # Gets the schema of a data source. **Note:** This API requires an admin or
# **Note:** This API requires an admin or service account to execute. # service account to execute.
# @param [String] name # @param [String] name
# Name of the data source to get Schema. Format: # Name of the data source to get Schema. Format: datasources/`source_id`
# datasources/`source_id`
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -331,13 +323,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the schema of a data source. This method does not perform # Updates the schema of a data source. This method does not perform incremental
# incremental updates to the schema. Instead, this method updates the schema # updates to the schema. Instead, this method updates the schema by overwriting
# by overwriting the entire schema. # the entire schema. **Note:** This API requires an admin or service account to
# **Note:** This API requires an admin or service account to execute. # execute.
# @param [String] name # @param [String] name
# Name of the data source to update Schema. Format: # Name of the data source to update Schema. Format: datasources/`source_id`
# datasources/`source_id`
# @param [Google::Apis::CloudsearchV1::UpdateSchemaRequest] update_schema_request_object # @param [Google::Apis::CloudsearchV1::UpdateSchemaRequest] update_schema_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -368,31 +359,27 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes Item resource for the # Deletes Item resource for the specified resource name. This API requires an
# specified resource name. This API requires an admin or service account # admin or service account to execute. The service account used is the one
# to execute. The service account used is the one whitelisted in the # whitelisted in the corresponding data source.
# corresponding data source.
# @param [String] name # @param [String] name
# Required. Name of the item to delete. # Required. Name of the item to delete. Format: datasources/`source_id`/items/`
# Format: datasources/`source_id`/items/`item_id` # item_id`
# @param [String] connector_name # @param [String] connector_name
# Name of connector making this call. # Name of connector making this call. Format: datasources/`source_id`/connectors/
# <br />Format: datasources/`source_id`/connectors/`ID` # `ID`
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] mode # @param [String] mode
# Required. The RequestMode for this request. # Required. The RequestMode for this request.
# @param [String] version # @param [String] version
# Required. The incremented version of the item to delete from the index. # Required. The incremented version of the item to delete from the index. The
# The indexing system stores the version from the datasource as a # indexing system stores the version from the datasource as a byte string and
# byte string and compares the Item version in the index # compares the Item version in the index to the version of the queued Item using
# to the version of the queued Item using lexical ordering. # lexical ordering. Cloud Search Indexing won't delete any queued item with a
# <br /><br /> # version value that is less than or equal to the version of the currently
# Cloud Search Indexing won't delete any queued item with # indexed item. The maximum length for this field is 1024 bytes.
# a version value that is less than or equal to
# the version of the currently indexed item.
# The maximum length for this field is 1024 bytes.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -424,13 +411,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes all items in a queue. This method is useful for deleting stale # Deletes all items in a queue. This method is useful for deleting stale items.
# items. # This API requires an admin or service account to execute. The service account
# This API requires an admin or service account to execute. The service # used is the one whitelisted in the corresponding data source.
# account used is the one whitelisted in the corresponding data source.
# @param [String] name # @param [String] name
# Name of the Data Source to delete items in a queue. # Name of the Data Source to delete items in a queue. Format: datasources/`
# Format: datasources/`source_id` # source_id`
# @param [Google::Apis::CloudsearchV1::DeleteQueueItemsRequest] delete_queue_items_request_object # @param [Google::Apis::CloudsearchV1::DeleteQueueItemsRequest] delete_queue_items_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -461,18 +447,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets Item resource by item name. # Gets Item resource by item name. This API requires an admin or service account
# This API requires an admin or service account to execute. The service # to execute. The service account used is the one whitelisted in the
# account used is the one whitelisted in the corresponding data source. # corresponding data source.
# @param [String] name # @param [String] name
# Name of the item to get info. # Name of the item to get info. Format: datasources/`source_id`/items/`item_id`
# Format: datasources/`source_id`/items/`item_id`
# @param [String] connector_name # @param [String] connector_name
# Name of connector making this call. # Name of connector making this call. Format: datasources/`source_id`/connectors/
# <br />Format: datasources/`source_id`/connectors/`ID` # `ID`
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -502,18 +487,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates Item ACL, metadata, and # Updates Item ACL, metadata, and content. It will insert the Item if it does
# content. It will insert the Item if it # not exist. This method does not support partial updates. Fields with no
# does not exist. # provided values are cleared out in the Cloud Search index. This API requires
# This method does not support partial updates. Fields with no provided # an admin or service account to execute. The service account used is the one
# values are cleared out in the Cloud Search index. # whitelisted in the corresponding data source.
# This API requires an admin or service account to execute. The service
# account used is the one whitelisted in the corresponding data source.
# @param [String] name # @param [String] name
# Name of the Item. Format: # Name of the Item. Format: datasources/`source_id`/items/`item_id` This is a
# datasources/`source_id`/items/`item_id` # required field. The maximum length is 1536 characters.
# <br />This is a required field.
# The maximum length is 1536 characters.
# @param [Google::Apis::CloudsearchV1::IndexItemRequest] index_item_request_object # @param [Google::Apis::CloudsearchV1::IndexItemRequest] index_item_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -544,43 +525,28 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all or a subset of Item resources. # Lists all or a subset of Item resources. This API requires an admin or service
# This API requires an admin or service account to execute. The service # account to execute. The service account used is the one whitelisted in the
# account used is the one whitelisted in the corresponding data source. # corresponding data source.
# @param [String] name # @param [String] name
# Name of the Data Source to list Items. Format: # Name of the Data Source to list Items. Format: datasources/`source_id`
# datasources/`source_id`
# @param [Boolean] brief # @param [Boolean] brief
# When set to true, the indexing system only populates the following fields: # When set to true, the indexing system only populates the following fields:
# name, # name, version, queue. metadata.hash, metadata.title, metadata.
# version, # sourceRepositoryURL, metadata.objectType, metadata.createTime, metadata.
# queue. # updateTime, metadata.contentLanguage, metadata.mimeType, structured_data.hash,
# metadata.hash, # content.hash, itemType, itemStatus.code, itemStatus.processingError.code,
# metadata.title, # itemStatus.repositoryError.type, If this value is false, then all the fields
# metadata.sourceRepositoryURL, # are populated in Item.
# metadata.objectType,
# metadata.createTime,
# metadata.updateTime,
# metadata.contentLanguage,
# metadata.mimeType,
# structured_data.hash,
# content.hash,
# itemType,
# itemStatus.code,
# itemStatus.processingError.code,
# itemStatus.repositoryError.type,
# <br />If this value is false, then all the fields are populated in Item.
# @param [String] connector_name # @param [String] connector_name
# Name of connector making this call. # Name of connector making this call. Format: datasources/`source_id`/connectors/
# <br />Format: datasources/`source_id`/connectors/`ID` # `ID`
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of items to fetch in a request. # Maximum number of items to fetch in a request. The max value is 1000 when
# The max value is 1000 when brief is true. The max value is 10 if brief # brief is true. The max value is 10 if brief is false. The default value is 10
# is false.
# <br />The default value is 10
# @param [String] page_token # @param [String] page_token
# The next_page_token value returned from a previous List request, if any. # The next_page_token value returned from a previous List request, if any.
# @param [String] fields # @param [String] fields
@ -615,34 +581,18 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Polls for unreserved items from the indexing queue and marks a # Polls for unreserved items from the indexing queue and marks a set as reserved,
# set as reserved, starting with items that have # starting with items that have the oldest timestamp from the highest priority
# the oldest timestamp from the highest priority # ItemStatus. The priority order is as follows: ERROR MODIFIED NEW_ITEM ACCEPTED
# ItemStatus. # Reserving items ensures that polling from other threads cannot create
# The priority order is as follows: <br /> # overlapping sets. After handling the reserved items, the client should put
# ERROR # items back into the unreserved state, either by calling index, or by calling
# <br /> # push with the type REQUEUE. Items automatically become available (unreserved)
# MODIFIED # after 4 hours even if no update or push method is called. This API requires an
# <br /> # admin or service account to execute. The service account used is the one
# NEW_ITEM # whitelisted in the corresponding data source.
# <br />
# ACCEPTED
# <br />
# Reserving items ensures that polling from other threads
# cannot create overlapping sets.
# After handling the reserved items, the client should put items back
# into the unreserved state, either by calling
# index,
# or by calling
# push with
# the type REQUEUE.
# Items automatically become available (unreserved) after 4 hours even if no
# update or push method is called.
# This API requires an admin or service account to execute. The service
# account used is the one whitelisted in the corresponding data source.
# @param [String] name # @param [String] name
# Name of the Data Source to poll items. # Name of the Data Source to poll items. Format: datasources/`source_id`
# Format: datasources/`source_id`
# @param [Google::Apis::CloudsearchV1::PollItemsRequest] poll_items_request_object # @param [Google::Apis::CloudsearchV1::PollItemsRequest] poll_items_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -673,15 +623,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Pushes an item onto a queue for later polling and updating. # Pushes an item onto a queue for later polling and updating. This API requires
# This API requires an admin or service account to execute. The service # an admin or service account to execute. The service account used is the one
# account used is the one whitelisted in the corresponding data source. # whitelisted in the corresponding data source.
# @param [String] name # @param [String] name
# Name of the item to # Name of the item to push into the indexing queue. Format: datasources/`
# push into the indexing queue.<br /> # source_id`/items/`ID` This is a required field. The maximum length is 1536
# Format: datasources/`source_id`/items/`ID` # characters.
# <br />This is a required field.
# The maximum length is 1536 characters.
# @param [Google::Apis::CloudsearchV1::PushItemRequest] push_item_request_object # @param [Google::Apis::CloudsearchV1::PushItemRequest] push_item_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -712,14 +660,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Unreserves all items from a queue, making them all eligible to be # Unreserves all items from a queue, making them all eligible to be polled. This
# polled. This method is useful for resetting the indexing queue # method is useful for resetting the indexing queue after a connector has been
# after a connector has been restarted. # restarted. This API requires an admin or service account to execute. The
# This API requires an admin or service account to execute. The service # service account used is the one whitelisted in the corresponding data source.
# account used is the one whitelisted in the corresponding data source.
# @param [String] name # @param [String] name
# Name of the Data Source to unreserve all items. # Name of the Data Source to unreserve all items. Format: datasources/`source_id`
# Format: datasources/`source_id`
# @param [Google::Apis::CloudsearchV1::UnreserveItemsRequest] unreserve_items_request_object # @param [Google::Apis::CloudsearchV1::UnreserveItemsRequest] unreserve_items_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -750,16 +696,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates an upload session for uploading item content. For items smaller # Creates an upload session for uploading item content. For items smaller than
# than 100 KB, it's easier to embed the content # 100 KB, it's easier to embed the content inline within an index request. This
# inline within # API requires an admin or service account to execute. The service account used
# an index request. # is the one whitelisted in the corresponding data source.
# This API requires an admin or service account to execute. The service
# account used is the one whitelisted in the corresponding data source.
# @param [String] name # @param [String] name
# Name of the Item to start a resumable upload. # Name of the Item to start a resumable upload. Format: datasources/`source_id`/
# Format: datasources/`source_id`/items/`item_id`. # items/`item_id`. The maximum length is 1536 bytes.
# The maximum length is 1536 bytes.
# @param [Google::Apis::CloudsearchV1::StartUploadItemRequest] start_upload_item_request_object # @param [Google::Apis::CloudsearchV1::StartUploadItemRequest] start_upload_item_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -790,30 +733,21 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Uploads media for indexing. # Uploads media for indexing. The upload endpoint supports direct and resumable
# The upload endpoint supports direct and resumable upload protocols and # upload protocols and is intended for large items that can not be [inlined
# is intended for large items that can not be # during index requests](https://developers.google.com/cloud-search/docs/
# [inlined during index requests](https://developers.google.com/cloud-search/ # reference/rest/v1/indexing.datasources.items#itemcontent). To index large
# docs/reference/rest/v1/indexing.datasources.items#itemcontent). # content: 1. Call indexing.datasources.items.upload with the resource name to
# To index large content: # begin an upload session and retrieve the UploadItemRef. 1. Call media.upload
# 1. Call # to upload the content using the same resource name from step 1. 1. Call
# indexing.datasources.items.upload # indexing.datasources.items.index to index the item. Populate the [ItemContent](
# with the resource name to begin an upload session and retrieve the # /cloud-search/docs/reference/rest/v1/indexing.datasources.items#ItemContent)
# UploadItemRef. # with the UploadItemRef from step 1. For additional information, see [Create a
# 1. Call media.upload to upload the content using the same resource name from # content connector using the REST API](https://developers.google.com/cloud-
# step 1. # search/docs/guides/content-connector#rest). **Note:** This API requires a
# 1. Call indexing.datasources.items.index # service account to execute.
# to index the item. Populate the
# [ItemContent](/cloud-search/docs/reference/rest/v1/indexing.datasources.
# items#ItemContent)
# with the UploadItemRef from step 1.
# For additional information, see
# [Create a content connector using the REST API](https://developers.google.com/
# cloud-search/docs/guides/content-connector#rest).
# **Note:** This API requires a service account to execute.
# @param [String] resource_name # @param [String] resource_name
# Name of the media that is being downloaded. See # Name of the media that is being downloaded. See ReadRequest.resource_name.
# ReadRequest.resource_name.
# @param [Google::Apis::CloudsearchV1::Media] media_object # @param [Google::Apis::CloudsearchV1::Media] media_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -854,9 +788,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -886,15 +819,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# The Cloud Search Query API provides the search method, which returns # The Cloud Search Query API provides the search method, which returns the most
# the most relevant results from a user query. The results can come from # relevant results from a user query. The results can come from G Suite Apps,
# G Suite Apps, such as Gmail or Google Drive, or they can come from data # such as Gmail or Google Drive, or they can come from data that you have
# that you have indexed from a third party. # indexed from a third party. **Note:** This API requires a standard end user
# **Note:** This API requires a standard end user account to execute. # account to execute. A service account can't perform Query API requests
# A service account can't perform Query API requests directly; to use a # directly; to use a service account to perform queries, set up [G Suite domain-
# service account to perform queries, set up [G Suite domain-wide delegation # wide delegation of authority](https://developers.google.com/cloud-search/docs/
# of # guides/delegation/).
# authority](https://developers.google.com/cloud-search/docs/guides/delegation/).
# @param [Google::Apis::CloudsearchV1::SearchRequest] search_request_object # @param [Google::Apis::CloudsearchV1::SearchRequest] search_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -924,12 +856,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Provides suggestions for autocompleting the query. # Provides suggestions for autocompleting the query. **Note:** This API requires
# **Note:** This API requires a standard end user account to execute. # a standard end user account to execute. A service account can't perform Query
# A service account can't perform Query API requests directly; to use a # API requests directly; to use a service account to perform queries, set up [G
# service account to perform queries, set up [G Suite domain-wide delegation # Suite domain-wide delegation of authority](https://developers.google.com/cloud-
# of # search/docs/guides/delegation/).
# authority](https://developers.google.com/cloud-search/docs/guides/delegation/).
# @param [Google::Apis::CloudsearchV1::SuggestRequest] suggest_request_object # @param [Google::Apis::CloudsearchV1::SuggestRequest] suggest_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -959,40 +890,35 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns list of sources that user can use for Search and Suggest APIs. # Returns list of sources that user can use for Search and Suggest APIs. **Note:*
# **Note:** This API requires a standard end user account to execute. # * This API requires a standard end user account to execute. A service account
# A service account can't perform Query API requests directly; to use a # can't perform Query API requests directly; to use a service account to perform
# service account to perform queries, set up [G Suite domain-wide delegation # queries, set up [G Suite domain-wide delegation of authority](https://
# of # developers.google.com/cloud-search/docs/guides/delegation/).
# authority](https://developers.google.com/cloud-search/docs/guides/delegation/).
# @param [String] page_token # @param [String] page_token
# Number of sources to return in the response. # Number of sources to return in the response.
# @param [Boolean] request_options_debug_options_enable_debugging # @param [Boolean] request_options_debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] request_options_language_code # @param [String] request_options_language_code
# The BCP-47 language code, such as "en-US" or "sr-Latn". # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
# For more information, see # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. # translations. Set this field using the language set in browser or for the page.
# For translations. # In the event that the user's language preference is known, set this field to
# Set this field using the language set in browser or for the page. In the # the known user language. When specified, the documents in search results are
# event that the user's language preference is known, set this field to the # biased towards the specified language. The suggest API does not use this
# known user language. # parameter. Instead, suggest autocompletes only based on characters in the
# When specified, the documents in search results are biased towards the # query.
# specified language.
# The suggest API does not use this parameter. Instead, suggest autocompletes
# only based on characters in the query.
# @param [String] request_options_search_application_id # @param [String] request_options_search_application_id
# The ID generated when you create a search application using the # The ID generated when you create a search application using the [admin console]
# [admin console](https://support.google.com/a/answer/9043922). # (https://support.google.com/a/answer/9043922).
# @param [String] request_options_time_zone # @param [String] request_options_time_zone
# Current user's time zone id, such as "America/Los_Angeles" or # Current user's time zone id, such as "America/Los_Angeles" or "Australia/
# "Australia/Sydney". These IDs are defined by # Sydney". These IDs are defined by [Unicode Common Locale Data Repository (CLDR)
# [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/) # ](http://cldr.unicode.org/) project, and currently available in the file [
# project, and currently available in the file # timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml).
# [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). # This field is used to correctly interpret date and time queries. If this field
# This field is used to correctly interpret date and time queries. # is not specified, the default time zone (UTC) is used.
# If this field is not specified, the default time zone (UTC) is used.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1024,8 +950,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a datasource. # Creates a datasource. **Note:** This API requires an admin account to execute.
# **Note:** This API requires an admin account to execute.
# @param [Google::Apis::CloudsearchV1::DataSource] data_source_object # @param [Google::Apis::CloudsearchV1::DataSource] data_source_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1055,14 +980,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a datasource. # Deletes a datasource. **Note:** This API requires an admin account to execute.
# **Note:** This API requires an admin account to execute.
# @param [String] name # @param [String] name
# Name of the datasource. # Name of the datasource. Format: datasources/`source_id`.
# Format: datasources/`source_id`.
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1091,14 +1014,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets a datasource. # Gets a datasource. **Note:** This API requires an admin account to execute.
# **Note:** This API requires an admin account to execute.
# @param [String] name # @param [String] name
# Name of the datasource resource. # Name of the datasource resource. Format: datasources/`source_id`.
# Format: datasources/`source_id`.
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1127,15 +1048,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists datasources. # Lists datasources. **Note:** This API requires an admin account to execute.
# **Note:** This API requires an admin account to execute.
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of datasources to fetch in a request. # Maximum number of datasources to fetch in a request. The max value is 100. The
# The max value is 100. # default value is 10
# <br />The default value is 10
# @param [String] page_token # @param [String] page_token
# Starting index of the results. # Starting index of the results.
# @param [String] fields # @param [String] fields
@ -1167,12 +1086,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates a datasource. # Updates a datasource. **Note:** This API requires an admin account to execute.
# **Note:** This API requires an admin account to execute.
# @param [String] name # @param [String] name
# Name of the datasource resource. # Name of the datasource resource. Format: datasources/`source_id`. The name is
# Format: datasources/`source_id`. # ignored when creating a datasource.
# <br />The name is ignored when creating a datasource.
# @param [Google::Apis::CloudsearchV1::UpdateDataSourceRequest] update_data_source_request_object # @param [Google::Apis::CloudsearchV1::UpdateDataSourceRequest] update_data_source_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1203,8 +1120,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a search application. # Creates a search application. **Note:** This API requires an admin account to
# **Note:** This API requires an admin account to execute. # execute.
# @param [Google::Apis::CloudsearchV1::SearchApplication] search_application_object # @param [Google::Apis::CloudsearchV1::SearchApplication] search_application_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1234,14 +1151,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a search application. # Deletes a search application. **Note:** This API requires an admin account to
# **Note:** This API requires an admin account to execute. # execute.
# @param [String] name # @param [String] name
# The name of the search application to be deleted. # The name of the search application to be deleted. Format: applications/`
# <br />Format: applications/`application_id`. # application_id`.
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1270,14 +1187,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the specified search application. # Gets the specified search application. **Note:** This API requires an admin
# **Note:** This API requires an admin account to execute. # account to execute.
# @param [String] name # @param [String] name
# Name of the search application. # Name of the search application. Format: searchapplications/`application_id`.
# <br />Format: searchapplications/`application_id`.
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1306,16 +1222,16 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all search applications. # Lists all search applications. **Note:** This API requires an admin account to
# **Note:** This API requires an admin account to execute. # execute.
# @param [Boolean] debug_options_enable_debugging # @param [Boolean] debug_options_enable_debugging
# If you are asked by Google to help with debugging, set this field. # If you are asked by Google to help with debugging, set this field. Otherwise,
# Otherwise, ignore this field. # ignore this field.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of items to return. # The maximum number of items to return.
# @param [String] page_token # @param [String] page_token
# The next_page_token value returned from a previous List request, if any. # The next_page_token value returned from a previous List request, if any. The
# <br/> The default value is 10 # default value is 10
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1346,11 +1262,10 @@ module Google
end end
# Resets a search application to default settings. This will return an empty # Resets a search application to default settings. This will return an empty
# response. # response. **Note:** This API requires an admin account to execute.
# **Note:** This API requires an admin account to execute.
# @param [String] name # @param [String] name
# The name of the search application to be reset. # The name of the search application to be reset. Format: applications/`
# <br />Format: applications/`application_id`. # application_id`.
# @param [Google::Apis::CloudsearchV1::ResetSearchApplicationRequest] reset_search_application_request_object # @param [Google::Apis::CloudsearchV1::ResetSearchApplicationRequest] reset_search_application_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1381,11 +1296,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates a search application. # Updates a search application. **Note:** This API requires an admin account to
# **Note:** This API requires an admin account to execute. # execute.
# @param [String] name # @param [String] name
# Name of the Search Application. # Name of the Search Application. Format: searchapplications/`application_id`.
# <br />Format: searchapplications/`application_id`.
# @param [Google::Apis::CloudsearchV1::SearchApplication] search_application_object # @param [Google::Apis::CloudsearchV1::SearchApplication] search_application_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1416,10 +1330,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets indexed item statistics aggreggated across all data sources. This # Gets indexed item statistics aggreggated across all data sources. This API
# API only returns statistics for previous dates; it doesn't return # only returns statistics for previous dates; it doesn't return statistics for
# statistics for the current day. # the current day. **Note:** This API requires a standard end user account to
# **Note:** This API requires a standard end user account to execute. # execute.
# @param [Fixnum] from_date_day # @param [Fixnum] from_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month. # Day of month. Must be from 1 to 31 and valid for the year and month.
# @param [Fixnum] from_date_month # @param [Fixnum] from_date_month
@ -1464,8 +1378,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get the query statistics for customer. # Get the query statistics for customer. **Note:** This API requires a standard
# **Note:** This API requires a standard end user account to execute. # end user account to execute.
# @param [Fixnum] from_date_day # @param [Fixnum] from_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month. # Day of month. Must be from 1 to 31 and valid for the year and month.
# @param [Fixnum] from_date_month # @param [Fixnum] from_date_month
@ -1511,8 +1425,8 @@ module Google
end end
# Get the # of search sessions, % of successful sessions with a click query # Get the # of search sessions, % of successful sessions with a click query
# statistics for customer. # statistics for customer. **Note:** This API requires a standard end user
# **Note:** This API requires a standard end user account to execute. # account to execute.
# @param [Fixnum] from_date_day # @param [Fixnum] from_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month. # Day of month. Must be from 1 to 31 and valid for the year and month.
# @param [Fixnum] from_date_month # @param [Fixnum] from_date_month
@ -1557,8 +1471,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get the users statistics for customer. # Get the users statistics for customer. **Note:** This API requires a standard
# **Note:** This API requires a standard end user account to execute. # end user account to execute.
# @param [Fixnum] from_date_day # @param [Fixnum] from_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month. # Day of month. Must be from 1 to 31 and valid for the year and month.
# @param [Fixnum] from_date_month # @param [Fixnum] from_date_month
@ -1603,11 +1517,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets indexed item statistics for a single data source. # Gets indexed item statistics for a single data source. **Note:** This API
# **Note:** This API requires a standard end user account to execute. # requires a standard end user account to execute.
# @param [String] name # @param [String] name
# The resource id of the data source to retrieve statistics for, # The resource id of the data source to retrieve statistics for, in the
# in the following format: "datasources/`source_id`" # following format: "datasources/`source_id`"
# @param [Fixnum] from_date_day # @param [Fixnum] from_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month. # Day of month. Must be from 1 to 31 and valid for the year and month.
# @param [Fixnum] from_date_month # @param [Fixnum] from_date_month
@ -1653,11 +1567,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get the query statistics for search application. # Get the query statistics for search application. **Note:** This API requires a
# **Note:** This API requires a standard end user account to execute. # standard end user account to execute.
# @param [String] name # @param [String] name
# The resource id of the search application query stats, in the following # The resource id of the search application query stats, in the following format:
# format: searchapplications/`application_id` # searchapplications/`application_id`
# @param [Fixnum] from_date_day # @param [Fixnum] from_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month. # Day of month. Must be from 1 to 31 and valid for the year and month.
# @param [Fixnum] from_date_month # @param [Fixnum] from_date_month
@ -1704,8 +1618,8 @@ module Google
end end
# Get the # of search sessions, % of successful sessions with a click query # Get the # of search sessions, % of successful sessions with a click query
# statistics for search application. # statistics for search application. **Note:** This API requires a standard end
# **Note:** This API requires a standard end user account to execute. # user account to execute.
# @param [String] name # @param [String] name
# The resource id of the search application session stats, in the following # The resource id of the search application session stats, in the following
# format: searchapplications/`application_id` # format: searchapplications/`application_id`
@ -1754,8 +1668,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get the users statistics for search application. # Get the users statistics for search application. **Note:** This API requires a
# **Note:** This API requires a standard end user account to execute. # standard end user account to execute.
# @param [String] name # @param [String] name
# The resource id of the search application session stats, in the following # The resource id of the search application session stats, in the following
# format: searchapplications/`application_id` # format: searchapplications/`application_id`

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/ # @see https://cloud.google.com/dialogflow/
module DialogflowV2 module DialogflowV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200801' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,26 @@ module Google
module Apis module Apis
module DialogflowV2 module DialogflowV2
# Metadata associated with the long running operation for Versions.CreateVersion.
class GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
include Google::Apis::Core::Hashable
# Name of the created version. Format: `projects//locations//agents//flows//
# versions/`.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version = args[:version] if args.key?(:version)
end
end
# The response message for Agents.ExportAgent. # The response message for Agents.ExportAgent.
class GoogleCloudDialogflowCxV3beta1ExportAgentResponse class GoogleCloudDialogflowCxV3beta1ExportAgentResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -372,8 +392,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment class GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Whether the playback of this segment can be interrupted by the end user's # Output only. Whether the playback of this segment can be interrupted by the
# speech and the client should then start the next Dialogflow request. # end user's speech and the client should then start the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption` # Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean] # @return [Boolean]
attr_accessor :allow_playback_interruption attr_accessor :allow_playback_interruption
@ -435,8 +455,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio class GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Whether the playback of this message can be interrupted by the end user's # Output only. Whether the playback of this message can be interrupted by the
# speech and the client can then starts the next Dialogflow request. # end user's speech and the client can then starts the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption` # Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean] # @return [Boolean]
attr_accessor :allow_playback_interruption attr_accessor :allow_playback_interruption
@ -463,8 +483,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessageText class GoogleCloudDialogflowCxV3beta1ResponseMessageText
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Whether the playback of this message can be interrupted by the end user's # Output only. Whether the playback of this message can be interrupted by the
# speech and the client can then starts the next Dialogflow request. # end user's speech and the client can then starts the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption` # Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean] # @return [Boolean]
attr_accessor :allow_playback_interruption attr_accessor :allow_playback_interruption
@ -6807,6 +6827,26 @@ module Google
end end
end end
# Metadata associated with the long running operation for Versions.CreateVersion.
class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata
include Google::Apis::Core::Hashable
# Name of the created version. Format: `projects//locations//agents//flows//
# versions/`.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version = args[:version] if args.key?(:version)
end
end
# The response message for Agents.ExportAgent. # The response message for Agents.ExportAgent.
class GoogleCloudDialogflowV3alpha1ExportAgentResponse class GoogleCloudDialogflowV3alpha1ExportAgentResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module DialogflowV2 module DialogflowV2
class GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1ExportAgentResponse class GoogleCloudDialogflowCxV3beta1ExportAgentResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1078,6 +1084,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV3alpha1ExportAgentResponse class GoogleCloudDialogflowV3alpha1ExportAgentResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1114,6 +1126,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
end
end
class GoogleCloudDialogflowCxV3beta1ExportAgentResponse class GoogleCloudDialogflowCxV3beta1ExportAgentResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2946,6 +2965,13 @@ module Google
end end
end end
class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
end
end
class GoogleCloudDialogflowV3alpha1ExportAgentResponse class GoogleCloudDialogflowV3alpha1ExportAgentResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/ # @see https://cloud.google.com/dialogflow/
module DialogflowV2beta1 module DialogflowV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20200801' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,26 @@ module Google
module Apis module Apis
module DialogflowV2beta1 module DialogflowV2beta1
# Metadata associated with the long running operation for Versions.CreateVersion.
class GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
include Google::Apis::Core::Hashable
# Name of the created version. Format: `projects//locations//agents//flows//
# versions/`.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version = args[:version] if args.key?(:version)
end
end
# The response message for Agents.ExportAgent. # The response message for Agents.ExportAgent.
class GoogleCloudDialogflowCxV3beta1ExportAgentResponse class GoogleCloudDialogflowCxV3beta1ExportAgentResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -372,8 +392,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment class GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Whether the playback of this segment can be interrupted by the end user's # Output only. Whether the playback of this segment can be interrupted by the
# speech and the client should then start the next Dialogflow request. # end user's speech and the client should then start the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption` # Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean] # @return [Boolean]
attr_accessor :allow_playback_interruption attr_accessor :allow_playback_interruption
@ -435,8 +455,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio class GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Whether the playback of this message can be interrupted by the end user's # Output only. Whether the playback of this message can be interrupted by the
# speech and the client can then starts the next Dialogflow request. # end user's speech and the client can then starts the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption` # Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean] # @return [Boolean]
attr_accessor :allow_playback_interruption attr_accessor :allow_playback_interruption
@ -463,8 +483,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessageText class GoogleCloudDialogflowCxV3beta1ResponseMessageText
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Whether the playback of this message can be interrupted by the end user's # Output only. Whether the playback of this message can be interrupted by the
# speech and the client can then starts the next Dialogflow request. # end user's speech and the client can then starts the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption` # Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean] # @return [Boolean]
attr_accessor :allow_playback_interruption attr_accessor :allow_playback_interruption
@ -7131,6 +7151,26 @@ module Google
end end
end end
# Metadata associated with the long running operation for Versions.CreateVersion.
class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata
include Google::Apis::Core::Hashable
# Name of the created version. Format: `projects//locations//agents//flows//
# versions/`.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version = args[:version] if args.key?(:version)
end
end
# The response message for Agents.ExportAgent. # The response message for Agents.ExportAgent.
class GoogleCloudDialogflowV3alpha1ExportAgentResponse class GoogleCloudDialogflowV3alpha1ExportAgentResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module DialogflowV2beta1 module DialogflowV2beta1
class GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1ExportAgentResponse class GoogleCloudDialogflowCxV3beta1ExportAgentResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1126,6 +1132,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV3alpha1ExportAgentResponse class GoogleCloudDialogflowV3alpha1ExportAgentResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1162,6 +1174,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
end
end
class GoogleCloudDialogflowCxV3beta1ExportAgentResponse class GoogleCloudDialogflowCxV3beta1ExportAgentResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -3075,6 +3094,13 @@ module Google
end end
end end
class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
end
end
class GoogleCloudDialogflowV3alpha1ExportAgentResponse class GoogleCloudDialogflowV3alpha1ExportAgentResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/ # @see https://cloud.google.com/dlp/docs/
module DlpV2 module DlpV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200805' REVISION = '20200809'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -60,7 +60,8 @@ module Google
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] parent # @param [String] parent
# The parent resource name. - Format:locations/[LOCATION-ID] # The parent resource name. The format of this value is as follows: locations/
# LOCATION_ID
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -94,7 +95,8 @@ module Google
# Returns a list of the sensitive information types that the DLP API supports. # Returns a list of the sensitive information types that the DLP API supports.
# See https://cloud.google.com/dlp/docs/infotypes-reference to learn more. # See https://cloud.google.com/dlp/docs/infotypes-reference to learn more.
# @param [String] parent # @param [String] parent
# The parent resource name. - Format:locations/[LOCATION-ID] # The parent resource name. The format of this value is as follows: locations/
# LOCATION_ID
# @param [String] filter # @param [String] filter
# filter to only return infoTypes supported by certain parts of the API. # filter to only return infoTypes supported by certain parts of the API.
# Defaults to supported_by=INSPECT. # Defaults to supported_by=INSPECT.
@ -137,9 +139,17 @@ module Google
# identifying content, images, and storage. See https://cloud.google.com/dlp/ # identifying content, images, and storage. See https://cloud.google.com/dlp/
# docs/creating-templates-deid to learn more. # docs/creating-templates-deid to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -239,9 +249,17 @@ module Google
# Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating- # Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-
# templates-deid to learn more. # templates-deid to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -329,9 +347,17 @@ module Google
# inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/ # inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/
# creating-templates to learn more. # creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -431,9 +457,17 @@ module Google
# Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating- # Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-
# templates to learn more. # templates to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -521,9 +555,17 @@ module Google
# identifying content, images, and storage. See https://cloud.google.com/dlp/ # identifying content, images, and storage. See https://cloud.google.com/dlp/
# docs/creating-templates-deid to learn more. # docs/creating-templates-deid to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -623,9 +665,17 @@ module Google
# Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating- # Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-
# templates-deid to learn more. # templates-deid to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -713,9 +763,17 @@ module Google
# inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/ # inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/
# creating-templates to learn more. # creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -815,9 +873,17 @@ module Google
# Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating- # Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-
# templates to learn more. # templates to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -904,9 +970,17 @@ module Google
# Creates a pre-built stored infoType to be used for inspection. See https:// # Creates a pre-built stored infoType to be used for inspection. See https://
# cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. # cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1006,9 +1080,17 @@ module Google
# Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored- # Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-
# infotypes to learn more. # infotypes to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -1096,9 +1178,17 @@ module Google
# Creates a pre-built stored infoType to be used for inspection. See https:// # Creates a pre-built stored infoType to be used for inspection. See https://
# cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. # cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1198,9 +1288,17 @@ module Google
# Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored- # Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-
# infotypes to learn more. # infotypes to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -1292,8 +1390,14 @@ module Google
# detectors to run. By default this may be all types, but may change over time # detectors to run. By default this may be all types, but may change over time
# as detectors are updated. # as detectors are updated.
# @param [String] parent # @param [String] parent
# Parent resource name. - Format:projects/[PROJECT-ID] - Format:projects/[ # Parent resource name. The format of this value varies depending on whether you
# PROJECT-ID]/locations/[LOCATION-ID] # have [specified a processing location](/dlp/docs/specifying-location): +
# Projects scope, location specified: `projects/`PROJECT_ID`/locations/`
# LOCATION_ID + Projects scope, no location specified (defaults to global): `
# projects/`PROJECT_ID The following example `parent` string specifies a parent
# project with the identifier `example-project`, and specifies the `europe-west3`
# location for processing data: parent=projects/example-project/locations/
# europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1331,8 +1435,14 @@ module Google
# as detectors are updated. For how to guides, see https://cloud.google.com/dlp/ # as detectors are updated. For how to guides, see https://cloud.google.com/dlp/
# docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, # docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
# @param [String] parent # @param [String] parent
# Parent resource name. - Format:projects/[PROJECT-ID] - Format:projects/[ # Parent resource name. The format of this value varies depending on whether you
# PROJECT-ID]/locations/[LOCATION-ID] # have [specified a processing location](/dlp/docs/specifying-location): +
# Projects scope, location specified: `projects/`PROJECT_ID`/locations/`
# LOCATION_ID + Projects scope, no location specified (defaults to global): `
# projects/`PROJECT_ID The following example `parent` string specifies a parent
# project with the identifier `example-project`, and specifies the `europe-west3`
# location for processing data: parent=projects/example-project/locations/
# europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1367,8 +1477,14 @@ module Google
# com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to # com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# projects/[PROJECT-ID]/locations/[LOCATION-ID] # whether you have [specified a processing location](/dlp/docs/specifying-
# location): + Projects scope, location specified: `projects/`PROJECT_ID`/
# locations/`LOCATION_ID + Projects scope, no location specified (defaults to
# global): `projects/`PROJECT_ID The following example `parent` string specifies
# a parent project with the identifier `example-project`, and specifies the `
# europe-west3` location for processing data: parent=projects/example-project/
# locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1403,9 +1519,17 @@ module Google
# identifying content, images, and storage. See https://cloud.google.com/dlp/ # identifying content, images, and storage. See https://cloud.google.com/dlp/
# docs/creating-templates-deid to learn more. # docs/creating-templates-deid to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1505,9 +1629,17 @@ module Google
# Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating- # Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-
# templates-deid to learn more. # templates-deid to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -1634,8 +1766,14 @@ module Google
# detectors to run. By default this may be all types, but may change over time # detectors to run. By default this may be all types, but may change over time
# as detectors are updated. # as detectors are updated.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# projects/[PROJECT-ID]/locations/[LOCATION-ID] # whether you have [specified a processing location](/dlp/docs/specifying-
# location): + Projects scope, location specified: `projects/`PROJECT_ID`/
# locations/`LOCATION_ID + Projects scope, no location specified (defaults to
# global): `projects/`PROJECT_ID The following example `parent` string specifies
# a parent project with the identifier `example-project`, and specifies the `
# europe-west3` location for processing data: parent=projects/example-project/
# locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1735,8 +1873,14 @@ module Google
# cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/ # cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
# docs/compute-risk-analysis to learn more. # docs/compute-risk-analysis to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# projects/[PROJECT-ID]/locations/[LOCATION-ID] # whether you have [specified a processing location](/dlp/docs/specifying-
# location): + Projects scope, location specified: `projects/`PROJECT_ID`/
# locations/`LOCATION_ID + Projects scope, no location specified (defaults to
# global): `projects/`PROJECT_ID The following example `parent` string specifies
# a parent project with the identifier `example-project`, and specifies the `
# europe-west3` location for processing data: parent=projects/example-project/
# locations/europe-west3
# @param [String] filter # @param [String] filter
# Allows filtering. Supported syntax: * Filter expressions are made up of one or # Allows filtering. Supported syntax: * Filter expressions are made up of one or
# more restrictions. * Restrictions can be combined by `AND` or `OR` logical # more restrictions. * Restrictions can be combined by `AND` or `OR` logical
@ -1809,8 +1953,14 @@ module Google
# choose what detectors to run. By default this may be all types, but may change # choose what detectors to run. By default this may be all types, but may change
# over time as detectors are updated. # over time as detectors are updated.
# @param [String] parent # @param [String] parent
# The parent resource name. - Format:projects/[PROJECT-ID] - Format:projects/[ # Parent resource name. The format of this value varies depending on whether you
# PROJECT-ID]/locations/[LOCATION-ID] # have [specified a processing location](/dlp/docs/specifying-location): +
# Projects scope, location specified: `projects/`PROJECT_ID`/locations/`
# LOCATION_ID + Projects scope, no location specified (defaults to global): `
# projects/`PROJECT_ID The following example `parent` string specifies a parent
# project with the identifier `example-project`, and specifies the `europe-west3`
# location for processing data: parent=projects/example-project/locations/
# europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1845,9 +1995,17 @@ module Google
# inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/ # inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/
# creating-templates to learn more. # creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1947,9 +2105,17 @@ module Google
# Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating- # Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-
# templates to learn more. # templates to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -2072,8 +2238,14 @@ module Google
# sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/ # sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/
# creating-job-triggers to learn more. # creating-job-triggers to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# projects/[PROJECT-ID]/locations/[LOCATION-ID] # whether you have [specified a processing location](/dlp/docs/specifying-
# location): + Projects scope, location specified: `projects/`PROJECT_ID`/
# locations/`LOCATION_ID + Projects scope, no location specified (defaults to
# global): `projects/`PROJECT_ID The following example `parent` string specifies
# a parent project with the identifier `example-project`, and specifies the `
# europe-west3` location for processing data: parent=projects/example-project/
# locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2171,8 +2343,14 @@ module Google
# Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job- # Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-
# triggers to learn more. # triggers to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# projects/[PROJECT-ID]/locations/[LOCATION-ID] # whether you have [specified a processing location](/dlp/docs/specifying-
# location): + Projects scope, location specified: `projects/`PROJECT_ID`/
# locations/`LOCATION_ID + Projects scope, no location specified (defaults to
# global): `projects/`PROJECT_ID The following example `parent` string specifies
# a parent project with the identifier `example-project`, and specifies the `
# europe-west3` location for processing data: parent=projects/example-project/
# locations/europe-west3
# @param [String] filter # @param [String] filter
# Allows filtering. Supported syntax: * Filter expressions are made up of one or # Allows filtering. Supported syntax: * Filter expressions are made up of one or
# more restrictions. * Restrictions can be combined by `AND` or `OR` logical # more restrictions. * Restrictions can be combined by `AND` or `OR` logical
@ -2279,8 +2457,14 @@ module Google
# detectors to run. By default this may be all types, but may change over time # detectors to run. By default this may be all types, but may change over time
# as detectors are updated. # as detectors are updated.
# @param [String] parent # @param [String] parent
# Parent resource name. - Format:projects/[PROJECT-ID] - Format:projects/[ # Parent resource name. The format of this value varies depending on whether you
# PROJECT-ID]/locations/[LOCATION-ID] # have [specified a processing location](/dlp/docs/specifying-location): +
# Projects scope, location specified: `projects/`PROJECT_ID`/locations/`
# LOCATION_ID + Projects scope, no location specified (defaults to global): `
# projects/`PROJECT_ID The following example `parent` string specifies a parent
# project with the identifier `example-project`, and specifies the `europe-west3`
# location for processing data: parent=projects/example-project/locations/
# europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2318,8 +2502,14 @@ module Google
# as detectors are updated. For how to guides, see https://cloud.google.com/dlp/ # as detectors are updated. For how to guides, see https://cloud.google.com/dlp/
# docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, # docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
# @param [String] parent # @param [String] parent
# Parent resource name. - Format:projects/[PROJECT-ID] - Format:projects/[ # Parent resource name. The format of this value varies depending on whether you
# PROJECT-ID]/locations/[LOCATION-ID] # have [specified a processing location](/dlp/docs/specifying-location): +
# Projects scope, location specified: `projects/`PROJECT_ID`/locations/`
# LOCATION_ID + Projects scope, no location specified (defaults to global): `
# projects/`PROJECT_ID The following example `parent` string specifies a parent
# project with the identifier `example-project`, and specifies the `europe-west3`
# location for processing data: parent=projects/example-project/locations/
# europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2354,8 +2544,14 @@ module Google
# com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to # com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# projects/[PROJECT-ID]/locations/[LOCATION-ID] # whether you have [specified a processing location](/dlp/docs/specifying-
# location): + Projects scope, location specified: `projects/`PROJECT_ID`/
# locations/`LOCATION_ID + Projects scope, no location specified (defaults to
# global): `projects/`PROJECT_ID The following example `parent` string specifies
# a parent project with the identifier `example-project`, and specifies the `
# europe-west3` location for processing data: parent=projects/example-project/
# locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2390,9 +2586,17 @@ module Google
# identifying content, images, and storage. See https://cloud.google.com/dlp/ # identifying content, images, and storage. See https://cloud.google.com/dlp/
# docs/creating-templates-deid to learn more. # docs/creating-templates-deid to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2492,9 +2696,17 @@ module Google
# Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating- # Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-
# templates-deid to learn more. # templates-deid to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -2621,8 +2833,14 @@ module Google
# detectors to run. By default this may be all types, but may change over time # detectors to run. By default this may be all types, but may change over time
# as detectors are updated. # as detectors are updated.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# projects/[PROJECT-ID]/locations/[LOCATION-ID] # whether you have [specified a processing location](/dlp/docs/specifying-
# location): + Projects scope, location specified: `projects/`PROJECT_ID`/
# locations/`LOCATION_ID + Projects scope, no location specified (defaults to
# global): `projects/`PROJECT_ID The following example `parent` string specifies
# a parent project with the identifier `example-project`, and specifies the `
# europe-west3` location for processing data: parent=projects/example-project/
# locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2795,8 +3013,14 @@ module Google
# cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/ # cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
# docs/compute-risk-analysis to learn more. # docs/compute-risk-analysis to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# projects/[PROJECT-ID]/locations/[LOCATION-ID] # whether you have [specified a processing location](/dlp/docs/specifying-
# location): + Projects scope, location specified: `projects/`PROJECT_ID`/
# locations/`LOCATION_ID + Projects scope, no location specified (defaults to
# global): `projects/`PROJECT_ID The following example `parent` string specifies
# a parent project with the identifier `example-project`, and specifies the `
# europe-west3` location for processing data: parent=projects/example-project/
# locations/europe-west3
# @param [String] filter # @param [String] filter
# Allows filtering. Supported syntax: * Filter expressions are made up of one or # Allows filtering. Supported syntax: * Filter expressions are made up of one or
# more restrictions. * Restrictions can be combined by `AND` or `OR` logical # more restrictions. * Restrictions can be combined by `AND` or `OR` logical
@ -2869,8 +3093,14 @@ module Google
# choose what detectors to run. By default this may be all types, but may change # choose what detectors to run. By default this may be all types, but may change
# over time as detectors are updated. # over time as detectors are updated.
# @param [String] parent # @param [String] parent
# The parent resource name. - Format:projects/[PROJECT-ID] - Format:projects/[ # Parent resource name. The format of this value varies depending on whether you
# PROJECT-ID]/locations/[LOCATION-ID] # have [specified a processing location](/dlp/docs/specifying-location): +
# Projects scope, location specified: `projects/`PROJECT_ID`/locations/`
# LOCATION_ID + Projects scope, no location specified (defaults to global): `
# projects/`PROJECT_ID The following example `parent` string specifies a parent
# project with the identifier `example-project`, and specifies the `europe-west3`
# location for processing data: parent=projects/example-project/locations/
# europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2905,9 +3135,17 @@ module Google
# inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/ # inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/
# creating-templates to learn more. # creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3007,9 +3245,17 @@ module Google
# Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating- # Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-
# templates to learn more. # templates to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -3132,8 +3378,14 @@ module Google
# sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/ # sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/
# creating-job-triggers to learn more. # creating-job-triggers to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# projects/[PROJECT-ID]/locations/[LOCATION-ID] # whether you have [specified a processing location](/dlp/docs/specifying-
# location): + Projects scope, location specified: `projects/`PROJECT_ID`/
# locations/`LOCATION_ID + Projects scope, no location specified (defaults to
# global): `projects/`PROJECT_ID The following example `parent` string specifies
# a parent project with the identifier `example-project`, and specifies the `
# europe-west3` location for processing data: parent=projects/example-project/
# locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3269,8 +3521,14 @@ module Google
# Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job- # Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-
# triggers to learn more. # triggers to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# projects/[PROJECT-ID]/locations/[LOCATION-ID] # whether you have [specified a processing location](/dlp/docs/specifying-
# location): + Projects scope, location specified: `projects/`PROJECT_ID`/
# locations/`LOCATION_ID + Projects scope, no location specified (defaults to
# global): `projects/`PROJECT_ID The following example `parent` string specifies
# a parent project with the identifier `example-project`, and specifies the `
# europe-west3` location for processing data: parent=projects/example-project/
# locations/europe-west3
# @param [String] filter # @param [String] filter
# Allows filtering. Supported syntax: * Filter expressions are made up of one or # Allows filtering. Supported syntax: * Filter expressions are made up of one or
# more restrictions. * Restrictions can be combined by `AND` or `OR` logical # more restrictions. * Restrictions can be combined by `AND` or `OR` logical
@ -3373,9 +3631,17 @@ module Google
# Creates a pre-built stored infoType to be used for inspection. See https:// # Creates a pre-built stored infoType to be used for inspection. See https://
# cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. # cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3475,9 +3741,17 @@ module Google
# Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored- # Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-
# infotypes to learn more. # infotypes to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -3565,9 +3839,17 @@ module Google
# Creates a pre-built stored infoType to be used for inspection. See https:// # Creates a pre-built stored infoType to be used for inspection. See https://
# cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. # cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3667,9 +3949,17 @@ module Google
# Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored- # Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-
# infotypes to learn more. # infotypes to learn more.
# @param [String] parent # @param [String] parent
# Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format: # Required. Parent resource name. The format of this value varies depending on
# organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[ # the scope of the request (project or organization) and whether you have [
# LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID] # specified a processing location](/dlp/docs/specifying-location): + Projects
# scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID +
# Projects scope, no location specified (defaults to global): `projects/`
# PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/
# locations/`LOCATION_ID + Organizations scope, no location specified (defaults
# to global): `organizations/`ORG_ID The following example `parent` string
# specifies a parent project with the identifier `example-project`, and
# specifies the `europe-west3` location for processing data: parent=projects/
# example-project/locations/europe-west3
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by

View File

@ -25,7 +25,7 @@ module Google
# @see http://developers.google.com/cloud-dns # @see http://developers.google.com/cloud-dns
module DnsV1 module DnsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200731' REVISION = '20200806'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,13 +22,13 @@ module Google
module Apis module Apis
module DnsV1 module DnsV1
# A Change represents a set of ResourceRecordSet additions and deletions # A Change represents a set of ResourceRecordSet additions and deletions applied
# applied atomically to a ManagedZone. ResourceRecordSets within a # atomically to a ManagedZone. ResourceRecordSets within a ManagedZone are
# ManagedZone are modified by creating a new Change element in the Changes # modified by creating a new Change element in the Changes collection. In turn
# collection. In turn the Changes collection also records the past # the Changes collection also records the past modifications to the
# modifications to the ResourceRecordSets in a ManagedZone. The current # ResourceRecordSets in a ManagedZone. The current state of the ManagedZone is
# state of the ManagedZone is the sum effect of applying all Change # the sum effect of applying all Change elements in the Changes collection in
# elements in the Changes collection in sequence. # sequence.
class Change class Change
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -58,15 +58,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The time that this operation was started by the server (output only). This # The time that this operation was started by the server (output only). This is
# is in RFC3339 text format. # in RFC3339 text format.
# Corresponds to the JSON property `startTime` # Corresponds to the JSON property `startTime`
# @return [String] # @return [String]
attr_accessor :start_time attr_accessor :start_time
# Status of the operation (output only). A status of "done" means that the # Status of the operation (output only). A status of "done" means that the
# request to update the authoritative servers has been sent but the # request to update the authoritative servers has been sent but the servers
# servers might not be updated yet. # might not be updated yet.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -107,15 +107,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your pagination token. # list request using this value as your pagination token. In this way you can
# In this way you can retrieve the complete contents of even very large # retrieve the complete contents of even very large collections one page at a
# collections one page at a time. However, if the contents of the collection # time. However, if the contents of the collection change between the first and
# change between the first and last paginated list request, the set of all # last paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a "snapshot"
# no way to retrieve a "snapshot" of collections larger than the maximum # of collections larger than the maximum page size.
# page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -137,8 +136,8 @@ module Google
class DnsKey class DnsKey
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# String mnemonic specifying the DNSSEC algorithm of this key. Immutable # String mnemonic specifying the DNSSEC algorithm of this key. Immutable after
# after creation time. # creation time.
# Corresponds to the JSON property `algorithm` # Corresponds to the JSON property `algorithm`
# @return [String] # @return [String]
attr_accessor :algorithm attr_accessor :algorithm
@ -149,15 +148,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :creation_time attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource # A mutable string of at most 1024 characters associated with this resource for
# for the user's convenience. Has no effect on the resource's function. # the user's convenience. Has no effect on the resource's function.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Cryptographic hashes of the DNSKEY resource record associated with this # Cryptographic hashes of the DNSKEY resource record associated with this DnsKey.
# DnsKey. These digests are needed to construct a DS record that points at # These digests are needed to construct a DS record that points at this DNS key.
# this DNS key. Output only. # Output only.
# Corresponds to the JSON property `digests` # Corresponds to the JSON property `digests`
# @return [Array<Google::Apis::DnsV1::DnsKeyDigest>] # @return [Array<Google::Apis::DnsV1::DnsKeyDigest>]
attr_accessor :digests attr_accessor :digests
@ -168,8 +167,8 @@ module Google
attr_accessor :id attr_accessor :id
# Active keys will be used to sign subsequent changes to the ManagedZone. # Active keys will be used to sign subsequent changes to the ManagedZone.
# Inactive keys will still be present as DNSKEY Resource Records for the use # Inactive keys will still be present as DNSKEY Resource Records for the use of
# of resolvers validating existing signatures. # resolvers validating existing signatures.
# Corresponds to the JSON property `isActive` # Corresponds to the JSON property `isActive`
# @return [Boolean] # @return [Boolean]
attr_accessor :is_active attr_accessor :is_active
@ -181,11 +180,11 @@ module Google
attr_accessor :key_length attr_accessor :key_length
# The key tag is a non-cryptographic hash of the a DNSKEY resource record # The key tag is a non-cryptographic hash of the a DNSKEY resource record
# associated with this DnsKey. The key tag can be used to identify a DNSKEY # associated with this DnsKey. The key tag can be used to identify a DNSKEY more
# more quickly (but it is not a unique identifier). In particular, the key # quickly (but it is not a unique identifier). In particular, the key tag is
# tag is used in a parent zone's DS record to point at the DNSKEY in this # used in a parent zone's DS record to point at the DNSKEY in this child
# child ManagedZone. The key tag is a number in the range [0, 65535] and the # ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm
# algorithm to calculate it is specified in RFC4034 Appendix B. Output only. # to calculate it is specified in RFC4034 Appendix B. Output only.
# Corresponds to the JSON property `keyTag` # Corresponds to the JSON property `keyTag`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :key_tag attr_accessor :key_tag
@ -202,9 +201,9 @@ module Google
# One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the # One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
# Secure Entry Point flag set and, when active, will be used to sign only # Secure Entry Point flag set and, when active, will be used to sign only
# resource record sets of type DNSKEY. Otherwise, the Secure Entry Point # resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
# flag will be cleared and this key will be used to sign only resource # will be cleared and this key will be used to sign only resource record sets of
# record sets of other types. Immutable after creation time. # other types. Immutable after creation time.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -233,8 +232,8 @@ module Google
class DnsKeyDigest class DnsKeyDigest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The base-16 encoded bytes of this digest. Suitable for use in a DS # The base-16 encoded bytes of this digest. Suitable for use in a DS resource
# resource record. # record.
# Corresponds to the JSON property `digest` # Corresponds to the JSON property `digest`
# @return [String] # @return [String]
attr_accessor :digest attr_accessor :digest
@ -255,8 +254,8 @@ module Google
end end
end end
# Parameters for DnsKey key generation. Used for generating initial keys # Parameters for DnsKey key generation. Used for generating initial keys for a
# for a new ManagedZone and as default when adding a new DnsKey. # new ManagedZone and as default when adding a new DnsKey.
class DnsKeySpec class DnsKeySpec
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -270,11 +269,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :key_length attr_accessor :key_length
# Specifies whether this is a key signing key (KSK) or a zone signing key # Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK).
# (ZSK). Key signing keys have the Secure Entry Point flag set and, when # Key signing keys have the Secure Entry Point flag set and, when active, will
# active, will only be used to sign resource record sets of type DNSKEY. # only be used to sign resource record sets of type DNSKEY. Zone signing keys do
# Zone signing keys do not have the Secure Entry Point flag set and will be # not have the Secure Entry Point flag set and will be used to sign all other
# used to sign all other types of resource record sets. # types of resource record sets.
# Corresponds to the JSON property `keyType` # Corresponds to the JSON property `keyType`
# @return [String] # @return [String]
attr_accessor :key_type attr_accessor :key_type
@ -316,15 +315,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your pagination token. # list request using this value as your pagination token. In this way you can
# In this way you can retrieve the complete contents of even very large # retrieve the complete contents of even very large collections one page at a
# collections one page at a time. However, if the contents of the collection # time. However, if the contents of the collection change between the first and
# change between the first and last paginated list request, the set of all # last paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a "snapshot"
# no way to retrieve a "snapshot" of collections larger than the maximum # of collections larger than the maximum page size.
# page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -343,19 +341,19 @@ module Google
end end
# A zone is a subtree of the DNS namespace under one administrative # A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# hosted by the Cloud DNS service. # by the Cloud DNS service.
class ManagedZone class ManagedZone
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The time that this resource was created on the server. This is in RFC3339 # The time that this resource was created on the server. This is in RFC3339 text
# text format. Output only. # format. Output only.
# Corresponds to the JSON property `creationTime` # Corresponds to the JSON property `creationTime`
# @return [String] # @return [String]
attr_accessor :creation_time attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource # A mutable string of at most 1024 characters associated with this resource for
# for the user's convenience. Has no effect on the managed zone's function. # the user's convenience. Has no effect on the managed zone's function.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
@ -370,9 +368,9 @@ module Google
# @return [Google::Apis::DnsV1::ManagedZoneDnsSecConfig] # @return [Google::Apis::DnsV1::ManagedZoneDnsSecConfig]
attr_accessor :dnssec_config attr_accessor :dnssec_config
# The presence for this field indicates that outbound forwarding is enabled # The presence for this field indicates that outbound forwarding is enabled for
# for this zone. The value of this field contains the set of destinations # this zone. The value of this field contains the set of destinations to forward
# to forward to. # to.
# Corresponds to the JSON property `forwardingConfig` # Corresponds to the JSON property `forwardingConfig`
# @return [Google::Apis::DnsV1::ManagedZoneForwardingConfig] # @return [Google::Apis::DnsV1::ManagedZoneForwardingConfig]
attr_accessor :forwarding_config attr_accessor :forwarding_config
@ -392,16 +390,16 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# User assigned name for this resource. Must be unique within the project. # User assigned name for this resource. Must be unique within the project. The
# The name must be 1-63 characters long, must begin with a letter, end with # name must be 1-63 characters long, must begin with a letter, end with a letter
# a letter or digit, and only contain lowercase letters, digits or dashes. # or digit, and only contain lowercase letters, digits or dashes.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Optionally specifies the NameServerSet for this ManagedZone. A # Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
# NameServerSet is a set of DNS name servers that all host the same # is a set of DNS name servers that all host the same ManagedZones. Most users
# ManagedZones. Most users will leave this field unset. # will leave this field unset.
# Corresponds to the JSON property `nameServerSet` # Corresponds to the JSON property `nameServerSet`
# @return [String] # @return [String]
attr_accessor :name_server_set attr_accessor :name_server_set
@ -412,28 +410,28 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :name_servers attr_accessor :name_servers
# The presence of this field indicates that DNS Peering is enabled for this # The presence of this field indicates that DNS Peering is enabled for this zone.
# zone. The value of this field contains the network to peer with. # The value of this field contains the network to peer with.
# Corresponds to the JSON property `peeringConfig` # Corresponds to the JSON property `peeringConfig`
# @return [Google::Apis::DnsV1::ManagedZonePeeringConfig] # @return [Google::Apis::DnsV1::ManagedZonePeeringConfig]
attr_accessor :peering_config attr_accessor :peering_config
# For privately visible zones, the set of Virtual Private Cloud resources # For privately visible zones, the set of Virtual Private Cloud resources that
# that the zone is visible from. # the zone is visible from.
# Corresponds to the JSON property `privateVisibilityConfig` # Corresponds to the JSON property `privateVisibilityConfig`
# @return [Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig] # @return [Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig]
attr_accessor :private_visibility_config attr_accessor :private_visibility_config
# The presence of this field indicates that this is a managed reverse # The presence of this field indicates that this is a managed reverse lookup
# lookup zone and Cloud DNS will resolve reverse lookup queries using # zone and Cloud DNS will resolve reverse lookup queries using automatically
# automatically configured records for VPC resources. This only applies # configured records for VPC resources. This only applies to networks listed
# to networks listed under private_visibility_config. # under private_visibility_config.
# Corresponds to the JSON property `reverseLookupConfig` # Corresponds to the JSON property `reverseLookupConfig`
# @return [Google::Apis::DnsV1::ManagedZoneReverseLookupConfig] # @return [Google::Apis::DnsV1::ManagedZoneReverseLookupConfig]
attr_accessor :reverse_lookup_config attr_accessor :reverse_lookup_config
# The zone's visibility: public zones are exposed to the Internet, while # The zone's visibility: public zones are exposed to the Internet, while private
# private zones are visible only to Virtual Private Cloud resources. # zones are visible only to Virtual Private Cloud resources.
# Corresponds to the JSON property `visibility` # Corresponds to the JSON property `visibility`
# @return [String] # @return [String]
attr_accessor :visibility attr_accessor :visibility
@ -466,8 +464,8 @@ module Google
class ManagedZoneDnsSecConfig class ManagedZoneDnsSecConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies parameters for generating initial DnsKeys for this # Specifies parameters for generating initial DnsKeys for this ManagedZone. Can
# ManagedZone. Can only be changed while the state is OFF. # only be changed while the state is OFF.
# Corresponds to the JSON property `defaultKeySpecs` # Corresponds to the JSON property `defaultKeySpecs`
# @return [Array<Google::Apis::DnsV1::DnsKeySpec>] # @return [Array<Google::Apis::DnsV1::DnsKeySpec>]
attr_accessor :default_key_specs attr_accessor :default_key_specs
@ -477,8 +475,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Specifies the mechanism for authenticated denial-of-existence responses. # Specifies the mechanism for authenticated denial-of-existence responses. Can
# Can only be changed while the state is OFF. # only be changed while the state is OFF.
# Corresponds to the JSON property `nonExistence` # Corresponds to the JSON property `nonExistence`
# @return [String] # @return [String]
attr_accessor :non_existence attr_accessor :non_existence
@ -510,9 +508,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# List of target name servers to forward to. # List of target name servers to forward to. Cloud DNS will select the best
# Cloud DNS will select the best available name server if more than one # available name server if more than one target is given.
# target is given.
# Corresponds to the JSON property `targetNameServers` # Corresponds to the JSON property `targetNameServers`
# @return [Array<Google::Apis::DnsV1::ManagedZoneForwardingConfigNameServerTarget>] # @return [Array<Google::Apis::DnsV1::ManagedZoneForwardingConfigNameServerTarget>]
attr_accessor :target_name_servers attr_accessor :target_name_servers
@ -532,11 +529,10 @@ module Google
class ManagedZoneForwardingConfigNameServerTarget class ManagedZoneForwardingConfigNameServerTarget
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Forwarding path for this NameServerTarget. If unset or set to DEFAULT, # Forwarding path for this NameServerTarget. If unset or set to DEFAULT, Cloud
# Cloud DNS will make forwarding decision based on address ranges, # DNS will make forwarding decision based on address ranges, i.e. RFC1918
# i.e. RFC1918 addresses go to the VPC, non-RFC1918 addresses go to the # addresses go to the VPC, non-RFC1918 addresses go to the Internet. When set to
# Internet. When set to PRIVATE, Cloud DNS will always send queries # PRIVATE, Cloud DNS will always send queries through VPC for this target.
# through VPC for this target.
# Corresponds to the JSON property `forwardingPath` # Corresponds to the JSON property `forwardingPath`
# @return [String] # @return [String]
attr_accessor :forwarding_path attr_accessor :forwarding_path
@ -577,15 +573,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your page token. # list request using this value as your page token. In this way you can retrieve
# In this way you can retrieve the complete contents of even very large # the complete contents of even very large collections one page at a time.
# collections one page at a time. However, if the contents of the collection # However, if the contents of the collection change between the first and last
# change between the first and last paginated list request, the set of all # paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -637,11 +632,10 @@ module Google
class ManagedZonePeeringConfigTargetNetwork class ManagedZonePeeringConfigTargetNetwork
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The time at which the zone was deactivated, in RFC 3339 date-time # The time at which the zone was deactivated, in RFC 3339 date-time format. An
# format. An empty string indicates that the peering connection is # empty string indicates that the peering connection is active. The producer
# active. The producer network can deactivate a zone. The zone is # network can deactivate a zone. The zone is automatically deactivated if the
# automatically deactivated if the producer network that the zone # producer network that the zone targeted is deleted. Output only.
# targeted is deleted. Output only.
# Corresponds to the JSON property `deactivateTime` # Corresponds to the JSON property `deactivateTime`
# @return [String] # @return [String]
attr_accessor :deactivate_time attr_accessor :deactivate_time
@ -651,10 +645,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The fully qualified URL of the VPC network to forward queries to. # The fully qualified URL of the VPC network to forward queries to. This should
# This should be formatted like # be formatted like https://www.googleapis.com/compute/v1/projects/`project`/
# https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` # global/networks/`network`
# network`
# Corresponds to the JSON property `networkUrl` # Corresponds to the JSON property `networkUrl`
# @return [String] # @return [String]
attr_accessor :network_url attr_accessor :network_url
@ -705,10 +698,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The fully qualified URL of the VPC network to bind to. # The fully qualified URL of the VPC network to bind to. This should be
# This should be formatted like # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
# https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` # networks/`network`
# network`
# Corresponds to the JSON property `networkUrl` # Corresponds to the JSON property `networkUrl`
# @return [String] # @return [String]
attr_accessor :network_url attr_accessor :network_url
@ -762,15 +754,14 @@ module Google
# @return [Array<Google::Apis::DnsV1::ManagedZone>] # @return [Array<Google::Apis::DnsV1::ManagedZone>]
attr_accessor :managed_zones attr_accessor :managed_zones
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your page token. # list request using this value as your page token. In this way you can retrieve
# In this way you can retrieve the complete contents of even very large # the complete contents of even very large collections one page at a time.
# collections one page at a time. However, if the contents of the collection # However, if the contents of the collection change between the first and last
# change between the first and last paginated list request, the set of all # paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -789,10 +780,8 @@ module Google
end end
# An operation represents a successful mutation performed on a Cloud DNS # An operation represents a successful mutation performed on a Cloud DNS
# resource. # resource. Operations provide: - An audit log of server resource mutations. - A
# Operations provide: # way to recover/retry API calls in the case where the response is never
# - An audit log of server resource mutations.
# - A way to recover/retry API calls in the case where the response is never
# received by the caller. Use the caller specified client_operation_id. # received by the caller. Use the caller specified client_operation_id.
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -802,10 +791,10 @@ module Google
# @return [Google::Apis::DnsV1::OperationDnsKeyContext] # @return [Google::Apis::DnsV1::OperationDnsKeyContext]
attr_accessor :dns_key_context attr_accessor :dns_key_context
# Unique identifier for the resource. This is the client_operation_id if # Unique identifier for the resource. This is the client_operation_id if the
# the client specified it when the mutation was initiated, otherwise, # client specified it when the mutation was initiated, otherwise, it is
# it is generated by the server. The name must be 1-63 characters long # generated by the server. The name must be 1-63 characters long and match the
# and match the regular expression [-a-z0-9]? (output only) # regular expression [-a-z0-9]? (output only)
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -821,23 +810,21 @@ module Google
# @return [String] # @return [String]
attr_accessor :start_time attr_accessor :start_time
# Status of the operation. Can be one of the following: "PENDING" or "DONE" # Status of the operation. Can be one of the following: "PENDING" or "DONE" (
# (output only). A status of "DONE" means that the # output only). A status of "DONE" means that the request to update the
# request to update the authoritative servers has been sent, but the # authoritative servers has been sent, but the servers might not be updated yet.
# servers might not be updated yet.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
# Type of the operation. Operations include insert, update, and delete # Type of the operation. Operations include insert, update, and delete (output
# (output only). # only).
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
# User who requested the operation, for example: user@example.com. # User who requested the operation, for example: user@example.com. cloud-dns-
# cloud-dns-system for operations automatically done by the system. # system for operations automatically done by the system. (output only)
# (output only)
# Corresponds to the JSON property `user` # Corresponds to the JSON property `user`
# @return [String] # @return [String]
attr_accessor :user attr_accessor :user
@ -894,15 +881,15 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A zone is a subtree of the DNS namespace under one administrative # A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# hosted by the Cloud DNS service. # by the Cloud DNS service.
# Corresponds to the JSON property `newValue` # Corresponds to the JSON property `newValue`
# @return [Google::Apis::DnsV1::ManagedZone] # @return [Google::Apis::DnsV1::ManagedZone]
attr_accessor :new_value attr_accessor :new_value
# A zone is a subtree of the DNS namespace under one administrative # A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# hosted by the Cloud DNS service. # by the Cloud DNS service.
# Corresponds to the JSON property `oldValue` # Corresponds to the JSON property `oldValue`
# @return [Google::Apis::DnsV1::ManagedZone] # @return [Google::Apis::DnsV1::ManagedZone]
attr_accessor :old_value attr_accessor :old_value
@ -932,15 +919,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your page token. # list request using this value as your page token. In this way you can retrieve
# In this way you can retrieve the complete contents of even very large # the complete contents of even very large collections one page at a time.
# collections one page at a time. However, if the contents of the collection # However, if the contents of the collection change between the first and last
# change between the first and last paginated list request, the set of all # paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -1020,23 +1006,22 @@ module Google
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Sets an alternative name server for the associated networks. When # Sets an alternative name server for the associated networks. When specified,
# specified, all DNS queries are forwarded to a name server that you # all DNS queries are forwarded to a name server that you choose. Names such as .
# choose. Names such as .internal are not available when an alternative # internal are not available when an alternative name server is specified.
# name server is specified.
# Corresponds to the JSON property `alternativeNameServerConfig` # Corresponds to the JSON property `alternativeNameServerConfig`
# @return [Google::Apis::DnsV1::PolicyAlternativeNameServerConfig] # @return [Google::Apis::DnsV1::PolicyAlternativeNameServerConfig]
attr_accessor :alternative_name_server_config attr_accessor :alternative_name_server_config
# A mutable string of at most 1024 characters associated with this resource # A mutable string of at most 1024 characters associated with this resource for
# for the user's convenience. Has no effect on the policy's function. # the user's convenience. Has no effect on the policy's function.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Allows networks bound to this policy to receive DNS queries sent by VMs or # Allows networks bound to this policy to receive DNS queries sent by VMs or
# applications over VPN connections. When enabled, a virtual IP address will # applications over VPN connections. When enabled, a virtual IP address will be
# be allocated from each of the sub-networks that are bound to this policy. # allocated from each of the sub-networks that are bound to this policy.
# Corresponds to the JSON property `enableInboundForwarding` # Corresponds to the JSON property `enableInboundForwarding`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_inbound_forwarding attr_accessor :enable_inbound_forwarding
@ -1095,10 +1080,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Sets an alternative name server for the associated networks. When # Sets an alternative name server for the associated networks. When specified,
# specified, all DNS queries are forwarded to a name server that you # all DNS queries are forwarded to a name server that you choose. Names such as .
# choose. Names such as .internal are not available when an alternative # internal are not available when an alternative name server is specified.
# name server is specified.
# Corresponds to the JSON property `targetNameServers` # Corresponds to the JSON property `targetNameServers`
# @return [Array<Google::Apis::DnsV1::PolicyAlternativeNameServerConfigTargetNameServer>] # @return [Array<Google::Apis::DnsV1::PolicyAlternativeNameServerConfigTargetNameServer>]
attr_accessor :target_name_servers attr_accessor :target_name_servers
@ -1118,11 +1102,10 @@ module Google
class PolicyAlternativeNameServerConfigTargetNameServer class PolicyAlternativeNameServerConfigTargetNameServer
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Forwarding path for this TargetNameServer. If unset or set to DEFAULT, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud
# Cloud DNS will make forwarding decision based on address ranges, # DNS will make forwarding decision based on address ranges, i.e. RFC1918
# i.e. RFC1918 addresses go to the VPC, non-RFC1918 addresses go to the # addresses go to the VPC, non-RFC1918 addresses go to the Internet. When set to
# Internet. When set to PRIVATE, Cloud DNS will always send queries # PRIVATE, Cloud DNS will always send queries through VPC for this target.
# through VPC for this target.
# Corresponds to the JSON property `forwardingPath` # Corresponds to the JSON property `forwardingPath`
# @return [String] # @return [String]
attr_accessor :forwarding_path attr_accessor :forwarding_path
@ -1158,10 +1141,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The fully qualified URL of the VPC network to bind to. # The fully qualified URL of the VPC network to bind to. This should be
# This should be formatted like # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
# https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` # networks/`network`
# network`
# Corresponds to the JSON property `networkUrl` # Corresponds to the JSON property `networkUrl`
# @return [String] # @return [String]
attr_accessor :network_url attr_accessor :network_url
@ -1193,8 +1175,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Unique numeric identifier for the resource; defined by the server (output # Unique numeric identifier for the resource; defined by the server (output only)
# only). # .
# Corresponds to the JSON property `number` # Corresponds to the JSON property `number`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :number attr_accessor :number
@ -1236,8 +1218,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :managed_zones attr_accessor :managed_zones
# Maximum allowed number of managed zones which can be attached to a # Maximum allowed number of managed zones which can be attached to a network.
# network.
# Corresponds to the JSON property `managedZonesPerNetwork` # Corresponds to the JSON property `managedZonesPerNetwork`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :managed_zones_per_network attr_accessor :managed_zones_per_network
@ -1263,8 +1244,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :resource_records_per_rrset attr_accessor :resource_records_per_rrset
# Maximum allowed number of ResourceRecordSets to add per # Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.
# ChangesCreateRequest.
# Corresponds to the JSON property `rrsetAdditionsPerChange` # Corresponds to the JSON property `rrsetAdditionsPerChange`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :rrset_additions_per_change attr_accessor :rrset_additions_per_change
@ -1290,8 +1270,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :target_name_servers_per_policy attr_accessor :target_name_servers_per_policy
# Maximum allowed size for total rrdata in one ChangesCreateRequest in # Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
# bytes.
# Corresponds to the JSON property `totalRrdataSizePerChange` # Corresponds to the JSON property `totalRrdataSizePerChange`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :total_rrdata_size_per_change attr_accessor :total_rrdata_size_per_change
@ -1340,7 +1319,7 @@ module Google
attr_accessor :name attr_accessor :name
# As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see
# <a href="/dns/records/json-record">examples</a>. # examples.
# Corresponds to the JSON property `rrdatas` # Corresponds to the JSON property `rrdatas`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :rrdatas attr_accessor :rrdatas
@ -1355,9 +1334,8 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :ttl attr_accessor :ttl
# The identifier of a supported record type. See the list of # The identifier of a supported record type. See the list of Supported DNS
# <a href="/dns/docs/overview#supported_dns_record_types">Supported # record types.
# DNS record types</a>.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -1391,15 +1369,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your pagination token. # list request using this value as your pagination token. In this way you can
# In this way you can retrieve the complete contents of even very large # retrieve the complete contents of even very large collections one page at a
# collections one page at a time. However, if the contents of the collection # time. However, if the contents of the collection change between the first and
# change between the first and last paginated list request, the set of all # last paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -1426,9 +1403,9 @@ module Google
class ResponseHeader class ResponseHeader
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# For mutating operation requests that completed successfully. # For mutating operation requests that completed successfully. This is the
# This is the client_operation_id if the client specified it, # client_operation_id if the client specified it, otherwise it is generated by
# otherwise it is generated by the server (output only). # the server (output only).
# Corresponds to the JSON property `operationId` # Corresponds to the JSON property `operationId`
# @return [String] # @return [String]
attr_accessor :operation_id attr_accessor :operation_id

View File

@ -51,13 +51,12 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Google::Apis::DnsV1::Change] change_object # @param [Google::Apis::DnsV1::Change] change_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -93,15 +92,14 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] change_id # @param [String] change_id
# The identifier of the requested change, from a previous # The identifier of the requested change, from a previous
# ResourceRecordSetsChangeResponse. # ResourceRecordSetsChangeResponse.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -136,14 +134,14 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] sort_by # @param [String] sort_by
# Sorting criterion. The only supported value is change sequence. # Sorting criterion. The only supported value is change sequence.
# @param [String] sort_order # @param [String] sort_order
@ -184,18 +182,17 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] dns_key_id # @param [String] dns_key_id
# The identifier of the requested DnsKey. # The identifier of the requested DnsKey.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] digest_type # @param [String] digest_type
# An optional comma-separated list of digest types to compute and display # An optional comma-separated list of digest types to compute and display for
# for key signing keys. If omitted, the recommended digest type will be # key signing keys. If omitted, the recommended digest type will be computed and
# computed and displayed. # displayed.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -231,18 +228,18 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] digest_type # @param [String] digest_type
# An optional comma-separated list of digest types to compute and display # An optional comma-separated list of digest types to compute and display for
# for key signing keys. If omitted, the recommended digest type will be # key signing keys. If omitted, the recommended digest type will be computed and
# computed and displayed. # displayed.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -282,9 +279,8 @@ module Google
# @param [String] operation # @param [String] operation
# Identifies the operation addressed by this request. # Identifies the operation addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -321,11 +317,11 @@ module Google
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. # Identifies the managed zone addressed by this request.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] sort_by # @param [String] sort_by
# Sorting criterion. The only supported values are START_TIME and ID. # Sorting criterion. The only supported values are START_TIME and ID.
# @param [String] fields # @param [String] fields
@ -364,9 +360,8 @@ module Google
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -401,12 +396,11 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -438,12 +432,11 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -479,11 +472,11 @@ module Google
# @param [String] dns_name # @param [String] dns_name
# Restricts the list to return only zones with this domain name. # Restricts the list to return only zones with this domain name.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -518,13 +511,12 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -560,13 +552,12 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -603,9 +594,8 @@ module Google
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1::Policy] policy_object # @param [Google::Apis::DnsV1::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -643,9 +633,8 @@ module Google
# @param [String] policy # @param [String] policy
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -679,9 +668,8 @@ module Google
# @param [String] policy # @param [String] policy
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -715,11 +703,11 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -756,9 +744,8 @@ module Google
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV1::Policy] policy_object # @param [Google::Apis::DnsV1::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -797,9 +784,8 @@ module Google
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV1::Policy] policy_object # @param [Google::Apis::DnsV1::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -835,9 +821,8 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -870,20 +855,20 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] name # @param [String] name
# Restricts the list to return only records with this fully qualified domain # Restricts the list to return only records with this fully qualified domain
# name. # name.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] type # @param [String] type
# Restricts the list to return only records of this type. If present, the # Restricts the list to return only records of this type. If present, the "name"
# "name" parameter must also be present. # parameter must also be present.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see http://developers.google.com/cloud-dns # @see http://developers.google.com/cloud-dns
module DnsV1beta2 module DnsV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20200731' REVISION = '20200806'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,13 +22,13 @@ module Google
module Apis module Apis
module DnsV1beta2 module DnsV1beta2
# A Change represents a set of ResourceRecordSet additions and deletions # A Change represents a set of ResourceRecordSet additions and deletions applied
# applied atomically to a ManagedZone. ResourceRecordSets within a # atomically to a ManagedZone. ResourceRecordSets within a ManagedZone are
# ManagedZone are modified by creating a new Change element in the Changes # modified by creating a new Change element in the Changes collection. In turn
# collection. In turn the Changes collection also records the past # the Changes collection also records the past modifications to the
# modifications to the ResourceRecordSets in a ManagedZone. The current # ResourceRecordSets in a ManagedZone. The current state of the ManagedZone is
# state of the ManagedZone is the sum effect of applying all Change # the sum effect of applying all Change elements in the Changes collection in
# elements in the Changes collection in sequence. # sequence.
class Change class Change
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -58,15 +58,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The time that this operation was started by the server (output only). This # The time that this operation was started by the server (output only). This is
# is in RFC3339 text format. # in RFC3339 text format.
# Corresponds to the JSON property `startTime` # Corresponds to the JSON property `startTime`
# @return [String] # @return [String]
attr_accessor :start_time attr_accessor :start_time
# Status of the operation (output only). A status of "done" means that the # Status of the operation (output only). A status of "done" means that the
# request to update the authoritative servers has been sent but the # request to update the authoritative servers has been sent but the servers
# servers might not be updated yet. # might not be updated yet.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -107,15 +107,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your pagination token. # list request using this value as your pagination token. In this way you can
# In this way you can retrieve the complete contents of even very large # retrieve the complete contents of even very large collections one page at a
# collections one page at a time. However, if the contents of the collection # time. However, if the contents of the collection change between the first and
# change between the first and last paginated list request, the set of all # last paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a "snapshot"
# no way to retrieve a "snapshot" of collections larger than the maximum # of collections larger than the maximum page size.
# page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -137,8 +136,8 @@ module Google
class DnsKey class DnsKey
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# String mnemonic specifying the DNSSEC algorithm of this key. Immutable # String mnemonic specifying the DNSSEC algorithm of this key. Immutable after
# after creation time. # creation time.
# Corresponds to the JSON property `algorithm` # Corresponds to the JSON property `algorithm`
# @return [String] # @return [String]
attr_accessor :algorithm attr_accessor :algorithm
@ -149,15 +148,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :creation_time attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource # A mutable string of at most 1024 characters associated with this resource for
# for the user's convenience. Has no effect on the resource's function. # the user's convenience. Has no effect on the resource's function.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Cryptographic hashes of the DNSKEY resource record associated with this # Cryptographic hashes of the DNSKEY resource record associated with this DnsKey.
# DnsKey. These digests are needed to construct a DS record that points at # These digests are needed to construct a DS record that points at this DNS key.
# this DNS key. Output only. # Output only.
# Corresponds to the JSON property `digests` # Corresponds to the JSON property `digests`
# @return [Array<Google::Apis::DnsV1beta2::DnsKeyDigest>] # @return [Array<Google::Apis::DnsV1beta2::DnsKeyDigest>]
attr_accessor :digests attr_accessor :digests
@ -168,8 +167,8 @@ module Google
attr_accessor :id attr_accessor :id
# Active keys will be used to sign subsequent changes to the ManagedZone. # Active keys will be used to sign subsequent changes to the ManagedZone.
# Inactive keys will still be present as DNSKEY Resource Records for the use # Inactive keys will still be present as DNSKEY Resource Records for the use of
# of resolvers validating existing signatures. # resolvers validating existing signatures.
# Corresponds to the JSON property `isActive` # Corresponds to the JSON property `isActive`
# @return [Boolean] # @return [Boolean]
attr_accessor :is_active attr_accessor :is_active
@ -181,11 +180,11 @@ module Google
attr_accessor :key_length attr_accessor :key_length
# The key tag is a non-cryptographic hash of the a DNSKEY resource record # The key tag is a non-cryptographic hash of the a DNSKEY resource record
# associated with this DnsKey. The key tag can be used to identify a DNSKEY # associated with this DnsKey. The key tag can be used to identify a DNSKEY more
# more quickly (but it is not a unique identifier). In particular, the key # quickly (but it is not a unique identifier). In particular, the key tag is
# tag is used in a parent zone's DS record to point at the DNSKEY in this # used in a parent zone's DS record to point at the DNSKEY in this child
# child ManagedZone. The key tag is a number in the range [0, 65535] and the # ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm
# algorithm to calculate it is specified in RFC4034 Appendix B. Output only. # to calculate it is specified in RFC4034 Appendix B. Output only.
# Corresponds to the JSON property `keyTag` # Corresponds to the JSON property `keyTag`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :key_tag attr_accessor :key_tag
@ -202,9 +201,9 @@ module Google
# One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the # One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
# Secure Entry Point flag set and, when active, will be used to sign only # Secure Entry Point flag set and, when active, will be used to sign only
# resource record sets of type DNSKEY. Otherwise, the Secure Entry Point # resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
# flag will be cleared and this key will be used to sign only resource # will be cleared and this key will be used to sign only resource record sets of
# record sets of other types. Immutable after creation time. # other types. Immutable after creation time.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -233,8 +232,8 @@ module Google
class DnsKeyDigest class DnsKeyDigest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The base-16 encoded bytes of this digest. Suitable for use in a DS # The base-16 encoded bytes of this digest. Suitable for use in a DS resource
# resource record. # record.
# Corresponds to the JSON property `digest` # Corresponds to the JSON property `digest`
# @return [String] # @return [String]
attr_accessor :digest attr_accessor :digest
@ -255,8 +254,8 @@ module Google
end end
end end
# Parameters for DnsKey key generation. Used for generating initial keys # Parameters for DnsKey key generation. Used for generating initial keys for a
# for a new ManagedZone and as default when adding a new DnsKey. # new ManagedZone and as default when adding a new DnsKey.
class DnsKeySpec class DnsKeySpec
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -270,11 +269,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :key_length attr_accessor :key_length
# Specifies whether this is a key signing key (KSK) or a zone signing key # Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK).
# (ZSK). Key signing keys have the Secure Entry Point flag set and, when # Key signing keys have the Secure Entry Point flag set and, when active, will
# active, will only be used to sign resource record sets of type DNSKEY. # only be used to sign resource record sets of type DNSKEY. Zone signing keys do
# Zone signing keys do not have the Secure Entry Point flag set and will be # not have the Secure Entry Point flag set and will be used to sign all other
# used to sign all other types of resource record sets. # types of resource record sets.
# Corresponds to the JSON property `keyType` # Corresponds to the JSON property `keyType`
# @return [String] # @return [String]
attr_accessor :key_type attr_accessor :key_type
@ -316,15 +315,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your pagination token. # list request using this value as your pagination token. In this way you can
# In this way you can retrieve the complete contents of even very large # retrieve the complete contents of even very large collections one page at a
# collections one page at a time. However, if the contents of the collection # time. However, if the contents of the collection change between the first and
# change between the first and last paginated list request, the set of all # last paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a "snapshot"
# no way to retrieve a "snapshot" of collections larger than the maximum # of collections larger than the maximum page size.
# page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -343,19 +341,19 @@ module Google
end end
# A zone is a subtree of the DNS namespace under one administrative # A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# hosted by the Cloud DNS service. # by the Cloud DNS service.
class ManagedZone class ManagedZone
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The time that this resource was created on the server. This is in RFC3339 # The time that this resource was created on the server. This is in RFC3339 text
# text format. Output only. # format. Output only.
# Corresponds to the JSON property `creationTime` # Corresponds to the JSON property `creationTime`
# @return [String] # @return [String]
attr_accessor :creation_time attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource # A mutable string of at most 1024 characters associated with this resource for
# for the user's convenience. Has no effect on the managed zone's function. # the user's convenience. Has no effect on the managed zone's function.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
@ -370,9 +368,9 @@ module Google
# @return [Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig] # @return [Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig]
attr_accessor :dnssec_config attr_accessor :dnssec_config
# The presence for this field indicates that outbound forwarding is enabled # The presence for this field indicates that outbound forwarding is enabled for
# for this zone. The value of this field contains the set of destinations # this zone. The value of this field contains the set of destinations to forward
# to forward to. # to.
# Corresponds to the JSON property `forwardingConfig` # Corresponds to the JSON property `forwardingConfig`
# @return [Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig] # @return [Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig]
attr_accessor :forwarding_config attr_accessor :forwarding_config
@ -392,16 +390,16 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# User assigned name for this resource. Must be unique within the project. # User assigned name for this resource. Must be unique within the project. The
# The name must be 1-63 characters long, must begin with a letter, end with # name must be 1-63 characters long, must begin with a letter, end with a letter
# a letter or digit, and only contain lowercase letters, digits or dashes. # or digit, and only contain lowercase letters, digits or dashes.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Optionally specifies the NameServerSet for this ManagedZone. A # Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
# NameServerSet is a set of DNS name servers that all host the same # is a set of DNS name servers that all host the same ManagedZones. Most users
# ManagedZones. Most users will leave this field unset. # will leave this field unset.
# Corresponds to the JSON property `nameServerSet` # Corresponds to the JSON property `nameServerSet`
# @return [String] # @return [String]
attr_accessor :name_server_set attr_accessor :name_server_set
@ -412,22 +410,22 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :name_servers attr_accessor :name_servers
# The presence of this field indicates that DNS Peering is enabled for this # The presence of this field indicates that DNS Peering is enabled for this zone.
# zone. The value of this field contains the network to peer with. # The value of this field contains the network to peer with.
# Corresponds to the JSON property `peeringConfig` # Corresponds to the JSON property `peeringConfig`
# @return [Google::Apis::DnsV1beta2::ManagedZonePeeringConfig] # @return [Google::Apis::DnsV1beta2::ManagedZonePeeringConfig]
attr_accessor :peering_config attr_accessor :peering_config
# For privately visible zones, the set of Virtual Private Cloud resources # For privately visible zones, the set of Virtual Private Cloud resources that
# that the zone is visible from. # the zone is visible from.
# Corresponds to the JSON property `privateVisibilityConfig` # Corresponds to the JSON property `privateVisibilityConfig`
# @return [Google::Apis::DnsV1beta2::ManagedZonePrivateVisibilityConfig] # @return [Google::Apis::DnsV1beta2::ManagedZonePrivateVisibilityConfig]
attr_accessor :private_visibility_config attr_accessor :private_visibility_config
# The presence of this field indicates that this is a managed reverse # The presence of this field indicates that this is a managed reverse lookup
# lookup zone and Cloud DNS will resolve reverse lookup queries using # zone and Cloud DNS will resolve reverse lookup queries using automatically
# automatically configured records for VPC resources. This only applies # configured records for VPC resources. This only applies to networks listed
# to networks listed under private_visibility_config. # under private_visibility_config.
# Corresponds to the JSON property `reverseLookupConfig` # Corresponds to the JSON property `reverseLookupConfig`
# @return [Google::Apis::DnsV1beta2::ManagedZoneReverseLookupConfig] # @return [Google::Apis::DnsV1beta2::ManagedZoneReverseLookupConfig]
attr_accessor :reverse_lookup_config attr_accessor :reverse_lookup_config
@ -437,8 +435,8 @@ module Google
# @return [Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfig] # @return [Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfig]
attr_accessor :service_directory_config attr_accessor :service_directory_config
# The zone's visibility: public zones are exposed to the Internet, while # The zone's visibility: public zones are exposed to the Internet, while private
# private zones are visible only to Virtual Private Cloud resources. # zones are visible only to Virtual Private Cloud resources.
# Corresponds to the JSON property `visibility` # Corresponds to the JSON property `visibility`
# @return [String] # @return [String]
attr_accessor :visibility attr_accessor :visibility
@ -472,8 +470,8 @@ module Google
class ManagedZoneDnsSecConfig class ManagedZoneDnsSecConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies parameters for generating initial DnsKeys for this # Specifies parameters for generating initial DnsKeys for this ManagedZone. Can
# ManagedZone. Can only be changed while the state is OFF. # only be changed while the state is OFF.
# Corresponds to the JSON property `defaultKeySpecs` # Corresponds to the JSON property `defaultKeySpecs`
# @return [Array<Google::Apis::DnsV1beta2::DnsKeySpec>] # @return [Array<Google::Apis::DnsV1beta2::DnsKeySpec>]
attr_accessor :default_key_specs attr_accessor :default_key_specs
@ -483,8 +481,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Specifies the mechanism for authenticated denial-of-existence responses. # Specifies the mechanism for authenticated denial-of-existence responses. Can
# Can only be changed while the state is OFF. # only be changed while the state is OFF.
# Corresponds to the JSON property `nonExistence` # Corresponds to the JSON property `nonExistence`
# @return [String] # @return [String]
attr_accessor :non_existence attr_accessor :non_existence
@ -516,9 +514,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# List of target name servers to forward to. # List of target name servers to forward to. Cloud DNS will select the best
# Cloud DNS will select the best available name server if more than one # available name server if more than one target is given.
# target is given.
# Corresponds to the JSON property `targetNameServers` # Corresponds to the JSON property `targetNameServers`
# @return [Array<Google::Apis::DnsV1beta2::ManagedZoneForwardingConfigNameServerTarget>] # @return [Array<Google::Apis::DnsV1beta2::ManagedZoneForwardingConfigNameServerTarget>]
attr_accessor :target_name_servers attr_accessor :target_name_servers
@ -538,11 +535,10 @@ module Google
class ManagedZoneForwardingConfigNameServerTarget class ManagedZoneForwardingConfigNameServerTarget
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Forwarding path for this NameServerTarget. If unset or set to DEFAULT, # Forwarding path for this NameServerTarget. If unset or set to DEFAULT, Cloud
# Cloud DNS will make forwarding decision based on address ranges, # DNS will make forwarding decision based on address ranges, i.e. RFC1918
# i.e. RFC1918 addresses go to the VPC, non-RFC1918 addresses go to the # addresses go to the VPC, non-RFC1918 addresses go to the Internet. When set to
# Internet. When set to PRIVATE, Cloud DNS will always send queries # PRIVATE, Cloud DNS will always send queries through VPC for this target.
# through VPC for this target.
# Corresponds to the JSON property `forwardingPath` # Corresponds to the JSON property `forwardingPath`
# @return [String] # @return [String]
attr_accessor :forwarding_path attr_accessor :forwarding_path
@ -583,15 +579,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your page token. # list request using this value as your page token. In this way you can retrieve
# In this way you can retrieve the complete contents of even very large # the complete contents of even very large collections one page at a time.
# collections one page at a time. However, if the contents of the collection # However, if the contents of the collection change between the first and last
# change between the first and last paginated list request, the set of all # paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -643,11 +638,10 @@ module Google
class ManagedZonePeeringConfigTargetNetwork class ManagedZonePeeringConfigTargetNetwork
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The time at which the zone was deactivated, in RFC 3339 date-time # The time at which the zone was deactivated, in RFC 3339 date-time format. An
# format. An empty string indicates that the peering connection is # empty string indicates that the peering connection is active. The producer
# active. The producer network can deactivate a zone. The zone is # network can deactivate a zone. The zone is automatically deactivated if the
# automatically deactivated if the producer network that the zone # producer network that the zone targeted is deleted. Output only.
# targeted is deleted. Output only.
# Corresponds to the JSON property `deactivateTime` # Corresponds to the JSON property `deactivateTime`
# @return [String] # @return [String]
attr_accessor :deactivate_time attr_accessor :deactivate_time
@ -657,10 +651,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The fully qualified URL of the VPC network to forward queries to. # The fully qualified URL of the VPC network to forward queries to. This should
# This should be formatted like # be formatted like https://www.googleapis.com/compute/v1/projects/`project`/
# https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` # global/networks/`network`
# network`
# Corresponds to the JSON property `networkUrl` # Corresponds to the JSON property `networkUrl`
# @return [String] # @return [String]
attr_accessor :network_url attr_accessor :network_url
@ -711,10 +704,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The fully qualified URL of the VPC network to bind to. # The fully qualified URL of the VPC network to bind to. This should be
# This should be formatted like # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
# https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` # networks/`network`
# network`
# Corresponds to the JSON property `networkUrl` # Corresponds to the JSON property `networkUrl`
# @return [String] # @return [String]
attr_accessor :network_url attr_accessor :network_url
@ -778,9 +770,8 @@ module Google
class ManagedZoneServiceDirectoryConfigNamespace class ManagedZoneServiceDirectoryConfigNamespace
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The time that the namespace backing this zone was deleted, empty # The time that the namespace backing this zone was deleted, empty string if it
# string if it still exists. This is in RFC3339 text format. Output # still exists. This is in RFC3339 text format. Output only.
# only.
# Corresponds to the JSON property `deletionTime` # Corresponds to the JSON property `deletionTime`
# @return [String] # @return [String]
attr_accessor :deletion_time attr_accessor :deletion_time
@ -790,10 +781,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The fully qualified URL of the namespace associated with the zone. # The fully qualified URL of the namespace associated with the zone. This should
# This should be formatted like # be formatted like https://servicedirectory.googleapis.com/v1/projects/`project`
# https://servicedirectory.googleapis.com/v1/projects/`project`/locations/` # /locations/`location`/namespaces/`namespace`
# location`/namespaces/`namespace`
# Corresponds to the JSON property `namespaceUrl` # Corresponds to the JSON property `namespaceUrl`
# @return [String] # @return [String]
attr_accessor :namespace_url attr_accessor :namespace_url
@ -829,15 +819,14 @@ module Google
# @return [Array<Google::Apis::DnsV1beta2::ManagedZone>] # @return [Array<Google::Apis::DnsV1beta2::ManagedZone>]
attr_accessor :managed_zones attr_accessor :managed_zones
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your page token. # list request using this value as your page token. In this way you can retrieve
# In this way you can retrieve the complete contents of even very large # the complete contents of even very large collections one page at a time.
# collections one page at a time. However, if the contents of the collection # However, if the contents of the collection change between the first and last
# change between the first and last paginated list request, the set of all # paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -856,10 +845,8 @@ module Google
end end
# An operation represents a successful mutation performed on a Cloud DNS # An operation represents a successful mutation performed on a Cloud DNS
# resource. # resource. Operations provide: - An audit log of server resource mutations. - A
# Operations provide: # way to recover/retry API calls in the case where the response is never
# - An audit log of server resource mutations.
# - A way to recover/retry API calls in the case where the response is never
# received by the caller. Use the caller specified client_operation_id. # received by the caller. Use the caller specified client_operation_id.
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -869,10 +856,10 @@ module Google
# @return [Google::Apis::DnsV1beta2::OperationDnsKeyContext] # @return [Google::Apis::DnsV1beta2::OperationDnsKeyContext]
attr_accessor :dns_key_context attr_accessor :dns_key_context
# Unique identifier for the resource. This is the client_operation_id if # Unique identifier for the resource. This is the client_operation_id if the
# the client specified it when the mutation was initiated, otherwise, # client specified it when the mutation was initiated, otherwise, it is
# it is generated by the server. The name must be 1-63 characters long # generated by the server. The name must be 1-63 characters long and match the
# and match the regular expression [-a-z0-9]? (output only) # regular expression [-a-z0-9]? (output only)
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -888,23 +875,21 @@ module Google
# @return [String] # @return [String]
attr_accessor :start_time attr_accessor :start_time
# Status of the operation. Can be one of the following: "PENDING" or "DONE" # Status of the operation. Can be one of the following: "PENDING" or "DONE" (
# (output only). A status of "DONE" means that the # output only). A status of "DONE" means that the request to update the
# request to update the authoritative servers has been sent, but the # authoritative servers has been sent, but the servers might not be updated yet.
# servers might not be updated yet.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
# Type of the operation. Operations include insert, update, and delete # Type of the operation. Operations include insert, update, and delete (output
# (output only). # only).
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
# User who requested the operation, for example: user@example.com. # User who requested the operation, for example: user@example.com. cloud-dns-
# cloud-dns-system for operations automatically done by the system. # system for operations automatically done by the system. (output only)
# (output only)
# Corresponds to the JSON property `user` # Corresponds to the JSON property `user`
# @return [String] # @return [String]
attr_accessor :user attr_accessor :user
@ -961,15 +946,15 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A zone is a subtree of the DNS namespace under one administrative # A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# hosted by the Cloud DNS service. # by the Cloud DNS service.
# Corresponds to the JSON property `newValue` # Corresponds to the JSON property `newValue`
# @return [Google::Apis::DnsV1beta2::ManagedZone] # @return [Google::Apis::DnsV1beta2::ManagedZone]
attr_accessor :new_value attr_accessor :new_value
# A zone is a subtree of the DNS namespace under one administrative # A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# hosted by the Cloud DNS service. # by the Cloud DNS service.
# Corresponds to the JSON property `oldValue` # Corresponds to the JSON property `oldValue`
# @return [Google::Apis::DnsV1beta2::ManagedZone] # @return [Google::Apis::DnsV1beta2::ManagedZone]
attr_accessor :old_value attr_accessor :old_value
@ -999,15 +984,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your page token. # list request using this value as your page token. In this way you can retrieve
# In this way you can retrieve the complete contents of even very large # the complete contents of even very large collections one page at a time.
# collections one page at a time. However, if the contents of the collection # However, if the contents of the collection change between the first and last
# change between the first and last paginated list request, the set of all # paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -1087,23 +1071,22 @@ module Google
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Sets an alternative name server for the associated networks. When # Sets an alternative name server for the associated networks. When specified,
# specified, all DNS queries are forwarded to a name server that you # all DNS queries are forwarded to a name server that you choose. Names such as .
# choose. Names such as .internal are not available when an alternative # internal are not available when an alternative name server is specified.
# name server is specified.
# Corresponds to the JSON property `alternativeNameServerConfig` # Corresponds to the JSON property `alternativeNameServerConfig`
# @return [Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig] # @return [Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig]
attr_accessor :alternative_name_server_config attr_accessor :alternative_name_server_config
# A mutable string of at most 1024 characters associated with this resource # A mutable string of at most 1024 characters associated with this resource for
# for the user's convenience. Has no effect on the policy's function. # the user's convenience. Has no effect on the policy's function.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Allows networks bound to this policy to receive DNS queries sent by VMs or # Allows networks bound to this policy to receive DNS queries sent by VMs or
# applications over VPN connections. When enabled, a virtual IP address will # applications over VPN connections. When enabled, a virtual IP address will be
# be allocated from each of the sub-networks that are bound to this policy. # allocated from each of the sub-networks that are bound to this policy.
# Corresponds to the JSON property `enableInboundForwarding` # Corresponds to the JSON property `enableInboundForwarding`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_inbound_forwarding attr_accessor :enable_inbound_forwarding
@ -1162,10 +1145,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Sets an alternative name server for the associated networks. When # Sets an alternative name server for the associated networks. When specified,
# specified, all DNS queries are forwarded to a name server that you # all DNS queries are forwarded to a name server that you choose. Names such as .
# choose. Names such as .internal are not available when an alternative # internal are not available when an alternative name server is specified.
# name server is specified.
# Corresponds to the JSON property `targetNameServers` # Corresponds to the JSON property `targetNameServers`
# @return [Array<Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfigTargetNameServer>] # @return [Array<Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfigTargetNameServer>]
attr_accessor :target_name_servers attr_accessor :target_name_servers
@ -1185,11 +1167,10 @@ module Google
class PolicyAlternativeNameServerConfigTargetNameServer class PolicyAlternativeNameServerConfigTargetNameServer
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Forwarding path for this TargetNameServer. If unset or set to DEFAULT, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud
# Cloud DNS will make forwarding decision based on address ranges, # DNS will make forwarding decision based on address ranges, i.e. RFC1918
# i.e. RFC1918 addresses go to the VPC, non-RFC1918 addresses go to the # addresses go to the VPC, non-RFC1918 addresses go to the Internet. When set to
# Internet. When set to PRIVATE, Cloud DNS will always send queries # PRIVATE, Cloud DNS will always send queries through VPC for this target.
# through VPC for this target.
# Corresponds to the JSON property `forwardingPath` # Corresponds to the JSON property `forwardingPath`
# @return [String] # @return [String]
attr_accessor :forwarding_path attr_accessor :forwarding_path
@ -1225,10 +1206,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The fully qualified URL of the VPC network to bind to. # The fully qualified URL of the VPC network to bind to. This should be
# This should be formatted like # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
# https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` # networks/`network`
# network`
# Corresponds to the JSON property `networkUrl` # Corresponds to the JSON property `networkUrl`
# @return [String] # @return [String]
attr_accessor :network_url attr_accessor :network_url
@ -1260,8 +1240,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Unique numeric identifier for the resource; defined by the server (output # Unique numeric identifier for the resource; defined by the server (output only)
# only). # .
# Corresponds to the JSON property `number` # Corresponds to the JSON property `number`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :number attr_accessor :number
@ -1303,8 +1283,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :managed_zones attr_accessor :managed_zones
# Maximum allowed number of managed zones which can be attached to a # Maximum allowed number of managed zones which can be attached to a network.
# network.
# Corresponds to the JSON property `managedZonesPerNetwork` # Corresponds to the JSON property `managedZonesPerNetwork`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :managed_zones_per_network attr_accessor :managed_zones_per_network
@ -1330,8 +1309,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :resource_records_per_rrset attr_accessor :resource_records_per_rrset
# Maximum allowed number of ResourceRecordSets to add per # Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.
# ChangesCreateRequest.
# Corresponds to the JSON property `rrsetAdditionsPerChange` # Corresponds to the JSON property `rrsetAdditionsPerChange`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :rrset_additions_per_change attr_accessor :rrset_additions_per_change
@ -1357,8 +1335,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :target_name_servers_per_policy attr_accessor :target_name_servers_per_policy
# Maximum allowed size for total rrdata in one ChangesCreateRequest in # Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
# bytes.
# Corresponds to the JSON property `totalRrdataSizePerChange` # Corresponds to the JSON property `totalRrdataSizePerChange`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :total_rrdata_size_per_change attr_accessor :total_rrdata_size_per_change
@ -1407,7 +1384,7 @@ module Google
attr_accessor :name attr_accessor :name
# As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see
# <a href="/dns/records/json-record">examples</a>. # examples.
# Corresponds to the JSON property `rrdatas` # Corresponds to the JSON property `rrdatas`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :rrdatas attr_accessor :rrdatas
@ -1422,9 +1399,8 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :ttl attr_accessor :ttl
# The identifier of a supported record type. See the list of # The identifier of a supported record type. See the list of Supported DNS
# <a href="/dns/docs/overview#supported_dns_record_types">Supported # record types.
# DNS record types</a>.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -1458,15 +1434,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your pagination token. # list request using this value as your pagination token. In this way you can
# In this way you can retrieve the complete contents of even very large # retrieve the complete contents of even very large collections one page at a
# collections one page at a time. However, if the contents of the collection # time. However, if the contents of the collection change between the first and
# change between the first and last paginated list request, the set of all # last paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -1493,9 +1468,9 @@ module Google
class ResponseHeader class ResponseHeader
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# For mutating operation requests that completed successfully. # For mutating operation requests that completed successfully. This is the
# This is the client_operation_id if the client specified it, # client_operation_id if the client specified it, otherwise it is generated by
# otherwise it is generated by the server (output only). # the server (output only).
# Corresponds to the JSON property `operationId` # Corresponds to the JSON property `operationId`
# @return [String] # @return [String]
attr_accessor :operation_id attr_accessor :operation_id

View File

@ -51,13 +51,12 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Google::Apis::DnsV1beta2::Change] change_object # @param [Google::Apis::DnsV1beta2::Change] change_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -93,15 +92,14 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] change_id # @param [String] change_id
# The identifier of the requested change, from a previous # The identifier of the requested change, from a previous
# ResourceRecordSetsChangeResponse. # ResourceRecordSetsChangeResponse.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -136,14 +134,14 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] sort_by # @param [String] sort_by
# Sorting criterion. The only supported value is change sequence. # Sorting criterion. The only supported value is change sequence.
# @param [String] sort_order # @param [String] sort_order
@ -184,18 +182,17 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] dns_key_id # @param [String] dns_key_id
# The identifier of the requested DnsKey. # The identifier of the requested DnsKey.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] digest_type # @param [String] digest_type
# An optional comma-separated list of digest types to compute and display # An optional comma-separated list of digest types to compute and display for
# for key signing keys. If omitted, the recommended digest type will be # key signing keys. If omitted, the recommended digest type will be computed and
# computed and displayed. # displayed.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -231,18 +228,18 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] digest_type # @param [String] digest_type
# An optional comma-separated list of digest types to compute and display # An optional comma-separated list of digest types to compute and display for
# for key signing keys. If omitted, the recommended digest type will be # key signing keys. If omitted, the recommended digest type will be computed and
# computed and displayed. # displayed.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -282,9 +279,8 @@ module Google
# @param [String] operation # @param [String] operation
# Identifies the operation addressed by this request. # Identifies the operation addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -321,11 +317,11 @@ module Google
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. # Identifies the managed zone addressed by this request.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] sort_by # @param [String] sort_by
# Sorting criterion. The only supported values are START_TIME and ID. # Sorting criterion. The only supported values are START_TIME and ID.
# @param [String] fields # @param [String] fields
@ -364,9 +360,8 @@ module Google
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -401,12 +396,11 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -438,12 +432,11 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -479,11 +472,11 @@ module Google
# @param [String] dns_name # @param [String] dns_name
# Restricts the list to return only zones with this domain name. # Restricts the list to return only zones with this domain name.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -518,13 +511,12 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -560,13 +552,12 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -603,9 +594,8 @@ module Google
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1beta2::Policy] policy_object # @param [Google::Apis::DnsV1beta2::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -643,9 +633,8 @@ module Google
# @param [String] policy # @param [String] policy
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -679,9 +668,8 @@ module Google
# @param [String] policy # @param [String] policy
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -715,11 +703,11 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -756,9 +744,8 @@ module Google
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV1beta2::Policy] policy_object # @param [Google::Apis::DnsV1beta2::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -797,9 +784,8 @@ module Google
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV1beta2::Policy] policy_object # @param [Google::Apis::DnsV1beta2::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -835,9 +821,8 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -870,20 +855,20 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] name # @param [String] name
# Restricts the list to return only records with this fully qualified domain # Restricts the list to return only records with this fully qualified domain
# name. # name.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] type # @param [String] type
# Restricts the list to return only records of this type. If present, the # Restricts the list to return only records of this type. If present, the "name"
# "name" parameter must also be present. # parameter must also be present.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see http://developers.google.com/cloud-dns # @see http://developers.google.com/cloud-dns
module DnsV2beta1 module DnsV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20200731' REVISION = '20200806'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,13 +22,13 @@ module Google
module Apis module Apis
module DnsV2beta1 module DnsV2beta1
# A Change represents a set of ResourceRecordSet additions and deletions # A Change represents a set of ResourceRecordSet additions and deletions applied
# applied atomically to a ManagedZone. ResourceRecordSets within a # atomically to a ManagedZone. ResourceRecordSets within a ManagedZone are
# ManagedZone are modified by creating a new Change element in the Changes # modified by creating a new Change element in the Changes collection. In turn
# collection. In turn the Changes collection also records the past # the Changes collection also records the past modifications to the
# modifications to the ResourceRecordSets in a ManagedZone. The current # ResourceRecordSets in a ManagedZone. The current state of the ManagedZone is
# state of the ManagedZone is the sum effect of applying all Change # the sum effect of applying all Change elements in the Changes collection in
# elements in the Changes collection in sequence. # sequence.
class Change class Change
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -58,15 +58,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The time that this operation was started by the server (output only). This # The time that this operation was started by the server (output only). This is
# is in RFC3339 text format. # in RFC3339 text format.
# Corresponds to the JSON property `startTime` # Corresponds to the JSON property `startTime`
# @return [String] # @return [String]
attr_accessor :start_time attr_accessor :start_time
# Status of the operation (output only). A status of "done" means that the # Status of the operation (output only). A status of "done" means that the
# request to update the authoritative servers has been sent but the # request to update the authoritative servers has been sent but the servers
# servers might not be updated yet. # might not be updated yet.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -107,15 +107,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your pagination token. # list request using this value as your pagination token. In this way you can
# In this way you can retrieve the complete contents of even very large # retrieve the complete contents of even very large collections one page at a
# collections one page at a time. However, if the contents of the collection # time. However, if the contents of the collection change between the first and
# change between the first and last paginated list request, the set of all # last paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a "snapshot"
# no way to retrieve a "snapshot" of collections larger than the maximum # of collections larger than the maximum page size.
# page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -137,8 +136,8 @@ module Google
class DnsKey class DnsKey
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# String mnemonic specifying the DNSSEC algorithm of this key. Immutable # String mnemonic specifying the DNSSEC algorithm of this key. Immutable after
# after creation time. # creation time.
# Corresponds to the JSON property `algorithm` # Corresponds to the JSON property `algorithm`
# @return [String] # @return [String]
attr_accessor :algorithm attr_accessor :algorithm
@ -149,15 +148,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :creation_time attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource # A mutable string of at most 1024 characters associated with this resource for
# for the user's convenience. Has no effect on the resource's function. # the user's convenience. Has no effect on the resource's function.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Cryptographic hashes of the DNSKEY resource record associated with this # Cryptographic hashes of the DNSKEY resource record associated with this DnsKey.
# DnsKey. These digests are needed to construct a DS record that points at # These digests are needed to construct a DS record that points at this DNS key.
# this DNS key. Output only. # Output only.
# Corresponds to the JSON property `digests` # Corresponds to the JSON property `digests`
# @return [Array<Google::Apis::DnsV2beta1::DnsKeyDigest>] # @return [Array<Google::Apis::DnsV2beta1::DnsKeyDigest>]
attr_accessor :digests attr_accessor :digests
@ -168,8 +167,8 @@ module Google
attr_accessor :id attr_accessor :id
# Active keys will be used to sign subsequent changes to the ManagedZone. # Active keys will be used to sign subsequent changes to the ManagedZone.
# Inactive keys will still be present as DNSKEY Resource Records for the use # Inactive keys will still be present as DNSKEY Resource Records for the use of
# of resolvers validating existing signatures. # resolvers validating existing signatures.
# Corresponds to the JSON property `isActive` # Corresponds to the JSON property `isActive`
# @return [Boolean] # @return [Boolean]
attr_accessor :is_active attr_accessor :is_active
@ -181,11 +180,11 @@ module Google
attr_accessor :key_length attr_accessor :key_length
# The key tag is a non-cryptographic hash of the a DNSKEY resource record # The key tag is a non-cryptographic hash of the a DNSKEY resource record
# associated with this DnsKey. The key tag can be used to identify a DNSKEY # associated with this DnsKey. The key tag can be used to identify a DNSKEY more
# more quickly (but it is not a unique identifier). In particular, the key # quickly (but it is not a unique identifier). In particular, the key tag is
# tag is used in a parent zone's DS record to point at the DNSKEY in this # used in a parent zone's DS record to point at the DNSKEY in this child
# child ManagedZone. The key tag is a number in the range [0, 65535] and the # ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm
# algorithm to calculate it is specified in RFC4034 Appendix B. Output only. # to calculate it is specified in RFC4034 Appendix B. Output only.
# Corresponds to the JSON property `keyTag` # Corresponds to the JSON property `keyTag`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :key_tag attr_accessor :key_tag
@ -202,9 +201,9 @@ module Google
# One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the # One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
# Secure Entry Point flag set and, when active, will be used to sign only # Secure Entry Point flag set and, when active, will be used to sign only
# resource record sets of type DNSKEY. Otherwise, the Secure Entry Point # resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
# flag will be cleared and this key will be used to sign only resource # will be cleared and this key will be used to sign only resource record sets of
# record sets of other types. Immutable after creation time. # other types. Immutable after creation time.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -233,8 +232,8 @@ module Google
class DnsKeyDigest class DnsKeyDigest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The base-16 encoded bytes of this digest. Suitable for use in a DS # The base-16 encoded bytes of this digest. Suitable for use in a DS resource
# resource record. # record.
# Corresponds to the JSON property `digest` # Corresponds to the JSON property `digest`
# @return [String] # @return [String]
attr_accessor :digest attr_accessor :digest
@ -255,8 +254,8 @@ module Google
end end
end end
# Parameters for DnsKey key generation. Used for generating initial keys # Parameters for DnsKey key generation. Used for generating initial keys for a
# for a new ManagedZone and as default when adding a new DnsKey. # new ManagedZone and as default when adding a new DnsKey.
class DnsKeySpec class DnsKeySpec
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -270,11 +269,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :key_length attr_accessor :key_length
# Specifies whether this is a key signing key (KSK) or a zone signing key # Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK).
# (ZSK). Key signing keys have the Secure Entry Point flag set and, when # Key signing keys have the Secure Entry Point flag set and, when active, will
# active, will only be used to sign resource record sets of type DNSKEY. # only be used to sign resource record sets of type DNSKEY. Zone signing keys do
# Zone signing keys do not have the Secure Entry Point flag set and will be # not have the Secure Entry Point flag set and will be used to sign all other
# used to sign all other types of resource record sets. # types of resource record sets.
# Corresponds to the JSON property `keyType` # Corresponds to the JSON property `keyType`
# @return [String] # @return [String]
attr_accessor :key_type attr_accessor :key_type
@ -316,15 +315,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your pagination token. # list request using this value as your pagination token. In this way you can
# In this way you can retrieve the complete contents of even very large # retrieve the complete contents of even very large collections one page at a
# collections one page at a time. However, if the contents of the collection # time. However, if the contents of the collection change between the first and
# change between the first and last paginated list request, the set of all # last paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a "snapshot"
# no way to retrieve a "snapshot" of collections larger than the maximum # of collections larger than the maximum page size.
# page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -343,19 +341,19 @@ module Google
end end
# A zone is a subtree of the DNS namespace under one administrative # A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# hosted by the Cloud DNS service. # by the Cloud DNS service.
class ManagedZone class ManagedZone
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The time that this resource was created on the server. This is in RFC3339 # The time that this resource was created on the server. This is in RFC3339 text
# text format. Output only. # format. Output only.
# Corresponds to the JSON property `creationTime` # Corresponds to the JSON property `creationTime`
# @return [String] # @return [String]
attr_accessor :creation_time attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource # A mutable string of at most 1024 characters associated with this resource for
# for the user's convenience. Has no effect on the managed zone's function. # the user's convenience. Has no effect on the managed zone's function.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
@ -370,9 +368,9 @@ module Google
# @return [Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig] # @return [Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig]
attr_accessor :dnssec_config attr_accessor :dnssec_config
# The presence for this field indicates that outbound forwarding is enabled # The presence for this field indicates that outbound forwarding is enabled for
# for this zone. The value of this field contains the set of destinations # this zone. The value of this field contains the set of destinations to forward
# to forward to. # to.
# Corresponds to the JSON property `forwardingConfig` # Corresponds to the JSON property `forwardingConfig`
# @return [Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig] # @return [Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig]
attr_accessor :forwarding_config attr_accessor :forwarding_config
@ -392,16 +390,16 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# User assigned name for this resource. Must be unique within the project. # User assigned name for this resource. Must be unique within the project. The
# The name must be 1-63 characters long, must begin with a letter, end with # name must be 1-63 characters long, must begin with a letter, end with a letter
# a letter or digit, and only contain lowercase letters, digits or dashes. # or digit, and only contain lowercase letters, digits or dashes.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Optionally specifies the NameServerSet for this ManagedZone. A # Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
# NameServerSet is a set of DNS name servers that all host the same # is a set of DNS name servers that all host the same ManagedZones. Most users
# ManagedZones. Most users will leave this field unset. # will leave this field unset.
# Corresponds to the JSON property `nameServerSet` # Corresponds to the JSON property `nameServerSet`
# @return [String] # @return [String]
attr_accessor :name_server_set attr_accessor :name_server_set
@ -412,28 +410,28 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :name_servers attr_accessor :name_servers
# The presence of this field indicates that DNS Peering is enabled for this # The presence of this field indicates that DNS Peering is enabled for this zone.
# zone. The value of this field contains the network to peer with. # The value of this field contains the network to peer with.
# Corresponds to the JSON property `peeringConfig` # Corresponds to the JSON property `peeringConfig`
# @return [Google::Apis::DnsV2beta1::ManagedZonePeeringConfig] # @return [Google::Apis::DnsV2beta1::ManagedZonePeeringConfig]
attr_accessor :peering_config attr_accessor :peering_config
# For privately visible zones, the set of Virtual Private Cloud resources # For privately visible zones, the set of Virtual Private Cloud resources that
# that the zone is visible from. # the zone is visible from.
# Corresponds to the JSON property `privateVisibilityConfig` # Corresponds to the JSON property `privateVisibilityConfig`
# @return [Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfig] # @return [Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfig]
attr_accessor :private_visibility_config attr_accessor :private_visibility_config
# The presence of this field indicates that this is a managed reverse # The presence of this field indicates that this is a managed reverse lookup
# lookup zone and Cloud DNS will resolve reverse lookup queries using # zone and Cloud DNS will resolve reverse lookup queries using automatically
# automatically configured records for VPC resources. This only applies # configured records for VPC resources. This only applies to networks listed
# to networks listed under private_visibility_config. # under private_visibility_config.
# Corresponds to the JSON property `reverseLookupConfig` # Corresponds to the JSON property `reverseLookupConfig`
# @return [Google::Apis::DnsV2beta1::ManagedZoneReverseLookupConfig] # @return [Google::Apis::DnsV2beta1::ManagedZoneReverseLookupConfig]
attr_accessor :reverse_lookup_config attr_accessor :reverse_lookup_config
# The zone's visibility: public zones are exposed to the Internet, while # The zone's visibility: public zones are exposed to the Internet, while private
# private zones are visible only to Virtual Private Cloud resources. # zones are visible only to Virtual Private Cloud resources.
# Corresponds to the JSON property `visibility` # Corresponds to the JSON property `visibility`
# @return [String] # @return [String]
attr_accessor :visibility attr_accessor :visibility
@ -466,8 +464,8 @@ module Google
class ManagedZoneDnsSecConfig class ManagedZoneDnsSecConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies parameters for generating initial DnsKeys for this # Specifies parameters for generating initial DnsKeys for this ManagedZone. Can
# ManagedZone. Can only be changed while the state is OFF. # only be changed while the state is OFF.
# Corresponds to the JSON property `defaultKeySpecs` # Corresponds to the JSON property `defaultKeySpecs`
# @return [Array<Google::Apis::DnsV2beta1::DnsKeySpec>] # @return [Array<Google::Apis::DnsV2beta1::DnsKeySpec>]
attr_accessor :default_key_specs attr_accessor :default_key_specs
@ -477,8 +475,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Specifies the mechanism for authenticated denial-of-existence responses. # Specifies the mechanism for authenticated denial-of-existence responses. Can
# Can only be changed while the state is OFF. # only be changed while the state is OFF.
# Corresponds to the JSON property `nonExistence` # Corresponds to the JSON property `nonExistence`
# @return [String] # @return [String]
attr_accessor :non_existence attr_accessor :non_existence
@ -510,9 +508,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# List of target name servers to forward to. # List of target name servers to forward to. Cloud DNS will select the best
# Cloud DNS will select the best available name server if more than one # available name server if more than one target is given.
# target is given.
# Corresponds to the JSON property `targetNameServers` # Corresponds to the JSON property `targetNameServers`
# @return [Array<Google::Apis::DnsV2beta1::ManagedZoneForwardingConfigNameServerTarget>] # @return [Array<Google::Apis::DnsV2beta1::ManagedZoneForwardingConfigNameServerTarget>]
attr_accessor :target_name_servers attr_accessor :target_name_servers
@ -532,11 +529,10 @@ module Google
class ManagedZoneForwardingConfigNameServerTarget class ManagedZoneForwardingConfigNameServerTarget
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Forwarding path for this NameServerTarget. If unset or set to DEFAULT, # Forwarding path for this NameServerTarget. If unset or set to DEFAULT, Cloud
# Cloud DNS will make forwarding decision based on address ranges, # DNS will make forwarding decision based on address ranges, i.e. RFC1918
# i.e. RFC1918 addresses go to the VPC, non-RFC1918 addresses go to the # addresses go to the VPC, non-RFC1918 addresses go to the Internet. When set to
# Internet. When set to PRIVATE, Cloud DNS will always send queries # PRIVATE, Cloud DNS will always send queries through VPC for this target.
# through VPC for this target.
# Corresponds to the JSON property `forwardingPath` # Corresponds to the JSON property `forwardingPath`
# @return [String] # @return [String]
attr_accessor :forwarding_path attr_accessor :forwarding_path
@ -577,15 +573,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your page token. # list request using this value as your page token. In this way you can retrieve
# In this way you can retrieve the complete contents of even very large # the complete contents of even very large collections one page at a time.
# collections one page at a time. However, if the contents of the collection # However, if the contents of the collection change between the first and last
# change between the first and last paginated list request, the set of all # paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -637,11 +632,10 @@ module Google
class ManagedZonePeeringConfigTargetNetwork class ManagedZonePeeringConfigTargetNetwork
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The time at which the zone was deactivated, in RFC 3339 date-time # The time at which the zone was deactivated, in RFC 3339 date-time format. An
# format. An empty string indicates that the peering connection is # empty string indicates that the peering connection is active. The producer
# active. The producer network can deactivate a zone. The zone is # network can deactivate a zone. The zone is automatically deactivated if the
# automatically deactivated if the producer network that the zone # producer network that the zone targeted is deleted. Output only.
# targeted is deleted. Output only.
# Corresponds to the JSON property `deactivateTime` # Corresponds to the JSON property `deactivateTime`
# @return [String] # @return [String]
attr_accessor :deactivate_time attr_accessor :deactivate_time
@ -651,10 +645,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The fully qualified URL of the VPC network to forward queries to. # The fully qualified URL of the VPC network to forward queries to. This should
# This should be formatted like # be formatted like https://www.googleapis.com/compute/v1/projects/`project`/
# https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` # global/networks/`network`
# network`
# Corresponds to the JSON property `networkUrl` # Corresponds to the JSON property `networkUrl`
# @return [String] # @return [String]
attr_accessor :network_url attr_accessor :network_url
@ -705,10 +698,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The fully qualified URL of the VPC network to bind to. # The fully qualified URL of the VPC network to bind to. This should be
# This should be formatted like # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
# https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` # networks/`network`
# network`
# Corresponds to the JSON property `networkUrl` # Corresponds to the JSON property `networkUrl`
# @return [String] # @return [String]
attr_accessor :network_url attr_accessor :network_url
@ -762,15 +754,14 @@ module Google
# @return [Array<Google::Apis::DnsV2beta1::ManagedZone>] # @return [Array<Google::Apis::DnsV2beta1::ManagedZone>]
attr_accessor :managed_zones attr_accessor :managed_zones
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your page token. # list request using this value as your page token. In this way you can retrieve
# In this way you can retrieve the complete contents of even very large # the complete contents of even very large collections one page at a time.
# collections one page at a time. However, if the contents of the collection # However, if the contents of the collection change between the first and last
# change between the first and last paginated list request, the set of all # paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -789,10 +780,8 @@ module Google
end end
# An operation represents a successful mutation performed on a Cloud DNS # An operation represents a successful mutation performed on a Cloud DNS
# resource. # resource. Operations provide: - An audit log of server resource mutations. - A
# Operations provide: # way to recover/retry API calls in the case where the response is never
# - An audit log of server resource mutations.
# - A way to recover/retry API calls in the case where the response is never
# received by the caller. Use the caller specified client_operation_id. # received by the caller. Use the caller specified client_operation_id.
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -802,10 +791,10 @@ module Google
# @return [Google::Apis::DnsV2beta1::OperationDnsKeyContext] # @return [Google::Apis::DnsV2beta1::OperationDnsKeyContext]
attr_accessor :dns_key_context attr_accessor :dns_key_context
# Unique identifier for the resource. This is the client_operation_id if # Unique identifier for the resource. This is the client_operation_id if the
# the client specified it when the mutation was initiated, otherwise, # client specified it when the mutation was initiated, otherwise, it is
# it is generated by the server. The name must be 1-63 characters long # generated by the server. The name must be 1-63 characters long and match the
# and match the regular expression [-a-z0-9]? (output only) # regular expression [-a-z0-9]? (output only)
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -821,23 +810,21 @@ module Google
# @return [String] # @return [String]
attr_accessor :start_time attr_accessor :start_time
# Status of the operation. Can be one of the following: "PENDING" or "DONE" # Status of the operation. Can be one of the following: "PENDING" or "DONE" (
# (output only). A status of "DONE" means that the # output only). A status of "DONE" means that the request to update the
# request to update the authoritative servers has been sent, but the # authoritative servers has been sent, but the servers might not be updated yet.
# servers might not be updated yet.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
# Type of the operation. Operations include insert, update, and delete # Type of the operation. Operations include insert, update, and delete (output
# (output only). # only).
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
# User who requested the operation, for example: user@example.com. # User who requested the operation, for example: user@example.com. cloud-dns-
# cloud-dns-system for operations automatically done by the system. # system for operations automatically done by the system. (output only)
# (output only)
# Corresponds to the JSON property `user` # Corresponds to the JSON property `user`
# @return [String] # @return [String]
attr_accessor :user attr_accessor :user
@ -894,15 +881,15 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A zone is a subtree of the DNS namespace under one administrative # A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# hosted by the Cloud DNS service. # by the Cloud DNS service.
# Corresponds to the JSON property `newValue` # Corresponds to the JSON property `newValue`
# @return [Google::Apis::DnsV2beta1::ManagedZone] # @return [Google::Apis::DnsV2beta1::ManagedZone]
attr_accessor :new_value attr_accessor :new_value
# A zone is a subtree of the DNS namespace under one administrative # A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# hosted by the Cloud DNS service. # by the Cloud DNS service.
# Corresponds to the JSON property `oldValue` # Corresponds to the JSON property `oldValue`
# @return [Google::Apis::DnsV2beta1::ManagedZone] # @return [Google::Apis::DnsV2beta1::ManagedZone]
attr_accessor :old_value attr_accessor :old_value
@ -932,15 +919,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your page token. # list request using this value as your page token. In this way you can retrieve
# In this way you can retrieve the complete contents of even very large # the complete contents of even very large collections one page at a time.
# collections one page at a time. However, if the contents of the collection # However, if the contents of the collection change between the first and last
# change between the first and last paginated list request, the set of all # paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -1020,23 +1006,22 @@ module Google
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Sets an alternative name server for the associated networks. When # Sets an alternative name server for the associated networks. When specified,
# specified, all DNS queries are forwarded to a name server that you # all DNS queries are forwarded to a name server that you choose. Names such as .
# choose. Names such as .internal are not available when an alternative # internal are not available when an alternative name server is specified.
# name server is specified.
# Corresponds to the JSON property `alternativeNameServerConfig` # Corresponds to the JSON property `alternativeNameServerConfig`
# @return [Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig] # @return [Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig]
attr_accessor :alternative_name_server_config attr_accessor :alternative_name_server_config
# A mutable string of at most 1024 characters associated with this resource # A mutable string of at most 1024 characters associated with this resource for
# for the user's convenience. Has no effect on the policy's function. # the user's convenience. Has no effect on the policy's function.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Allows networks bound to this policy to receive DNS queries sent by VMs or # Allows networks bound to this policy to receive DNS queries sent by VMs or
# applications over VPN connections. When enabled, a virtual IP address will # applications over VPN connections. When enabled, a virtual IP address will be
# be allocated from each of the sub-networks that are bound to this policy. # allocated from each of the sub-networks that are bound to this policy.
# Corresponds to the JSON property `enableInboundForwarding` # Corresponds to the JSON property `enableInboundForwarding`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_inbound_forwarding attr_accessor :enable_inbound_forwarding
@ -1095,10 +1080,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Sets an alternative name server for the associated networks. When # Sets an alternative name server for the associated networks. When specified,
# specified, all DNS queries are forwarded to a name server that you # all DNS queries are forwarded to a name server that you choose. Names such as .
# choose. Names such as .internal are not available when an alternative # internal are not available when an alternative name server is specified.
# name server is specified.
# Corresponds to the JSON property `targetNameServers` # Corresponds to the JSON property `targetNameServers`
# @return [Array<Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfigTargetNameServer>] # @return [Array<Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfigTargetNameServer>]
attr_accessor :target_name_servers attr_accessor :target_name_servers
@ -1118,11 +1102,10 @@ module Google
class PolicyAlternativeNameServerConfigTargetNameServer class PolicyAlternativeNameServerConfigTargetNameServer
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Forwarding path for this TargetNameServer. If unset or set to DEFAULT, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud
# Cloud DNS will make forwarding decision based on address ranges, # DNS will make forwarding decision based on address ranges, i.e. RFC1918
# i.e. RFC1918 addresses go to the VPC, non-RFC1918 addresses go to the # addresses go to the VPC, non-RFC1918 addresses go to the Internet. When set to
# Internet. When set to PRIVATE, Cloud DNS will always send queries # PRIVATE, Cloud DNS will always send queries through VPC for this target.
# through VPC for this target.
# Corresponds to the JSON property `forwardingPath` # Corresponds to the JSON property `forwardingPath`
# @return [String] # @return [String]
attr_accessor :forwarding_path attr_accessor :forwarding_path
@ -1158,10 +1141,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The fully qualified URL of the VPC network to bind to. # The fully qualified URL of the VPC network to bind to. This should be
# This should be formatted like # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
# https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` # networks/`network`
# network`
# Corresponds to the JSON property `networkUrl` # Corresponds to the JSON property `networkUrl`
# @return [String] # @return [String]
attr_accessor :network_url attr_accessor :network_url
@ -1193,8 +1175,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Unique numeric identifier for the resource; defined by the server (output # Unique numeric identifier for the resource; defined by the server (output only)
# only). # .
# Corresponds to the JSON property `number` # Corresponds to the JSON property `number`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :number attr_accessor :number
@ -1236,8 +1218,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :managed_zones attr_accessor :managed_zones
# Maximum allowed number of managed zones which can be attached to a # Maximum allowed number of managed zones which can be attached to a network.
# network.
# Corresponds to the JSON property `managedZonesPerNetwork` # Corresponds to the JSON property `managedZonesPerNetwork`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :managed_zones_per_network attr_accessor :managed_zones_per_network
@ -1263,8 +1244,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :resource_records_per_rrset attr_accessor :resource_records_per_rrset
# Maximum allowed number of ResourceRecordSets to add per # Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.
# ChangesCreateRequest.
# Corresponds to the JSON property `rrsetAdditionsPerChange` # Corresponds to the JSON property `rrsetAdditionsPerChange`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :rrset_additions_per_change attr_accessor :rrset_additions_per_change
@ -1290,8 +1270,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :target_name_servers_per_policy attr_accessor :target_name_servers_per_policy
# Maximum allowed size for total rrdata in one ChangesCreateRequest in # Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
# bytes.
# Corresponds to the JSON property `totalRrdataSizePerChange` # Corresponds to the JSON property `totalRrdataSizePerChange`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :total_rrdata_size_per_change attr_accessor :total_rrdata_size_per_change
@ -1340,7 +1319,7 @@ module Google
attr_accessor :name attr_accessor :name
# As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see
# <a href="/dns/records/json-record">examples</a>. # examples.
# Corresponds to the JSON property `rrdatas` # Corresponds to the JSON property `rrdatas`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :rrdatas attr_accessor :rrdatas
@ -1355,9 +1334,8 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :ttl attr_accessor :ttl
# The identifier of a supported record type. See the list of # The identifier of a supported record type. See the list of Supported DNS
# <a href="/dns/docs/overview#supported_dns_record_types">Supported # record types.
# DNS record types</a>.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -1391,15 +1369,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The presence of this field indicates that there exist more results # The presence of this field indicates that there exist more results following
# following your last page of results in pagination order. To fetch them, # your last page of results in pagination order. To fetch them, make another
# make another list request using this value as your pagination token. # list request using this value as your pagination token. In this way you can
# In this way you can retrieve the complete contents of even very large # retrieve the complete contents of even very large collections one page at a
# collections one page at a time. However, if the contents of the collection # time. However, if the contents of the collection change between the first and
# change between the first and last paginated list request, the set of all # last paginated list request, the set of all elements returned will be an
# elements returned will be an inconsistent view of the collection. There is # inconsistent view of the collection. There is no way to retrieve a consistent
# no way to retrieve a consistent snapshot of a collection larger than the # snapshot of a collection larger than the maximum page size.
# maximum page size.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -1426,9 +1403,9 @@ module Google
class ResponseHeader class ResponseHeader
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# For mutating operation requests that completed successfully. # For mutating operation requests that completed successfully. This is the
# This is the client_operation_id if the client specified it, # client_operation_id if the client specified it, otherwise it is generated by
# otherwise it is generated by the server (output only). # the server (output only).
# Corresponds to the JSON property `operationId` # Corresponds to the JSON property `operationId`
# @return [String] # @return [String]
attr_accessor :operation_id attr_accessor :operation_id

View File

@ -51,13 +51,12 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Google::Apis::DnsV2beta1::Change] change_object # @param [Google::Apis::DnsV2beta1::Change] change_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -93,15 +92,14 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] change_id # @param [String] change_id
# The identifier of the requested change, from a previous # The identifier of the requested change, from a previous
# ResourceRecordSetsChangeResponse. # ResourceRecordSetsChangeResponse.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -136,14 +134,14 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] sort_by # @param [String] sort_by
# Sorting criterion. The only supported value is change sequence. # Sorting criterion. The only supported value is change sequence.
# @param [String] sort_order # @param [String] sort_order
@ -184,18 +182,17 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] dns_key_id # @param [String] dns_key_id
# The identifier of the requested DnsKey. # The identifier of the requested DnsKey.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] digest_type # @param [String] digest_type
# An optional comma-separated list of digest types to compute and display # An optional comma-separated list of digest types to compute and display for
# for key signing keys. If omitted, the recommended digest type will be # key signing keys. If omitted, the recommended digest type will be computed and
# computed and displayed. # displayed.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -231,18 +228,18 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] digest_type # @param [String] digest_type
# An optional comma-separated list of digest types to compute and display # An optional comma-separated list of digest types to compute and display for
# for key signing keys. If omitted, the recommended digest type will be # key signing keys. If omitted, the recommended digest type will be computed and
# computed and displayed. # displayed.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -282,9 +279,8 @@ module Google
# @param [String] operation # @param [String] operation
# Identifies the operation addressed by this request. # Identifies the operation addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -321,11 +317,11 @@ module Google
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. # Identifies the managed zone addressed by this request.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] sort_by # @param [String] sort_by
# Sorting criterion. The only supported values are START_TIME and ID. # Sorting criterion. The only supported values are START_TIME and ID.
# @param [String] fields # @param [String] fields
@ -364,9 +360,8 @@ module Google
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -401,12 +396,11 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -438,12 +432,11 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -479,11 +472,11 @@ module Google
# @param [String] dns_name # @param [String] dns_name
# Restricts the list to return only zones with this domain name. # Restricts the list to return only zones with this domain name.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -518,13 +511,12 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -560,13 +552,12 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -603,9 +594,8 @@ module Google
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [Google::Apis::DnsV2beta1::Policy] policy_object # @param [Google::Apis::DnsV2beta1::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -643,9 +633,8 @@ module Google
# @param [String] policy # @param [String] policy
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -679,9 +668,8 @@ module Google
# @param [String] policy # @param [String] policy
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -715,11 +703,11 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -756,9 +744,8 @@ module Google
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV2beta1::Policy] policy_object # @param [Google::Apis::DnsV2beta1::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -797,9 +784,8 @@ module Google
# User given friendly name of the policy addressed by this request. # User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV2beta1::Policy] policy_object # @param [Google::Apis::DnsV2beta1::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -835,9 +821,8 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier # For mutating operation requests only. An optional identifier specified by the
# specified by the client. Must be unique for operation resources in the # client. Must be unique for operation resources in the Operations collection.
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -870,20 +855,20 @@ module Google
# @param [String] project # @param [String] project
# Identifies the project addressed by this request. # Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed # Identifies the managed zone addressed by this request. Can be the managed zone
# zone name or id. # name or id.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the # Optional. Maximum number of results to be returned. If unspecified, the server
# server will decide how many results to return. # will decide how many results to return.
# @param [String] name # @param [String] name
# Restricts the list to return only records with this fully qualified domain # Restricts the list to return only records with this fully qualified domain
# name. # name.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. # Optional. A tag returned by a previous list request that was truncated. Use
# Use this parameter to continue a previous list request. # this parameter to continue a previous list request.
# @param [String] type # @param [String] type
# Restricts the list to return only records of this type. If present, the # Restricts the list to return only records of this type. If present, the "name"
# "name" parameter must also be present. # parameter must also be present.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

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

View File

@ -35,13 +35,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -58,8 +56,8 @@ module Google
class FileShareConfig class FileShareConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# File share capacity in gigabytes (GB). # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3
# Cloud Filestore defines 1 GB as 1024^3 bytes. # bytes.
# Corresponds to the JSON property `capacityGb` # Corresponds to the JSON property `capacityGb`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :capacity_gb attr_accessor :capacity_gb
@ -85,10 +83,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# consumer_defined_name is the name that is set by the consumer. On the other # consumer_defined_name is the name that is set by the consumer. On the other
# hand Name field represents system-assigned id of an instance so consumers # hand Name field represents system-assigned id of an instance so consumers are
# are not necessarily aware of it. # not necessarily aware of it. consumer_defined_name is used for notification/UI
# consumer_defined_name is used for notification/UI purposes for consumer to # purposes for consumer to recognize their instances.
# recognize their instances.
# Corresponds to the JSON property `consumerDefinedName` # Corresponds to the JSON property `consumerDefinedName`
# @return [String] # @return [String]
attr_accessor :consumer_defined_name attr_accessor :consumer_defined_name
@ -98,18 +95,17 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# Optional. Resource labels to represent user provided metadata. Each label # Optional. Resource labels to represent user provided metadata. Each label is a
# is a key-value pair, where both the key and the value are arbitrary strings # key-value pair, where both the key and the value are arbitrary strings
# provided by the user. # provided by the user.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# The MaintenancePolicies that have been attached to the instance. # The MaintenancePolicies that have been attached to the instance. The key must
# The key must be of the type name of the oneof policy name defined in # be of the type name of the oneof policy name defined in MaintenancePolicy, and
# MaintenancePolicy, and the referenced policy must define the same policy # the referenced policy must define the same policy type. For complete details
# type. For complete details of MaintenancePolicy, please refer to # of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.
# go/cloud-saas-mw-ug.
# Corresponds to the JSON property `maintenancePolicyNames` # Corresponds to the JSON property `maintenancePolicyNames`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :maintenance_policy_names attr_accessor :maintenance_policy_names
@ -126,29 +122,28 @@ module Google
# @return [Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings] # @return [Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings]
attr_accessor :maintenance_settings attr_accessor :maintenance_settings
# Unique name of the resource. It uses the form: # Unique name of the resource. It uses the form: `projects/`project_id`/
# `projects/`project_id`/locations/`location_id`/instances/`instance_id`` # locations/`location_id`/instances/`instance_id``
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Output only. Custom string attributes used primarily to expose # Output only. Custom string attributes used primarily to expose producer-
# producer-specific information in monitoring dashboards. # specific information in monitoring dashboards. See go/get-instance-metadata.
# See go/get-instance-metadata.
# Corresponds to the JSON property `producerMetadata` # Corresponds to the JSON property `producerMetadata`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :producer_metadata attr_accessor :producer_metadata
# Output only. The list of data plane resources provisioned for this # Output only. The list of data plane resources provisioned for this instance, e.
# instance, e.g. compute VMs. See go/get-instance-metadata. # g. compute VMs. See go/get-instance-metadata.
# Corresponds to the JSON property `provisionedResources` # Corresponds to the JSON property `provisionedResources`
# @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource>] # @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource>]
attr_accessor :provisioned_resources attr_accessor :provisioned_resources
# Link to the SLM instance template. Only populated when updating SLM # Link to the SLM instance template. Only populated when updating SLM instances
# instances via SSA's Actuation service adaptor. # via SSA's Actuation service adaptor. Service producers with custom control
# Service producers with custom control plane (e.g. Cloud SQL) doesn't # plane (e.g. Cloud SQL) doesn't need to populate this field. Instead they
# need to populate this field. Instead they should use software_versions. # should use software_versions.
# Corresponds to the JSON property `slmInstanceTemplate` # Corresponds to the JSON property `slmInstanceTemplate`
# @return [String] # @return [String]
attr_accessor :slm_instance_template attr_accessor :slm_instance_template
@ -159,8 +154,8 @@ module Google
# @return [Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata] # @return [Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata]
attr_accessor :slo_metadata attr_accessor :slo_metadata
# Software versions that are used to deploy this instance. This can be # Software versions that are used to deploy this instance. This can be mutated
# mutated by rollout services. # by rollout services.
# Corresponds to the JSON property `softwareVersions` # Corresponds to the JSON property `softwareVersions`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :software_versions attr_accessor :software_versions
@ -171,8 +166,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
# Output only. ID of the associated GCP tenant project. # Output only. ID of the associated GCP tenant project. See go/get-instance-
# See go/get-instance-metadata. # metadata.
# Corresponds to the JSON property `tenantProjectId` # Corresponds to the JSON property `tenantProjectId`
# @return [String] # @return [String]
attr_accessor :tenant_project_id attr_accessor :tenant_project_id
@ -211,9 +206,9 @@ module Google
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Can this scheduled update be rescheduled? # Can this scheduled update be rescheduled? By default, it's true and API needs
# By default, it's true and API needs to do explicitly check whether it's # to do explicitly check whether it's set, if it's set as false explicitly, it's
# set, if it's set as false explicitly, it's false # false
# Corresponds to the JSON property `canReschedule` # Corresponds to the JSON property `canReschedule`
# @return [Boolean] # @return [Boolean]
attr_accessor :can_reschedule attr_accessor :can_reschedule
@ -224,9 +219,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :end_time attr_accessor :end_time
# The rollout management policy this maintenance schedule is associated # The rollout management policy this maintenance schedule is associated with.
# with. When doing reschedule update request, the reschedule should be # When doing reschedule update request, the reschedule should be against this
# against this given policy. # given policy.
# Corresponds to the JSON property `rolloutManagementPolicy` # Corresponds to the JSON property `rolloutManagementPolicy`
# @return [String] # @return [String]
attr_accessor :rollout_management_policy attr_accessor :rollout_management_policy
@ -255,8 +250,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Exclude instance from maintenance. When true, rollout service will # Optional. Exclude instance from maintenance. When true, rollout service will
# not # not attempt maintenance on the instance. Rollout service will include the
# attempt maintenance on the instance. Rollout service will include the
# instance in reported rollout progress as not attempted. # instance in reported rollout progress as not attempted.
# Corresponds to the JSON property `exclude` # Corresponds to the JSON property `exclude`
# @return [Boolean] # @return [Boolean]
@ -273,18 +267,17 @@ module Google
end end
end end
# Node information for custom per-node SLO implementations. # Node information for custom per-node SLO implementations. SSA does not support
# SSA does not support per-node SLO, but producers can populate per-node # per-node SLO, but producers can populate per-node information in SloMetadata
# information in SloMetadata for custom precomputations. # for custom precomputations. SSA Eligibility Exporter will emit per-node metric
# SSA Eligibility Exporter will emit per-node metric based on this information. # based on this information.
class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# By default node is eligible if instance is eligible. # By default node is eligible if instance is eligible. But individual node might
# But individual node might be excluded from SLO by adding entry here. # be excluded from SLO by adding entry here. For semantic see SloMetadata.
# For semantic see SloMetadata.exclusions. # exclusions. If both instance and node level exclusions are present for time
# If both instance and node level exclusions are present for time period, # period, the node level's reason will be reported by Eligibility Exporter.
# the node level's reason will be reported by Eligibility Exporter.
# Corresponds to the JSON property `exclusions` # Corresponds to the JSON property `exclusions`
# @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>] # @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
attr_accessor :exclusions attr_accessor :exclusions
@ -294,8 +287,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# The id of the node. # The id of the node. This should be equal to SaasInstanceNode.node_id.
# This should be equal to SaasInstanceNode.node_id.
# Corresponds to the JSON property `nodeId` # Corresponds to the JSON property `nodeId`
# @return [String] # @return [String]
attr_accessor :node_id attr_accessor :node_id
@ -316,18 +308,17 @@ module Google
class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Type of the resource. This can be either a GCP resource or a custom one # Type of the resource. This can be either a GCP resource or a custom one (e.g.
# (e.g. another cloud provider's VM). For GCP compute resources use singular # another cloud provider's VM). For GCP compute resources use singular form of
# form of the names listed in GCP compute API documentation # the names listed in GCP compute API documentation (https://cloud.google.com/
# (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with # compute/docs/reference/rest/v1/), prefixed with 'compute-', for example: '
# 'compute-', for example: 'compute-instance', 'compute-disk', # compute-instance', 'compute-disk', 'compute-autoscaler'.
# 'compute-autoscaler'.
# Corresponds to the JSON property `resourceType` # Corresponds to the JSON property `resourceType`
# @return [String] # @return [String]
attr_accessor :resource_type attr_accessor :resource_type
# URL identifying the resource, e.g. # URL identifying the resource, e.g. "https://www.googleapis.com/compute/v1/
# "https://www.googleapis.com/compute/v1/projects/...)". # projects/...)".
# Corresponds to the JSON property `resourceUrl` # Corresponds to the JSON property `resourceUrl`
# @return [String] # @return [String]
attr_accessor :resource_url attr_accessor :resource_url
@ -343,9 +334,9 @@ module Google
end end
end end
# SloEligibility is a tuple containing eligibility value: true if an instance # SloEligibility is a tuple containing eligibility value: true if an instance is
# is eligible for SLO calculation or false if it should be excluded from all # eligible for SLO calculation or false if it should be excluded from all SLO-
# SLO-related calculations along with a user-defined reason. # related calculations along with a user-defined reason.
class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -356,8 +347,7 @@ module Google
alias_method :eligible?, :eligible alias_method :eligible?, :eligible
# User-defined reason for the current value of instance eligibility. Usually, # User-defined reason for the current value of instance eligibility. Usually,
# this can be directly mapped to the internal state. An empty reason is # this can be directly mapped to the internal state. An empty reason is allowed.
# allowed.
# Corresponds to the JSON property `reason` # Corresponds to the JSON property `reason`
# @return [String] # @return [String]
attr_accessor :reason attr_accessor :reason
@ -377,28 +367,27 @@ module Google
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Exclusion duration. No restrictions on the possible values. # Exclusion duration. No restrictions on the possible values. When an ongoing
# When an ongoing operation is taking longer than initially expected, # operation is taking longer than initially expected, an existing entry in the
# an existing entry in the exclusion list can be updated by extending the # exclusion list can be updated by extending the duration. This is supported by
# duration. This is supported by the subsystem exporting eligibility data # the subsystem exporting eligibility data as long as such extension is
# as long as such extension is committed at least 10 minutes before the # committed at least 10 minutes before the original exclusion expiration -
# original exclusion expiration - otherwise it is possible that there will # otherwise it is possible that there will be "gaps" in the exclusion
# be "gaps" in the exclusion application in the exported timeseries. # application in the exported timeseries.
# Corresponds to the JSON property `duration` # Corresponds to the JSON property `duration`
# @return [String] # @return [String]
attr_accessor :duration attr_accessor :duration
# Human-readable reason for the exclusion. # Human-readable reason for the exclusion. This should be a static string (e.g. "
# This should be a static string (e.g. "Disruptive update in progress") # Disruptive update in progress") and should not contain dynamically generated
# and should not contain dynamically generated data (e.g. instance name). # data (e.g. instance name). Can be left empty.
# Can be left empty.
# Corresponds to the JSON property `reason` # Corresponds to the JSON property `reason`
# @return [String] # @return [String]
attr_accessor :reason attr_accessor :reason
# Name of an SLI that this exclusion applies to. Can be left empty, # Name of an SLI that this exclusion applies to. Can be left empty, signaling
# signaling that the instance should be excluded from all SLIs defined # that the instance should be excluded from all SLIs defined in the service SLO
# in the service SLO configuration. # configuration.
# Corresponds to the JSON property `sliName` # Corresponds to the JSON property `sliName`
# @return [String] # @return [String]
attr_accessor :sli_name attr_accessor :sli_name
@ -426,40 +415,38 @@ module Google
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# SloEligibility is a tuple containing eligibility value: true if an instance # SloEligibility is a tuple containing eligibility value: true if an instance is
# is eligible for SLO calculation or false if it should be excluded from all # eligible for SLO calculation or false if it should be excluded from all SLO-
# SLO-related calculations along with a user-defined reason. # related calculations along with a user-defined reason.
# Corresponds to the JSON property `eligibility` # Corresponds to the JSON property `eligibility`
# @return [Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility] # @return [Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility]
attr_accessor :eligibility attr_accessor :eligibility
# List of SLO exclusion windows. When multiple entries in the list match # List of SLO exclusion windows. When multiple entries in the list match (
# (matching the exclusion time-window against current time point) # matching the exclusion time-window against current time point) the exclusion
# the exclusion reason used in the first matching entry will be published. # reason used in the first matching entry will be published. It is not needed to
# It is not needed to include expired exclusion in this list, as only the # include expired exclusion in this list, as only the currently applicable
# currently applicable exclusions are taken into account by the eligibility # exclusions are taken into account by the eligibility exporting subsystem (the
# exporting subsystem (the historical state of exclusions will be reflected # historical state of exclusions will be reflected in the historically produced
# in the historically produced timeseries regardless of the current state). # timeseries regardless of the current state). This field can be used to mark
# This field can be used to mark the instance as temporary ineligible # the instance as temporary ineligible for the purpose of SLO calculation. For
# for the purpose of SLO calculation. For permanent instance SLO exclusion, # permanent instance SLO exclusion, use of custom instance eligibility is
# use of custom instance eligibility is recommended. See 'eligibility' field # recommended. See 'eligibility' field below.
# below.
# Corresponds to the JSON property `exclusions` # Corresponds to the JSON property `exclusions`
# @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>] # @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
attr_accessor :exclusions attr_accessor :exclusions
# Optional. List of nodes. # Optional. List of nodes. Some producers need to use per-node metadata to
# Some producers need to use per-node metadata to calculate SLO. # calculate SLO. This field allows such producers to publish per-node SLO meta
# This field allows such producers to publish per-node SLO meta data, # data, which will be consumed by SSA Eligibility Exporter and published in the
# which will be consumed by SSA Eligibility Exporter and published in the
# form of per node metric to Monarch. # form of per node metric to Monarch.
# Corresponds to the JSON property `nodes` # Corresponds to the JSON property `nodes`
# @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata>] # @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata>]
attr_accessor :nodes attr_accessor :nodes
# Name of the SLO tier the Instance belongs to. This name will be expected to # Name of the SLO tier the Instance belongs to. This name will be expected to
# match the tiers specified in the service SLO configuration. # match the tiers specified in the service SLO configuration. Field is mandatory
# Field is mandatory and must not be empty. # and must not be empty.
# Corresponds to the JSON property `tier` # Corresponds to the JSON property `tier`
# @return [String] # @return [String]
attr_accessor :tier attr_accessor :tier
@ -497,8 +484,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# File system shares on the instance. # File system shares on the instance. For this version, only a single file share
# For this version, only a single file share is supported. # is supported.
# Corresponds to the JSON property `fileShares` # Corresponds to the JSON property `fileShares`
# @return [Array<Google::Apis::FileV1::FileShareConfig>] # @return [Array<Google::Apis::FileV1::FileShareConfig>]
attr_accessor :file_shares attr_accessor :file_shares
@ -508,14 +495,14 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Output only. The resource name of the instance, in the format # Output only. The resource name of the instance, in the format projects/`
# projects/`project`/locations/`location`/instances/`instance`. # project`/locations/`location`/instances/`instance`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# VPC networks to which the instance is connected. # VPC networks to which the instance is connected. For this version, only a
# For this version, only a single network is supported. # single network is supported.
# Corresponds to the JSON property `networks` # Corresponds to the JSON property `networks`
# @return [Array<Google::Apis::FileV1::NetworkConfig>] # @return [Array<Google::Apis::FileV1::NetworkConfig>]
attr_accessor :networks attr_accessor :networks
@ -558,17 +545,17 @@ module Google
class ListInstancesResponse class ListInstancesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A list of instances in the project for the specified location. # A list of instances in the project for the specified location. If the `
# If the `location` value in the request is "-", the response contains a list # location` value in the request is "-", the response contains a list of
# of instances from all locations. If any location is unreachable, the # instances from all locations. If any location is unreachable, the response
# response will only return instances in reachable locations and the # will only return instances in reachable locations and the "unreachable" field
# "unreachable" field will be populated with a list of unreachable locations. # will be populated with a list of unreachable locations.
# Corresponds to the JSON property `instances` # Corresponds to the JSON property `instances`
# @return [Array<Google::Apis::FileV1::Instance>] # @return [Array<Google::Apis::FileV1::Instance>]
attr_accessor :instances attr_accessor :instances
# The token you can use to retrieve the next page of results. Not returned # The token you can use to retrieve the next page of results. Not returned if
# if there are no more results in the list. # there are no more results in the list.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -644,14 +631,14 @@ module Google
class Location class Location
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name. # The friendly name for this location, typically a nearby city name. For example,
# For example, "Tokyo". # "Tokyo".
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Cross-service attributes for the location. For example # Cross-service attributes for the location. For example `"cloud.googleapis.com/
# `"cloud.googleapis.com/region": "us-east1"` # region": "us-east1"`
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -667,8 +654,8 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# Resource name for the location, which may vary between implementations. # Resource name for the location, which may vary between implementations. For
# For example: `"projects/example-project/locations/us-east1"` # example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -691,34 +678,30 @@ module Google
class NetworkConfig class NetworkConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. IPv4 addresses in the format # Output only. IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`octet
# `octet 1`.`octet 2`.`octet 3`.`octet 4` or IPv6 addresses in the format # 4` or IPv6 addresses in the format `block 1`:`block 2`:`block 3`:`block 4`:`
# `block 1`:`block 2`:`block 3`:`block 4`:`block 5`:`block 6`:`block # block 5`:`block 6`:`block 7`:`block 8`.
# 7`:`block 8`.
# Corresponds to the JSON property `ipAddresses` # Corresponds to the JSON property `ipAddresses`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ip_addresses attr_accessor :ip_addresses
# Internet protocol versions for which the instance has IP addresses # Internet protocol versions for which the instance has IP addresses assigned.
# assigned. For this version, only MODE_IPV4 is supported. # For this version, only MODE_IPV4 is supported.
# Corresponds to the JSON property `modes` # Corresponds to the JSON property `modes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :modes attr_accessor :modes
# The name of the Google Compute Engine # The name of the Google Compute Engine [VPC network](/compute/docs/networks-and-
# [VPC network](/compute/docs/networks-and-firewalls#networks) to which the # firewalls#networks) to which the instance is connected.
# instance is connected.
# Corresponds to the JSON property `network` # Corresponds to the JSON property `network`
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
# A /29 CIDR block in one of the # A /29 CIDR block in one of the [internal IP address ranges](https://www.arin.
# [internal IP address # net/knowledge/address_filters.html) that identifies the range of IP addresses
# ranges](https://www.arin.net/knowledge/address_filters.html) that # reserved for this instance. For example, 10.0.0.0/29 or 192.168.0.0/29. The
# identifies the range of IP addresses reserved for this instance. For # range you specify can't overlap with either existing subnets or assigned IP
# example, 10.0.0.0/29 or 192.168.0.0/29. The range you specify can't overlap # address ranges for other Cloud Filestore instances in the selected VPC network.
# with either existing subnets or assigned IP address ranges for other Cloud
# Filestore instances in the selected VPC network.
# Corresponds to the JSON property `reservedIpRange` # Corresponds to the JSON property `reservedIpRange`
# @return [String] # @return [String]
attr_accessor :reserved_ip_range attr_accessor :reserved_ip_range
@ -741,47 +724,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::FileV1::Status] # @return [Google::Apis::FileV1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # 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 # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -809,10 +790,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :api_version attr_accessor :api_version
# [Output only] Identifies whether the user has requested cancellation # [Output only] Identifies whether the user has requested cancellation of the
# of the operation. Operations that have successfully been cancelled # operation. Operations that have successfully been cancelled have Operation.
# have Operation.error value with a google.rpc.Status.code of 1, # error value with a google.rpc.Status.code of 1, corresponding to `Code.
# corresponding to `Code.CANCELLED`. # CANCELLED`.
# Corresponds to the JSON property `cancelRequested` # Corresponds to the JSON property `cancelRequested`
# @return [Boolean] # @return [Boolean]
attr_accessor :cancel_requested attr_accessor :cancel_requested
@ -859,12 +840,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -879,9 +860,9 @@ module Google
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message

View File

@ -83,8 +83,7 @@ module Google
# @param [String] filter # @param [String] filter
# The standard list filter. # The standard list filter.
# @param [Boolean] include_unrevealed_locations # @param [Boolean] include_unrevealed_locations
# If true, the returned list will include locations which are not yet # If true, the returned list will include locations which are not yet revealed.
# revealed.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The standard list page size. # The standard list page size.
# @param [String] page_token # @param [String] page_token
@ -122,13 +121,13 @@ module Google
# Creates an instance. # Creates an instance.
# @param [String] parent # @param [String] parent
# Required. The instance's project and location, in the format # Required. The instance's project and location, in the format projects/`
# projects/`project_id`/locations/`location`. In Cloud Filestore, # project_id`/locations/`location`. In Cloud Filestore, locations map to GCP
# locations map to GCP zones, for example **us-west1-b**. # zones, for example **us-west1-b**.
# @param [Google::Apis::FileV1::Instance] instance_object # @param [Google::Apis::FileV1::Instance] instance_object
# @param [String] instance_id # @param [String] instance_id
# Required. The name of the instance to create. # Required. The name of the instance to create. The name must be unique for the
# The name must be unique for the specified project and location. # specified project and location.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -161,8 +160,8 @@ module Google
# Deletes an instance. # Deletes an instance.
# @param [String] name # @param [String] name
# Required. The instance resource name, in the format # Required. The instance resource name, in the format projects/`project_id`/
# projects/`project_id`/locations/`location`/instances/`instance_id` # locations/`location`/instances/`instance_id`
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -192,8 +191,8 @@ module Google
# Gets the details of a specific instance. # Gets the details of a specific instance.
# @param [String] name # @param [String] name
# Required. The instance resource name, in the format # Required. The instance resource name, in the format projects/`project_id`/
# projects/`project_id`/locations/`location`/instances/`instance_id`. # locations/`location`/instances/`instance_id`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -221,14 +220,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all instances in a project for either a specified location # Lists all instances in a project for either a specified location or for all
# or for all locations. # locations.
# @param [String] parent # @param [String] parent
# Required. The project and location for which to retrieve instance information, # Required. The project and location for which to retrieve instance information,
# in the format projects/`project_id`/locations/`location`. In Cloud # in the format projects/`project_id`/locations/`location`. In Cloud Filestore,
# Filestore, locations map to GCP zones, for example **us-west1-b**. To # locations map to GCP zones, for example **us-west1-b**. To retrieve instance
# retrieve instance information for all locations, use "-" for the `location` # information for all locations, use "-" for the `location` value.
# value.
# @param [String] filter # @param [String] filter
# List filter. # List filter.
# @param [String] order_by # @param [String] order_by
@ -236,8 +234,8 @@ module Google
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of items to return. # The maximum number of items to return.
# @param [String] page_token # @param [String] page_token
# The next_page_token value to use if there are additional # The next_page_token value to use if there are additional results to retrieve
# results to retrieve for this list request. # for this list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -271,16 +269,13 @@ module Google
# Updates the settings of a specific instance. # Updates the settings of a specific instance.
# @param [String] name # @param [String] name
# Output only. The resource name of the instance, in the format # Output only. The resource name of the instance, in the format projects/`
# projects/`project`/locations/`location`/instances/`instance`. # project`/locations/`location`/instances/`instance`.
# @param [Google::Apis::FileV1::Instance] instance_object # @param [Google::Apis::FileV1::Instance] instance_object
# @param [String] update_mask # @param [String] update_mask
# Mask of fields to update. At least one path must be supplied in this # Mask of fields to update. At least one path must be supplied in this field.
# field. The elements of the repeated paths field may only include these # The elements of the repeated paths field may only include these fields: * "
# fields: # description" * "file_shares" * "labels"
# * "description"
# * "file_shares"
# * "labels"
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -311,15 +306,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -353,10 +346,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a long-running operation. This method indicates that the client is # Deletes a long-running operation. This method indicates that the client is no
# no longer interested in the operation result. It does not cancel the # longer interested in the operation result. It does not cancel the operation.
# operation. If the server doesn't support this method, it returns # If the server doesn't support this method, it returns `google.rpc.Code.
# `google.rpc.Code.UNIMPLEMENTED`. # UNIMPLEMENTED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be deleted. # The name of the operation resource to be deleted.
# @param [String] fields # @param [String] fields
@ -386,9 +379,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -418,15 +410,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/filestore/ # @see https://cloud.google.com/filestore/
module FileV1beta1 module FileV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200707' REVISION = '20200806'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -35,13 +35,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -58,8 +56,8 @@ module Google
class FileShareConfig class FileShareConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# File share capacity in gigabytes (GB). # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3
# Cloud Filestore defines 1 GB as 1024^3 bytes. # bytes.
# Corresponds to the JSON property `capacityGb` # Corresponds to the JSON property `capacityGb`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :capacity_gb attr_accessor :capacity_gb
@ -69,8 +67,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Nfs Export Options. # Nfs Export Options. There is a limit of 10 export options per file share.
# There is a limit of 10 export options per file share.
# Corresponds to the JSON property `nfsExportOptions` # Corresponds to the JSON property `nfsExportOptions`
# @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>] # @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>]
attr_accessor :nfs_export_options attr_accessor :nfs_export_options
@ -92,10 +89,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# consumer_defined_name is the name that is set by the consumer. On the other # consumer_defined_name is the name that is set by the consumer. On the other
# hand Name field represents system-assigned id of an instance so consumers # hand Name field represents system-assigned id of an instance so consumers are
# are not necessarily aware of it. # not necessarily aware of it. consumer_defined_name is used for notification/UI
# consumer_defined_name is used for notification/UI purposes for consumer to # purposes for consumer to recognize their instances.
# recognize their instances.
# Corresponds to the JSON property `consumerDefinedName` # Corresponds to the JSON property `consumerDefinedName`
# @return [String] # @return [String]
attr_accessor :consumer_defined_name attr_accessor :consumer_defined_name
@ -105,18 +101,17 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# Optional. Resource labels to represent user provided metadata. Each label # Optional. Resource labels to represent user provided metadata. Each label is a
# is a key-value pair, where both the key and the value are arbitrary strings # key-value pair, where both the key and the value are arbitrary strings
# provided by the user. # provided by the user.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# The MaintenancePolicies that have been attached to the instance. # The MaintenancePolicies that have been attached to the instance. The key must
# The key must be of the type name of the oneof policy name defined in # be of the type name of the oneof policy name defined in MaintenancePolicy, and
# MaintenancePolicy, and the referenced policy must define the same policy # the referenced policy must define the same policy type. For complete details
# type. For complete details of MaintenancePolicy, please refer to # of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.
# go/cloud-saas-mw-ug.
# Corresponds to the JSON property `maintenancePolicyNames` # Corresponds to the JSON property `maintenancePolicyNames`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :maintenance_policy_names attr_accessor :maintenance_policy_names
@ -133,29 +128,28 @@ module Google
# @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings] # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings]
attr_accessor :maintenance_settings attr_accessor :maintenance_settings
# Unique name of the resource. It uses the form: # Unique name of the resource. It uses the form: `projects/`project_id`/
# `projects/`project_id`/locations/`location_id`/instances/`instance_id`` # locations/`location_id`/instances/`instance_id``
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Output only. Custom string attributes used primarily to expose # Output only. Custom string attributes used primarily to expose producer-
# producer-specific information in monitoring dashboards. # specific information in monitoring dashboards. See go/get-instance-metadata.
# See go/get-instance-metadata.
# Corresponds to the JSON property `producerMetadata` # Corresponds to the JSON property `producerMetadata`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :producer_metadata attr_accessor :producer_metadata
# Output only. The list of data plane resources provisioned for this # Output only. The list of data plane resources provisioned for this instance, e.
# instance, e.g. compute VMs. See go/get-instance-metadata. # g. compute VMs. See go/get-instance-metadata.
# Corresponds to the JSON property `provisionedResources` # Corresponds to the JSON property `provisionedResources`
# @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource>] # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource>]
attr_accessor :provisioned_resources attr_accessor :provisioned_resources
# Link to the SLM instance template. Only populated when updating SLM # Link to the SLM instance template. Only populated when updating SLM instances
# instances via SSA's Actuation service adaptor. # via SSA's Actuation service adaptor. Service producers with custom control
# Service producers with custom control plane (e.g. Cloud SQL) doesn't # plane (e.g. Cloud SQL) doesn't need to populate this field. Instead they
# need to populate this field. Instead they should use software_versions. # should use software_versions.
# Corresponds to the JSON property `slmInstanceTemplate` # Corresponds to the JSON property `slmInstanceTemplate`
# @return [String] # @return [String]
attr_accessor :slm_instance_template attr_accessor :slm_instance_template
@ -166,8 +160,8 @@ module Google
# @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata] # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata]
attr_accessor :slo_metadata attr_accessor :slo_metadata
# Software versions that are used to deploy this instance. This can be # Software versions that are used to deploy this instance. This can be mutated
# mutated by rollout services. # by rollout services.
# Corresponds to the JSON property `softwareVersions` # Corresponds to the JSON property `softwareVersions`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :software_versions attr_accessor :software_versions
@ -178,8 +172,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
# Output only. ID of the associated GCP tenant project. # Output only. ID of the associated GCP tenant project. See go/get-instance-
# See go/get-instance-metadata. # metadata.
# Corresponds to the JSON property `tenantProjectId` # Corresponds to the JSON property `tenantProjectId`
# @return [String] # @return [String]
attr_accessor :tenant_project_id attr_accessor :tenant_project_id
@ -218,9 +212,9 @@ module Google
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Can this scheduled update be rescheduled? # Can this scheduled update be rescheduled? By default, it's true and API needs
# By default, it's true and API needs to do explicitly check whether it's # to do explicitly check whether it's set, if it's set as false explicitly, it's
# set, if it's set as false explicitly, it's false # false
# Corresponds to the JSON property `canReschedule` # Corresponds to the JSON property `canReschedule`
# @return [Boolean] # @return [Boolean]
attr_accessor :can_reschedule attr_accessor :can_reschedule
@ -231,9 +225,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :end_time attr_accessor :end_time
# The rollout management policy this maintenance schedule is associated # The rollout management policy this maintenance schedule is associated with.
# with. When doing reschedule update request, the reschedule should be # When doing reschedule update request, the reschedule should be against this
# against this given policy. # given policy.
# Corresponds to the JSON property `rolloutManagementPolicy` # Corresponds to the JSON property `rolloutManagementPolicy`
# @return [String] # @return [String]
attr_accessor :rollout_management_policy attr_accessor :rollout_management_policy
@ -262,8 +256,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Exclude instance from maintenance. When true, rollout service will # Optional. Exclude instance from maintenance. When true, rollout service will
# not # not attempt maintenance on the instance. Rollout service will include the
# attempt maintenance on the instance. Rollout service will include the
# instance in reported rollout progress as not attempted. # instance in reported rollout progress as not attempted.
# Corresponds to the JSON property `exclude` # Corresponds to the JSON property `exclude`
# @return [Boolean] # @return [Boolean]
@ -280,18 +273,17 @@ module Google
end end
end end
# Node information for custom per-node SLO implementations. # Node information for custom per-node SLO implementations. SSA does not support
# SSA does not support per-node SLO, but producers can populate per-node # per-node SLO, but producers can populate per-node information in SloMetadata
# information in SloMetadata for custom precomputations. # for custom precomputations. SSA Eligibility Exporter will emit per-node metric
# SSA Eligibility Exporter will emit per-node metric based on this information. # based on this information.
class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# By default node is eligible if instance is eligible. # By default node is eligible if instance is eligible. But individual node might
# But individual node might be excluded from SLO by adding entry here. # be excluded from SLO by adding entry here. For semantic see SloMetadata.
# For semantic see SloMetadata.exclusions. # exclusions. If both instance and node level exclusions are present for time
# If both instance and node level exclusions are present for time period, # period, the node level's reason will be reported by Eligibility Exporter.
# the node level's reason will be reported by Eligibility Exporter.
# Corresponds to the JSON property `exclusions` # Corresponds to the JSON property `exclusions`
# @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>] # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
attr_accessor :exclusions attr_accessor :exclusions
@ -301,8 +293,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# The id of the node. # The id of the node. This should be equal to SaasInstanceNode.node_id.
# This should be equal to SaasInstanceNode.node_id.
# Corresponds to the JSON property `nodeId` # Corresponds to the JSON property `nodeId`
# @return [String] # @return [String]
attr_accessor :node_id attr_accessor :node_id
@ -323,18 +314,17 @@ module Google
class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Type of the resource. This can be either a GCP resource or a custom one # Type of the resource. This can be either a GCP resource or a custom one (e.g.
# (e.g. another cloud provider's VM). For GCP compute resources use singular # another cloud provider's VM). For GCP compute resources use singular form of
# form of the names listed in GCP compute API documentation # the names listed in GCP compute API documentation (https://cloud.google.com/
# (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with # compute/docs/reference/rest/v1/), prefixed with 'compute-', for example: '
# 'compute-', for example: 'compute-instance', 'compute-disk', # compute-instance', 'compute-disk', 'compute-autoscaler'.
# 'compute-autoscaler'.
# Corresponds to the JSON property `resourceType` # Corresponds to the JSON property `resourceType`
# @return [String] # @return [String]
attr_accessor :resource_type attr_accessor :resource_type
# URL identifying the resource, e.g. # URL identifying the resource, e.g. "https://www.googleapis.com/compute/v1/
# "https://www.googleapis.com/compute/v1/projects/...)". # projects/...)".
# Corresponds to the JSON property `resourceUrl` # Corresponds to the JSON property `resourceUrl`
# @return [String] # @return [String]
attr_accessor :resource_url attr_accessor :resource_url
@ -350,9 +340,9 @@ module Google
end end
end end
# SloEligibility is a tuple containing eligibility value: true if an instance # SloEligibility is a tuple containing eligibility value: true if an instance is
# is eligible for SLO calculation or false if it should be excluded from all # eligible for SLO calculation or false if it should be excluded from all SLO-
# SLO-related calculations along with a user-defined reason. # related calculations along with a user-defined reason.
class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -363,8 +353,7 @@ module Google
alias_method :eligible?, :eligible alias_method :eligible?, :eligible
# User-defined reason for the current value of instance eligibility. Usually, # User-defined reason for the current value of instance eligibility. Usually,
# this can be directly mapped to the internal state. An empty reason is # this can be directly mapped to the internal state. An empty reason is allowed.
# allowed.
# Corresponds to the JSON property `reason` # Corresponds to the JSON property `reason`
# @return [String] # @return [String]
attr_accessor :reason attr_accessor :reason
@ -384,28 +373,27 @@ module Google
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Exclusion duration. No restrictions on the possible values. # Exclusion duration. No restrictions on the possible values. When an ongoing
# When an ongoing operation is taking longer than initially expected, # operation is taking longer than initially expected, an existing entry in the
# an existing entry in the exclusion list can be updated by extending the # exclusion list can be updated by extending the duration. This is supported by
# duration. This is supported by the subsystem exporting eligibility data # the subsystem exporting eligibility data as long as such extension is
# as long as such extension is committed at least 10 minutes before the # committed at least 10 minutes before the original exclusion expiration -
# original exclusion expiration - otherwise it is possible that there will # otherwise it is possible that there will be "gaps" in the exclusion
# be "gaps" in the exclusion application in the exported timeseries. # application in the exported timeseries.
# Corresponds to the JSON property `duration` # Corresponds to the JSON property `duration`
# @return [String] # @return [String]
attr_accessor :duration attr_accessor :duration
# Human-readable reason for the exclusion. # Human-readable reason for the exclusion. This should be a static string (e.g. "
# This should be a static string (e.g. "Disruptive update in progress") # Disruptive update in progress") and should not contain dynamically generated
# and should not contain dynamically generated data (e.g. instance name). # data (e.g. instance name). Can be left empty.
# Can be left empty.
# Corresponds to the JSON property `reason` # Corresponds to the JSON property `reason`
# @return [String] # @return [String]
attr_accessor :reason attr_accessor :reason
# Name of an SLI that this exclusion applies to. Can be left empty, # Name of an SLI that this exclusion applies to. Can be left empty, signaling
# signaling that the instance should be excluded from all SLIs defined # that the instance should be excluded from all SLIs defined in the service SLO
# in the service SLO configuration. # configuration.
# Corresponds to the JSON property `sliName` # Corresponds to the JSON property `sliName`
# @return [String] # @return [String]
attr_accessor :sli_name attr_accessor :sli_name
@ -433,40 +421,38 @@ module Google
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# SloEligibility is a tuple containing eligibility value: true if an instance # SloEligibility is a tuple containing eligibility value: true if an instance is
# is eligible for SLO calculation or false if it should be excluded from all # eligible for SLO calculation or false if it should be excluded from all SLO-
# SLO-related calculations along with a user-defined reason. # related calculations along with a user-defined reason.
# Corresponds to the JSON property `eligibility` # Corresponds to the JSON property `eligibility`
# @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility] # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility]
attr_accessor :eligibility attr_accessor :eligibility
# List of SLO exclusion windows. When multiple entries in the list match # List of SLO exclusion windows. When multiple entries in the list match (
# (matching the exclusion time-window against current time point) # matching the exclusion time-window against current time point) the exclusion
# the exclusion reason used in the first matching entry will be published. # reason used in the first matching entry will be published. It is not needed to
# It is not needed to include expired exclusion in this list, as only the # include expired exclusion in this list, as only the currently applicable
# currently applicable exclusions are taken into account by the eligibility # exclusions are taken into account by the eligibility exporting subsystem (the
# exporting subsystem (the historical state of exclusions will be reflected # historical state of exclusions will be reflected in the historically produced
# in the historically produced timeseries regardless of the current state). # timeseries regardless of the current state). This field can be used to mark
# This field can be used to mark the instance as temporary ineligible # the instance as temporary ineligible for the purpose of SLO calculation. For
# for the purpose of SLO calculation. For permanent instance SLO exclusion, # permanent instance SLO exclusion, use of custom instance eligibility is
# use of custom instance eligibility is recommended. See 'eligibility' field # recommended. See 'eligibility' field below.
# below.
# Corresponds to the JSON property `exclusions` # Corresponds to the JSON property `exclusions`
# @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>] # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
attr_accessor :exclusions attr_accessor :exclusions
# Optional. List of nodes. # Optional. List of nodes. Some producers need to use per-node metadata to
# Some producers need to use per-node metadata to calculate SLO. # calculate SLO. This field allows such producers to publish per-node SLO meta
# This field allows such producers to publish per-node SLO meta data, # data, which will be consumed by SSA Eligibility Exporter and published in the
# which will be consumed by SSA Eligibility Exporter and published in the
# form of per node metric to Monarch. # form of per node metric to Monarch.
# Corresponds to the JSON property `nodes` # Corresponds to the JSON property `nodes`
# @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata>] # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata>]
attr_accessor :nodes attr_accessor :nodes
# Name of the SLO tier the Instance belongs to. This name will be expected to # Name of the SLO tier the Instance belongs to. This name will be expected to
# match the tiers specified in the service SLO configuration. # match the tiers specified in the service SLO configuration. Field is mandatory
# Field is mandatory and must not be empty. # and must not be empty.
# Corresponds to the JSON property `tier` # Corresponds to the JSON property `tier`
# @return [String] # @return [String]
attr_accessor :tier attr_accessor :tier
@ -504,8 +490,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# File system shares on the instance. # File system shares on the instance. For this version, only a single file share
# For this version, only a single file share is supported. # is supported.
# Corresponds to the JSON property `fileShares` # Corresponds to the JSON property `fileShares`
# @return [Array<Google::Apis::FileV1beta1::FileShareConfig>] # @return [Array<Google::Apis::FileV1beta1::FileShareConfig>]
attr_accessor :file_shares attr_accessor :file_shares
@ -515,14 +501,14 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Output only. The resource name of the instance, in the format # Output only. The resource name of the instance, in the format projects/`
# projects/`project_id`/locations/`location_id`/instances/`instance_id`. # project_id`/locations/`location_id`/instances/`instance_id`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# VPC networks to which the instance is connected. # VPC networks to which the instance is connected. For this version, only a
# For this version, only a single network is supported. # single network is supported.
# Corresponds to the JSON property `networks` # Corresponds to the JSON property `networks`
# @return [Array<Google::Apis::FileV1beta1::NetworkConfig>] # @return [Array<Google::Apis::FileV1beta1::NetworkConfig>]
attr_accessor :networks attr_accessor :networks
@ -565,17 +551,17 @@ module Google
class ListInstancesResponse class ListInstancesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A list of instances in the project for the specified location. # A list of instances in the project for the specified location. If the `
# If the `location` value in the request is "-", the response contains a list # location` value in the request is "-", the response contains a list of
# of instances from all locations. If any location is unreachable, the # instances from all locations. If any location is unreachable, the response
# response will only return instances in reachable locations and the # will only return instances in reachable locations and the "unreachable" field
# "unreachable" field will be populated with a list of unreachable locations. # will be populated with a list of unreachable locations.
# Corresponds to the JSON property `instances` # Corresponds to the JSON property `instances`
# @return [Array<Google::Apis::FileV1beta1::Instance>] # @return [Array<Google::Apis::FileV1beta1::Instance>]
attr_accessor :instances attr_accessor :instances
# The token you can use to retrieve the next page of results. Not returned # The token you can use to retrieve the next page of results. Not returned if
# if there are no more results in the list. # there are no more results in the list.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -651,14 +637,14 @@ module Google
class Location class Location
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name. # The friendly name for this location, typically a nearby city name. For example,
# For example, "Tokyo". # "Tokyo".
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Cross-service attributes for the location. For example # Cross-service attributes for the location. For example `"cloud.googleapis.com/
# `"cloud.googleapis.com/region": "us-east1"` # region": "us-east1"`
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -674,8 +660,8 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# Resource name for the location, which may vary between implementations. # Resource name for the location, which may vary between implementations. For
# For example: `"projects/example-project/locations/us-east1"` # example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -698,34 +684,31 @@ module Google
class NetworkConfig class NetworkConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. IPv4 addresses in the format # Output only. IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`octet
# `octet 1`.`octet 2`.`octet 3`.`octet 4` or IPv6 addresses in the format # 4` or IPv6 addresses in the format `block 1`:`block 2`:`block 3`:`block 4`:`
# `block 1`:`block 2`:`block 3`:`block 4`:`block 5`:`block 6`:`block # block 5`:`block 6`:`block 7`:`block 8`.
# 7`:`block 8`.
# Corresponds to the JSON property `ipAddresses` # Corresponds to the JSON property `ipAddresses`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ip_addresses attr_accessor :ip_addresses
# Internet protocol versions for which the instance has IP addresses # Internet protocol versions for which the instance has IP addresses assigned.
# assigned. For this version, only MODE_IPV4 is supported. # For this version, only MODE_IPV4 is supported.
# Corresponds to the JSON property `modes` # Corresponds to the JSON property `modes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :modes attr_accessor :modes
# The name of the Google Compute Engine # The name of the Google Compute Engine [VPC network](/compute/docs/networks-and-
# [VPC network](/compute/docs/networks-and-firewalls#networks) to which the # firewalls#networks) to which the instance is connected.
# instance is connected.
# Corresponds to the JSON property `network` # Corresponds to the JSON property `network`
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
# A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the [
# [internal IP address # internal IP address ranges](https://www.arin.net/knowledge/address_filters.
# ranges](https://www.arin.net/knowledge/address_filters.html) that # html) that identifies the range of IP addresses reserved for this instance.
# identifies the range of IP addresses reserved for this instance. For # For example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't
# example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap # overlap with either existing subnets or assigned IP address ranges for other
# with either existing subnets or assigned IP address ranges for other Cloud # Cloud Filestore instances in the selected VPC network.
# Filestore instances in the selected VPC network.
# Corresponds to the JSON property `reservedIpRange` # Corresponds to the JSON property `reservedIpRange`
# @return [String] # @return [String]
attr_accessor :reserved_ip_range attr_accessor :reserved_ip_range
@ -747,44 +730,39 @@ module Google
class NfsExportOptions class NfsExportOptions
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Either READ_ONLY, for allowing only read requests on the exported # Either READ_ONLY, for allowing only read requests on the exported directory,
# directory, or READ_WRITE, for allowing both read and write requests. # or READ_WRITE, for allowing both read and write requests. The default is
# The default is READ_WRITE. # READ_WRITE.
# Corresponds to the JSON property `accessMode` # Corresponds to the JSON property `accessMode`
# @return [String] # @return [String]
attr_accessor :access_mode attr_accessor :access_mode
# An integer representing the anonymous group id with a default value of # An integer representing the anonymous group id with a default value of 65534.
# 65534.
# Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be # Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
# returned if this field is specified for other squash_mode settings. # returned if this field is specified for other squash_mode settings.
# Corresponds to the JSON property `anonGid` # Corresponds to the JSON property `anonGid`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :anon_gid attr_accessor :anon_gid
# An integer representing the anonymous user id with a default value of # An integer representing the anonymous user id with a default value of 65534.
# 65534.
# Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be # Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
# returned if this field is specified for other squash_mode settings. # returned if this field is specified for other squash_mode settings.
# Corresponds to the JSON property `anonUid` # Corresponds to the JSON property `anonUid`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :anon_uid attr_accessor :anon_uid
# List of either an IPv4 addresses in the format # List of either an IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`
# `octet 1`.`octet 2`.`octet 3`.`octet 4` or CIDR ranges in the format # octet 4` or CIDR ranges in the format `octet 1`.`octet 2`.`octet 3`.`octet 4`/`
# `octet 1`.`octet 2`.`octet 3`.`octet 4`/`mask size` which may mount the # mask size` which may mount the file share. Overlapping IP ranges are not
# file share. # allowed, both within and across NfsExportOptions. An error will be returned.
# Overlapping IP ranges are not allowed, both within and across
# NfsExportOptions. An error will be returned.
# The limit is 64 IP ranges/addresses for each FileShareConfig among all # The limit is 64 IP ranges/addresses for each FileShareConfig among all
# NfsExportOptions. # NfsExportOptions.
# Corresponds to the JSON property `ipRanges` # Corresponds to the JSON property `ipRanges`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ip_ranges attr_accessor :ip_ranges
# Either NO_ROOT_SQUASH, for allowing root access on the exported directory, # Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or
# or ROOT_SQUASH, for not allowing root access. The default is # ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
# NO_ROOT_SQUASH.
# Corresponds to the JSON property `squashMode` # Corresponds to the JSON property `squashMode`
# @return [String] # @return [String]
attr_accessor :squash_mode attr_accessor :squash_mode
@ -808,47 +786,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::FileV1beta1::Status] # @return [Google::Apis::FileV1beta1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # 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 # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -876,10 +852,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :api_version attr_accessor :api_version
# [Output only] Identifies whether the user has requested cancellation # [Output only] Identifies whether the user has requested cancellation of the
# of the operation. Operations that have successfully been cancelled # operation. Operations that have successfully been cancelled have Operation.
# have Operation.error value with a google.rpc.Status.code of 1, # error value with a google.rpc.Status.code of 1, corresponding to `Code.
# corresponding to `Code.CANCELLED`. # CANCELLED`.
# Corresponds to the JSON property `cancelRequested` # Corresponds to the JSON property `cancelRequested`
# @return [Boolean] # @return [Boolean]
attr_accessor :cancel_requested attr_accessor :cancel_requested
@ -926,12 +902,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -946,9 +922,9 @@ module Google
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message

View File

@ -83,8 +83,7 @@ module Google
# @param [String] filter # @param [String] filter
# The standard list filter. # The standard list filter.
# @param [Boolean] include_unrevealed_locations # @param [Boolean] include_unrevealed_locations
# If true, the returned list will include locations which are not yet # If true, the returned list will include locations which are not yet revealed.
# revealed.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The standard list page size. # The standard list page size.
# @param [String] page_token # @param [String] page_token
@ -122,15 +121,15 @@ module Google
# Creates an instance. # Creates an instance.
# @param [String] parent # @param [String] parent
# Required. The instance's project and location, in the format # Required. The instance's project and location, in the format projects/`
# projects/`project_id`/locations/`location`. In Cloud Filestore, # project_id`/locations/`location`. In Cloud Filestore, locations map to GCP
# locations map to GCP zones, for example **us-west1-b**. # zones, for example **us-west1-b**.
# @param [Google::Apis::FileV1beta1::Instance] instance_object # @param [Google::Apis::FileV1beta1::Instance] instance_object
# @param [String] instance_id # @param [String] instance_id
# Required. The ID of the instance to create. # Required. The ID of the instance to create. The ID must be unique within the
# The ID must be unique within the specified project and location. # specified project and location. This value must start with a lowercase letter
# This value must start with a lowercase letter followed by up to 62 # followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen. # with a hyphen.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -163,8 +162,8 @@ module Google
# Deletes an instance. # Deletes an instance.
# @param [String] name # @param [String] name
# Required. The instance resource name, in the format # Required. The instance resource name, in the format projects/`project_id`/
# projects/`project_id`/locations/`location`/instances/`instance_id` # locations/`location`/instances/`instance_id`
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -194,8 +193,8 @@ module Google
# Gets the details of a specific instance. # Gets the details of a specific instance.
# @param [String] name # @param [String] name
# Required. The instance resource name, in the format # Required. The instance resource name, in the format projects/`project_id`/
# projects/`project_id`/locations/`location`/instances/`instance_id`. # locations/`location`/instances/`instance_id`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -223,14 +222,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all instances in a project for either a specified location # Lists all instances in a project for either a specified location or for all
# or for all locations. # locations.
# @param [String] parent # @param [String] parent
# Required. The project and location for which to retrieve instance information, # Required. The project and location for which to retrieve instance information,
# in the format projects/`project_id`/locations/`location`. In Cloud # in the format projects/`project_id`/locations/`location`. In Cloud Filestore,
# Filestore, locations map to GCP zones, for example **us-west1-b**. To # locations map to GCP zones, for example **us-west1-b**. To retrieve instance
# retrieve instance information for all locations, use "-" for the `location` # information for all locations, use "-" for the `location` value.
# value.
# @param [String] filter # @param [String] filter
# List filter. # List filter.
# @param [String] order_by # @param [String] order_by
@ -238,8 +236,8 @@ module Google
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of items to return. # The maximum number of items to return.
# @param [String] page_token # @param [String] page_token
# The next_page_token value to use if there are additional # The next_page_token value to use if there are additional results to retrieve
# results to retrieve for this list request. # for this list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -273,17 +271,13 @@ module Google
# Updates the settings of a specific instance. # Updates the settings of a specific instance.
# @param [String] name # @param [String] name
# Output only. The resource name of the instance, in the format # Output only. The resource name of the instance, in the format projects/`
# projects/`project_id`/locations/`location_id`/instances/`instance_id`. # project_id`/locations/`location_id`/instances/`instance_id`.
# @param [Google::Apis::FileV1beta1::Instance] instance_object # @param [Google::Apis::FileV1beta1::Instance] instance_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in # Required. Mask of fields to update. At least one path must be supplied in this
# this # field. The elements of the repeated paths field may only include these fields:
# field. The elements of the repeated paths field may only include these # * "description" * "file_shares" * "labels"
# fields:
# * "description"
# * "file_shares"
# * "labels"
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -314,15 +308,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -356,10 +348,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a long-running operation. This method indicates that the client is # Deletes a long-running operation. This method indicates that the client is no
# no longer interested in the operation result. It does not cancel the # longer interested in the operation result. It does not cancel the operation.
# operation. If the server doesn't support this method, it returns # If the server doesn't support this method, it returns `google.rpc.Code.
# `google.rpc.Code.UNIMPLEMENTED`. # UNIMPLEMENTED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be deleted. # The name of the operation resource to be deleted.
# @param [String] fields # @param [String] fields
@ -389,9 +381,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -421,15 +412,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter

View File

@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com/docs/storage/security # @see https://firebase.google.com/docs/storage/security
module FirebaserulesV1 module FirebaserulesV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200303' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,13 +26,11 @@ module Google
class Arg class Arg
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
# Corresponds to the JSON property `anyValue` # Corresponds to the JSON property `anyValue`
# @return [Google::Apis::FirebaserulesV1::Empty] # @return [Google::Apis::FirebaserulesV1::Empty]
attr_accessor :any_value attr_accessor :any_value
@ -53,13 +51,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -72,8 +68,8 @@ module Google
end end
end end
# Describes where in a file an expression is found and what it was # Describes where in a file an expression is found and what it was evaluated to
# evaluated to over the course of its use. # over the course of its use.
class ExpressionReport class ExpressionReport
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -163,26 +159,24 @@ module Google
end end
end end
# Mock function definition. # Mock function definition. Mocks must refer to a function declared by the
# Mocks must refer to a function declared by the target service. The type of # target service. The type of the function args and result will be inferred at
# the function args and result will be inferred at test time. If either the # test time. If either the arg or result values are not compatible with function
# arg or result values are not compatible with function type declaration, the # type declaration, the request will be considered invalid. More than one `
# request will be considered invalid. # FunctionMock` may be provided for a given function name so long as the `Arg`
# More than one `FunctionMock` may be provided for a given function name so # matchers are distinct. There may be only one function for a given overload
# long as the `Arg` matchers are distinct. There may be only one function # where all `Arg` values are `Arg.any_value`.
# for a given overload where all `Arg` values are `Arg.any_value`.
class FunctionMock class FunctionMock
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The list of `Arg` values to match. The order in which the arguments are # The list of `Arg` values to match. The order in which the arguments are
# provided is the order in which they must appear in the function # provided is the order in which they must appear in the function invocation.
# invocation.
# Corresponds to the JSON property `args` # Corresponds to the JSON property `args`
# @return [Array<Google::Apis::FirebaserulesV1::Arg>] # @return [Array<Google::Apis::FirebaserulesV1::Arg>]
attr_accessor :args attr_accessor :args
# The name of the function. # The name of the function. The function name must match one provided by a
# The function name must match one provided by a service declaration. # service declaration.
# Corresponds to the JSON property `function` # Corresponds to the JSON property `function`
# @return [String] # @return [String]
attr_accessor :function attr_accessor :function
@ -229,9 +223,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :ruleset_name attr_accessor :ruleset_name
# Optional, indicates the freshness of the result. The response is # Optional, indicates the freshness of the result. The response is guaranteed to
# guaranteed to be the latest within an interval up to the # be the latest within an interval up to the sync_time (inclusive).
# sync_time (inclusive).
# Corresponds to the JSON property `syncTime` # Corresponds to the JSON property `syncTime`
# @return [String] # @return [String]
attr_accessor :sync_time attr_accessor :sync_time
@ -344,8 +337,8 @@ module Google
class Metadata class Metadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Services that this ruleset has declarations for (e.g., # Services that this ruleset has declarations for (e.g., "cloud.firestore").
# "cloud.firestore"). There may be 0+ of these. # There may be 0+ of these.
# Corresponds to the JSON property `services` # Corresponds to the JSON property `services`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :services attr_accessor :services
@ -360,48 +353,42 @@ module Google
end end
end end
# `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a # `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a `
# `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`. # Ruleset`, rules-enabled services will be able to enforce the `Ruleset`.
class Release class Release
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Time the release was created. # Time the release was created. Output only.
# Output only.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `createTime`
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# Resource name for the `Release`. # Resource name for the `Release`. `Release` names may be structured `app1/prod/
# `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2` # v2` or flat `app1_prod_v2` which affords developers a great deal of
# which affords developers a great deal of flexibility in mapping the name # flexibility in mapping the name to the style that best fits their existing
# to the style that best fits their existing development practices. For # development practices. For example, a name could refer to an environment, an
# example, a name could refer to an environment, an app, a version, or some # app, a version, or some combination of three. In the table below, for the
# combination of three. # project name `projects/foo`, the following relative release paths show how
# In the table below, for the project name `projects/foo`, the following # flat and structured names might be chosen to match a desired development /
# relative release paths show how flat and structured names might be chosen # deployment strategy. Use Case | Flat Name | Structured Name -------------|-----
# to match a desired development / deployment strategy. # ----------------|---------------- Environments | releases/qa | releases/qa
# Use Case | Flat Name | Structured Name # Apps | releases/app1_qa | releases/app1/qa Versions | releases/app1_v2_qa |
# -------------|---------------------|---------------- # releases/app1/v2/qa The delimiter between the release name path elements can
# Environments | releases/qa | releases/qa # be almost anything and it should work equally well with the release name list
# Apps | releases/app1_qa | releases/app1/qa # filter, but in many ways the structured paths provide a clearer picture of the
# Versions | releases/app1_v2_qa | releases/app1/v2/qa # relationship between `Release` instances. Format: `projects/`project_id`/
# The delimiter between the release name path elements can be almost anything # releases/`release_id``
# and it should work equally well with the release name list filter, but in
# many ways the structured paths provide a clearer picture of the
# relationship between `Release` instances.
# Format: `projects/`project_id`/releases/`release_id``
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must # Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must exist
# exist the `Release` to be created. # the `Release` to be created.
# Corresponds to the JSON property `rulesetName` # Corresponds to the JSON property `rulesetName`
# @return [String] # @return [String]
attr_accessor :ruleset_name attr_accessor :ruleset_name
# Time the release was updated. # Time the release was updated. Output only.
# Output only.
# Corresponds to the JSON property `updateTime` # Corresponds to the JSON property `updateTime`
# @return [String] # @return [String]
attr_accessor :update_time attr_accessor :update_time
@ -423,19 +410,17 @@ module Google
class Result class Result
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
# Corresponds to the JSON property `undefined` # Corresponds to the JSON property `undefined`
# @return [Google::Apis::FirebaserulesV1::Empty] # @return [Google::Apis::FirebaserulesV1::Empty]
attr_accessor :undefined attr_accessor :undefined
# The result is an actual value. The type of the value must match that # The result is an actual value. The type of the value must match that of the
# of the type declared by the service. # type declared by the service.
# Corresponds to the JSON property `value` # Corresponds to the JSON property `value`
# @return [Object] # @return [Object]
attr_accessor :value attr_accessor :value
@ -456,8 +441,7 @@ module Google
class Ruleset class Ruleset
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Time the `Ruleset` was created. # Time the `Ruleset` was created. Output only.
# Output only.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `createTime`
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
@ -467,9 +451,8 @@ module Google
# @return [Google::Apis::FirebaserulesV1::Metadata] # @return [Google::Apis::FirebaserulesV1::Metadata]
attr_accessor :metadata attr_accessor :metadata
# Name of the `Ruleset`. The ruleset_id is auto generated by the service. # Name of the `Ruleset`. The ruleset_id is auto generated by the service. Format:
# Format: `projects/`project_id`/rulesets/`ruleset_id`` # `projects/`project_id`/rulesets/`ruleset_id`` Output only.
# Output only.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -557,11 +540,10 @@ module Google
# `TestCase` messages provide the request context and an expectation as to # `TestCase` messages provide the request context and an expectation as to
# whether the given context will be allowed or denied. Test cases may specify # whether the given context will be allowed or denied. Test cases may specify
# the `request`, `resource`, and `function_mocks` to mock a function call to # the `request`, `resource`, and `function_mocks` to mock a function call to a
# a service-provided function. # service-provided function. The `request` object represents context present at
# The `request` object represents context present at request-time. # request-time. The `resource` is the value of the target resource as it appears
# The `resource` is the value of the target resource as it appears in # in persistent storage before the request is executed.
# persistent storage before the request is executed.
class TestCase class TestCase
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -575,9 +557,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :expression_report_level attr_accessor :expression_report_level
# Optional function mocks for service-defined functions. If not set, any # Optional function mocks for service-defined functions. If not set, any service
# service defined function is expected to return an error, which may or may # defined function is expected to return an error, which may or may not
# not influence the test outcome. # influence the test outcome.
# Corresponds to the JSON property `functionMocks` # Corresponds to the JSON property `functionMocks`
# @return [Array<Google::Apis::FirebaserulesV1::FunctionMock>] # @return [Array<Google::Apis::FirebaserulesV1::FunctionMock>]
attr_accessor :function_mocks attr_accessor :function_mocks
@ -587,29 +569,20 @@ module Google
# @return [String] # @return [String]
attr_accessor :path_encoding attr_accessor :path_encoding
# Request context. # Request context. The exact format of the request context is service-dependent.
# The exact format of the request context is service-dependent. See the # See the appropriate service documentation for information about the supported
# appropriate service documentation for information about the supported # fields and types on the request. Minimally, all services support the following
# fields and types on the request. Minimally, all services support the # fields and types: Request field | Type ---------------|----------------- auth.
# following fields and types: # uid | `string` auth.token | `map` headers | `map` method | `string` params | `
# Request field | Type # map` path | `string` time | `google.protobuf.Timestamp` If the request value
# ---------------|----------------- # is not well-formed for the service, the request will be rejected as an invalid
# auth.uid | `string` # argument.
# auth.token | `map<string, string>`
# headers | `map<string, string>`
# method | `string`
# params | `map<string, string>`
# path | `string`
# time | `google.protobuf.Timestamp`
# If the request value is not well-formed for the service, the request will
# be rejected as an invalid argument.
# Corresponds to the JSON property `request` # Corresponds to the JSON property `request`
# @return [Object] # @return [Object]
attr_accessor :request attr_accessor :request
# Optional resource value as it appears in persistent storage before the # Optional resource value as it appears in persistent storage before the request
# request is fulfilled. # is fulfilled. The resource type depends on the `request.path` value.
# The resource type depends on the `request.path` value.
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [Object] # @return [Object]
attr_accessor :resource attr_accessor :resource
@ -629,16 +602,15 @@ module Google
end end
end end
# Test result message containing the state of the test as well as a # Test result message containing the state of the test as well as a description
# description and source position for test failures. # and source position for test failures.
class TestResult class TestResult
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Debug messages related to test execution issues encountered during # Debug messages related to test execution issues encountered during evaluation.
# evaluation. # Debug messages may be related to too many or too few invocations of function
# Debug messages may be related to too many or too few invocations of # mocks or to runtime errors that occur during evaluation. For example: ```
# function mocks or to runtime errors that occur during evaluation. # Unable to read variable [name: "resource"]```
# For example: ```Unable to read variable [name: "resource"]```
# Corresponds to the JSON property `debugMessages` # Corresponds to the JSON property `debugMessages`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :debug_messages attr_accessor :debug_messages
@ -650,18 +622,17 @@ module Google
attr_accessor :error_position attr_accessor :error_position
# The mapping from expression in the ruleset AST to the values they were # The mapping from expression in the ruleset AST to the values they were
# evaluated to. Partially-nested to mirror AST structure. Note that this # evaluated to. Partially-nested to mirror AST structure. Note that this field
# field is actually tracking expressions and not permission statements in # is actually tracking expressions and not permission statements in contrast to
# contrast to the "visited_expressions" field above. Literal expressions # the "visited_expressions" field above. Literal expressions are omitted.
# are omitted.
# Corresponds to the JSON property `expressionReports` # Corresponds to the JSON property `expressionReports`
# @return [Array<Google::Apis::FirebaserulesV1::ExpressionReport>] # @return [Array<Google::Apis::FirebaserulesV1::ExpressionReport>]
attr_accessor :expression_reports attr_accessor :expression_reports
# The set of function calls made to service-defined methods. # The set of function calls made to service-defined methods. Function calls are
# Function calls are included in the order in which they are encountered # included in the order in which they are encountered during evaluation, are
# during evaluation, are provided for both mocked and unmocked functions, # provided for both mocked and unmocked functions, and included on the response
# and included on the response regardless of the test `state`. # regardless of the test `state`.
# Corresponds to the JSON property `functionCalls` # Corresponds to the JSON property `functionCalls`
# @return [Array<Google::Apis::FirebaserulesV1::FunctionCall>] # @return [Array<Google::Apis::FirebaserulesV1::FunctionCall>]
attr_accessor :function_calls attr_accessor :function_calls
@ -671,16 +642,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
# The set of visited permission expressions for a given test. This returns # The set of visited permission expressions for a given test. This returns the
# the positions and evaluation results of all visited permission # positions and evaluation results of all visited permission expressions which
# expressions which were relevant to the test case, e.g. # were relevant to the test case, e.g. ``` match /path ` allow read if: ` ```
# ``` # For a detailed report of the intermediate evaluation states, see the `
# match /path ` # expression_reports` field
# allow read if: <expr>
# `
# ```
# For a detailed report of the intermediate evaluation states, see the
# `expression_reports` field
# Corresponds to the JSON property `visitedExpressions` # Corresponds to the JSON property `visitedExpressions`
# @return [Array<Google::Apis::FirebaserulesV1::VisitedExpression>] # @return [Array<Google::Apis::FirebaserulesV1::VisitedExpression>]
attr_accessor :visited_expressions attr_accessor :visited_expressions
@ -710,8 +676,8 @@ module Google
attr_accessor :source attr_accessor :source
# `TestSuite` is a collection of `TestCase` instances that validate the logical # `TestSuite` is a collection of `TestCase` instances that validate the logical
# correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within # correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within a
# a `TestRuleset` invocation or as part of a `Release` object as a pre-release # `TestRuleset` invocation or as part of a `Release` object as a pre-release
# check. # check.
# Corresponds to the JSON property `testSuite` # Corresponds to the JSON property `testSuite`
# @return [Google::Apis::FirebaserulesV1::TestSuite] # @return [Google::Apis::FirebaserulesV1::TestSuite]
@ -732,15 +698,14 @@ module Google
class TestRulesetResponse class TestRulesetResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Syntactic and semantic `Source` issues of varying severity. Issues of # Syntactic and semantic `Source` issues of varying severity. Issues of `ERROR`
# `ERROR` severity will prevent tests from executing. # severity will prevent tests from executing.
# Corresponds to the JSON property `issues` # Corresponds to the JSON property `issues`
# @return [Array<Google::Apis::FirebaserulesV1::Issue>] # @return [Array<Google::Apis::FirebaserulesV1::Issue>]
attr_accessor :issues attr_accessor :issues
# The set of test results given the test cases in the `TestSuite`. # The set of test results given the test cases in the `TestSuite`. The results
# The results will appear in the same order as the test cases appear in the # will appear in the same order as the test cases appear in the `TestSuite`.
# `TestSuite`.
# Corresponds to the JSON property `testResults` # Corresponds to the JSON property `testResults`
# @return [Array<Google::Apis::FirebaserulesV1::TestResult>] # @return [Array<Google::Apis::FirebaserulesV1::TestResult>]
attr_accessor :test_results attr_accessor :test_results
@ -757,8 +722,8 @@ module Google
end end
# `TestSuite` is a collection of `TestCase` instances that validate the logical # `TestSuite` is a collection of `TestCase` instances that validate the logical
# correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within # correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within a
# a `TestRuleset` invocation or as part of a `Release` object as a pre-release # `TestRuleset` invocation or as part of a `Release` object as a pre-release
# check. # check.
class TestSuite class TestSuite
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -782,8 +747,8 @@ module Google
class UpdateReleaseRequest class UpdateReleaseRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a # `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a `
# `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`. # Ruleset`, rules-enabled services will be able to enforce the `Ruleset`.
# Corresponds to the JSON property `release` # Corresponds to the JSON property `release`
# @return [Google::Apis::FirebaserulesV1::Release] # @return [Google::Apis::FirebaserulesV1::Release]
attr_accessor :release attr_accessor :release

View File

@ -48,30 +48,22 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Test `Source` for syntactic and semantic correctness. Issues present, if # Test `Source` for syntactic and semantic correctness. Issues present, if any,
# any, will be returned to the caller with a description, severity, and # will be returned to the caller with a description, severity, and source
# source location. # location. The test method may be executed with `Source` or a `Ruleset` name.
# The test method may be executed with `Source` or a `Ruleset` name.
# Passing `Source` is useful for unit testing new rules. Passing a `Ruleset` # Passing `Source` is useful for unit testing new rules. Passing a `Ruleset`
# name is useful for regression testing an existing rule. # name is useful for regression testing an existing rule. The following is an
# The following is an example of `Source` that permits users to upload images # example of `Source` that permits users to upload images to a bucket bearing
# to a bucket bearing their user id and matching the correct metadata: # their user id and matching the correct metadata: _*Example*_ // Users are
# _*Example*_ # allowed to subscribe and unsubscribe to the blog. service firebase.storage `
# // Users are allowed to subscribe and unsubscribe to the blog. # match /users/`userId`/images/`imageName` ` allow write: if userId == request.
# service firebase.storage ` # auth.uid && (imageName.matches('*.png$') || imageName.matches('*.jpg$')) &&
# match /users/`userId`/images/`imageName` ` # resource.mimeType.matches('^image/') ` `
# allow write: if userId == request.auth.uid
# && (imageName.matches('*.png$')
# || imageName.matches('*.jpg$'))
# && resource.mimeType.matches('^image/')
# `
# `
# @param [String] name # @param [String] name
# Tests may either provide `source` or a `Ruleset` resource name. # Tests may either provide `source` or a `Ruleset` resource name. For tests
# For tests against `source`, the resource name must refer to the project: # against `source`, the resource name must refer to the project: Format: `
# Format: `projects/`project_id`` # projects/`project_id`` For tests against a `Ruleset`, this must be the `
# For tests against a `Ruleset`, this must be the `Ruleset` resource name: # Ruleset` resource name: Format: `projects/`project_id`/rulesets/`ruleset_id``
# Format: `projects/`project_id`/rulesets/`ruleset_id``
# @param [Google::Apis::FirebaserulesV1::TestRulesetRequest] test_ruleset_request_object # @param [Google::Apis::FirebaserulesV1::TestRulesetRequest] test_ruleset_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -102,27 +94,23 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Create a `Release`. # Create a `Release`. Release names should reflect the developer's deployment
# Release names should reflect the developer's deployment practices. For # practices. For example, the release name may include the environment name,
# example, the release name may include the environment name, application # application name, application version, or any other name meaningful to the
# name, application version, or any other name meaningful to the developer. # developer. Once a `Release` refers to a `Ruleset`, the rules can be enforced
# Once a `Release` refers to a `Ruleset`, the rules can be enforced by # by Firebase Rules-enabled services. More than one `Release` may be 'live'
# Firebase Rules-enabled services. # concurrently. Consider the following three `Release` names for `projects/foo`
# More than one `Release` may be 'live' concurrently. Consider the following # and the `Ruleset` to which they refer. Release Name | Ruleset Name ------------
# three `Release` names for `projects/foo` and the `Ruleset` to which they # --------------------|------------- projects/foo/releases/prod | projects/foo/
# refer. # rulesets/uuid123 projects/foo/releases/prod/beta | projects/foo/rulesets/
# Release Name | Ruleset Name # uuid123 projects/foo/releases/prod/v23 | projects/foo/rulesets/uuid456 The
# --------------------------------|------------- # table reflects the `Ruleset` rollout in progress. The `prod` and `prod/beta`
# projects/foo/releases/prod | projects/foo/rulesets/uuid123 # releases refer to the same `Ruleset`. However, `prod/v23` refers to a new `
# projects/foo/releases/prod/beta | projects/foo/rulesets/uuid123 # Ruleset`. The `Ruleset` reference for a `Release` may be updated using the
# projects/foo/releases/prod/v23 | projects/foo/rulesets/uuid456 # UpdateRelease method.
# The table reflects the `Ruleset` rollout in progress. The `prod` and
# `prod/beta` releases refer to the same `Ruleset`. However, `prod/v23`
# refers to a new `Ruleset`. The `Ruleset` reference for a `Release` may be
# updated using the UpdateRelease method.
# @param [String] name # @param [String] name
# Resource name for the project which owns this `Release`. # Resource name for the project which owns this `Release`. Format: `projects/`
# Format: `projects/`project_id`` # project_id``
# @param [Google::Apis::FirebaserulesV1::Release] release_object # @param [Google::Apis::FirebaserulesV1::Release] release_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -155,8 +143,8 @@ module Google
# Delete a `Release` by resource name. # Delete a `Release` by resource name.
# @param [String] name # @param [String] name
# Resource name for the `Release` to delete. # Resource name for the `Release` to delete. Format: `projects/`project_id`/
# Format: `projects/`project_id`/releases/`release_id`` # releases/`release_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -186,8 +174,8 @@ module Google
# Get a `Release` by name. # Get a `Release` by name.
# @param [String] name # @param [String] name
# Resource name of the `Release`. # Resource name of the `Release`. Format: `projects/`project_id`/releases/`
# Format: `projects/`project_id`/releases/`release_id`` # release_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -217,11 +205,11 @@ module Google
# Get the `Release` executable to use when enforcing rules. # Get the `Release` executable to use when enforcing rules.
# @param [String] name # @param [String] name
# Resource name of the `Release`. # Resource name of the `Release`. Format: `projects/`project_id`/releases/`
# Format: `projects/`project_id`/releases/`release_id`` # release_id``
# @param [String] executable_version # @param [String] executable_version
# The requested runtime executable version. # The requested runtime executable version. Defaults to
# Defaults to FIREBASE_RULES_EXECUTABLE_V1. # FIREBASE_RULES_EXECUTABLE_V1.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -250,38 +238,32 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# List the `Release` values for a project. This list may optionally be # List the `Release` values for a project. This list may optionally be filtered
# filtered by `Release` name, `Ruleset` name, `TestSuite` name, or any # by `Release` name, `Ruleset` name, `TestSuite` name, or any combination
# combination thereof. # thereof.
# @param [String] name # @param [String] name
# Resource name for the project. # Resource name for the project. Format: `projects/`project_id``
# Format: `projects/`project_id``
# @param [String] filter # @param [String] filter
# `Release` filter. The list method supports filters with restrictions on the # `Release` filter. The list method supports filters with restrictions on the `
# `Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`. # Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`. Example
# Example 1: A filter of 'name=prod*' might return `Release`s with names # 1: A filter of 'name=prod*' might return `Release`s with names within '
# within 'projects/foo' prefixed with 'prod': # projects/foo' prefixed with 'prod': Name | Ruleset Name -----------------------
# Name | Ruleset Name # -------|------------- projects/foo/releases/prod | projects/foo/rulesets/
# ------------------------------|------------- # uuid1234 projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234
# projects/foo/releases/prod | projects/foo/rulesets/uuid1234 # projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 Example 2: A
# projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234 # filter of `name=prod* ruleset_name=uuid1234` would return only `Release`
# projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 # instances for 'projects/foo' with names prefixed with 'prod' referring to the
# Example 2: A filter of `name=prod* ruleset_name=uuid1234` would return only # same `Ruleset` name of 'uuid1234': Name | Ruleset Name ------------------------
# `Release` instances for 'projects/foo' with names prefixed with 'prod' # ------|------------- projects/foo/releases/prod | projects/foo/rulesets/1234
# referring to the same `Ruleset` name of 'uuid1234': # projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 In the examples,
# Name | Ruleset Name # the filter parameters refer to the search filters are relative to the project.
# ------------------------------|------------- # Fully qualified prefixed may also be used. e.g. `test_suite_name=projects/foo/
# projects/foo/releases/prod | projects/foo/rulesets/1234 # testsuites/uuid1`
# projects/foo/releases/prod/v1 | projects/foo/rulesets/1234
# In the examples, the filter parameters refer to the search filters are
# relative to the project. Fully qualified prefixed may also be used. e.g.
# `test_suite_name=projects/foo/testsuites/uuid1`
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Page size to load. Maximum of 100. Defaults to 10. # Page size to load. Maximum of 100. Defaults to 10. Note: `page_size` is just a
# Note: `page_size` is just a hint and the service may choose to load fewer # hint and the service may choose to load fewer than `page_size` results due to
# than `page_size` results due to the size of the output. To traverse all of # the size of the output. To traverse all of the releases, the caller should
# the releases, the caller should iterate until the `page_token` on the # iterate until the `page_token` on the response is empty.
# response is empty.
# @param [String] page_token # @param [String] page_token
# Next page token for the next batch of `Release` instances. # Next page token for the next batch of `Release` instances.
# @param [String] fields # @param [String] fields
@ -314,13 +296,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update a `Release` via PATCH. # Update a `Release` via PATCH. Only updates to the `ruleset_name` and `
# Only updates to the `ruleset_name` and `test_suite_name` fields will be # test_suite_name` fields will be honored. `Release` rename is not supported. To
# honored. `Release` rename is not supported. To create a `Release` use the # create a `Release` use the CreateRelease method.
# CreateRelease method.
# @param [String] name # @param [String] name
# Resource name for the project which owns this `Release`. # Resource name for the project which owns this `Release`. Format: `projects/`
# Format: `projects/`project_id`` # project_id``
# @param [Google::Apis::FirebaserulesV1::UpdateReleaseRequest] update_release_request_object # @param [Google::Apis::FirebaserulesV1::UpdateReleaseRequest] update_release_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -351,14 +332,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Create a `Ruleset` from `Source`. # Create a `Ruleset` from `Source`. The `Ruleset` is given a unique generated
# The `Ruleset` is given a unique generated name which is returned to the # name which is returned to the caller. `Source` containing syntactic or
# caller. `Source` containing syntactic or semantics errors will result in an # semantics errors will result in an error response indicating the first error
# error response indicating the first error encountered. For a detailed view # encountered. For a detailed view of `Source` issues, use TestRuleset.
# of `Source` issues, use TestRuleset.
# @param [String] name # @param [String] name
# Resource name for Project which owns this `Ruleset`. # Resource name for Project which owns this `Ruleset`. Format: `projects/`
# Format: `projects/`project_id`` # project_id``
# @param [Google::Apis::FirebaserulesV1::Ruleset] ruleset_object # @param [Google::Apis::FirebaserulesV1::Ruleset] ruleset_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -389,11 +369,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Delete a `Ruleset` by resource name. # Delete a `Ruleset` by resource name. If the `Ruleset` is referenced by a `
# If the `Ruleset` is referenced by a `Release` the operation will fail. # Release` the operation will fail.
# @param [String] name # @param [String] name
# Resource name for the ruleset to delete. # Resource name for the ruleset to delete. Format: `projects/`project_id`/
# Format: `projects/`project_id`/rulesets/`ruleset_id`` # rulesets/`ruleset_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -423,8 +403,8 @@ module Google
# Get a `Ruleset` by name including the full `Source` contents. # Get a `Ruleset` by name including the full `Source` contents.
# @param [String] name # @param [String] name
# Resource name for the ruleset to get. # Resource name for the ruleset to get. Format: `projects/`project_id`/rulesets/`
# Format: `projects/`project_id`/rulesets/`ruleset_id`` # ruleset_id``
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -453,23 +433,20 @@ module Google
end end
# List `Ruleset` metadata only and optionally filter the results by `Ruleset` # List `Ruleset` metadata only and optionally filter the results by `Ruleset`
# name. # name. The full `Source` contents of a `Ruleset` may be retrieved with
# The full `Source` contents of a `Ruleset` may be retrieved with
# GetRuleset. # GetRuleset.
# @param [String] name # @param [String] name
# Resource name for the project. # Resource name for the project. Format: `projects/`project_id``
# Format: `projects/`project_id``
# @param [String] filter # @param [String] filter
# `Ruleset` filter. The list method supports filters with restrictions on # `Ruleset` filter. The list method supports filters with restrictions on `
# `Ruleset.name`. # Ruleset.name`. Filters on `Ruleset.create_time` should use the `date` function
# Filters on `Ruleset.create_time` should use the `date` function which # which parses strings that conform to the RFC 3339 date/time specifications.
# parses strings that conform to the RFC 3339 date/time specifications.
# Example: `create_time > date("2017-01-01T00:00:00Z") AND name=UUID-*` # Example: `create_time > date("2017-01-01T00:00:00Z") AND name=UUID-*`
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Page size to load. Maximum of 100. Defaults to 10. # Page size to load. Maximum of 100. Defaults to 10. Note: `page_size` is just a
# Note: `page_size` is just a hint and the service may choose to load less # hint and the service may choose to load less than `page_size` due to the size
# than `page_size` due to the size of the output. To traverse all of the # of the output. To traverse all of the releases, caller should iterate until
# releases, caller should iterate until the `page_token` is empty. # the `page_token` is empty.
# @param [String] page_token # @param [String] page_token
# Next page token for loading the next batch of `Ruleset` instances. # Next page token for loading the next batch of `Ruleset` instances.
# @param [String] fields # @param [String] fields

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/actions/smarthome/create-app#request-sync # @see https://developers.google.com/actions/smarthome/create-app#request-sync
module HomegraphV1 module HomegraphV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200522' REVISION = '20200810'
end end
end end
end end

View File

@ -75,14 +75,10 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :attributes attr_accessor :attributes
# Custom device attributes stored in Home Graph and provided to your # Custom device attributes stored in Home Graph and provided to your smart home
# smart home Action in each # Action in each [QUERY](https://developers.google.com/assistant/smarthome/
# [QUERY](https://developers.google.com/assistant/smarthome/reference/intent/ # reference/intent/query) and [EXECUTE](https://developers.google.com/assistant/
# query) # smarthome/reference/intent/execute) intent.
# and
# [EXECUTE](https://developers.google.com/assistant/smarthome/reference/intent/
# execute)
# intent.
# Corresponds to the JSON property `customData` # Corresponds to the JSON property `customData`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :custom_data attr_accessor :custom_data
@ -102,53 +98,48 @@ module Google
# @return [Google::Apis::HomegraphV1::DeviceNames] # @return [Google::Apis::HomegraphV1::DeviceNames]
attr_accessor :name attr_accessor :name
# Indicates whether your smart home Action will report notifications # Indicates whether your smart home Action will report notifications to Google
# to Google for this device via # for this device via ReportStateAndNotification. If your smart home Action
# ReportStateAndNotification. # enables users to control device notifications, you should update this field
# If your smart home Action enables users to control device notifications, # and call RequestSyncDevices.
# you should update this field and call
# RequestSyncDevices.
# Corresponds to the JSON property `notificationSupportedByAgent` # Corresponds to the JSON property `notificationSupportedByAgent`
# @return [Boolean] # @return [Boolean]
attr_accessor :notification_supported_by_agent attr_accessor :notification_supported_by_agent
alias_method :notification_supported_by_agent?, :notification_supported_by_agent alias_method :notification_supported_by_agent?, :notification_supported_by_agent
# Alternate IDs associated with this device. # Alternate IDs associated with this device. This is used to identify cloud
# This is used to identify cloud synced devices enabled for [local # synced devices enabled for [local fulfillment](https://developers.google.com/
# fulfillment](https://developers.google.com/assistant/smarthome/concepts/local). # assistant/smarthome/concepts/local).
# Corresponds to the JSON property `otherDeviceIds` # Corresponds to the JSON property `otherDeviceIds`
# @return [Array<Google::Apis::HomegraphV1::AgentOtherDeviceId>] # @return [Array<Google::Apis::HomegraphV1::AgentOtherDeviceId>]
attr_accessor :other_device_ids attr_accessor :other_device_ids
# Suggested name for the room where this device is installed. # Suggested name for the room where this device is installed. Google attempts to
# Google attempts to use this value during user setup. # use this value during user setup.
# Corresponds to the JSON property `roomHint` # Corresponds to the JSON property `roomHint`
# @return [String] # @return [String]
attr_accessor :room_hint attr_accessor :room_hint
# Suggested name for the structure where this device is installed. # Suggested name for the structure where this device is installed. Google
# Google attempts to use this value during user setup. # attempts to use this value during user setup.
# Corresponds to the JSON property `structureHint` # Corresponds to the JSON property `structureHint`
# @return [String] # @return [String]
attr_accessor :structure_hint attr_accessor :structure_hint
# Traits supported by the device. # Traits supported by the device. See [device traits](https://developers.google.
# See [device # com/assistant/smarthome/traits).
# traits](https://developers.google.com/assistant/smarthome/traits).
# Corresponds to the JSON property `traits` # Corresponds to the JSON property `traits`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :traits attr_accessor :traits
# Hardware type of the device. # Hardware type of the device. See [device types](https://developers.google.com/
# See [device # assistant/smarthome/guides).
# types](https://developers.google.com/assistant/smarthome/guides).
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
# Indicates whether your smart home Action will report state of this device # Indicates whether your smart home Action will report state of this device to
# to Google via # Google via ReportStateAndNotification.
# ReportStateAndNotification.
# Corresponds to the JSON property `willReportState` # Corresponds to the JSON property `willReportState`
# @return [Boolean] # @return [Boolean]
attr_accessor :will_report_state attr_accessor :will_report_state
@ -244,13 +235,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -263,8 +252,8 @@ module Google
end end
end end
# Request type for the # Request type for the [`Query`](#google.home.graph.v1.HomeGraphApiService.Query)
# [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call. # call.
class QueryRequest class QueryRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -273,8 +262,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :agent_user_id attr_accessor :agent_user_id
# Required. Inputs containing third-party device IDs for which to # Required. Inputs containing third-party device IDs for which to get the device
# get the device states. # states.
# Corresponds to the JSON property `inputs` # Corresponds to the JSON property `inputs`
# @return [Array<Google::Apis::HomegraphV1::QueryRequestInput>] # @return [Array<Google::Apis::HomegraphV1::QueryRequestInput>]
attr_accessor :inputs attr_accessor :inputs
@ -334,35 +323,13 @@ module Google
end end
end end
# Response type for the # Response type for the [`Query`](#google.home.graph.v1.HomeGraphApiService.
# [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call. # Query) call. This should follow the same format as the Google smart home `
# This should follow the same format as the Google smart home # action.devices.QUERY` [response](https://developers.google.com/assistant/
# `action.devices.QUERY` # smarthome/reference/intent/query). # Example ```json ` "requestId": "ff36a3cc-
# [response](https://developers.google.com/assistant/smarthome/reference/intent/ # ec34-11e6-b1a0-64510650abcf", "payload": ` "devices": ` "123": ` "on": true, "
# query). # online": true `, "456": ` "on": true, "online": true, "brightness": 80, "color"
# # Example # : ` "name": "cerulean", "spectrumRGB": 31655 ` ` ` ` ` ```
# ```json
# `
# "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
# "payload": `
# "devices": `
# "123": `
# "on": true,
# "online": true
# `,
# "456": `
# "on": true,
# "online": true,
# "brightness": 80,
# "color": `
# "name": "cerulean",
# "spectrumRGB": 31655
# `
# `
# `
# `
# `
# ```
class QueryResponse class QueryResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -391,8 +358,7 @@ module Google
class QueryResponsePayload class QueryResponsePayload
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# States of the devices. Map of third-party device ID to struct of device # States of the devices. Map of third-party device ID to struct of device states.
# states.
# Corresponds to the JSON property `devices` # Corresponds to the JSON property `devices`
# @return [Hash<String,Hash<String,Object>>] # @return [Hash<String,Hash<String,Object>>]
attr_accessor :devices attr_accessor :devices
@ -411,16 +377,16 @@ module Google
class ReportStateAndNotificationDevice class ReportStateAndNotificationDevice
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Notifications metadata for devices. See the **Device NOTIFICATIONS** # Notifications metadata for devices. See the **Device NOTIFICATIONS** section
# section of the individual trait [reference # of the individual trait [reference guides](https://developers.google.com/
# guides](https://developers.google.com/assistant/smarthome/traits). # assistant/smarthome/traits).
# Corresponds to the JSON property `notifications` # Corresponds to the JSON property `notifications`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :notifications attr_accessor :notifications
# States of devices to update. See the **Device STATES** section # States of devices to update. See the **Device STATES** section of the
# of the individual trait [reference # individual trait [reference guides](https://developers.google.com/assistant/
# guides](https://developers.google.com/assistant/smarthome/traits). # smarthome/traits).
# Corresponds to the JSON property `states` # Corresponds to the JSON property `states`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :states attr_accessor :states
@ -436,32 +402,13 @@ module Google
end end
end end
# Request type for the # Request type for the [`ReportStateAndNotification`](#google.home.graph.v1.
# [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService. # HomeGraphApiService.ReportStateAndNotification) call. It may include states,
# ReportStateAndNotification) # notifications, or both. States and notifications are defined per `device_id` (
# call. It may include states, notifications, or both. States and notifications # for example, "123" and "456" in the following example). # Example ```json ` "
# are defined per `device_id` (for example, "123" and "456" in the following # requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId": "1234", "
# example). # payload": ` "devices": ` "states": ` "123": ` "on": true `, "456": ` "on":
# # Example # true, "brightness": 10 ` `, ` ` ` ```
# ```json
# `
# "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
# "agentUserId": "1234",
# "payload": `
# "devices": `
# "states": `
# "123": `
# "on": true
# `,
# "456": `
# "on": true,
# "brightness": 10
# `
# `,
# `
# `
# `
# ```
class ReportStateAndNotificationRequest class ReportStateAndNotificationRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -475,10 +422,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :event_id attr_accessor :event_id
# Token to maintain state in the follow up notification response. # Token to maintain state in the follow up notification response. Deprecated.
# Deprecated. See the [notifications # See the [notifications guide](https://developers.google.com/assistant/
# guide](https://developers.google.com/assistant/smarthome/develop/notifications) # smarthome/develop/notifications) for details on implementing follow up
# for details on implementing follow up notifications. # notifications.
# Corresponds to the JSON property `followUpToken` # Corresponds to the JSON property `followUpToken`
# @return [String] # @return [String]
attr_accessor :follow_up_token attr_accessor :follow_up_token
@ -507,10 +454,8 @@ module Google
end end
end end
# Response type for the # Response type for the [`ReportStateAndNotification`](#google.home.graph.v1.
# [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService. # HomeGraphApiService.ReportStateAndNotification) call.
# ReportStateAndNotification)
# call.
class ReportStateAndNotificationResponse class ReportStateAndNotificationResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -529,10 +474,8 @@ module Google
end end
end end
# Request type for the # Request type for the [`RequestSyncDevices`](#google.home.graph.v1.
# [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService. # HomeGraphApiService.RequestSyncDevices) call.
# RequestSyncDevices)
# call.
class RequestSyncDevicesRequest class RequestSyncDevicesRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -541,9 +484,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :agent_user_id attr_accessor :agent_user_id
# Optional. If set, the request will be added to a queue and a response will # Optional. If set, the request will be added to a queue and a response will be
# be returned immediately. This enables concurrent requests for the given # returned immediately. This enables concurrent requests for the given `
# `agent_user_id`, but the caller will not receive any error responses. # agent_user_id`, but the caller will not receive any error responses.
# Corresponds to the JSON property `async` # Corresponds to the JSON property `async`
# @return [Boolean] # @return [Boolean]
attr_accessor :async attr_accessor :async
@ -560,12 +503,9 @@ module Google
end end
end end
# Response type for the # Response type for the [`RequestSyncDevices`](#google.home.graph.v1.
# [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService. # HomeGraphApiService.RequestSyncDevices) call. Intentionally empty upon success.
# RequestSyncDevices) # An HTTP response code is returned with more details upon failure.
# call.
# Intentionally empty upon success. An HTTP response code is returned
# with more details upon failure.
class RequestSyncDevicesResponse class RequestSyncDevicesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -623,45 +563,17 @@ module Google
end end
end end
# Response type for the # Response type for the [`Sync`](#google.home.graph.v1.HomeGraphApiService.Sync)
# [`Sync`](#google.home.graph.v1.HomeGraphApiService.Sync) call. # call. This should follow the same format as the Google smart home `action.
# This should follow the same format as the Google smart home # devices.SYNC` [response](https://developers.google.com/assistant/smarthome/
# `action.devices.SYNC` # reference/intent/sync). # Example ```json ` "requestId": "ff36a3cc-ec34-11e6-
# [response](https://developers.google.com/assistant/smarthome/reference/intent/ # b1a0-64510650abcf", "payload": ` "agentUserId": "1836.15267389", "devices": [`
# sync). # "id": "123", "type": "action.devices.types.OUTLET", "traits": [ "action.
# # Example # devices.traits.OnOff" ], "name": ` "defaultNames": ["My Outlet 1234"], "name":
# ```json # "Night light", "nicknames": ["wall plug"] `, "willReportState": false, "
# ` # deviceInfo": ` "manufacturer": "lights-out-inc", "model": "hs1234", "hwVersion"
# "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", # : "3.2", "swVersion": "11.4" `, "customData": ` "fooValue": 74, "barValue":
# "payload": ` # true, "bazValue": "foo" ` `] ` ` ```
# "agentUserId": "1836.15267389",
# "devices": [`
# "id": "123",
# "type": "action.devices.types.OUTLET",
# "traits": [
# "action.devices.traits.OnOff"
# ],
# "name": `
# "defaultNames": ["My Outlet 1234"],
# "name": "Night light",
# "nicknames": ["wall plug"]
# `,
# "willReportState": false,
# "deviceInfo": `
# "manufacturer": "lights-out-inc",
# "model": "hs1234",
# "hwVersion": "3.2",
# "swVersion": "11.4"
# `,
# "customData": `
# "fooValue": 74,
# "barValue": true,
# "bazValue": "foo"
# `
# `]
# `
# `
# ```
class SyncResponse class SyncResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -47,14 +47,11 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Unlinks the given third-party user from your smart home Action. # Unlinks the given third-party user from your smart home Action. All data
# All data related to this user will be deleted. # related to this user will be deleted. For more details on how users link their
# For more details on how users link their accounts, see # accounts, see [fulfillment and authentication](https://developers.google.com/
# [fulfillment and # assistant/smarthome/concepts/fulfillment-authentication). The third-party user'
# authentication](https://developers.google.com/assistant/smarthome/concepts/ # s identity is passed in via the `agent_user_id` (see DeleteAgentUserRequest).
# fulfillment-authentication).
# The third-party user's identity is passed in via the `agent_user_id`
# (see DeleteAgentUserRequest).
# This request must be authorized using service account credentials from your # This request must be authorized using service account credentials from your
# Actions console project. # Actions console project.
# @param [String] agent_user_id # @param [String] agent_user_id
@ -90,11 +87,9 @@ module Google
end end
# Gets the current states in Home Graph for the given set of the third-party # Gets the current states in Home Graph for the given set of the third-party
# user's devices. # user's devices. The third-party user's identity is passed in via the `
# The third-party user's identity is passed in via the `agent_user_id` # agent_user_id` (see QueryRequest). This request must be authorized using
# (see QueryRequest). # service account credentials from your Actions console project.
# This request must be authorized using service account credentials from your
# Actions console project.
# @param [Google::Apis::HomegraphV1::QueryRequest] query_request_object # @param [Google::Apis::HomegraphV1::QueryRequest] query_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -124,19 +119,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Reports device state and optionally sends device notifications. # Reports device state and optionally sends device notifications. Called by your
# Called by your smart home Action when the state of a third-party device # smart home Action when the state of a third-party device changes or you need
# changes or you need to send a notification about the device. # to send a notification about the device. See [Implement Report State](https://
# See [Implement Report # developers.google.com/assistant/smarthome/develop/report-state) for more
# State](https://developers.google.com/assistant/smarthome/develop/report-state) # information. This method updates the device state according to its declared [
# for more information. # traits](https://developers.google.com/assistant/smarthome/concepts/devices-
# This method updates the device state according to its declared # traits). Publishing a new state value outside of these traits will result in
# [traits](https://developers.google.com/assistant/smarthome/concepts/devices- # an `INVALID_ARGUMENT` error response. The third-party user's identity is
# traits). # passed in via the `agent_user_id` (see ReportStateAndNotificationRequest).
# Publishing a new state value outside of these traits will result in an
# `INVALID_ARGUMENT` error response.
# The third-party user's identity is passed in via the `agent_user_id`
# (see ReportStateAndNotificationRequest).
# This request must be authorized using service account credentials from your # This request must be authorized using service account credentials from your
# Actions console project. # Actions console project.
# @param [Google::Apis::HomegraphV1::ReportStateAndNotificationRequest] report_state_and_notification_request_object # @param [Google::Apis::HomegraphV1::ReportStateAndNotificationRequest] report_state_and_notification_request_object
@ -168,12 +159,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Requests Google to send an `action.devices.SYNC` # Requests Google to send an `action.devices.SYNC` [intent](https://developers.
# [intent](https://developers.google.com/assistant/smarthome/reference/intent/ # google.com/assistant/smarthome/reference/intent/sync) to your smart home
# sync) # Action to update device metadata for the given user. The third-party user's
# to your smart home Action to update device metadata for the given user. # identity is passed via the `agent_user_id` (see RequestSyncDevicesRequest).
# The third-party user's identity is passed via the `agent_user_id`
# (see RequestSyncDevicesRequest).
# This request must be authorized using service account credentials from your # This request must be authorized using service account credentials from your
# Actions console project. # Actions console project.
# @param [Google::Apis::HomegraphV1::RequestSyncDevicesRequest] request_sync_devices_request_object # @param [Google::Apis::HomegraphV1::RequestSyncDevicesRequest] request_sync_devices_request_object
@ -205,9 +194,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets all the devices associated with the given third-party user. # Gets all the devices associated with the given third-party user. The third-
# The third-party user's identity is passed in via the `agent_user_id` # party user's identity is passed in via the `agent_user_id` (see SyncRequest).
# (see SyncRequest).
# This request must be authorized using service account credentials from your # This request must be authorized using service account credentials from your
# Actions console project. # Actions console project.
# @param [Google::Apis::HomegraphV1::SyncRequest] sync_request_object # @param [Google::Apis::HomegraphV1::SyncRequest] sync_request_object

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/iam/ # @see https://cloud.google.com/iam/
module IamV1 module IamV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200709' REVISION = '20200806'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/ # @see https://cloud.google.com/
module OsconfigV1 module OsconfigV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200731' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -55,12 +55,9 @@ module Google
# @param [Google::Apis::OsconfigV1::PatchDeployment] patch_deployment_object # @param [Google::Apis::OsconfigV1::PatchDeployment] patch_deployment_object
# @param [String] patch_deployment_id # @param [String] patch_deployment_id
# Required. A name for the patch deployment in the project. When creating a name # Required. A name for the patch deployment in the project. When creating a name
# the following rules apply: # the following rules apply: * Must contain only lowercase letters, numbers, and
# * Must contain only lowercase letters, numbers, and hyphens. # hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must
# * Must start with a letter. # end with a number or a letter. * Must be unique within the project.
# * Must be between 1-63 characters.
# * Must end with a number or a letter.
# * Must be unique within the project.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -93,8 +90,8 @@ module Google
# Delete an OS Config patch deployment. # Delete an OS Config patch deployment.
# @param [String] name # @param [String] name
# Required. The resource name of the patch deployment in the form # Required. The resource name of the patch deployment in the form `projects/*/
# `projects/*/patchDeployments/*`. # patchDeployments/*`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -124,8 +121,8 @@ module Google
# Get an OS Config patch deployment. # Get an OS Config patch deployment.
# @param [String] name # @param [String] name
# Required. The resource name of the patch deployment in the form # Required. The resource name of the patch deployment in the form `projects/*/
# `projects/*/patchDeployments/*`. # patchDeployments/*`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -160,8 +157,7 @@ module Google
# Optional. The maximum number of patch deployments to return. Default is 100. # Optional. The maximum number of patch deployments to return. Default is 100.
# @param [String] page_token # @param [String] page_token
# Optional. A pagination token returned from a previous call to # Optional. A pagination token returned from a previous call to
# ListPatchDeployments # ListPatchDeployments that indicates where this listing should continue from.
# that indicates where this listing should continue from.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -191,8 +187,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Cancel a patch job. The patch job must be active. Canceled patch jobs # Cancel a patch job. The patch job must be active. Canceled patch jobs cannot
# cannot be restarted. # be restarted.
# @param [String] name # @param [String] name
# Required. Name of the patch in the form `projects/*/patchJobs/*` # Required. Name of the patch in the form `projects/*/patchJobs/*`
# @param [Google::Apis::OsconfigV1::CancelPatchJobRequest] cancel_patch_job_request_object # @param [Google::Apis::OsconfigV1::CancelPatchJobRequest] cancel_patch_job_request_object
@ -258,8 +254,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get the patch job. This can be used to track the progress of an # Get the patch job. This can be used to track the progress of an ongoing patch
# ongoing patch job or review the details of completed jobs. # job or review the details of completed jobs.
# @param [String] name # @param [String] name
# Required. Name of the patch in the form `projects/*/patchJobs/*` # Required. Name of the patch in the form `projects/*/patchJobs/*`
# @param [String] fields # @param [String] fields
@ -293,14 +289,14 @@ module Google
# @param [String] parent # @param [String] parent
# Required. In the form of `projects/*` # Required. In the form of `projects/*`
# @param [String] filter # @param [String] filter
# If provided, this field specifies the criteria that must be met by patch # If provided, this field specifies the criteria that must be met by patch jobs
# jobs to be included in the response. # to be included in the response. Currently, filtering is only available on the
# Currently, filtering is only available on the patch_deployment field. # patch_deployment field.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of instance status to return. # The maximum number of instance status to return.
# @param [String] page_token # @param [String] page_token
# A pagination token returned from a previous call # A pagination token returned from a previous call that indicates where this
# that indicates where this listing should continue from. # listing should continue from.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -336,14 +332,13 @@ module Google
# Required. The parent for the instances are in the form of `projects/*/ # Required. The parent for the instances are in the form of `projects/*/
# patchJobs/*`. # patchJobs/*`.
# @param [String] filter # @param [String] filter
# A filter expression that filters results listed in the response. This # A filter expression that filters results listed in the response. This field
# field supports filtering results by instance zone, name, state, or # supports filtering results by instance zone, name, state, or `failure_reason`.
# `failure_reason`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of instance details records to return. Default is 100. # The maximum number of instance details records to return. Default is 100.
# @param [String] page_token # @param [String] page_token
# A pagination token returned from a previous call # A pagination token returned from a previous call that indicates where this
# that indicates where this listing should continue from. # listing should continue from.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/ # @see https://cloud.google.com/
module OsconfigV1beta module OsconfigV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20200731' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -50,17 +50,14 @@ module Google
# Create an OS Config guest policy. # Create an OS Config guest policy.
# @param [String] parent # @param [String] parent
# Required. The resource name of the parent using one of the following forms: # Required. The resource name of the parent using one of the following forms: `
# `projects/`project_number``. # projects/`project_number``.
# @param [Google::Apis::OsconfigV1beta::GuestPolicy] guest_policy_object # @param [Google::Apis::OsconfigV1beta::GuestPolicy] guest_policy_object
# @param [String] guest_policy_id # @param [String] guest_policy_id
# Required. The logical name of the guest policy in the project # Required. The logical name of the guest policy in the project with the
# with the following restrictions: # following restrictions: * Must contain only lowercase letters, numbers, and
# * Must contain only lowercase letters, numbers, and hyphens. # hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must
# * Must start with a letter. # end with a number or a letter. * Must be unique within the project.
# * Must be between 1-63 characters.
# * Must end with a number or a letter.
# * Must be unique within the project.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -94,8 +91,7 @@ module Google
# Delete an OS Config guest policy. # Delete an OS Config guest policy.
# @param [String] name # @param [String] name
# Required. The resource name of the guest policy using one of the following # Required. The resource name of the guest policy using one of the following
# forms: # forms: `projects/`project_number`/guestPolicies/`guest_policy_id``.
# `projects/`project_number`/guestPolicies/`guest_policy_id``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -126,8 +122,7 @@ module Google
# Get an OS Config guest policy. # Get an OS Config guest policy.
# @param [String] name # @param [String] name
# Required. The resource name of the guest policy using one of the following # Required. The resource name of the guest policy using one of the following
# forms: # forms: `projects/`project_number`/guestPolicies/`guest_policy_id``.
# `projects/`project_number`/guestPolicies/`guest_policy_id``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -157,13 +152,13 @@ module Google
# Get a page of OS Config guest policies. # Get a page of OS Config guest policies.
# @param [String] parent # @param [String] parent
# Required. The resource name of the parent using one of the following forms: # Required. The resource name of the parent using one of the following forms: `
# `projects/`project_number``. # projects/`project_number``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of guest policies to return. # The maximum number of guest policies to return.
# @param [String] page_token # @param [String] page_token
# A pagination token returned from a previous call to `ListGuestPolicies` # A pagination token returned from a previous call to `ListGuestPolicies` that
# that indicates where this listing should continue from. # indicates where this listing should continue from.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -196,13 +191,10 @@ module Google
# Update an OS Config guest policy. # Update an OS Config guest policy.
# @param [String] name # @param [String] name
# Required. Unique name of the resource in this project using one of the # Required. Unique name of the resource in this project using one of the
# following # following forms: `projects/`project_number`/guestPolicies/`guest_policy_id``.
# forms:
# `projects/`project_number`/guestPolicies/`guest_policy_id``.
# @param [Google::Apis::OsconfigV1beta::GuestPolicy] guest_policy_object # @param [Google::Apis::OsconfigV1beta::GuestPolicy] guest_policy_object
# @param [String] update_mask # @param [String] update_mask
# Field mask that controls which fields of the guest policy should be # Field mask that controls which fields of the guest policy should be updated.
# updated.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -240,12 +232,9 @@ module Google
# @param [Google::Apis::OsconfigV1beta::PatchDeployment] patch_deployment_object # @param [Google::Apis::OsconfigV1beta::PatchDeployment] patch_deployment_object
# @param [String] patch_deployment_id # @param [String] patch_deployment_id
# Required. A name for the patch deployment in the project. When creating a name # Required. A name for the patch deployment in the project. When creating a name
# the following rules apply: # the following rules apply: * Must contain only lowercase letters, numbers, and
# * Must contain only lowercase letters, numbers, and hyphens. # hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must
# * Must start with a letter. # end with a number or a letter. * Must be unique within the project.
# * Must be between 1-63 characters.
# * Must end with a number or a letter.
# * Must be unique within the project.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -278,8 +267,8 @@ module Google
# Delete an OS Config patch deployment. # Delete an OS Config patch deployment.
# @param [String] name # @param [String] name
# Required. The resource name of the patch deployment in the form # Required. The resource name of the patch deployment in the form `projects/*/
# `projects/*/patchDeployments/*`. # patchDeployments/*`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -309,8 +298,8 @@ module Google
# Get an OS Config patch deployment. # Get an OS Config patch deployment.
# @param [String] name # @param [String] name
# Required. The resource name of the patch deployment in the form # Required. The resource name of the patch deployment in the form `projects/*/
# `projects/*/patchDeployments/*`. # patchDeployments/*`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -345,8 +334,7 @@ module Google
# Optional. The maximum number of patch deployments to return. Default is 100. # Optional. The maximum number of patch deployments to return. Default is 100.
# @param [String] page_token # @param [String] page_token
# Optional. A pagination token returned from a previous call to # Optional. A pagination token returned from a previous call to
# ListPatchDeployments # ListPatchDeployments that indicates where this listing should continue from.
# that indicates where this listing should continue from.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -376,8 +364,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Cancel a patch job. The patch job must be active. Canceled patch jobs # Cancel a patch job. The patch job must be active. Canceled patch jobs cannot
# cannot be restarted. # be restarted.
# @param [String] name # @param [String] name
# Required. Name of the patch in the form `projects/*/patchJobs/*` # Required. Name of the patch in the form `projects/*/patchJobs/*`
# @param [Google::Apis::OsconfigV1beta::CancelPatchJobRequest] cancel_patch_job_request_object # @param [Google::Apis::OsconfigV1beta::CancelPatchJobRequest] cancel_patch_job_request_object
@ -443,8 +431,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get the patch job. This can be used to track the progress of an # Get the patch job. This can be used to track the progress of an ongoing patch
# ongoing patch job or review the details of completed jobs. # job or review the details of completed jobs.
# @param [String] name # @param [String] name
# Required. Name of the patch in the form `projects/*/patchJobs/*` # Required. Name of the patch in the form `projects/*/patchJobs/*`
# @param [String] fields # @param [String] fields
@ -478,14 +466,14 @@ module Google
# @param [String] parent # @param [String] parent
# Required. In the form of `projects/*` # Required. In the form of `projects/*`
# @param [String] filter # @param [String] filter
# If provided, this field specifies the criteria that must be met by patch # If provided, this field specifies the criteria that must be met by patch jobs
# jobs to be included in the response. # to be included in the response. Currently, filtering is only available on the
# Currently, filtering is only available on the patch_deployment field. # patch_deployment field.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of instance status to return. # The maximum number of instance status to return.
# @param [String] page_token # @param [String] page_token
# A pagination token returned from a previous call # A pagination token returned from a previous call that indicates where this
# that indicates where this listing should continue from. # listing should continue from.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -521,14 +509,13 @@ module Google
# Required. The parent for the instances are in the form of `projects/*/ # Required. The parent for the instances are in the form of `projects/*/
# patchJobs/*`. # patchJobs/*`.
# @param [String] filter # @param [String] filter
# A filter expression that filters results listed in the response. This # A filter expression that filters results listed in the response. This field
# field supports filtering results by instance zone, name, state, or # supports filtering results by instance zone, name, state, or `failure_reason`.
# `failure_reason`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of instance details records to return. Default is 100. # The maximum number of instance details records to return. Default is 100.
# @param [String] page_token # @param [String] page_token
# A pagination token returned from a previous call # A pagination token returned from a previous call that indicates where this
# that indicates where this listing should continue from. # listing should continue from.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -559,8 +546,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lookup the effective guest policy that applies to a VM instance. This # Lookup the effective guest policy that applies to a VM instance. This lookup
# lookup merges all policies that are assigned to the instance ancestry. # merges all policies that are assigned to the instance ancestry.
# @param [String] instance # @param [String] instance
# Required. The VM instance whose policies are being looked up. # Required. The VM instance whose policies are being looked up.
# @param [Google::Apis::OsconfigV1beta::LookupEffectiveGuestPolicyRequest] lookup_effective_guest_policy_request_object # @param [Google::Apis::OsconfigV1beta::LookupEffectiveGuestPolicyRequest] lookup_effective_guest_policy_request_object

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -226,6 +226,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -766,6 +778,37 @@ module Google
end end
end end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :container_image_sources, as: 'containerImageSources', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_add_capabilities, as: 'dockerAddCapabilities', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_chroot_path, as: 'dockerChrootPath', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_network, as: 'dockerNetwork', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_privileged, as: 'dockerPrivileged', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_run_as_root, as: 'dockerRunAsRoot', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_runtime, as: 'dockerRuntime', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_sibling_containers, as: 'dockerSiblingContainers', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :linux_isolation, as: 'linuxIsolation'
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_values, as: 'allowedValues'
property :policy, as: 'policy'
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -783,6 +826,8 @@ module Google
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance class GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :feature_policy, as: 'featurePolicy', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy::Representation
property :location, as: 'location' property :location, as: 'location'
property :logging_enabled, as: 'loggingEnabled' property :logging_enabled, as: 'loggingEnabled'
property :name, as: 'name' property :name, as: 'name'

View File

@ -47,11 +47,10 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Downloads media. Download is supported # Downloads media. Download is supported on the URI `/v1/media/`+name`?alt=media`
# on the URI `/v1/media/`+name`?alt=media`. # .
# @param [String] resource_name # @param [String] resource_name
# Name of the media that is being downloaded. See # Name of the media that is being downloaded. See ReadRequest.resource_name.
# ReadRequest.resource_name.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -86,11 +85,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Uploads media. Upload is supported on # Uploads media. Upload is supported on the URI `/upload/v1/media/`+name``.
# the URI `/upload/v1/media/`+name``.
# @param [String] resource_name # @param [String] resource_name
# Name of the media that is being downloaded. See # Name of the media that is being downloaded. See ReadRequest.resource_name.
# ReadRequest.resource_name.
# @param [Google::Apis::RemotebuildexecutionV1::GoogleBytestreamMedia] google_bytestream_media_object # @param [Google::Apis::RemotebuildexecutionV1::GoogleBytestreamMedia] google_bytestream_media_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -131,15 +128,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -173,10 +168,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a long-running operation. This method indicates that the client is # Deletes a long-running operation. This method indicates that the client is no
# no longer interested in the operation result. It does not cancel the # longer interested in the operation result. It does not cancel the operation.
# operation. If the server doesn't support this method, it returns # If the server doesn't support this method, it returns `google.rpc.Code.
# `google.rpc.Code.UNIMPLEMENTED`. # UNIMPLEMENTED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be deleted. # The name of the operation resource to be deleted.
# @param [String] fields # @param [String] fields
@ -206,15 +201,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter
@ -253,9 +247,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/ # @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1alpha module RemotebuildexecutionV1alpha
VERSION = 'V1alpha' VERSION = 'V1alpha'
REVISION = '20200721' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -220,6 +220,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -735,6 +747,37 @@ module Google
end end
end end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :container_image_sources, as: 'containerImageSources', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_add_capabilities, as: 'dockerAddCapabilities', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_chroot_path, as: 'dockerChrootPath', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_network, as: 'dockerNetwork', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_privileged, as: 'dockerPrivileged', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_run_as_root, as: 'dockerRunAsRoot', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_runtime, as: 'dockerRuntime', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_sibling_containers, as: 'dockerSiblingContainers', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :linux_isolation, as: 'linuxIsolation'
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_values, as: 'allowedValues'
property :policy, as: 'policy'
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -752,6 +795,8 @@ module Google
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance class GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :feature_policy, as: 'featurePolicy', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy::Representation
property :location, as: 'location' property :location, as: 'location'
property :logging_enabled, as: 'loggingEnabled' property :logging_enabled, as: 'loggingEnabled'
property :name, as: 'name' property :name, as: 'name'

View File

@ -47,13 +47,13 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Creates a new instance in the specified region. # Creates a new instance in the specified region. Returns a long running
# Returns a long running operation which contains an instance on completion. # operation which contains an instance on completion. While the long running
# While the long running operation is in progress, any call to `GetInstance` # operation is in progress, any call to `GetInstance` returns an instance in
# returns an instance in state `CREATING`. # state `CREATING`.
# @param [String] parent # @param [String] parent
# Resource name of the project containing the instance. # Resource name of the project containing the instance. Format: `projects/[
# Format: `projects/[PROJECT_ID]`. # PROJECT_ID]`.
# @param [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest] google_devtools_remotebuildexecution_admin_v1alpha_create_instance_request_object # @param [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest] google_devtools_remotebuildexecution_admin_v1alpha_create_instance_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -84,14 +84,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the specified instance. # Deletes the specified instance. Returns a long running operation which
# Returns a long running operation which contains a `google.protobuf.Empty` # contains a `google.protobuf.Empty` response on completion. Deleting an
# response on completion. # instance with worker pools in it will delete these worker pools.
# Deleting an instance with worker pools in it will delete these worker
# pools.
# @param [String] name # @param [String] name
# Name of the instance to delete. # Name of the instance to delete. Format: `projects/[PROJECT_ID]/instances/[
# Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. # INSTANCE_ID]`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -121,8 +119,8 @@ module Google
# Returns the specified instance. # Returns the specified instance.
# @param [String] name # @param [String] name
# Name of the instance to retrieve. # Name of the instance to retrieve. Format: `projects/[PROJECT_ID]/instances/[
# Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. # INSTANCE_ID]`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -152,8 +150,7 @@ module Google
# Lists instances in a project. # Lists instances in a project.
# @param [String] parent # @param [String] parent
# Resource name of the project. # Resource name of the project. Format: `projects/[PROJECT_ID]`.
# Format: `projects/[PROJECT_ID]`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -181,13 +178,65 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new worker pool with a specified size and configuration. # Updates the specified instance. Returns a long running operation which
# Returns a long running operation which contains a worker pool on # contains the updated instance in the response on completion.
# completion. While the long running operation is in progress, any call to # @param [String] name
# `GetWorkerPool` returns a worker pool in state `CREATING`. # Output only. Instance resource name formatted as: `projects/[PROJECT_ID]/
# instances/[INSTANCE_ID]`. Name should not be populated when creating an
# instance since it is provided in the `instance_id` field.
# @param [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance] google_devtools_remotebuildexecution_admin_v1alpha_instance_object
# @param [Boolean] logging_enabled
# Deprecated, use instance.logging_enabled instead. Whether to enable
# Stackdriver logging for this instance.
# @param [String] name1
# Deprecated, use instance.Name instead. Name of the instance to update. Format:
# `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
# @param [String] update_mask
# The update mask applies to instance. For the `FieldMask` definition, see https:
# //developers.google.com/protocol-buffers/docs/reference/google.protobuf#
# fieldmask If an empty update_mask is provided, only the non-default valued
# field in the worker pool field will be updated. Note that in order to update a
# field to the default value (zero, false, empty string) an explicit update_mask
# must be provided.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RemotebuildexecutionV1alpha::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RemotebuildexecutionV1alpha::GoogleLongrunningOperation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_instance(name, google_devtools_remotebuildexecution_admin_v1alpha_instance_object = nil, logging_enabled: nil, name1: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
command.request_representation = Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance::Representation
command.request_object = google_devtools_remotebuildexecution_admin_v1alpha_instance_object
command.response_representation = Google::Apis::RemotebuildexecutionV1alpha::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RemotebuildexecutionV1alpha::GoogleLongrunningOperation
command.params['name'] = name unless name.nil?
command.query['loggingEnabled'] = logging_enabled unless logging_enabled.nil?
command.query['name1'] = name1 unless name1.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new worker pool with a specified size and configuration. Returns a
# long running operation which contains a worker pool on completion. While the
# long running operation is in progress, any call to `GetWorkerPool` returns a
# worker pool in state `CREATING`.
# @param [String] parent # @param [String] parent
# Resource name of the instance in which to create the new worker pool. # Resource name of the instance in which to create the new worker pool. Format: `
# Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. # projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
# @param [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest] google_devtools_remotebuildexecution_admin_v1alpha_create_worker_pool_request_object # @param [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest] google_devtools_remotebuildexecution_admin_v1alpha_create_worker_pool_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -218,15 +267,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the specified worker pool. # Deletes the specified worker pool. Returns a long running operation, which
# Returns a long running operation, which contains a `google.protobuf.Empty` # contains a `google.protobuf.Empty` response on completion. While the long
# response on completion. # running operation is in progress, any call to `GetWorkerPool` returns a worker
# While the long running operation is in progress, any call to # pool in state `DELETING`.
# `GetWorkerPool` returns a worker pool in state `DELETING`.
# @param [String] name # @param [String] name
# Name of the worker pool to delete. # Name of the worker pool to delete. Format: `projects/[PROJECT_ID]/instances/[
# Format: # INSTANCE_ID]/workerpools/[POOL_ID]`.
# `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -256,9 +303,8 @@ module Google
# Returns the specified worker pool. # Returns the specified worker pool.
# @param [String] name # @param [String] name
# Name of the worker pool to retrieve. # Name of the worker pool to retrieve. Format: `projects/[PROJECT_ID]/instances/[
# Format: # INSTANCE_ID]/workerpools/[POOL_ID]`.
# `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -288,28 +334,22 @@ module Google
# Lists worker pools in an instance. # Lists worker pools in an instance.
# @param [String] parent # @param [String] parent
# Resource name of the instance. # Resource name of the instance. Format: `projects/[PROJECT_ID]/instances/[
# Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. # INSTANCE_ID]`.
# @param [String] filter # @param [String] filter
# Optional. A filter expression that filters resources listed in # Optional. A filter expression that filters resources listed in the response.
# the response. The expression must specify the field name, a comparison # The expression must specify the field name, a comparison operator, and the
# operator, and the value that you want to use for filtering. The value # value that you want to use for filtering. The value must be a string, a number,
# must be a string, a number, or a boolean. String values are # or a boolean. String values are case-insensitive. The comparison operator
# case-insensitive. # must be either `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. The `:` operator can be
# The comparison operator must be either `:`, `=`, `!=`, `>`, `>=`, `<=` or # used with string fields to match substrings. For non-string fields it is
# `<`. # equivalent to the `=` operator. The `:*` comparison can be used to test
# The `:` operator can be used with string fields to match substrings. # whether a key has been defined. You can also filter on nested fields. To
# For non-string fields it is equivalent to the `=` operator. # filter on multiple expressions, you can separate expression using `AND` and `
# The `:*` comparison can be used to test whether a key has been defined. # OR` operators, using parentheses to specify precedence. If neither operator is
# You can also filter on nested fields. # specified, `AND` is assumed. Examples: Include only pools with more than 100
# To filter on multiple expressions, you can separate expression using # reserved workers: `(worker_count > 100) (worker_config.reserved = true)`
# `AND` and `OR` operators, using parentheses to specify precedence. If # Include only pools with a certain label or machines of the n1-standard family:
# neither operator is specified, `AND` is assumed.
# Examples:
# Include only pools with more than 100 reserved workers:
# `(worker_count > 100) (worker_config.reserved = true)`
# Include only pools with a certain label or machines of the n1-standard
# family:
# `worker_config.labels.key1 : * OR worker_config.machine_type: n1-standard` # `worker_config.labels.key1 : * OR worker_config.machine_type: n1-standard`
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -340,14 +380,13 @@ module Google
end end
# Updates an existing worker pool with a specified size and/or configuration. # Updates an existing worker pool with a specified size and/or configuration.
# Returns a long running operation, which contains a worker pool on # Returns a long running operation, which contains a worker pool on completion.
# completion. While the long running operation is in progress, any call to # While the long running operation is in progress, any call to `GetWorkerPool`
# `GetWorkerPool` returns a worker pool in state `UPDATING`. # returns a worker pool in state `UPDATING`.
# @param [String] name # @param [String] name
# WorkerPool resource name formatted as: # WorkerPool resource name formatted as: `projects/[PROJECT_ID]/instances/[
# `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. # INSTANCE_ID]/workerpools/[POOL_ID]`. name should not be populated when
# name should not be populated when creating a worker pool since it is # creating a worker pool since it is provided in the `poolId` field.
# provided in the `poolId` field.
# @param [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest] google_devtools_remotebuildexecution_admin_v1alpha_update_worker_pool_request_object # @param [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest] google_devtools_remotebuildexecution_admin_v1alpha_update_worker_pool_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -378,9 +417,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/ # @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV2 module RemotebuildexecutionV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200721' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -346,6 +346,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1054,6 +1066,37 @@ module Google
end end
end end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :container_image_sources, as: 'containerImageSources', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_add_capabilities, as: 'dockerAddCapabilities', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_chroot_path, as: 'dockerChrootPath', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_network, as: 'dockerNetwork', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_privileged, as: 'dockerPrivileged', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_run_as_root, as: 'dockerRunAsRoot', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_runtime, as: 'dockerRuntime', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :docker_sibling_containers, as: 'dockerSiblingContainers', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature::Representation
property :linux_isolation, as: 'linuxIsolation'
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_values, as: 'allowedValues'
property :policy, as: 'policy'
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest class GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1071,6 +1114,8 @@ module Google
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance class GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :feature_policy, as: 'featurePolicy', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy::Representation
property :location, as: 'location' property :location, as: 'location'
property :logging_enabled, as: 'loggingEnabled' property :logging_enabled, as: 'loggingEnabled'
property :name, as: 'name' property :name, as: 'name'

View File

@ -47,37 +47,29 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Retrieve a cached execution result. # Retrieve a cached execution result. Implementations SHOULD ensure that any
# Implementations SHOULD ensure that any blobs referenced from the # blobs referenced from the ContentAddressableStorage are available at the time
# ContentAddressableStorage # of returning the ActionResult and will be for some period of time afterwards.
# are available at the time of returning the # The TTLs of the referenced blobs SHOULD be increased if necessary and
# ActionResult and will be # applicable. Errors: * `NOT_FOUND`: The requested `ActionResult` is not in the
# for some period of time afterwards. The TTLs of the referenced blobs SHOULD be # cache.
# increased
# if necessary and applicable.
# Errors:
# * `NOT_FOUND`: The requested `ActionResult` is not in the cache.
# @param [String] instance_name # @param [String] instance_name
# The instance of the execution system to operate against. A server may # The instance of the execution system to operate against. A server may support
# support multiple instances of the execution system (with their own workers, # multiple instances of the execution system (with their own workers, storage,
# storage, caches, etc.). The server MAY require use of this field to select # caches, etc.). The server MAY require use of this field to select between them
# between them in an implementation-defined fashion, otherwise it can be # in an implementation-defined fashion, otherwise it can be omitted.
# omitted.
# @param [String] hash_ # @param [String] hash_
# The hash. In the case of SHA-256, it will always be a lowercase hex string # The hash. In the case of SHA-256, it will always be a lowercase hex string
# exactly 64 characters long. # exactly 64 characters long.
# @param [Fixnum] size_bytes # @param [Fixnum] size_bytes
# The size of the blob, in bytes. # The size of the blob, in bytes.
# @param [Array<String>, String] inline_output_files # @param [Array<String>, String] inline_output_files
# A hint to the server to inline the contents of the listed output files. # A hint to the server to inline the contents of the listed output files. Each
# Each path needs to exactly match one path in `output_files` in the # path needs to exactly match one path in `output_files` in the Command message.
# Command message.
# @param [Boolean] inline_stderr # @param [Boolean] inline_stderr
# A hint to the server to request inlining stderr in the # A hint to the server to request inlining stderr in the ActionResult message.
# ActionResult message.
# @param [Boolean] inline_stdout # @param [Boolean] inline_stdout
# A hint to the server to request inlining stdout in the # A hint to the server to request inlining stdout in the ActionResult message.
# ActionResult message.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -110,25 +102,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Upload a new execution result. # Upload a new execution result. In order to allow the server to perform access
# In order to allow the server to perform access control based on the type of # control based on the type of action, and to assist with client debugging, the
# action, and to assist with client debugging, the client MUST first upload # client MUST first upload the Action that produced the result, along with its
# the Action that produced the # Command, into the `ContentAddressableStorage`. Errors: * `INVALID_ARGUMENT`:
# result, along with its # One or more arguments are invalid. * `FAILED_PRECONDITION`: One or more errors
# Command, into the # occurred in updating the action result, such as a missing command or action. *
# `ContentAddressableStorage`. # `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the entry to
# Errors: # the cache.
# * `INVALID_ARGUMENT`: One or more arguments are invalid.
# * `FAILED_PRECONDITION`: One or more errors occurred in updating the
# action result, such as a missing command or action.
# * `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the
# entry to the cache.
# @param [String] instance_name # @param [String] instance_name
# The instance of the execution system to operate against. A server may # The instance of the execution system to operate against. A server may support
# support multiple instances of the execution system (with their own workers, # multiple instances of the execution system (with their own workers, storage,
# storage, caches, etc.). The server MAY require use of this field to select # caches, etc.). The server MAY require use of this field to select between them
# between them in an implementation-defined fashion, otherwise it can be # in an implementation-defined fashion, otherwise it can be omitted.
# omitted.
# @param [String] hash_ # @param [String] hash_
# The hash. In the case of SHA-256, it will always be a lowercase hex string # The hash. In the case of SHA-256, it will always be a lowercase hex string
# exactly 64 characters long. # exactly 64 characters long.
@ -137,12 +123,12 @@ module Google
# @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ActionResult] build_bazel_remote_execution_v2_action_result_object # @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ActionResult] build_bazel_remote_execution_v2_action_result_object
# @param [Fixnum] results_cache_policy_priority # @param [Fixnum] results_cache_policy_priority
# The priority (relative importance) of this content in the overall cache. # The priority (relative importance) of this content in the overall cache.
# Generally, a lower value means a longer retention time or other advantage, # Generally, a lower value means a longer retention time or other advantage, but
# but the interpretation of a given value is server-dependent. A priority of # the interpretation of a given value is server-dependent. A priority of 0 means
# 0 means a *default* value, decided by the server. # a *default* value, decided by the server. The particular semantics of this
# The particular semantics of this field is up to the server. In particular, # field is up to the server. In particular, every server will have their own
# every server will have their own supported range of priorities, and will # supported range of priorities, and will decide how these map into retention/
# decide how these map into retention/eviction policy. # eviction policy.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -175,67 +161,50 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Execute an action remotely. # Execute an action remotely. In order to execute an action, the client must
# In order to execute an action, the client must first upload all of the # first upload all of the inputs, the Command to run, and the Action into the
# inputs, the # ContentAddressableStorage. It then calls `Execute` with an `action_digest`
# Command to run, and the # referring to them. The server will run the action and eventually return the
# Action into the # result. The input `Action`'s fields MUST meet the various canonicalization
# ContentAddressableStorage. # requirements specified in the documentation for their types so that it has the
# It then calls `Execute` with an `action_digest` referring to them. The # same digest as other logically equivalent `Action`s. The server MAY enforce
# server will run the action and eventually return the result. # the requirements and return errors if a non-canonical input is received. It
# The input `Action`'s fields MUST meet the various canonicalization # MAY also proceed without verifying some or all of the requirements, such as
# requirements specified in the documentation for their types so that it has # for performance reasons. If the server does not verify the requirement, then
# the same digest as other logically equivalent `Action`s. The server MAY # it will treat the `Action` as distinct from another logically equivalent
# enforce the requirements and return errors if a non-canonical input is # action if they hash differently. Returns a stream of google.longrunning.
# received. It MAY also proceed without verifying some or all of the # Operation messages describing the resulting execution, with eventual `response`
# requirements, such as for performance reasons. If the server does not # ExecuteResponse. The `metadata` on the operation is of type
# verify the requirement, then it will treat the `Action` as distinct from # ExecuteOperationMetadata. If the client remains connected after the first
# another logically equivalent action if they hash differently. # response is returned after the server, then updates are streamed as if the
# Returns a stream of # client had called WaitExecution until the execution completes or the request
# google.longrunning.Operation messages # reaches an error. The operation can also be queried using Operations API. The
# describing the resulting execution, with eventual `response` # server NEED NOT implement other methods or functionality of the Operations API.
# ExecuteResponse. The # Errors discovered during creation of the `Operation` will be reported as gRPC
# `metadata` on the operation is of type # Status errors, while errors that occurred while running the action will be
# ExecuteOperationMetadata. # reported in the `status` field of the `ExecuteResponse`. The server MUST NOT
# If the client remains connected after the first response is returned after # set the `error` field of the `Operation` proto. The possible errors include: *
# the server, then updates are streamed as if the client had called # `INVALID_ARGUMENT`: One or more arguments are invalid. * `FAILED_PRECONDITION`:
# WaitExecution # One or more errors occurred in setting up the action requested, such as a
# until the execution completes or the request reaches an error. The # missing input or command or no worker being available. The client may be able
# operation can also be queried using Operations # to fix the errors and retry. * `RESOURCE_EXHAUSTED`: There is insufficient
# API. # quota of some resource to run the action. * `UNAVAILABLE`: Due to a transient
# The server NEED NOT implement other methods or functionality of the # condition, such as all workers being occupied (and the server does not support
# Operations API. # a queue), the action could not be started. The client should retry. * `
# Errors discovered during creation of the `Operation` will be reported # INTERNAL`: An internal error occurred in the execution engine or the worker. *
# as gRPC Status errors, while errors that occurred while running the # `DEADLINE_EXCEEDED`: The execution timed out. * `CANCELLED`: The operation was
# action will be reported in the `status` field of the `ExecuteResponse`. The # cancelled by the client. This status is only possible if the server implements
# server MUST NOT set the `error` field of the `Operation` proto. # the Operations API CancelOperation method, and it was called for the current
# The possible errors include: # execution. In the case of a missing input or command, the server SHOULD
# * `INVALID_ARGUMENT`: One or more arguments are invalid. # additionally send a PreconditionFailure error detail where, for each requested
# * `FAILED_PRECONDITION`: One or more errors occurred in setting up the # blob not present in the CAS, there is a `Violation` with a `type` of `MISSING`
# action requested, such as a missing input or command or no worker being # and a `subject` of `"blobs/`hash`/`size`"` indicating the digest of the
# available. The client may be able to fix the errors and retry. # missing blob.
# * `RESOURCE_EXHAUSTED`: There is insufficient quota of some resource to run
# the action.
# * `UNAVAILABLE`: Due to a transient condition, such as all workers being
# occupied (and the server does not support a queue), the action could not
# be started. The client should retry.
# * `INTERNAL`: An internal error occurred in the execution engine or the
# worker.
# * `DEADLINE_EXCEEDED`: The execution timed out.
# * `CANCELLED`: The operation was cancelled by the client. This status is
# only possible if the server implements the Operations API CancelOperation
# method, and it was called for the current execution.
# In the case of a missing input or command, the server SHOULD additionally
# send a PreconditionFailure error detail
# where, for each requested blob not present in the CAS, there is a
# `Violation` with a `type` of `MISSING` and a `subject` of
# `"blobs/`hash`/`size`"` indicating the digest of the missing blob.
# @param [String] instance_name # @param [String] instance_name
# The instance of the execution system to operate against. A server may # The instance of the execution system to operate against. A server may support
# support multiple instances of the execution system (with their own workers, # multiple instances of the execution system (with their own workers, storage,
# storage, caches, etc.). The server MAY require use of this field to select # caches, etc.). The server MAY require use of this field to select between them
# between them in an implementation-defined fashion, otherwise it can be # in an implementation-defined fashion, otherwise it can be omitted.
# omitted.
# @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ExecuteRequest] build_bazel_remote_execution_v2_execute_request_object # @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ExecuteRequest] build_bazel_remote_execution_v2_execute_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -266,27 +235,20 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Download many blobs at once. # Download many blobs at once. The server may enforce a limit of the combined
# The server may enforce a limit of the combined total size of blobs # total size of blobs to be downloaded using this API. This limit may be
# to be downloaded using this API. This limit may be obtained using the # obtained using the Capabilities API. Requests exceeding the limit should
# Capabilities API. # either be split into smaller chunks or downloaded using the ByteStream API, as
# Requests exceeding the limit should either be split into smaller # appropriate. This request is equivalent to calling a Bytestream `Read` request
# chunks or downloaded using the
# ByteStream API, as appropriate.
# This request is equivalent to calling a Bytestream `Read` request
# on each individual blob, in parallel. The requests may succeed or fail # on each individual blob, in parallel. The requests may succeed or fail
# independently. # independently. Errors: * `INVALID_ARGUMENT`: The client attempted to read more
# Errors: # than the server supported limit. Every error on individual read will be
# * `INVALID_ARGUMENT`: The client attempted to read more than the # returned in the corresponding digest status.
# server supported limit.
# Every error on individual read will be returned in the corresponding digest
# status.
# @param [String] instance_name # @param [String] instance_name
# The instance of the execution system to operate against. A server may # The instance of the execution system to operate against. A server may support
# support multiple instances of the execution system (with their own workers, # multiple instances of the execution system (with their own workers, storage,
# storage, caches, etc.). The server MAY require use of this field to select # caches, etc.). The server MAY require use of this field to select between them
# between them in an implementation-defined fashion, otherwise it can be # in an implementation-defined fashion, otherwise it can be omitted.
# omitted.
# @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2BatchReadBlobsRequest] build_bazel_remote_execution_v2_batch_read_blobs_request_object # @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2BatchReadBlobsRequest] build_bazel_remote_execution_v2_batch_read_blobs_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -317,30 +279,22 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Upload many blobs at once. # Upload many blobs at once. The server may enforce a limit of the combined
# The server may enforce a limit of the combined total size of blobs # total size of blobs to be uploaded using this API. This limit may be obtained
# to be uploaded using this API. This limit may be obtained using the # using the Capabilities API. Requests exceeding the limit should either be
# Capabilities API. # split into smaller chunks or uploaded using the ByteStream API, as appropriate.
# Requests exceeding the limit should either be split into smaller # This request is equivalent to calling a Bytestream `Write` request on each
# chunks or uploaded using the # individual blob, in parallel. The requests may succeed or fail independently.
# ByteStream API, as appropriate. # Errors: * `INVALID_ARGUMENT`: The client attempted to upload more than the
# This request is equivalent to calling a Bytestream `Write` request # server supported limit. Individual requests may return the following errors,
# on each individual blob, in parallel. The requests may succeed or fail # additionally: * `RESOURCE_EXHAUSTED`: There is insufficient disk quota to
# independently. # store the blob. * `INVALID_ARGUMENT`: The Digest does not match the provided
# Errors: # data.
# * `INVALID_ARGUMENT`: The client attempted to upload more than the
# server supported limit.
# Individual requests may return the following errors, additionally:
# * `RESOURCE_EXHAUSTED`: There is insufficient disk quota to store the blob.
# * `INVALID_ARGUMENT`: The
# Digest does not match the
# provided data.
# @param [String] instance_name # @param [String] instance_name
# The instance of the execution system to operate against. A server may # The instance of the execution system to operate against. A server may support
# support multiple instances of the execution system (with their own workers, # multiple instances of the execution system (with their own workers, storage,
# storage, caches, etc.). The server MAY require use of this field to select # caches, etc.). The server MAY require use of this field to select between them
# between them in an implementation-defined fashion, otherwise it can be # in an implementation-defined fashion, otherwise it can be omitted.
# omitted.
# @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest] build_bazel_remote_execution_v2_batch_update_blobs_request_object # @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest] build_bazel_remote_execution_v2_batch_update_blobs_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -371,18 +325,16 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Determine if blobs are present in the CAS. # Determine if blobs are present in the CAS. Clients can use this API before
# Clients can use this API before uploading blobs to determine which ones are # uploading blobs to determine which ones are already present in the CAS and do
# already present in the CAS and do not need to be uploaded again. # not need to be uploaded again. Servers SHOULD increase the TTLs of the
# Servers SHOULD increase the TTLs of the referenced blobs if necessary and # referenced blobs if necessary and applicable. There are no method-specific
# applicable. # errors.
# There are no method-specific errors.
# @param [String] instance_name # @param [String] instance_name
# The instance of the execution system to operate against. A server may # The instance of the execution system to operate against. A server may support
# support multiple instances of the execution system (with their own workers, # multiple instances of the execution system (with their own workers, storage,
# storage, caches, etc.). The server MAY require use of this field to select # caches, etc.). The server MAY require use of this field to select between them
# between them in an implementation-defined fashion, otherwise it can be # in an implementation-defined fashion, otherwise it can be omitted.
# omitted.
# @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2FindMissingBlobsRequest] build_bazel_remote_execution_v2_find_missing_blobs_request_object # @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2FindMissingBlobsRequest] build_bazel_remote_execution_v2_find_missing_blobs_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -413,29 +365,23 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Fetch the entire directory tree rooted at a node. # Fetch the entire directory tree rooted at a node. This request must be
# This request must be targeted at a # targeted at a Directory stored in the ContentAddressableStorage (CAS). The
# Directory stored in the # server will enumerate the `Directory` tree recursively and return every node
# ContentAddressableStorage # descended from the root. The GetTreeRequest.page_token parameter can be used
# (CAS). The server will enumerate the `Directory` tree recursively and # to skip ahead in the stream (e.g. when retrying a partially completed and
# return every node descended from the root. # aborted request), by setting it to a value taken from GetTreeResponse.
# The GetTreeRequest.page_token parameter can be used to skip ahead in # next_page_token of the last successfully processed GetTreeResponse). The exact
# the stream (e.g. when retrying a partially completed and aborted request), # traversal order is unspecified and, unless retrieving subsequent pages from an
# by setting it to a value taken from GetTreeResponse.next_page_token of the # earlier request, is not guaranteed to be stable across multiple invocations of
# last successfully processed GetTreeResponse). # `GetTree`. If part of the tree is missing from the CAS, the server will return
# The exact traversal order is unspecified and, unless retrieving subsequent # the portion present and omit the rest. Errors: * `NOT_FOUND`: The requested
# pages from an earlier request, is not guaranteed to be stable across # tree root is not present in the CAS.
# multiple invocations of `GetTree`.
# If part of the tree is missing from the CAS, the server will return the
# portion present and omit the rest.
# Errors:
# * `NOT_FOUND`: The requested tree root is not present in the CAS.
# @param [String] instance_name # @param [String] instance_name
# The instance of the execution system to operate against. A server may # The instance of the execution system to operate against. A server may support
# support multiple instances of the execution system (with their own workers, # multiple instances of the execution system (with their own workers, storage,
# storage, caches, etc.). The server MAY require use of this field to select # caches, etc.). The server MAY require use of this field to select between them
# between them in an implementation-defined fashion, otherwise it can be # in an implementation-defined fashion, otherwise it can be omitted.
# omitted.
# @param [String] hash_ # @param [String] hash_
# The hash. In the case of SHA-256, it will always be a lowercase hex string # The hash. In the case of SHA-256, it will always be a lowercase hex string
# exactly 64 characters long. # exactly 64 characters long.
@ -447,10 +393,9 @@ module Google
# server may place its own limit on the number of items to be returned and # server may place its own limit on the number of items to be returned and
# require the client to retrieve more items using a subsequent request. # require the client to retrieve more items using a subsequent request.
# @param [String] page_token # @param [String] page_token
# A page token, which must be a value received in a previous # A page token, which must be a value received in a previous GetTreeResponse. If
# GetTreeResponse. # present, the server will use that token as an offset, returning only that page
# If present, the server will use that token as an offset, returning only # and the ones that succeed it.
# that page and the ones that succeed it.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -482,15 +427,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Wait for an execution operation to complete. When the client initially # Wait for an execution operation to complete. When the client initially makes
# makes the request, the server immediately responds with the current status # the request, the server immediately responds with the current status of the
# of the execution. The server will leave the request stream open until the # execution. The server will leave the request stream open until the operation
# operation completes, and then respond with the completed operation. The # completes, and then respond with the completed operation. The server MAY
# server MAY choose to stream additional updates as execution progresses, # choose to stream additional updates as execution progresses, such as to
# such as to provide an update as to the state of the execution. # provide an update as to the state of the execution.
# @param [String] name # @param [String] name
# The name of the Operation # The name of the Operation returned by Execute.
# returned by Execute.
# @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2WaitExecutionRequest] build_bazel_remote_execution_v2_wait_execution_request_object # @param [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2WaitExecutionRequest] build_bazel_remote_execution_v2_wait_execution_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -521,20 +465,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# GetCapabilities returns the server capabilities configuration of the # GetCapabilities returns the server capabilities configuration of the remote
# remote endpoint. # endpoint. Only the capabilities of the services supported by the endpoint will
# Only the capabilities of the services supported by the endpoint will # be returned: * Execution + CAS + Action Cache endpoints should return both
# be returned: # CacheCapabilities and ExecutionCapabilities. * Execution only endpoints should
# * Execution + CAS + Action Cache endpoints should return both # return ExecutionCapabilities. * CAS + Action Cache only endpoints should
# CacheCapabilities and ExecutionCapabilities. # return CacheCapabilities.
# * Execution only endpoints should return ExecutionCapabilities.
# * CAS + Action Cache only endpoints should return CacheCapabilities.
# @param [String] instance_name # @param [String] instance_name
# The instance of the execution system to operate against. A server may # The instance of the execution system to operate against. A server may support
# support multiple instances of the execution system (with their own workers, # multiple instances of the execution system (with their own workers, storage,
# storage, caches, etc.). The server MAY require use of this field to select # caches, etc.). The server MAY require use of this field to select between them
# between them in an implementation-defined fashion, otherwise it can be # in an implementation-defined fashion, otherwise it can be omitted.
# omitted.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/secret-manager/ # @see https://cloud.google.com/secret-manager/
module SecretmanagerV1 module SecretmanagerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200619' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,8 +26,8 @@ module Google
class AccessSecretVersionResponse class AccessSecretVersionResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The resource name of the SecretVersion in the format # The resource name of the SecretVersion in the format `projects/*/secrets/*/
# `projects/*/secrets/*/versions/*`. # versions/*`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -69,53 +69,21 @@ module Google
end end
end end
# Specifies the audit configuration for a service. # Specifies the audit configuration for a service. The configuration determines
# The configuration determines which permission types are logged, and what # which permission types are logged, and what identities, if any, are exempted
# identities, if any, are exempted from logging. # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
# An AuditConfig must have one or more AuditLogConfigs. # are AuditConfigs for both `allServices` and a specific service, the union of
# If there are AuditConfigs for both `allServices` and a specific service, # the two AuditConfigs is used for that service: the log_types specified in each
# the union of the two AuditConfigs is used for that service: the log_types # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
# specified in each AuditConfig are enabled, and the exempted_members in each # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
# AuditLogConfig are exempted. # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
# Example Policy with multiple AuditConfigs: # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
# ` # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
# "audit_configs": [ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
# ` # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
# "service": "allServices", # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
# "audit_log_configs": [ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
# ` # DATA_WRITE logging.
# "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 class AuditConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -124,9 +92,9 @@ module Google
# @return [Array<Google::Apis::SecretmanagerV1::AuditLogConfig>] # @return [Array<Google::Apis::SecretmanagerV1::AuditLogConfig>]
attr_accessor :audit_log_configs attr_accessor :audit_log_configs
# Specifies a service that will be enabled for audit logging. # Specifies a service that will be enabled for audit logging. For example, `
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
# `allServices` is a special value that covers all services. # value that covers all services.
# Corresponds to the JSON property `service` # Corresponds to the JSON property `service`
# @return [String] # @return [String]
attr_accessor :service attr_accessor :service
@ -142,28 +110,15 @@ module Google
end end
end end
# Provides the configuration for logging a type of permissions. # Provides the configuration for logging a type of permissions. Example: ` "
# Example: # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
# ` # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
# "audit_log_configs": [ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
# ` # DATA_READ logging.
# "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 class AuditLogConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of # Specifies the identities that do not cause logging for this type of permission.
# permission.
# Follows the same format of Binding.members. # Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers` # Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>] # @return [Array<String>]
@ -203,69 +158,57 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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` # Corresponds to the JSON property `condition`
# @return [Google::Apis::SecretmanagerV1::Expr] # @return [Google::Apis::SecretmanagerV1::Expr]
attr_accessor :condition attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource. `
# `members` can have the following values: # members` can have the following values: * `allUsers`: A special identifier
# * `allUsers`: A special identifier that represents anyone who is # that represents anyone who is on the internet; with or without a Google
# on the internet; with or without a Google account. # account. * `allAuthenticatedUsers`: A special identifier that represents
# * `allAuthenticatedUsers`: A special identifier that represents anyone # anyone who is authenticated with a Google account or a service account. * `
# who is authenticated with a Google account or a service account. # user:`emailid``: An email address that represents a specific Google account.
# * `user:`emailid``: An email address that represents a specific Google # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
# account. For example, `alice@example.com` . # address that represents a service account. For example, `my-other-app@appspot.
# * `serviceAccount:`emailid``: An email address that represents a service # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
# account. For example, `my-other-app@appspot.gserviceaccount.com`. # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
# * `group:`emailid``: An email address that represents a Google group. # `uniqueid``: An email address (plus unique identifier) representing a user
# For example, `admins@example.com`. # that has been recently deleted. For example, `alice@example.com?uid=
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
# identifier) representing a user that has been recently deleted. For # emailid`` and the recovered user retains the role in the binding. * `deleted:
# example, `alice@example.com?uid=123456789012345678901`. If the user is # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
# recovered, this value reverts to `user:`emailid`` and the recovered user # identifier) representing a service account that has been recently deleted. For
# retains the role in the binding. # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus # If the service account is undeleted, this value reverts to `serviceAccount:`
# unique identifier) representing a service account that has been recently # emailid`` and the undeleted service account retains the role in the binding. *
# deleted. For example, # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. # identifier) representing a Google group that has been recently deleted. For
# If the service account is undeleted, this value reverts to # example, `admins@example.com?uid=123456789012345678901`. If the group is
# `serviceAccount:`emailid`` and the undeleted service account retains the # recovered, this value reverts to `group:`emailid`` and the recovered group
# role in the binding. # retains the role in the binding. * `domain:`domain``: The G Suite domain (
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique # primary) that represents all the users of that domain. For example, `google.
# identifier) representing a Google group that has been recently # com` or `example.com`.
# 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` # Corresponds to the JSON property `members`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :members attr_accessor :members
# Role that is assigned to `members`. # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`. # , or `roles/owner`.
# Corresponds to the JSON property `role` # Corresponds to the JSON property `role`
# @return [String] # @return [String]
attr_accessor :role attr_accessor :role
@ -308,13 +251,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -340,52 +281,43 @@ module Google
end end
end end
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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 class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which describes
# describes the expression, e.g. when hovered over it in a UI. # the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in Common Expression Language # Textual representation of an expression in Common Expression Language syntax.
# syntax.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# Optional. String indicating the location of the expression for error # Optional. String indicating the location of the expression for error reporting,
# reporting, e.g. a file name and a position in the file. # e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. Title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing its purpose.
# its purpose. This can be used e.g. in UIs which allow to enter the # This can be used e.g. in UIs which allow to enter the expression.
# expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
@ -443,8 +375,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :total_size attr_accessor :total_size
# The list of SecretVersions sorted in reverse by # The list of SecretVersions sorted in reverse by create_time (newest first).
# create_time (newest first).
# Corresponds to the JSON property `versions` # Corresponds to the JSON property `versions`
# @return [Array<Google::Apis::SecretmanagerV1::SecretVersion>] # @return [Array<Google::Apis::SecretmanagerV1::SecretVersion>]
attr_accessor :versions attr_accessor :versions
@ -471,8 +402,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# The list of Secrets sorted in reverse by create_time (newest # The list of Secrets sorted in reverse by create_time (newest first).
# first).
# Corresponds to the JSON property `secrets` # Corresponds to the JSON property `secrets`
# @return [Array<Google::Apis::SecretmanagerV1::Secret>] # @return [Array<Google::Apis::SecretmanagerV1::Secret>]
attr_accessor :secrets attr_accessor :secrets
@ -498,14 +428,14 @@ module Google
class Location class Location
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name. # The friendly name for this location, typically a nearby city name. For example,
# For example, "Tokyo". # "Tokyo".
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Cross-service attributes for the location. For example # Cross-service attributes for the location. For example `"cloud.googleapis.com/
# `"cloud.googleapis.com/region": "us-east1"` # region": "us-east1"`
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -521,8 +451,8 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# Resource name for the location, which may vary between implementations. # Resource name for the location, which may vary between implementations. For
# For example: `"projects/example-project/locations/us-east1"` # example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -542,66 +472,32 @@ module Google
end end
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # 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/).
# "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 class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -610,48 +506,44 @@ module Google
# @return [Array<Google::Apis::SecretmanagerV1::AuditConfig>] # @return [Array<Google::Apis::SecretmanagerV1::AuditConfig>]
attr_accessor :audit_configs attr_accessor :audit_configs
# Associates a list of `members` to a `role`. Optionally, may specify a # Associates a list of `members` to a `role`. Optionally, may specify a `
# `condition` that determines how and when the `bindings` are applied. Each # condition` that determines how and when the `bindings` are applied. Each of
# of the `bindings` must contain at least one member. # the `bindings` must contain at least one member.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::SecretmanagerV1::Binding>] # @return [Array<Google::Apis::SecretmanagerV1::Binding>]
attr_accessor :bindings attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help # `etag` is used for optimistic concurrency control as a way to help prevent
# prevent simultaneous updates of a policy from overwriting each other. # simultaneous updates of a policy from overwriting each other. It is strongly
# It is strongly suggested that systems make use of the `etag` in the # suggested that systems make use of the `etag` in the read-modify-write cycle
# read-modify-write cycle to perform policy updates in order to avoid race # to perform policy updates in order to avoid race conditions: An `etag` is
# conditions: An `etag` is returned in the response to `getIamPolicy`, and # returned in the response to `getIamPolicy`, and systems are expected to put
# systems are expected to put that etag in the request to `setIamPolicy` to # that etag in the request to `setIamPolicy` to ensure that their change will be
# ensure that their change will be applied to the same version of the policy. # applied to the same version of the policy. **Important:** If you use IAM
# **Important:** If you use IAM Conditions, you must include the `etag` field # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # If you omit this field, then IAM allows you to overwrite a version `3` policy
# you to overwrite a version `3` policy with a version `1` policy, and all of # with a version `1` policy, and all of the conditions in the version `3` policy
# the conditions in the version `3` policy are lost. # are lost.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Specifies the format of the policy. # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value # Requests that specify an invalid value are rejected. Any operation that
# are rejected. # affects conditional role bindings must specify version `3`. This requirement
# Any operation that affects conditional role bindings must specify version # applies to the following operations: * Getting a policy that includes a
# `3`. This requirement applies to the following operations: # conditional role binding * Adding a conditional role binding to a policy *
# * Getting a policy that includes a conditional role binding # Changing a conditional role binding in a policy * Removing any role binding,
# * Adding a conditional role binding to a policy # with or without a condition, from a policy that includes conditions **
# * Changing a conditional role binding in a policy # Important:** If you use IAM Conditions, you must include the `etag` field
# * Removing any role binding, with or without a condition, from a policy # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
# that includes conditions # to overwrite a version `3` policy with a version `1` policy, and all of the
# **Important:** If you use IAM Conditions, you must include the `etag` field # conditions in the version `3` policy are lost. If a policy does not include
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # any conditions, operations on that policy may specify any valid version or
# you to overwrite a version `3` policy with a version `1` policy, and all of # leave the field unset. To learn which resources support conditions in their
# the conditions in the version `3` policy are lost. # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
# If a policy does not include any conditions, operations on that policy may # conditions/resource-policies).
# 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` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -673,8 +565,7 @@ module Google
class Replica class Replica
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The canonical IDs of the location to replicate data. # The canonical IDs of the location to replicate data. For example: `"us-east1"`.
# For example: `"us-east1"`.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
@ -699,8 +590,8 @@ module Google
# @return [Google::Apis::SecretmanagerV1::Automatic] # @return [Google::Apis::SecretmanagerV1::Automatic]
attr_accessor :automatic attr_accessor :automatic
# A replication policy that replicates the Secret payload into the # A replication policy that replicates the Secret payload into the locations
# locations specified in Secret.replication.user_managed.replicas # specified in Secret.replication.user_managed.replicas
# Corresponds to the JSON property `userManaged` # Corresponds to the JSON property `userManaged`
# @return [Google::Apis::SecretmanagerV1::UserManaged] # @return [Google::Apis::SecretmanagerV1::UserManaged]
attr_accessor :user_managed attr_accessor :user_managed
@ -716,10 +607,9 @@ module Google
end end
end end
# A Secret is a logical secret whose value and versions can # A Secret is a logical secret whose value and versions can be accessed. A
# be accessed. # Secret is made up of zero or more SecretVersions that represent the secret
# A Secret is made up of zero or more SecretVersions that # data.
# represent the secret data.
class Secret class Secret
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -728,14 +618,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# The labels assigned to this Secret. # The labels assigned to this Secret. Label keys must be between 1 and 63
# Label keys must be between 1 and 63 characters long, have a UTF-8 encoding # characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform
# of maximum 128 bytes, and must conform to the following PCRE regular # to the following PCRE regular expression: `\p`Ll`\p`Lo``0,62`` Label values
# expression: `\p`Ll`\p`Lo``0,62`` # must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128
# Label values must be between 0 and 63 characters long, have a UTF-8 # bytes, and must conform to the following PCRE regular expression: `[\p`Ll`\p`
# encoding of maximum 128 bytes, and must conform to the following PCRE # Lo`\p`N`_-]`0,63`` No more than 64 labels can be assigned to a given resource.
# regular expression: `[\p`Ll`\p`Lo`\p`N`_-]`0,63``
# No more than 64 labels can be assigned to a given resource.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -794,17 +682,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# Output only. The time this SecretVersion was destroyed. # Output only. The time this SecretVersion was destroyed. Only present if state
# Only present if state is # is DESTROYED.
# DESTROYED.
# Corresponds to the JSON property `destroyTime` # Corresponds to the JSON property `destroyTime`
# @return [String] # @return [String]
attr_accessor :destroy_time attr_accessor :destroy_time
# Output only. The resource name of the SecretVersion in the # Output only. The resource name of the SecretVersion in the format `projects/*/
# format `projects/*/secrets/*/versions/*`. # secrets/*/versions/*`. SecretVersion IDs in a Secret start at 1 and are
# SecretVersion IDs in a Secret start at 1 and # incremented for each subsequent version of the secret.
# are incremented for each subsequent version of the secret.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -832,74 +718,39 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # 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/).
# "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` # Corresponds to the JSON property `policy`
# @return [Google::Apis::SecretmanagerV1::Policy] # @return [Google::Apis::SecretmanagerV1::Policy]
attr_accessor :policy attr_accessor :policy
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only # 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 # the fields in the mask will be modified. If no mask is provided, the following
# following default mask is used: # default mask is used: `paths: "bindings, etag"`
# `paths: "bindings, etag"`
# Corresponds to the JSON property `updateMask` # Corresponds to the JSON property `updateMask`
# @return [String] # @return [String]
attr_accessor :update_mask attr_accessor :update_mask
@ -919,10 +770,9 @@ module Google
class TestIamPermissionsRequest class TestIamPermissionsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with # The set of permissions to check for the `resource`. Permissions with wildcards
# wildcards (such as '*' or 'storage.*') are not allowed. For more # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
# information see # Overview](https://cloud.google.com/iam/docs/overview#permissions).
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -941,8 +791,7 @@ module Google
class TestIamPermissionsResponse class TestIamPermissionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
# allowed.
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -957,13 +806,12 @@ module Google
end end
end end
# A replication policy that replicates the Secret payload into the # A replication policy that replicates the Secret payload into the locations
# locations specified in Secret.replication.user_managed.replicas # specified in Secret.replication.user_managed.replicas
class UserManaged class UserManaged
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The list of Replicas for this Secret. # Required. The list of Replicas for this Secret. Cannot be empty.
# Cannot be empty.
# Corresponds to the JSON property `replicas` # Corresponds to the JSON property `replicas`
# @return [Array<Google::Apis::SecretmanagerV1::Replica>] # @return [Array<Google::Apis::SecretmanagerV1::Replica>]
attr_accessor :replicas attr_accessor :replicas

View File

@ -117,11 +117,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new SecretVersion containing secret data and attaches # Creates a new SecretVersion containing secret data and attaches it to an
# it to an existing Secret. # existing Secret.
# @param [String] parent # @param [String] parent
# Required. The resource name of the Secret to associate with the # Required. The resource name of the Secret to associate with the SecretVersion
# SecretVersion in the format `projects/*/secrets/*`. # in the format `projects/*/secrets/*`.
# @param [Google::Apis::SecretmanagerV1::AddSecretVersionRequest] add_secret_version_request_object # @param [Google::Apis::SecretmanagerV1::AddSecretVersionRequest] add_secret_version_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -154,14 +154,13 @@ module Google
# Creates a new Secret containing no SecretVersions. # Creates a new Secret containing no SecretVersions.
# @param [String] parent # @param [String] parent
# Required. The resource name of the project to associate with the # Required. The resource name of the project to associate with the Secret, in
# Secret, in the format `projects/*`. # the format `projects/*`.
# @param [Google::Apis::SecretmanagerV1::Secret] secret_object # @param [Google::Apis::SecretmanagerV1::Secret] secret_object
# @param [String] secret_id # @param [String] secret_id
# Required. This must be unique within the project. # Required. This must be unique within the project. A secret ID is a string with
# A secret ID is a string with a maximum length of 255 characters and can # a maximum length of 255 characters and can contain uppercase and lowercase
# contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and # letters, numerals, and the hyphen (`-`) and underscore (`_`) characters.
# underscore (`_`) characters.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -194,8 +193,8 @@ module Google
# Deletes a Secret. # Deletes a Secret.
# @param [String] name # @param [String] name
# Required. The resource name of the Secret to delete in the format # Required. The resource name of the Secret to delete in the format `projects/*/
# `projects/*/secrets/*`. # secrets/*`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -254,21 +253,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a secret. # Gets the access control policy for a secret. Returns empty policy if the
# Returns empty policy if the secret exists and does not have a policy set. # secret exists and does not have a policy set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -299,15 +296,15 @@ module Google
# Lists Secrets. # Lists Secrets.
# @param [String] parent # @param [String] parent
# Required. The resource name of the project associated with the # Required. The resource name of the project associated with the Secrets, in the
# Secrets, in the format `projects/*`. # format `projects/*`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to be returned in a single page. If # Optional. The maximum number of results to be returned in a single page. If
# set to 0, the server decides the number of results to return. If the # set to 0, the server decides the number of results to return. If the number is
# number is greater than 25000, it is capped at 25000. # greater than 25000, it is capped at 25000.
# @param [String] page_token # @param [String] page_token
# Optional. Pagination token, returned earlier via # Optional. Pagination token, returned earlier via ListSecretsResponse.
# ListSecretsResponse.next_page_token. # next_page_token.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -374,13 +371,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the access control policy on the specified secret. Replaces any # Sets the access control policy on the specified secret. Replaces any existing
# existing policy. # policy. Permissions on SecretVersions are enforced according to the policy set
# Permissions on SecretVersions are enforced according # on the associated Secret.
# to the policy set on the associated Secret.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::SecretmanagerV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::SecretmanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -411,15 +407,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has for the specified secret. # Returns permissions that a caller has for the specified secret. If the secret
# If the secret does not exist, this call returns an empty set of # does not exist, this call returns an empty set of permissions, not a NOT_FOUND
# permissions, not a NOT_FOUND error. # error. Note: This operation is designed to be used for building permission-
# Note: This operation is designed to be used for building permission-aware # aware UIs and command-line tools, not for authorization checking. This
# UIs and command-line tools, not for authorization checking. This operation # operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::SecretmanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::SecretmanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -450,12 +445,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Accesses a SecretVersion. This call returns the secret data. # Accesses a SecretVersion. This call returns the secret data. `projects/*/
# `projects/*/secrets/*/versions/latest` is an alias to the `latest` # secrets/*/versions/latest` is an alias to the `latest` SecretVersion.
# SecretVersion.
# @param [String] name # @param [String] name
# Required. The resource name of the SecretVersion in the format # Required. The resource name of the SecretVersion in the format `projects/*/
# `projects/*/secrets/*/versions/*`. # secrets/*/versions/*`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -483,13 +477,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Destroys a SecretVersion. # Destroys a SecretVersion. Sets the state of the SecretVersion to DESTROYED and
# Sets the state of the SecretVersion to # irrevocably destroys the secret data.
# DESTROYED and irrevocably destroys the
# secret data.
# @param [String] name # @param [String] name
# Required. The resource name of the SecretVersion to destroy in the format # Required. The resource name of the SecretVersion to destroy in the format `
# `projects/*/secrets/*/versions/*`. # projects/*/secrets/*/versions/*`.
# @param [Google::Apis::SecretmanagerV1::DestroySecretVersionRequest] destroy_secret_version_request_object # @param [Google::Apis::SecretmanagerV1::DestroySecretVersionRequest] destroy_secret_version_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -520,12 +512,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Disables a SecretVersion. # Disables a SecretVersion. Sets the state of the SecretVersion to DISABLED.
# Sets the state of the SecretVersion to
# DISABLED.
# @param [String] name # @param [String] name
# Required. The resource name of the SecretVersion to disable in the format # Required. The resource name of the SecretVersion to disable in the format `
# `projects/*/secrets/*/versions/*`. # projects/*/secrets/*/versions/*`.
# @param [Google::Apis::SecretmanagerV1::DisableSecretVersionRequest] disable_secret_version_request_object # @param [Google::Apis::SecretmanagerV1::DisableSecretVersionRequest] disable_secret_version_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -556,12 +546,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Enables a SecretVersion. # Enables a SecretVersion. Sets the state of the SecretVersion to ENABLED.
# Sets the state of the SecretVersion to
# ENABLED.
# @param [String] name # @param [String] name
# Required. The resource name of the SecretVersion to enable in the format # Required. The resource name of the SecretVersion to enable in the format `
# `projects/*/secrets/*/versions/*`. # projects/*/secrets/*/versions/*`.
# @param [Google::Apis::SecretmanagerV1::EnableSecretVersionRequest] enable_secret_version_request_object # @param [Google::Apis::SecretmanagerV1::EnableSecretVersionRequest] enable_secret_version_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -592,14 +580,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets metadata for a SecretVersion. # Gets metadata for a SecretVersion. `projects/*/secrets/*/versions/latest` is
# `projects/*/secrets/*/versions/latest` is an alias to the `latest` # an alias to the `latest` SecretVersion.
# SecretVersion.
# @param [String] name # @param [String] name
# Required. The resource name of the SecretVersion in the format # Required. The resource name of the SecretVersion in the format `projects/*/
# `projects/*/secrets/*/versions/*`. # secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to
# `projects/*/secrets/*/versions/latest` is an alias to the `latest` # the `latest` SecretVersion.
# SecretVersion.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -627,19 +613,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists SecretVersions. This call does not return secret # Lists SecretVersions. This call does not return secret data.
# data.
# @param [String] parent # @param [String] parent
# Required. The resource name of the Secret associated with the # Required. The resource name of the Secret associated with the SecretVersions
# SecretVersions to list, in the format # to list, in the format `projects/*/secrets/*`.
# `projects/*/secrets/*`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to be returned in a single page. If # Optional. The maximum number of results to be returned in a single page. If
# set to 0, the server decides the number of results to return. If the # set to 0, the server decides the number of results to return. If the number is
# number is greater than 25000, it is capped at 25000. # greater than 25000, it is capped at 25000.
# @param [String] page_token # @param [String] page_token
# Optional. Pagination token, returned earlier via # Optional. Pagination token, returned earlier via ListSecretVersionsResponse.
# ListSecretVersionsResponse.next_page_token][]. # next_page_token][].
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/secret-manager/ # @see https://cloud.google.com/secret-manager/
module SecretmanagerV1beta1 module SecretmanagerV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200619' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,8 +26,8 @@ module Google
class AccessSecretVersionResponse class AccessSecretVersionResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The resource name of the SecretVersion in the format # The resource name of the SecretVersion in the format `projects/*/secrets/*/
# `projects/*/secrets/*/versions/*`. # versions/*`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -69,53 +69,21 @@ module Google
end end
end end
# Specifies the audit configuration for a service. # Specifies the audit configuration for a service. The configuration determines
# The configuration determines which permission types are logged, and what # which permission types are logged, and what identities, if any, are exempted
# identities, if any, are exempted from logging. # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
# An AuditConfig must have one or more AuditLogConfigs. # are AuditConfigs for both `allServices` and a specific service, the union of
# If there are AuditConfigs for both `allServices` and a specific service, # the two AuditConfigs is used for that service: the log_types specified in each
# the union of the two AuditConfigs is used for that service: the log_types # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
# specified in each AuditConfig are enabled, and the exempted_members in each # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
# AuditLogConfig are exempted. # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
# Example Policy with multiple AuditConfigs: # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
# ` # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
# "audit_configs": [ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
# ` # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
# "service": "allServices", # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
# "audit_log_configs": [ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
# ` # DATA_WRITE logging.
# "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 class AuditConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -124,9 +92,9 @@ module Google
# @return [Array<Google::Apis::SecretmanagerV1beta1::AuditLogConfig>] # @return [Array<Google::Apis::SecretmanagerV1beta1::AuditLogConfig>]
attr_accessor :audit_log_configs attr_accessor :audit_log_configs
# Specifies a service that will be enabled for audit logging. # Specifies a service that will be enabled for audit logging. For example, `
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
# `allServices` is a special value that covers all services. # value that covers all services.
# Corresponds to the JSON property `service` # Corresponds to the JSON property `service`
# @return [String] # @return [String]
attr_accessor :service attr_accessor :service
@ -142,28 +110,15 @@ module Google
end end
end end
# Provides the configuration for logging a type of permissions. # Provides the configuration for logging a type of permissions. Example: ` "
# Example: # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
# ` # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
# "audit_log_configs": [ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
# ` # DATA_READ logging.
# "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 class AuditLogConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of # Specifies the identities that do not cause logging for this type of permission.
# permission.
# Follows the same format of Binding.members. # Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers` # Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>] # @return [Array<String>]
@ -203,69 +158,57 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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` # Corresponds to the JSON property `condition`
# @return [Google::Apis::SecretmanagerV1beta1::Expr] # @return [Google::Apis::SecretmanagerV1beta1::Expr]
attr_accessor :condition attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource. `
# `members` can have the following values: # members` can have the following values: * `allUsers`: A special identifier
# * `allUsers`: A special identifier that represents anyone who is # that represents anyone who is on the internet; with or without a Google
# on the internet; with or without a Google account. # account. * `allAuthenticatedUsers`: A special identifier that represents
# * `allAuthenticatedUsers`: A special identifier that represents anyone # anyone who is authenticated with a Google account or a service account. * `
# who is authenticated with a Google account or a service account. # user:`emailid``: An email address that represents a specific Google account.
# * `user:`emailid``: An email address that represents a specific Google # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
# account. For example, `alice@example.com` . # address that represents a service account. For example, `my-other-app@appspot.
# * `serviceAccount:`emailid``: An email address that represents a service # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
# account. For example, `my-other-app@appspot.gserviceaccount.com`. # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
# * `group:`emailid``: An email address that represents a Google group. # `uniqueid``: An email address (plus unique identifier) representing a user
# For example, `admins@example.com`. # that has been recently deleted. For example, `alice@example.com?uid=
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
# identifier) representing a user that has been recently deleted. For # emailid`` and the recovered user retains the role in the binding. * `deleted:
# example, `alice@example.com?uid=123456789012345678901`. If the user is # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
# recovered, this value reverts to `user:`emailid`` and the recovered user # identifier) representing a service account that has been recently deleted. For
# retains the role in the binding. # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus # If the service account is undeleted, this value reverts to `serviceAccount:`
# unique identifier) representing a service account that has been recently # emailid`` and the undeleted service account retains the role in the binding. *
# deleted. For example, # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. # identifier) representing a Google group that has been recently deleted. For
# If the service account is undeleted, this value reverts to # example, `admins@example.com?uid=123456789012345678901`. If the group is
# `serviceAccount:`emailid`` and the undeleted service account retains the # recovered, this value reverts to `group:`emailid`` and the recovered group
# role in the binding. # retains the role in the binding. * `domain:`domain``: The G Suite domain (
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique # primary) that represents all the users of that domain. For example, `google.
# identifier) representing a Google group that has been recently # com` or `example.com`.
# 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` # Corresponds to the JSON property `members`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :members attr_accessor :members
# Role that is assigned to `members`. # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`. # , or `roles/owner`.
# Corresponds to the JSON property `role` # Corresponds to the JSON property `role`
# @return [String] # @return [String]
attr_accessor :role attr_accessor :role
@ -308,13 +251,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -340,52 +281,43 @@ module Google
end end
end end
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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 class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which describes
# describes the expression, e.g. when hovered over it in a UI. # the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in Common Expression Language # Textual representation of an expression in Common Expression Language syntax.
# syntax.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# Optional. String indicating the location of the expression for error # Optional. String indicating the location of the expression for error reporting,
# reporting, e.g. a file name and a position in the file. # e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. Title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing its purpose.
# its purpose. This can be used e.g. in UIs which allow to enter the # This can be used e.g. in UIs which allow to enter the expression.
# expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
@ -443,8 +375,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :total_size attr_accessor :total_size
# The list of SecretVersions sorted in reverse by # The list of SecretVersions sorted in reverse by create_time (newest first).
# create_time (newest first).
# Corresponds to the JSON property `versions` # Corresponds to the JSON property `versions`
# @return [Array<Google::Apis::SecretmanagerV1beta1::SecretVersion>] # @return [Array<Google::Apis::SecretmanagerV1beta1::SecretVersion>]
attr_accessor :versions attr_accessor :versions
@ -471,8 +402,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# The list of Secrets sorted in reverse by create_time (newest # The list of Secrets sorted in reverse by create_time (newest first).
# first).
# Corresponds to the JSON property `secrets` # Corresponds to the JSON property `secrets`
# @return [Array<Google::Apis::SecretmanagerV1beta1::Secret>] # @return [Array<Google::Apis::SecretmanagerV1beta1::Secret>]
attr_accessor :secrets attr_accessor :secrets
@ -498,14 +428,14 @@ module Google
class Location class Location
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name. # The friendly name for this location, typically a nearby city name. For example,
# For example, "Tokyo". # "Tokyo".
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Cross-service attributes for the location. For example # Cross-service attributes for the location. For example `"cloud.googleapis.com/
# `"cloud.googleapis.com/region": "us-east1"` # region": "us-east1"`
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -521,8 +451,8 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# Resource name for the location, which may vary between implementations. # Resource name for the location, which may vary between implementations. For
# For example: `"projects/example-project/locations/us-east1"` # example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -542,66 +472,32 @@ module Google
end end
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # 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/).
# "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 class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -610,48 +506,44 @@ module Google
# @return [Array<Google::Apis::SecretmanagerV1beta1::AuditConfig>] # @return [Array<Google::Apis::SecretmanagerV1beta1::AuditConfig>]
attr_accessor :audit_configs attr_accessor :audit_configs
# Associates a list of `members` to a `role`. Optionally, may specify a # Associates a list of `members` to a `role`. Optionally, may specify a `
# `condition` that determines how and when the `bindings` are applied. Each # condition` that determines how and when the `bindings` are applied. Each of
# of the `bindings` must contain at least one member. # the `bindings` must contain at least one member.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::SecretmanagerV1beta1::Binding>] # @return [Array<Google::Apis::SecretmanagerV1beta1::Binding>]
attr_accessor :bindings attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help # `etag` is used for optimistic concurrency control as a way to help prevent
# prevent simultaneous updates of a policy from overwriting each other. # simultaneous updates of a policy from overwriting each other. It is strongly
# It is strongly suggested that systems make use of the `etag` in the # suggested that systems make use of the `etag` in the read-modify-write cycle
# read-modify-write cycle to perform policy updates in order to avoid race # to perform policy updates in order to avoid race conditions: An `etag` is
# conditions: An `etag` is returned in the response to `getIamPolicy`, and # returned in the response to `getIamPolicy`, and systems are expected to put
# systems are expected to put that etag in the request to `setIamPolicy` to # that etag in the request to `setIamPolicy` to ensure that their change will be
# ensure that their change will be applied to the same version of the policy. # applied to the same version of the policy. **Important:** If you use IAM
# **Important:** If you use IAM Conditions, you must include the `etag` field # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # If you omit this field, then IAM allows you to overwrite a version `3` policy
# you to overwrite a version `3` policy with a version `1` policy, and all of # with a version `1` policy, and all of the conditions in the version `3` policy
# the conditions in the version `3` policy are lost. # are lost.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Specifies the format of the policy. # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value # Requests that specify an invalid value are rejected. Any operation that
# are rejected. # affects conditional role bindings must specify version `3`. This requirement
# Any operation that affects conditional role bindings must specify version # applies to the following operations: * Getting a policy that includes a
# `3`. This requirement applies to the following operations: # conditional role binding * Adding a conditional role binding to a policy *
# * Getting a policy that includes a conditional role binding # Changing a conditional role binding in a policy * Removing any role binding,
# * Adding a conditional role binding to a policy # with or without a condition, from a policy that includes conditions **
# * Changing a conditional role binding in a policy # Important:** If you use IAM Conditions, you must include the `etag` field
# * Removing any role binding, with or without a condition, from a policy # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
# that includes conditions # to overwrite a version `3` policy with a version `1` policy, and all of the
# **Important:** If you use IAM Conditions, you must include the `etag` field # conditions in the version `3` policy are lost. If a policy does not include
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # any conditions, operations on that policy may specify any valid version or
# you to overwrite a version `3` policy with a version `1` policy, and all of # leave the field unset. To learn which resources support conditions in their
# the conditions in the version `3` policy are lost. # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
# If a policy does not include any conditions, operations on that policy may # conditions/resource-policies).
# 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` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -673,8 +565,7 @@ module Google
class Replica class Replica
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The canonical IDs of the location to replicate data. # The canonical IDs of the location to replicate data. For example: `"us-east1"`.
# For example: `"us-east1"`.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
@ -699,8 +590,8 @@ module Google
# @return [Google::Apis::SecretmanagerV1beta1::Automatic] # @return [Google::Apis::SecretmanagerV1beta1::Automatic]
attr_accessor :automatic attr_accessor :automatic
# A replication policy that replicates the Secret payload into the # A replication policy that replicates the Secret payload into the locations
# locations specified in Secret.replication.user_managed.replicas # specified in Secret.replication.user_managed.replicas
# Corresponds to the JSON property `userManaged` # Corresponds to the JSON property `userManaged`
# @return [Google::Apis::SecretmanagerV1beta1::UserManaged] # @return [Google::Apis::SecretmanagerV1beta1::UserManaged]
attr_accessor :user_managed attr_accessor :user_managed
@ -716,10 +607,9 @@ module Google
end end
end end
# A Secret is a logical secret whose value and versions can # A Secret is a logical secret whose value and versions can be accessed. A
# be accessed. # Secret is made up of zero or more SecretVersions that represent the secret
# A Secret is made up of zero or more SecretVersions that # data.
# represent the secret data.
class Secret class Secret
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -728,14 +618,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# The labels assigned to this Secret. # The labels assigned to this Secret. Label keys must be between 1 and 63
# Label keys must be between 1 and 63 characters long, have a UTF-8 encoding # characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform
# of maximum 128 bytes, and must conform to the following PCRE regular # to the following PCRE regular expression: `\p`Ll`\p`Lo``0,62`` Label values
# expression: `\p`Ll`\p`Lo``0,62`` # must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128
# Label values must be between 0 and 63 characters long, have a UTF-8 # bytes, and must conform to the following PCRE regular expression: `[\p`Ll`\p`
# encoding of maximum 128 bytes, and must conform to the following PCRE # Lo`\p`N`_-]`0,63`` No more than 64 labels can be assigned to a given resource.
# regular expression: `[\p`Ll`\p`Lo`\p`N`_-]`0,63``
# No more than 64 labels can be assigned to a given resource.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -794,17 +682,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# Output only. The time this SecretVersion was destroyed. # Output only. The time this SecretVersion was destroyed. Only present if state
# Only present if state is # is DESTROYED.
# DESTROYED.
# Corresponds to the JSON property `destroyTime` # Corresponds to the JSON property `destroyTime`
# @return [String] # @return [String]
attr_accessor :destroy_time attr_accessor :destroy_time
# Output only. The resource name of the SecretVersion in the # Output only. The resource name of the SecretVersion in the format `projects/*/
# format `projects/*/secrets/*/versions/*`. # secrets/*/versions/*`. SecretVersion IDs in a Secret start at 1 and are
# SecretVersion IDs in a Secret start at 1 and # incremented for each subsequent version of the secret.
# are incremented for each subsequent version of the secret.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -832,74 +718,39 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # 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/).
# "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` # Corresponds to the JSON property `policy`
# @return [Google::Apis::SecretmanagerV1beta1::Policy] # @return [Google::Apis::SecretmanagerV1beta1::Policy]
attr_accessor :policy attr_accessor :policy
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only # 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 # the fields in the mask will be modified. If no mask is provided, the following
# following default mask is used: # default mask is used: `paths: "bindings, etag"`
# `paths: "bindings, etag"`
# Corresponds to the JSON property `updateMask` # Corresponds to the JSON property `updateMask`
# @return [String] # @return [String]
attr_accessor :update_mask attr_accessor :update_mask
@ -919,10 +770,9 @@ module Google
class TestIamPermissionsRequest class TestIamPermissionsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with # The set of permissions to check for the `resource`. Permissions with wildcards
# wildcards (such as '*' or 'storage.*') are not allowed. For more # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
# information see # Overview](https://cloud.google.com/iam/docs/overview#permissions).
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -941,8 +791,7 @@ module Google
class TestIamPermissionsResponse class TestIamPermissionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
# allowed.
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -957,13 +806,12 @@ module Google
end end
end end
# A replication policy that replicates the Secret payload into the # A replication policy that replicates the Secret payload into the locations
# locations specified in Secret.replication.user_managed.replicas # specified in Secret.replication.user_managed.replicas
class UserManaged class UserManaged
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The list of Replicas for this Secret. # Required. The list of Replicas for this Secret. Cannot be empty.
# Cannot be empty.
# Corresponds to the JSON property `replicas` # Corresponds to the JSON property `replicas`
# @return [Array<Google::Apis::SecretmanagerV1beta1::Replica>] # @return [Array<Google::Apis::SecretmanagerV1beta1::Replica>]
attr_accessor :replicas attr_accessor :replicas

View File

@ -117,11 +117,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new SecretVersion containing secret data and attaches # Creates a new SecretVersion containing secret data and attaches it to an
# it to an existing Secret. # existing Secret.
# @param [String] parent # @param [String] parent
# Required. The resource name of the Secret to associate with the # Required. The resource name of the Secret to associate with the SecretVersion
# SecretVersion in the format `projects/*/secrets/*`. # in the format `projects/*/secrets/*`.
# @param [Google::Apis::SecretmanagerV1beta1::AddSecretVersionRequest] add_secret_version_request_object # @param [Google::Apis::SecretmanagerV1beta1::AddSecretVersionRequest] add_secret_version_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -154,14 +154,13 @@ module Google
# Creates a new Secret containing no SecretVersions. # Creates a new Secret containing no SecretVersions.
# @param [String] parent # @param [String] parent
# Required. The resource name of the project to associate with the # Required. The resource name of the project to associate with the Secret, in
# Secret, in the format `projects/*`. # the format `projects/*`.
# @param [Google::Apis::SecretmanagerV1beta1::Secret] secret_object # @param [Google::Apis::SecretmanagerV1beta1::Secret] secret_object
# @param [String] secret_id # @param [String] secret_id
# Required. This must be unique within the project. # Required. This must be unique within the project. A secret ID is a string with
# A secret ID is a string with a maximum length of 255 characters and can # a maximum length of 255 characters and can contain uppercase and lowercase
# contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and # letters, numerals, and the hyphen (`-`) and underscore (`_`) characters.
# underscore (`_`) characters.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -194,8 +193,8 @@ module Google
# Deletes a Secret. # Deletes a Secret.
# @param [String] name # @param [String] name
# Required. The resource name of the Secret to delete in the format # Required. The resource name of the Secret to delete in the format `projects/*/
# `projects/*/secrets/*`. # secrets/*`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -254,21 +253,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a secret. # Gets the access control policy for a secret. Returns empty policy if the
# Returns empty policy if the secret exists and does not have a policy set. # secret exists and does not have a policy set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -299,15 +296,15 @@ module Google
# Lists Secrets. # Lists Secrets.
# @param [String] parent # @param [String] parent
# Required. The resource name of the project associated with the # Required. The resource name of the project associated with the Secrets, in the
# Secrets, in the format `projects/*`. # format `projects/*`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to be returned in a single page. If # Optional. The maximum number of results to be returned in a single page. If
# set to 0, the server decides the number of results to return. If the # set to 0, the server decides the number of results to return. If the number is
# number is greater than 25000, it is capped at 25000. # greater than 25000, it is capped at 25000.
# @param [String] page_token # @param [String] page_token
# Optional. Pagination token, returned earlier via # Optional. Pagination token, returned earlier via ListSecretsResponse.
# ListSecretsResponse.next_page_token. # next_page_token.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -374,13 +371,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the access control policy on the specified secret. Replaces any # Sets the access control policy on the specified secret. Replaces any existing
# existing policy. # policy. Permissions on SecretVersions are enforced according to the policy set
# Permissions on SecretVersions are enforced according # on the associated Secret.
# to the policy set on the associated Secret.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::SecretmanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::SecretmanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -411,15 +407,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has for the specified secret. # Returns permissions that a caller has for the specified secret. If the secret
# If the secret does not exist, this call returns an empty set of # does not exist, this call returns an empty set of permissions, not a NOT_FOUND
# permissions, not a NOT_FOUND error. # error. Note: This operation is designed to be used for building permission-
# Note: This operation is designed to be used for building permission-aware # aware UIs and command-line tools, not for authorization checking. This
# UIs and command-line tools, not for authorization checking. This operation # operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::SecretmanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::SecretmanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -450,12 +445,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Accesses a SecretVersion. This call returns the secret data. # Accesses a SecretVersion. This call returns the secret data. `projects/*/
# `projects/*/secrets/*/versions/latest` is an alias to the `latest` # secrets/*/versions/latest` is an alias to the `latest` SecretVersion.
# SecretVersion.
# @param [String] name # @param [String] name
# Required. The resource name of the SecretVersion in the format # Required. The resource name of the SecretVersion in the format `projects/*/
# `projects/*/secrets/*/versions/*`. # secrets/*/versions/*`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -483,13 +477,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Destroys a SecretVersion. # Destroys a SecretVersion. Sets the state of the SecretVersion to DESTROYED and
# Sets the state of the SecretVersion to # irrevocably destroys the secret data.
# DESTROYED and irrevocably destroys the
# secret data.
# @param [String] name # @param [String] name
# Required. The resource name of the SecretVersion to destroy in the format # Required. The resource name of the SecretVersion to destroy in the format `
# `projects/*/secrets/*/versions/*`. # projects/*/secrets/*/versions/*`.
# @param [Google::Apis::SecretmanagerV1beta1::DestroySecretVersionRequest] destroy_secret_version_request_object # @param [Google::Apis::SecretmanagerV1beta1::DestroySecretVersionRequest] destroy_secret_version_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -520,12 +512,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Disables a SecretVersion. # Disables a SecretVersion. Sets the state of the SecretVersion to DISABLED.
# Sets the state of the SecretVersion to
# DISABLED.
# @param [String] name # @param [String] name
# Required. The resource name of the SecretVersion to disable in the format # Required. The resource name of the SecretVersion to disable in the format `
# `projects/*/secrets/*/versions/*`. # projects/*/secrets/*/versions/*`.
# @param [Google::Apis::SecretmanagerV1beta1::DisableSecretVersionRequest] disable_secret_version_request_object # @param [Google::Apis::SecretmanagerV1beta1::DisableSecretVersionRequest] disable_secret_version_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -556,12 +546,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Enables a SecretVersion. # Enables a SecretVersion. Sets the state of the SecretVersion to ENABLED.
# Sets the state of the SecretVersion to
# ENABLED.
# @param [String] name # @param [String] name
# Required. The resource name of the SecretVersion to enable in the format # Required. The resource name of the SecretVersion to enable in the format `
# `projects/*/secrets/*/versions/*`. # projects/*/secrets/*/versions/*`.
# @param [Google::Apis::SecretmanagerV1beta1::EnableSecretVersionRequest] enable_secret_version_request_object # @param [Google::Apis::SecretmanagerV1beta1::EnableSecretVersionRequest] enable_secret_version_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -592,14 +580,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets metadata for a SecretVersion. # Gets metadata for a SecretVersion. `projects/*/secrets/*/versions/latest` is
# `projects/*/secrets/*/versions/latest` is an alias to the `latest` # an alias to the `latest` SecretVersion.
# SecretVersion.
# @param [String] name # @param [String] name
# Required. The resource name of the SecretVersion in the format # Required. The resource name of the SecretVersion in the format `projects/*/
# `projects/*/secrets/*/versions/*`. # secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to
# `projects/*/secrets/*/versions/latest` is an alias to the `latest` # the `latest` SecretVersion.
# SecretVersion.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -627,19 +613,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists SecretVersions. This call does not return secret # Lists SecretVersions. This call does not return secret data.
# data.
# @param [String] parent # @param [String] parent
# Required. The resource name of the Secret associated with the # Required. The resource name of the Secret associated with the SecretVersions
# SecretVersions to list, in the format # to list, in the format `projects/*/secrets/*`.
# `projects/*/secrets/*`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to be returned in a single page. If # Optional. The maximum number of results to be returned in a single page. If
# set to 0, the server decides the number of results to return. If the # set to 0, the server decides the number of results to return. If the number is
# number is greater than 25000, it is capped at 25000. # greater than 25000, it is capped at 25000.
# @param [String] page_token # @param [String] page_token
# Optional. Pagination token, returned earlier via # Optional. Pagination token, returned earlier via ListSecretVersionsResponse.
# ListSecretVersionsResponse.next_page_token][]. # next_page_token][].
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-directory # @see https://cloud.google.com/service-directory
module ServicedirectoryV1beta1 module ServicedirectoryV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200429' REVISION = '20200803'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,69 +26,57 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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` # Corresponds to the JSON property `condition`
# @return [Google::Apis::ServicedirectoryV1beta1::Expr] # @return [Google::Apis::ServicedirectoryV1beta1::Expr]
attr_accessor :condition attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource. `
# `members` can have the following values: # members` can have the following values: * `allUsers`: A special identifier
# * `allUsers`: A special identifier that represents anyone who is # that represents anyone who is on the internet; with or without a Google
# on the internet; with or without a Google account. # account. * `allAuthenticatedUsers`: A special identifier that represents
# * `allAuthenticatedUsers`: A special identifier that represents anyone # anyone who is authenticated with a Google account or a service account. * `
# who is authenticated with a Google account or a service account. # user:`emailid``: An email address that represents a specific Google account.
# * `user:`emailid``: An email address that represents a specific Google # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
# account. For example, `alice@example.com` . # address that represents a service account. For example, `my-other-app@appspot.
# * `serviceAccount:`emailid``: An email address that represents a service # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
# account. For example, `my-other-app@appspot.gserviceaccount.com`. # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
# * `group:`emailid``: An email address that represents a Google group. # `uniqueid``: An email address (plus unique identifier) representing a user
# For example, `admins@example.com`. # that has been recently deleted. For example, `alice@example.com?uid=
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
# identifier) representing a user that has been recently deleted. For # emailid`` and the recovered user retains the role in the binding. * `deleted:
# example, `alice@example.com?uid=123456789012345678901`. If the user is # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
# recovered, this value reverts to `user:`emailid`` and the recovered user # identifier) representing a service account that has been recently deleted. For
# retains the role in the binding. # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus # If the service account is undeleted, this value reverts to `serviceAccount:`
# unique identifier) representing a service account that has been recently # emailid`` and the undeleted service account retains the role in the binding. *
# deleted. For example, # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. # identifier) representing a Google group that has been recently deleted. For
# If the service account is undeleted, this value reverts to # example, `admins@example.com?uid=123456789012345678901`. If the group is
# `serviceAccount:`emailid`` and the undeleted service account retains the # recovered, this value reverts to `group:`emailid`` and the recovered group
# role in the binding. # retains the role in the binding. * `domain:`domain``: The G Suite domain (
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique # primary) that represents all the users of that domain. For example, `google.
# identifier) representing a Google group that has been recently # com` or `example.com`.
# 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` # Corresponds to the JSON property `members`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :members attr_accessor :members
# Role that is assigned to `members`. # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`. # , or `roles/owner`.
# Corresponds to the JSON property `role` # Corresponds to the JSON property `role`
# @return [String] # @return [String]
attr_accessor :role attr_accessor :role
@ -105,13 +93,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -124,34 +110,28 @@ module Google
end end
end end
# An individual endpoint that provides a # An individual endpoint that provides a service. The service must already exist
# service. The service must # to create an endpoint.
# already exist to create an endpoint.
class Endpoint class Endpoint
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. An IPv4 or IPv6 address. Service Directory will reject bad # Optional. An IPv4 or IPv6 address. Service Directory will reject bad addresses
# addresses like: # like: "8.8.8" "8.8.8.8:53" "test:bad:address" "[::1]" "[::1]:8080" Limited to
# "8.8.8" # 45 characters.
# "8.8.8.8:53"
# "test:bad:address"
# "[::1]"
# "[::1]:8080"
# Limited to 45 characters.
# Corresponds to the JSON property `address` # Corresponds to the JSON property `address`
# @return [String] # @return [String]
attr_accessor :address attr_accessor :address
# Optional. Metadata for the endpoint. This data can be consumed by service # Optional. Metadata for the endpoint. This data can be consumed by service
# clients. The entire metadata dictionary may contain up to 512 characters, # clients. The entire metadata dictionary may contain up to 512 characters,
# spread accoss all key-value pairs. Metadata that goes beyond any these # spread accoss all key-value pairs. Metadata that goes beyond any these limits
# limits will be rejected. # will be rejected.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :metadata attr_accessor :metadata
# Immutable. The resource name for the endpoint in the format # Immutable. The resource name for the endpoint in the format 'projects/*/
# 'projects/*/locations/*/namespaces/*/services/*/endpoints/*'. # locations/*/namespaces/*/services/*/endpoints/*'.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -174,52 +154,43 @@ module Google
end end
end end
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# 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 class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which describes
# describes the expression, e.g. when hovered over it in a UI. # the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in Common Expression Language # Textual representation of an expression in Common Expression Language syntax.
# syntax.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# Optional. String indicating the location of the expression for error # Optional. String indicating the location of the expression for error reporting,
# reporting, e.g. a file name and a position in the file. # e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. Title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing its purpose.
# its purpose. This can be used e.g. in UIs which allow to enter the # This can be used e.g. in UIs which allow to enter the expression.
# expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
@ -260,15 +231,13 @@ module Google
class GetPolicyOptions class GetPolicyOptions
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# Corresponds to the JSON property `requestedPolicyVersion` # Corresponds to the JSON property `requestedPolicyVersion`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :requested_policy_version attr_accessor :requested_policy_version
@ -292,8 +261,8 @@ module Google
# @return [Array<Google::Apis::ServicedirectoryV1beta1::Endpoint>] # @return [Array<Google::Apis::ServicedirectoryV1beta1::Endpoint>]
attr_accessor :endpoints attr_accessor :endpoints
# Token to retrieve the next page of results, or empty if there are no # Token to retrieve the next page of results, or empty if there are no more
# more results in the list. # results in the list.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -343,8 +312,8 @@ module Google
# @return [Array<Google::Apis::ServicedirectoryV1beta1::Namespace>] # @return [Array<Google::Apis::ServicedirectoryV1beta1::Namespace>]
attr_accessor :namespaces attr_accessor :namespaces
# Token to retrieve the next page of results, or empty if there are no # Token to retrieve the next page of results, or empty if there are no more
# more results in the list. # results in the list.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -364,8 +333,8 @@ module Google
class ListServicesResponse class ListServicesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Token to retrieve the next page of results, or empty if there are no # Token to retrieve the next page of results, or empty if there are no more
# more results in the list. # results in the list.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -390,14 +359,14 @@ module Google
class Location class Location
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name. # The friendly name for this location, typically a nearby city name. For example,
# For example, "Tokyo". # "Tokyo".
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Cross-service attributes for the location. For example # Cross-service attributes for the location. For example `"cloud.googleapis.com/
# `"cloud.googleapis.com/region": "us-east1"` # region": "us-east1"`
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -413,8 +382,8 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# Resource name for the location, which may vary between implementations. # Resource name for the location, which may vary between implementations. For
# For example: `"projects/example-project/locations/us-east1"` # example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -433,21 +402,20 @@ module Google
end end
end end
# A container for services. # A container for services. Namespaces allow administrators to group services
# Namespaces allow administrators to group services together and define # together and define permissions for a collection of services.
# permissions for a collection of services.
class Namespace class Namespace
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Resource labels associated with this Namespace. # Optional. Resource labels associated with this Namespace. No more than 64 user
# No more than 64 user labels can be associated with a given resource. Label # labels can be associated with a given resource. Label keys and values can be
# keys and values can be no longer than 63 characters. # no longer than 63 characters.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Immutable. The resource name for the namespace in the format # Immutable. The resource name for the namespace in the format 'projects/*/
# 'projects/*/locations/*/namespaces/*'. # locations/*/namespaces/*'.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -464,111 +432,73 @@ module Google
end end
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # 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/).
# "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 class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Associates a list of `members` to a `role`. Optionally, may specify a # Associates a list of `members` to a `role`. Optionally, may specify a `
# `condition` that determines how and when the `bindings` are applied. Each # condition` that determines how and when the `bindings` are applied. Each of
# of the `bindings` must contain at least one member. # the `bindings` must contain at least one member.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::ServicedirectoryV1beta1::Binding>] # @return [Array<Google::Apis::ServicedirectoryV1beta1::Binding>]
attr_accessor :bindings attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help # `etag` is used for optimistic concurrency control as a way to help prevent
# prevent simultaneous updates of a policy from overwriting each other. # simultaneous updates of a policy from overwriting each other. It is strongly
# It is strongly suggested that systems make use of the `etag` in the # suggested that systems make use of the `etag` in the read-modify-write cycle
# read-modify-write cycle to perform policy updates in order to avoid race # to perform policy updates in order to avoid race conditions: An `etag` is
# conditions: An `etag` is returned in the response to `getIamPolicy`, and # returned in the response to `getIamPolicy`, and systems are expected to put
# systems are expected to put that etag in the request to `setIamPolicy` to # that etag in the request to `setIamPolicy` to ensure that their change will be
# ensure that their change will be applied to the same version of the policy. # applied to the same version of the policy. **Important:** If you use IAM
# **Important:** If you use IAM Conditions, you must include the `etag` field # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # If you omit this field, then IAM allows you to overwrite a version `3` policy
# you to overwrite a version `3` policy with a version `1` policy, and all of # with a version `1` policy, and all of the conditions in the version `3` policy
# the conditions in the version `3` policy are lost. # are lost.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Specifies the format of the policy. # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value # Requests that specify an invalid value are rejected. Any operation that
# are rejected. # affects conditional role bindings must specify version `3`. This requirement
# Any operation that affects conditional role bindings must specify version # applies to the following operations: * Getting a policy that includes a
# `3`. This requirement applies to the following operations: # conditional role binding * Adding a conditional role binding to a policy *
# * Getting a policy that includes a conditional role binding # Changing a conditional role binding in a policy * Removing any role binding,
# * Adding a conditional role binding to a policy # with or without a condition, from a policy that includes conditions **
# * Changing a conditional role binding in a policy # Important:** If you use IAM Conditions, you must include the `etag` field
# * Removing any role binding, with or without a condition, from a policy # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
# that includes conditions # to overwrite a version `3` policy with a version `1` policy, and all of the
# **Important:** If you use IAM Conditions, you must include the `etag` field # conditions in the version `3` policy are lost. If a policy does not include
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # any conditions, operations on that policy may specify any valid version or
# you to overwrite a version `3` policy with a version `1` policy, and all of # leave the field unset. To learn which resources support conditions in their
# the conditions in the version `3` policy are lost. # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
# If a policy does not include any conditions, operations on that policy may # conditions/resource-policies).
# 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` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -585,35 +515,27 @@ module Google
end end
end end
# The request message for LookupService.ResolveService. # The request message for LookupService.ResolveService. Looks up a service by
# Looks up a service by its name, returns the service and its endpoints. # its name, returns the service and its endpoints.
class ResolveServiceRequest class ResolveServiceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The filter applied to the endpoints of the resolved service. # Optional. The filter applied to the endpoints of the resolved service. General
# General filter string syntax: # filter string syntax: () can be "name" or "metadata." for map field. can be "<,
# <field> <operator> <value> (<logical connector>) # >, <=, >=, !=, =, :". Of which ":" means HAS and is roughly the same as "=".
# <field> can be "name" or "metadata.<key>" for map field. # must be the same data type as the field. can be "AND, OR, NOT". Examples of
# <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS and is # valid filters: * "metadata.owner" returns Endpoints that have a label with the
# roughly the same as "=". # key "owner", this is the same as "metadata:owner" * "metadata.protocol=gRPC"
# <value> must be the same data type as the field. # returns Endpoints that have key/value "protocol=gRPC" * "metadata.owner!=sd
# <logical connector> can be "AND, OR, NOT". # AND metadata.foo=bar" returns Endpoints that have "owner" field in metadata
# Examples of valid filters: # with a value that is not "sd" AND have the key/value foo=bar.
# * "metadata.owner" returns Endpoints that have a label with the
# key "owner", this is the same as "metadata:owner"
# * "metadata.protocol=gRPC" returns Endpoints that have key/value
# "protocol=gRPC"
# * "metadata.owner!=sd AND metadata.foo=bar" returns
# Endpoints that have "owner" field in metadata with a value that is not
# "sd" AND have the key/value foo=bar.
# Corresponds to the JSON property `endpointFilter` # Corresponds to the JSON property `endpointFilter`
# @return [String] # @return [String]
attr_accessor :endpoint_filter attr_accessor :endpoint_filter
# Optional. The maximum number of endpoints to return. Defaults to 25. Maximum # Optional. The maximum number of endpoints to return. Defaults to 25. Maximum
# is 100. # is 100. If a value less than one is specified, the Default is used. If a value
# If a value less than one is specified, the Default is used. # greater than the Maximum is specified, the Maximum is used.
# If a value greater than the Maximum is specified, the Maximum is used.
# Corresponds to the JSON property `maxEndpoints` # Corresponds to the JSON property `maxEndpoints`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_endpoints attr_accessor :max_endpoints
@ -633,10 +555,8 @@ module Google
class ResolveServiceResponse class ResolveServiceResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An individual service. A service contains a name and optional metadata. # An individual service. A service contains a name and optional metadata. A
# A service must exist before # service must exist before endpoints can be added to it.
# endpoints can be
# added to it.
# Corresponds to the JSON property `service` # Corresponds to the JSON property `service`
# @return [Google::Apis::ServicedirectoryV1beta1::Service] # @return [Google::Apis::ServicedirectoryV1beta1::Service]
attr_accessor :service attr_accessor :service
@ -651,30 +571,27 @@ module Google
end end
end end
# An individual service. A service contains a name and optional metadata. # An individual service. A service contains a name and optional metadata. A
# A service must exist before # service must exist before endpoints can be added to it.
# endpoints can be
# added to it.
class Service class Service
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. Endpoints associated with this service. Returned on LookupService. # Output only. Endpoints associated with this service. Returned on LookupService.
# Resolve. # Resolve. Control plane clients should use RegistrationService.ListEndpoints.
# Control plane clients should use RegistrationService.ListEndpoints.
# Corresponds to the JSON property `endpoints` # Corresponds to the JSON property `endpoints`
# @return [Array<Google::Apis::ServicedirectoryV1beta1::Endpoint>] # @return [Array<Google::Apis::ServicedirectoryV1beta1::Endpoint>]
attr_accessor :endpoints attr_accessor :endpoints
# Optional. Metadata for the service. This data can be consumed by service # Optional. Metadata for the service. This data can be consumed by service
# clients. The entire metadata dictionary may contain up to 2000 characters, # clients. The entire metadata dictionary may contain up to 2000 characters,
# spread across all key-value pairs. Metadata that goes beyond any these # spread across all key-value pairs. Metadata that goes beyond any these limits
# limits will be rejected. # will be rejected.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :metadata attr_accessor :metadata
# Immutable. The resource name for the service in the format # Immutable. The resource name for the service in the format 'projects/*/
# 'projects/*/locations/*/namespaces/*/services/*'. # locations/*/namespaces/*/services/*'.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -696,66 +613,32 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # 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/).
# "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` # Corresponds to the JSON property `policy`
# @return [Google::Apis::ServicedirectoryV1beta1::Policy] # @return [Google::Apis::ServicedirectoryV1beta1::Policy]
attr_accessor :policy attr_accessor :policy
@ -774,10 +657,9 @@ module Google
class TestIamPermissionsRequest class TestIamPermissionsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with # The set of permissions to check for the `resource`. Permissions with wildcards
# wildcards (such as '*' or 'storage.*') are not allowed. For more # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
# information see # Overview](https://cloud.google.com/iam/docs/overview#permissions).
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -796,8 +678,7 @@ module Google
class TestIamPermissionsResponse class TestIamPermissionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
# allowed.
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions

View File

@ -119,17 +119,16 @@ module Google
# Creates a namespace, and returns the new Namespace. # Creates a namespace, and returns the new Namespace.
# @param [String] parent # @param [String] parent
# Required. The resource name of the project and location the namespace # Required. The resource name of the project and location the namespace will be
# will be created in. # created in.
# @param [Google::Apis::ServicedirectoryV1beta1::Namespace] namespace_object # @param [Google::Apis::ServicedirectoryV1beta1::Namespace] namespace_object
# @param [String] namespace_id # @param [String] namespace_id
# Required. The Resource ID must be 1-63 characters long, and comply with # Required. The Resource ID must be 1-63 characters long, and comply with
# <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. # RFC1035. Specifically, the name must be 1-63 characters long and match the
# Specifically, the name must be 1-63 characters long and match the regular # regular expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first
# expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first # character must be a lowercase letter, and all following characters must be a
# character must be a lowercase letter, and all following characters must # dash, lowercase letter, or digit, except the last character, which cannot be a
# be a dash, lowercase letter, or digit, except the last character, which # dash.
# cannot be a dash.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -160,8 +159,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a namespace. This also deletes all services and endpoints in # Deletes a namespace. This also deletes all services and endpoints in the
# the namespace. # namespace.
# @param [String] name # @param [String] name
# Required. The name of the namespace to delete. # Required. The name of the namespace to delete.
# @param [String] fields # @param [String] fields
@ -223,8 +222,8 @@ module Google
# Gets the IAM Policy for a resource (namespace or service only). # Gets the IAM Policy for a resource (namespace or service only).
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicedirectoryV1beta1::GetIamPolicyRequest] get_iam_policy_request_object # @param [Google::Apis::ServicedirectoryV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -258,39 +257,27 @@ module Google
# Lists all namespaces. # Lists all namespaces.
# @param [String] parent # @param [String] parent
# Required. The resource name of the project and location whose namespaces we'd # Required. The resource name of the project and location whose namespaces we'd
# like to # like to list.
# list.
# @param [String] filter # @param [String] filter
# Optional. The filter to list result by. # Optional. The filter to list result by. General filter string syntax: () can
# General filter string syntax: # be "name", or "labels." for map field. can be "<, >, <=, >=, !=, =, :". Of
# <field> <operator> <value> (<logical connector>) # which ":" means HAS, and is roughly the same as "=". must be the same data
# <field> can be "name", or "labels.<key>" for map field. # type as field. can be "AND, OR, NOT". Examples of valid filters: * "labels.
# <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and # owner" returns Namespaces that have a label with the key "owner" this is the
# is roughly the same as "=". # same as "labels:owner". * "labels.protocol=gRPC" returns Namespaces that have
# <value> must be the same data type as field. # key/value "protocol=gRPC". * "name>projects/my-project/locations/us-east/
# <logical connector> can be "AND, OR, NOT". # namespaces/namespace-c" returns Namespaces that have name that is
# Examples of valid filters: # alphabetically later than the string, so "namespace-e" will be returned but "
# * "labels.owner" returns Namespaces that have a label with the key "owner" # namespace-a" will not be. * "labels.owner!=sd AND labels.foo=bar" returns
# this is the same as "labels:owner". # Namespaces that have "owner" in label key but value is not "sd" AND have key/
# * "labels.protocol=gRPC" returns Namespaces that have key/value # value foo=bar. * "doesnotexist.foo=bar" returns an empty list. Note that
# "protocol=gRPC". # Namespace doesn't have a field called "doesnotexist". Since the filter does
# * "name>projects/my-project/locations/us-east/namespaces/namespace-c" # not match any Namespaces, it returns no results.
# returns Namespaces that have name that is alphabetically later than the
# string, so "namespace-e" will be returned but "namespace-a" will not be.
# * "labels.owner!=sd AND labels.foo=bar" returns Namespaces that have
# "owner" in label key but value is not "sd" AND have key/value foo=bar.
# * "doesnotexist.foo=bar" returns an empty list. Note that Namespace doesn't
# have a field called "doesnotexist". Since the filter does not match any
# Namespaces, it returns no results.
# @param [String] order_by # @param [String] order_by
# Optional. The order to list result by. # Optional. The order to list result by. General order by string syntax: () (,)
# General order by string syntax: # allows values `"name"` ascending or descending order by . If this is left
# <field> (<asc|desc>) (,) # blank, "asc" is used. Note that an empty order_by string result in default
# <field> allows values `"name"` # order, which is order by name in ascending order.
# <asc/desc> ascending or descending order by <field>. If this is left
# blank, "asc" is used.
# Note that an empty order_by string result in default order, which is order
# by name in ascending order.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of items to return. # Optional. The maximum number of items to return.
# @param [String] page_token # @param [String] page_token
@ -329,8 +316,8 @@ module Google
# Updates a namespace. # Updates a namespace.
# @param [String] name # @param [String] name
# Immutable. The resource name for the namespace in the format # Immutable. The resource name for the namespace in the format 'projects/*/
# 'projects/*/locations/*/namespaces/*'. # locations/*/namespaces/*'.
# @param [Google::Apis::ServicedirectoryV1beta1::Namespace] namespace_object # @param [Google::Apis::ServicedirectoryV1beta1::Namespace] namespace_object
# @param [String] update_mask # @param [String] update_mask
# Required. List of fields to be updated in this request. # Required. List of fields to be updated in this request.
@ -366,8 +353,8 @@ module Google
# Sets the IAM Policy for a resource (namespace or service only). # Sets the IAM Policy for a resource (namespace or service only).
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicedirectoryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::ServicedirectoryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -400,8 +387,8 @@ module Google
# Tests IAM permissions for a resource (namespace or service only). # Tests IAM permissions for a resource (namespace or service only).
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicedirectoryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::ServicedirectoryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -438,12 +425,11 @@ module Google
# @param [Google::Apis::ServicedirectoryV1beta1::Service] service_object # @param [Google::Apis::ServicedirectoryV1beta1::Service] service_object
# @param [String] service_id # @param [String] service_id
# Required. The Resource ID must be 1-63 characters long, and comply with # Required. The Resource ID must be 1-63 characters long, and comply with
# <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. # RFC1035. Specifically, the name must be 1-63 characters long and match the
# Specifically, the name must be 1-63 characters long and match the regular # regular expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first
# expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first # character must be a lowercase letter, and all following characters must be a
# character must be a lowercase letter, and all following characters must # dash, lowercase letter, or digit, except the last character, which cannot be a
# be a dash, lowercase letter, or digit, except the last character, which # dash.
# cannot be a dash.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -474,8 +460,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a service. This also deletes all endpoints associated with # Deletes a service. This also deletes all endpoints associated with the service.
# the service.
# @param [String] name # @param [String] name
# Required. The name of the service to delete. # Required. The name of the service to delete.
# @param [String] fields # @param [String] fields
@ -537,8 +522,8 @@ module Google
# Gets the IAM Policy for a resource (namespace or service only). # Gets the IAM Policy for a resource (namespace or service only).
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicedirectoryV1beta1::GetIamPolicyRequest] get_iam_policy_request_object # @param [Google::Apis::ServicedirectoryV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -571,38 +556,29 @@ module Google
# Lists all services belonging to a namespace. # Lists all services belonging to a namespace.
# @param [String] parent # @param [String] parent
# Required. The resource name of the namespace whose services we'd # Required. The resource name of the namespace whose services we'd like to list.
# like to list.
# @param [String] filter # @param [String] filter
# Optional. The filter to list result by. # Optional. The filter to list result by. General filter string syntax: () can
# General filter string syntax: # be "name", or "metadata." for map field. can be "<, >, <=, >=, !=, =, :". Of
# <field> <operator> <value> (<logical connector>) # which ":" means HAS, and is roughly the same as "=". must be the same data
# <field> can be "name", or "metadata.<key>" for map field. # type as field. can be "AND, OR, NOT". Examples of valid filters: * "metadata.
# <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and # owner" returns Services that have a label with the key "owner" this is the
# is roughly the same as "=". # same as "metadata:owner". * "metadata.protocol=gRPC" returns Services that
# <value> must be the same data type as field. # have key/value "protocol=gRPC". * "name>projects/my-project/locations/us-east/
# <logical connector> can be "AND, OR, NOT". # namespaces/my-namespace/services/service-c" returns Services that have name
# Examples of valid filters: # that is alphabetically later than the string, so "service-e" will be returned
# * "metadata.owner" returns Services that have a label with the key "owner" # but "service-a" will not be. * "metadata.owner!=sd AND metadata.foo=bar"
# this is the same as "metadata:owner". # returns Services that have "owner" in label key but value is not "sd" AND have
# * "metadata.protocol=gRPC" returns Services that have key/value # key/value foo=bar. * "doesnotexist.foo=bar" returns an empty list. Note that
# "protocol=gRPC". # Service doesn't have a field called "doesnotexist". Since the filter does not
# * "name>projects/my-project/locations/us-east/namespaces/my-namespace/services/ # match any Services, it returns no results.
# service-c"
# returns Services that have name that is alphabetically later than the
# string, so "service-e" will be returned but "service-a" will not be.
# * "metadata.owner!=sd AND metadata.foo=bar" returns Services that have
# "owner" in label key but value is not "sd" AND have key/value foo=bar.
# * "doesnotexist.foo=bar" returns an empty list. Note that Service doesn't
# have a field called "doesnotexist". Since the filter does not match any
# Services, it returns no results.
# @param [String] order_by # @param [String] order_by
# Optional. The order to list result by. # Optional. The order to list result by.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of items to return. # Optional. The maximum number of items to return.
# @param [String] page_token # @param [String] page_token
# Optional. The next_page_token value returned from a previous List request, # Optional. The next_page_token value returned from a previous List request, if
# if any. # any.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -636,8 +612,8 @@ module Google
# Updates a service. # Updates a service.
# @param [String] name # @param [String] name
# Immutable. The resource name for the service in the format # Immutable. The resource name for the service in the format 'projects/*/
# 'projects/*/locations/*/namespaces/*/services/*'. # locations/*/namespaces/*/services/*'.
# @param [Google::Apis::ServicedirectoryV1beta1::Service] service_object # @param [Google::Apis::ServicedirectoryV1beta1::Service] service_object
# @param [String] update_mask # @param [String] update_mask
# Required. List of fields to be updated in this request. # Required. List of fields to be updated in this request.
@ -671,9 +647,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns a service and its # Returns a service and its associated endpoints. Resolving a service is not
# associated endpoints. # considered an active developer method.
# Resolving a service is not considered an active developer method.
# @param [String] name # @param [String] name
# Required. The name of the service to resolve. # Required. The name of the service to resolve.
# @param [Google::Apis::ServicedirectoryV1beta1::ResolveServiceRequest] resolve_service_request_object # @param [Google::Apis::ServicedirectoryV1beta1::ResolveServiceRequest] resolve_service_request_object
@ -708,8 +683,8 @@ module Google
# Sets the IAM Policy for a resource (namespace or service only). # Sets the IAM Policy for a resource (namespace or service only).
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicedirectoryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::ServicedirectoryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -742,8 +717,8 @@ module Google
# Tests IAM permissions for a resource (namespace or service only). # Tests IAM permissions for a resource (namespace or service only).
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicedirectoryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::ServicedirectoryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -780,12 +755,11 @@ module Google
# @param [Google::Apis::ServicedirectoryV1beta1::Endpoint] endpoint_object # @param [Google::Apis::ServicedirectoryV1beta1::Endpoint] endpoint_object
# @param [String] endpoint_id # @param [String] endpoint_id
# Required. The Resource ID must be 1-63 characters long, and comply with # Required. The Resource ID must be 1-63 characters long, and comply with
# <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. # RFC1035. Specifically, the name must be 1-63 characters long and match the
# Specifically, the name must be 1-63 characters long and match the regular # regular expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first
# expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first # character must be a lowercase letter, and all following characters must be a
# character must be a lowercase letter, and all following characters must # dash, lowercase letter, or digit, except the last character, which cannot be a
# be a dash, lowercase letter, or digit, except the last character, which # dash.
# cannot be a dash.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -878,40 +852,31 @@ module Google
# Lists all endpoints. # Lists all endpoints.
# @param [String] parent # @param [String] parent
# Required. The resource name of the service whose endpoints we'd like to # Required. The resource name of the service whose endpoints we'd like to list.
# list.
# @param [String] filter # @param [String] filter
# Optional. The filter to list result by. # Optional. The filter to list result by. General filter string syntax: () can
# General filter string syntax: # be "name", "address", "port" or "metadata." for map field. can be "<, >, <=, >=
# <field> <operator> <value> (<logical connector>) # , !=, =, :". Of which ":" means HAS, and is roughly the same as "=". must be
# <field> can be "name", "address", "port" or "metadata.<key>" for map field. # the same data type as field. can be "AND, OR, NOT". Examples of valid filters:
# <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and
# is roughly the same as "=".
# <value> must be the same data type as field.
# <logical connector> can be "AND, OR, NOT".
# Examples of valid filters:
# * "metadata.owner" returns Endpoints that have a label with the key "owner" # * "metadata.owner" returns Endpoints that have a label with the key "owner"
# this is the same as "metadata:owner". # this is the same as "metadata:owner". * "metadata.protocol=gRPC" returns
# * "metadata.protocol=gRPC" returns Endpoints that have key/value # Endpoints that have key/value "protocol=gRPC". * "address=192.108.1.105"
# "protocol=gRPC". # returns Endpoints that have this address. * "port>8080" returns Endpoints that
# * "address=192.108.1.105" returns Endpoints that have this address. # have port number larger than 8080. * "name>projects/my-project/locations/us-
# * "port>8080" returns Endpoints that have port number larger than 8080. # east/namespaces/my-namespace/services/my-service/endpoints/endpoint-c" returns
# * "name>projects/my-project/locations/us-east/namespaces/my-namespace/services/ # Endpoints that have name that is alphabetically later than the string, so "
# my-service/endpoints/endpoint-c" # endpoint-e" will be returned but "endpoint-a" will not be. * "metadata.owner!=
# returns Endpoints that have name that is alphabetically later than the # sd AND metadata.foo=bar" returns Endpoints that have "owner" in label key but
# string, so "endpoint-e" will be returned but "endpoint-a" will not be. # value is not "sd" AND have key/value foo=bar. * "doesnotexist.foo=bar" returns
# * "metadata.owner!=sd AND metadata.foo=bar" returns Endpoints that have # an empty list. Note that Endpoint doesn't have a field called "doesnotexist".
# "owner" in label key but value is not "sd" AND have key/value foo=bar. # Since the filter does not match any Endpoints, it returns no results.
# * "doesnotexist.foo=bar" returns an empty list. Note that Endpoint doesn't
# have a field called "doesnotexist". Since the filter does not match any
# Endpoints, it returns no results.
# @param [String] order_by # @param [String] order_by
# Optional. The order to list result by. # Optional. The order to list result by.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of items to return. # Optional. The maximum number of items to return.
# @param [String] page_token # @param [String] page_token
# Optional. The next_page_token value returned from a previous List request, # Optional. The next_page_token value returned from a previous List request, if
# if any. # any.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -945,8 +910,8 @@ module Google
# Updates a endpoint. # Updates a endpoint.
# @param [String] name # @param [String] name
# Immutable. The resource name for the endpoint in the format # Immutable. The resource name for the endpoint in the format 'projects/*/
# 'projects/*/locations/*/namespaces/*/services/*/endpoints/*'. # locations/*/namespaces/*/services/*/endpoints/*'.
# @param [Google::Apis::ServicedirectoryV1beta1::Endpoint] endpoint_object # @param [Google::Apis::ServicedirectoryV1beta1::Endpoint] endpoint_object
# @param [String] update_mask # @param [String] update_mask
# Required. List of fields to be updated in this request. # Required. List of fields to be updated in this request.