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/key": key
"/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/id": id
"/cloudidentity:v1/EntityKey/namespace": namespace
@ -20916,6 +20990,10 @@
"/cloudidentity:v1/Status/details/detail": detail
"/cloudidentity:v1/Status/details/detail/detail": detail
"/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.delete": delete_group
"/cloudidentity:v1/cloudidentity.groups.delete/name": name
@ -20960,12 +21038,20 @@
"/cloudidentity:v1beta1/AndroidAttributes/ownerProfileAccount": owner_profile_account
"/cloudidentity:v1beta1/AndroidAttributes/ownershipPrivilege": ownership_privilege
"/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/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/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/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/deviceUser": device_user
"/cloudidentity:v1beta1/ClientState": client_state
@ -20983,6 +21069,9 @@
"/cloudidentity:v1beta1/ClientState/name": name
"/cloudidentity:v1beta1/ClientState/ownerType": owner_type
"/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/boolValue": bool_value
"/cloudidentity:v1beta1/CustomAttributeValue/numberValue": number_value
@ -21138,10 +21227,67 @@
"/cloudidentity:v1beta1/UpdateMembershipRolesParams": update_membership_roles_params
"/cloudidentity:v1beta1/UpdateMembershipRolesParams/fieldMask": field_mask
"/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/device": device
"/cloudidentity:v1beta1/WipeDeviceUserRequest": wipe_device_user_request
"/cloudidentity:v1beta1/WipeDeviceUserRequest/customer": customer
"/cloudidentity:v1beta1/WipeDeviceUserResponse": wipe_device_user_response
"/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/initialGroupConfig": initial_group_config
"/cloudidentity:v1beta1/cloudidentity.groups.delete": delete_group
@ -80857,6 +81003,8 @@
"/dfareporting:v3.4/key": key
"/dfareporting:v3.4/quotaUser": quota_user
"/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/agentContent": agent_content
"/dialogflow:v2/GoogleCloudDialogflowCxV3beta1ExportAgentResponse/agentUri": agent_uri
@ -81755,6 +81903,8 @@
"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes": session_entity_types
"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes/session_entity_type": session_entity_type
"/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/agentContent": agent_content
"/dialogflow:v2/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentUri": agent_uri
@ -82060,6 +82210,8 @@
"/dialogflow:v2beta1/ExportAgentResponse": export_agent_response
"/dialogflow:v2beta1/ExportAgentResponse/agentContent": agent_content
"/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/agentContent": agent_content
"/dialogflow:v2beta1/GoogleCloudDialogflowCxV3beta1ExportAgentResponse/agentUri": agent_uri
@ -83161,6 +83313,8 @@
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes": session_entity_types
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1WebhookResponse/sessionEntityTypes/session_entity_type": session_entity_type
"/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/agentContent": agent_content
"/dialogflow:v2beta1/GoogleCloudDialogflowV3alpha1ExportAgentResponse/agentUri": agent_uri
@ -116210,11 +116364,26 @@
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest/name": name
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_delete_worker_pool_request
"/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/name": name
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_worker_pool_request
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest/name": name
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance": google_devtools_remotebuildexecution_admin_v1alpha_instance
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/featurePolicy": feature_policy
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/location": location
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/loggingEnabled": logging_enabled
"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/name": name
@ -116616,11 +116785,26 @@
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest/name": name
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_delete_worker_pool_request
"/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/name": name
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_worker_pool_request
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest/name": name
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance": google_devtools_remotebuildexecution_admin_v1alpha_instance
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/featurePolicy": feature_policy
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/location": location
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/loggingEnabled": logging_enabled
"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/name": name
@ -116824,6 +117008,11 @@
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.get/name": name
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.list": list_project_instances
"/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/parent": parent
"/remotebuildexecution:v1alpha/remotebuildexecution.projects.instances.workerpools.delete": delete_project_instance_workerpool
@ -117084,11 +117273,26 @@
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest/name": name
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_delete_worker_pool_request
"/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/name": name
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest": google_devtools_remotebuildexecution_admin_v1alpha_get_worker_pool_request
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest/name": name
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance": google_devtools_remotebuildexecution_admin_v1alpha_instance
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/featurePolicy": feature_policy
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/location": location
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/loggingEnabled": logging_enabled
"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance/name": name

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -18,14 +18,16 @@ require 'google/apis/admin_datatransfer_v1/representations.rb'
module Google
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
VERSION = 'DatatransferV1'
REVISION = '20190829'
REVISION = '20200810'
# View and manage data transfers between users in your organization
AUTH_ADMIN_DATATRANSFER = 'https://www.googleapis.com/auth/admin.datatransfer'

View File

@ -22,7 +22,10 @@ module Google
module Apis
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
include Google::Apis::Core::Hashable
@ -124,7 +127,10 @@ module Google
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
include Google::Apis::Core::Hashable
@ -162,7 +168,10 @@ module Google
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
include Google::Apis::Core::Hashable
@ -226,7 +235,10 @@ module Google
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
include Google::Apis::Core::Hashable

View File

@ -20,9 +20,11 @@ require 'google/apis/errors'
module Google
module Apis
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
# require 'google/apis/admin_datatransfer_v1'
@ -30,7 +32,7 @@ module Google
# Admin = Google::Apis::AdminDatatransferV1 # Alias the module
# 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
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
@ -38,16 +40,12 @@ module Google
attr_accessor :key
# @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'admin/datatransfer/v1/')
super('https://www.googleapis.com/', '')
@batch_path = 'batch/admin/datatransfer_v1'
end
@ -57,10 +55,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'applications/{applicationId}', options)
def get_application(application_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'admin/datatransfer/v1/applications/{applicationId}', options)
command.response_representation = Google::Apis::AdminDatatransferV1::Application::Representation
command.response_class = Google::Apis::AdminDatatransferV1::Application
command.params['applicationId'] = application_id unless application_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists the applications available for data transfer for a customer.
# @param [String] customer_id
# Immutable ID of the G Suite account.
# Immutable ID of the Google Apps account.
# @param [Fixnum] max_results
# Maximum number of results to return. Default is 100.
# @param [String] page_token
@ -94,10 +89,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -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::ClientError] The request is invalid and should not be retried without modification
# @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)
command = make_simple_command(:get, 'applications', options)
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, 'admin/datatransfer/v1/applications', options)
command.response_representation = Google::Apis::AdminDatatransferV1::ApplicationsListResponse::Representation
command.response_class = Google::Apis::AdminDatatransferV1::ApplicationsListResponse
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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -130,10 +122,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_transfer(data_transfer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'transfers/{dataTransferId}', options)
def get_transfer(data_transfer_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'admin/datatransfer/v1/transfers/{dataTransferId}', options)
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer
command.params['dataTransferId'] = data_transfer_id unless data_transfer_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -162,10 +151,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -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::ClientError] The request is invalid and should not be retried without modification
# @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)
command = make_simple_command(:post, 'transfers', options)
def insert_transfer(data_transfer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'admin/datatransfer/v1/transfers', options)
command.request_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
command.request_object = data_transfer_object
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists the transfers for a customer by source user, destination user, or status.
# @param [String] customer_id
# Immutable ID of the G Suite account.
# Immutable ID of the Google Apps account.
# @param [Fixnum] max_results
# Maximum number of results to return. Default is 100.
# @param [String] new_owner_user_id
@ -206,10 +192,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -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::ClientError] The request is invalid and should not be retried without modification
# @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)
command = make_simple_command(:get, 'transfers', options)
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, 'admin/datatransfer/v1/transfers', options)
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfersListResponse::Representation
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfersListResponse
command.query['customerId'] = customer_id unless customer_id.nil?
@ -234,7 +218,6 @@ module Google
command.query['status'] = status unless status.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -243,7 +226,6 @@ module Google
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/
module CloudidentityV1
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
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'

View File

@ -22,23 +22,541 @@ module Google
module Apis
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
# isolation for IDs. A single ID can be reused across namespaces but the
# combination of a namespace and an ID must be unique.
class EntityKey
include Google::Apis::Core::Hashable
# The ID of the entity within the given namespace. The ID must be unique
# within its namespace.
# The ID of the entity within the given namespace. The ID must be unique within
# its namespace.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Namespaces provide isolation for IDs, so an ID only needs to be unique
# within its namespace.
# Namespaces are currently only created as part of IdentitySource creation
# from Admin Console. A namespace `"identitysources/`identity_source_id`"` is
# created corresponding to every Identity Source `identity_source_id`.
# Namespaces provide isolation for IDs, so an ID only needs to be unique within
# its namespace. Namespaces are currently only created as part of IdentitySource
# creation from Admin Console. A namespace `"identitysources/`identity_source_id`
# "` is created corresponding to every Identity Source `identity_source_id`.
# Corresponds to the JSON property `namespace`
# @return [String]
attr_accessor :namespace
@ -58,8 +576,7 @@ module Google
class Group
include Google::Apis::Core::Hashable
# Output only. The time when the Group was created.
# Output only.
# Output only. The time when the Group was created. Output only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
@ -84,32 +601,29 @@ module Google
# @return [Google::Apis::CloudidentityV1::EntityKey]
attr_accessor :group_key
# Required. `Required`. Labels for Group resource.
# For creating Groups under a namespace, set label key to
# 'labels/system/groups/external' and label value as empty.
# Required. `Required`. Labels for Group resource. For creating Groups under a
# namespace, set label key to 'labels/system/groups/external' and label value as
# empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of the
# Group in the format: `groups/`group_id``, where group_id is the unique ID
# assigned to the Group.
# Must be left blank while creating a Group.
# resource_names) of the Group in the format: `groups/`group_id``, where
# group_id is the unique ID assigned to the Group. Must be left blank while
# creating a Group.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. Immutable. The entity under which this Group resides in Cloud
# Identity resource
# hierarchy. Must be set when creating a Group, read-only afterwards.
# Currently allowed types: `identitysources`.
# Identity resource hierarchy. Must be set when creating a Group, read-only
# afterwards. Currently allowed types: `identitysources`.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# Output only. The time when the Group was last updated.
# Output only.
# Output only. The time when the Group was last updated. Output only.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
@ -135,14 +649,13 @@ module Google
class ListGroupsResponse
include Google::Apis::Core::Hashable
# Groups returned in response to list request.
# The results are not sorted.
# Groups returned in response to list request. The results are not sorted.
# Corresponds to the JSON property `groups`
# @return [Array<Google::Apis::CloudidentityV1::Group>]
attr_accessor :groups
# Token to retrieve the next page of results, or empty if there are no
# more results available for listing.
# Token to retrieve the next page of results, or empty if there are no more
# results available for listing.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -167,8 +680,8 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1::Membership>]
attr_accessor :memberships
# Token to retrieve the next page of results, or empty if there are no
# more results available for listing.
# Token to retrieve the next page of results, or empty if there are no more
# results available for listing.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -210,10 +723,9 @@ module Google
include Google::Apis::Core::Hashable
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
# Membership being looked up.
# Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is
# the unique ID assigned to the Group to which Membership belongs to, and
# `member_id` is the unique ID assigned to the member.
# Membership being looked up. Format: `groups/`group_id`/memberships/`member_id``
# , where `group_id` is the unique ID assigned to the Group to which Membership
# belongs to, and `member_id` is the unique ID assigned to the member.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -238,11 +750,10 @@ module Google
attr_accessor :create_time
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of the
# Membership in the format: `groups/`group_id`/memberships/`member_id``,
# where group_id is the unique ID assigned to the Group to which Membership
# belongs to, and member_id is the unique ID assigned to the member
# Must be left blank while creating a Membership.
# resource_names) of the Membership in the format: `groups/`group_id`/
# memberships/`member_id``, where group_id is the unique ID assigned to the
# Group to which Membership belongs to, and member_id is the unique ID assigned
# to the member Must be left blank while creating a Membership.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -254,8 +765,8 @@ module Google
# @return [Google::Apis::CloudidentityV1::EntityKey]
attr_accessor :preferred_member_key
# Roles for a member within the Group.
# Currently supported MembershipRoles: `"MEMBER"`.
# Roles for a member within the Group. Currently supported MembershipRoles: `"
# MEMBER"`.
# Corresponds to the JSON property `roles`
# @return [Array<Google::Apis::CloudidentityV1::MembershipRole>]
attr_accessor :roles
@ -283,8 +794,8 @@ module Google
class MembershipRole
include Google::Apis::Core::Hashable
# MembershipRole in string format.
# Currently supported MembershipRoles: `"MEMBER"`.
# MembershipRole in string format. Currently supported MembershipRoles: `"MEMBER"
# `.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -304,47 +815,45 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# If the value is `false`, it means the operation is still in progress. If `true`
# , the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::CloudidentityV1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# originally returns it. If you use the default HTTP mapping, the `name` should
# be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
@ -372,8 +881,8 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1::Group>]
attr_accessor :groups
# Token to retrieve the next page of results, or empty if there are no
# more results available for specified query.
# Token to retrieve the next page of results, or empty if there are no more
# results available for specified query.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -389,12 +898,12 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
@ -403,15 +912,15 @@ module Google
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -427,6 +936,47 @@ module Google
@message = args[:message] if args.key?(:message)
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

View File

@ -22,6 +22,60 @@ module Google
module Apis
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 Representation < Google::Apis::Core::JsonRepresentation; end
@ -88,6 +142,139 @@ module Google
include Google::Apis::Core::JsonObjectSupport
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
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -192,6 +379,22 @@ module Google
property :message, as: 'message'
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

View File

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

View File

@ -25,7 +25,10 @@ module Google
# @see https://cloud.google.com/identity/
module CloudidentityV1beta1
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
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
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.
# 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
@ -45,9 +45,9 @@ module Google
# @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.
# 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
@ -66,11 +66,35 @@ module Google
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.
class ApproveDeviceUserResponse
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`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user
@ -85,11 +109,35 @@ module Google
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.
class BlockDeviceUserResponse
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`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user
@ -104,12 +152,36 @@ module Google
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.
class CancelWipeDeviceResponse
include Google::Apis::Core::Hashable
# Represents a Device known to Google Cloud, independent of the device
# ownership, type, and whether it is assigned or in use by a user.
# 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
@ -124,11 +196,35 @@ module Google
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.
class CancelWipeDeviceUserResponse
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`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user
@ -143,6 +239,7 @@ module Google
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
@ -168,9 +265,8 @@ module Google
# @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
# 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
@ -180,9 +276,9 @@ module Google
# @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.
# 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::CloudidentityV1beta1::CustomAttributeValue>]
attr_accessor :key_value_pairs
@ -198,10 +294,9 @@ module Google
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.
# 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
@ -237,6 +332,37 @@ module Google
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
class CustomAttributeValue
include Google::Apis::Core::Hashable
@ -269,8 +395,9 @@ module Google
end
end
# Represents a Device known to Google Cloud, independent of the device
# ownership, type, and whether it is assigned or in use by a user.
# 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
@ -310,8 +437,7 @@ module Google
attr_accessor :compromised_state
# Output only. When the Company-Owned device was imported. This field is empty
# for BYOD
# devices.
# for BYOD devices.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
@ -374,9 +500,8 @@ module Google
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.
# 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
@ -392,9 +517,8 @@ module Google
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
# 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`
@ -463,7 +587,8 @@ module Google
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
include Google::Apis::Core::Hashable
@ -498,9 +623,9 @@ module Google
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.
# 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
@ -539,82 +664,26 @@ module Google
end
end
# An EndpointApp represents an app that is installed on a device
class EndpointApp
include Google::Apis::Core::Hashable
# 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.
# 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
include Google::Apis::Core::Hashable
# The ID of the entity.
# For Google-managed entities, the `id` must be the email address of an
# existing group or user.
# For external-identity-mapped entities, the `id` must be a string conforming
# to the Identity Source's requirements.
# The ID of the entity. For Google-managed entities, the `id` must be the email
# address of an existing group or user. For external-identity-mapped entities,
# the `id` must be a string conforming to the Identity Source's requirements.
# Must be unique within a `namespace`.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The namespace in which the entity exists.
# If not specified, the `EntityKey` represents a Google-managed entity such
# as a Google user or a Google Group.
# If specified, the `EntityKey` represents an external-identity-mapped group.
# The namespace must correspond to an identity source created in Admin
# Console and must be in the form of `identitysources/`identity_source_id`.
# The namespace in which the entity exists. If not specified, the `EntityKey`
# represents a Google-managed entity such as a Google user or a Google Group. If
# specified, the `EntityKey` represents an external-identity-mapped group. The
# namespace must correspond to an identity source created in Admin Console and
# must be in the form of `identitysources/`identity_source_id`.
# Corresponds to the JSON property `namespace`
# @return [String]
attr_accessor :namespace
@ -658,9 +727,9 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::MembershipAdjacencyList>]
attr_accessor :adjacency_list
# The resources representing each group in the adjacency list. Each
# group in this list can be correlated to a 'group' of the
# MembershipAdjacencyList using the 'name' of the Group resource.
# The resources representing each group in the adjacency list. Each group in
# this list can be correlated to a 'group' of the MembershipAdjacencyList using
# the 'name' of the Group resource.
# Corresponds to the JSON property `groups`
# @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
attr_accessor :groups
@ -676,9 +745,9 @@ module Google
end
end
# A group within the Cloud Identity Groups API.
# A `Group` is a collection of entities, where each entity is either a user,
# another group or a service account.
# A group within the Cloud Identity Groups API. A `Group` is a collection of
# entities, where each entity is either a user, another group, or a service
# account.
class Group
include Google::Apis::Core::Hashable
@ -692,8 +761,8 @@ module Google
# @return [String]
attr_accessor :create_time
# An extended description to help users determine the purpose of a `Group`.
# Must not be longer than 4,096 characters.
# An extended description to help users determine the purpose of a `Group`. Must
# not be longer than 4,096 characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
@ -703,36 +772,39 @@ module Google
# @return [String]
attr_accessor :display_name
# 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.
# A unique identifier for an entity in the Cloud Identity Groups API. An entity
# can represent either a group with an optional `namespace` or a user without a `
# namespace`. The combination of `id` and `namespace` must be unique; however,
# the same `id` can be used with different `namespace`s.
# Corresponds to the JSON property `groupKey`
# @return [Google::Apis::CloudidentityV1beta1::EntityKey]
attr_accessor :group_key
# Required. The labels that apply to the `Group`.
# Must not contain more than one entry. Must contain the entry
# `'cloudidentity.googleapis.com/groups.discussion_forum': ''` if the `Group`
# is a Google Group or `'system/groups/external': ''` if the `Group` is an
# external-identity-mapped group.
# Required. One or more label entries that apply to the Group. Currently
# supported labels contain a key with an empty value. Google Groups are the
# default type of group and have a label with a key of 'cloudidentity.googleapis.
# com/groups.discussion_forum' and an empty value. Existing Google Groups can
# 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`
# @return [Hash<String,String>]
attr_accessor :labels
# Output only. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the `Group`.
# Shall be of the form `groups/`group_id``.
# resource_names) of the `Group`. Shall be of the form `groups/`group_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. Immutable. The resource name of the entity under which this `Group`
# resides in the
# Cloud Identity resource hierarchy.
# Must be of the form `identitysources/`identity_source_id`` for external-
# identity-mapped groups or `customers/`customer_id`` for Google Groups.
# resides in the Cloud Identity resource hierarchy. Must be of the form `
# identitysources/`identity_source_id`` for external- identity-mapped groups or `
# customers/`customer_id`` for Google Groups.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
@ -760,8 +832,7 @@ module Google
end
end
# Response message that is returned in LRO result of ListClientStates
# Operation.
# Response message that is returned in LRO result of ListClientStates Operation.
class ListClientStatesResponse
include Google::Apis::Core::Hashable
@ -770,8 +841,7 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::ClientState>]
attr_accessor :client_states
# Token to retrieve the next page of results. Empty if there are no more
# results.
# 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
@ -787,7 +857,7 @@ module Google
end
end
# Response message that is returned in LRO result of ListDeviceUsers Operation.
# Response message that is returned from the ListDeviceUsers method.
class ListDeviceUsersResponse
include Google::Apis::Core::Hashable
@ -796,8 +866,7 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::DeviceUser>]
attr_accessor :device_users
# Token to retrieve the next page of results. Empty if there are no more
# results.
# 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
@ -813,7 +882,7 @@ module Google
end
end
# Response message that is returned in LRO result of ListDevices Operation.
# Response message that is returned from the ListDevices method.
class ListDevicesResponse
include Google::Apis::Core::Hashable
@ -822,8 +891,7 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::Device>]
attr_accessor :devices
# Token to retrieve the next page of results. Empty if there are no more
# results.
# 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
@ -839,32 +907,6 @@ module Google
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.
class ListGroupsResponse
include Google::Apis::Core::Hashable
@ -874,8 +916,8 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
attr_accessor :groups
# A continuation token to retrieve the next page of results, or empty if
# there are no more results available.
# A continuation token to retrieve the next page of results, or empty if there
# are no more results available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -900,8 +942,8 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::Membership>]
attr_accessor :memberships
# A continuation token to retrieve the next page of results, or empty if
# there are no more results available.
# A continuation token to retrieve the next page of results, or empty if there
# are no more results available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -922,8 +964,7 @@ module Google
include Google::Apis::Core::Hashable
# Output only. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the looked-up `Group`.
# resource_names) of the looked-up `Group`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -943,8 +984,8 @@ module Google
include Google::Apis::Core::Hashable
# The [resource name](https://cloud.google.com/apis/design/resource_names) of
# the looked-up `Membership`.
# Must be of the form `groups/`group_id`/memberships/`membership_id``.
# the looked-up `Membership`. Must be of the form `groups/`group_id`/memberships/
# `membership_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -964,23 +1005,21 @@ module Google
class LookupSelfDeviceUsersResponse
include Google::Apis::Core::Hashable
# The obfuscated customer Id that may be passed back to other
# Devices API methods such as List, Get, etc.
# The obfuscated customer Id that may be passed back to other Devices API
# methods such as List, Get, etc.
# Corresponds to the JSON property `customer`
# @return [String]
attr_accessor :customer
# [Resource names](https://cloud.google.com/apis/design/resource_names) of
# the DeviceUsers in the format:
# `devices/`device_id`/deviceUsers/`user_resource_id``, where
# device_id is the unique ID assigned to a Device and
# user_resource_id is the unique user ID
# [Resource names](https://cloud.google.com/apis/design/resource_names) of the
# DeviceUsers in the format: `devices/`device_id`/deviceUsers/`user_resource_id``
# , where device_id is the unique ID assigned to a Device and user_resource_id
# is the unique user ID
# Corresponds to the JSON property `names`
# @return [Array<String>]
attr_accessor :names
# Token to retrieve the next page of results. Empty if there are no more
# results.
# 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
@ -997,9 +1036,9 @@ module Google
end
end
# A membership within the Cloud Identity Groups API.
# A `Membership` defines a relationship between a `Group` and an entity
# belonging to that `Group`, referred to as a "member".
# A membership within the Cloud Identity Groups API. A `Membership` defines a
# relationship between a `Group` and an entity belonging to that `Group`,
# referred to as a "member".
class Membership
include Google::Apis::Core::Hashable
@ -1008,33 +1047,32 @@ module Google
# @return [String]
attr_accessor :create_time
# 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.
# A unique identifier for an entity in the Cloud Identity Groups API. An entity
# can represent either a group with an optional `namespace` or a user without a `
# namespace`. The combination of `id` and `namespace` must be unique; however,
# the same `id` can be used with different `namespace`s.
# Corresponds to the JSON property `memberKey`
# @return [Google::Apis::CloudidentityV1beta1::EntityKey]
attr_accessor :member_key
# Output only. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the `Membership`.
# Shall be of the form `groups/`group_id`/memberships/`membership_id``.
# resource_names) of the `Membership`. Shall be of the form `groups/`group_id`/
# memberships/`membership_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# 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.
# A unique identifier for an entity in the Cloud Identity Groups API. An entity
# can represent either a group with an optional `namespace` or a user without a `
# namespace`. The combination of `id` and `namespace` must be unique; however,
# the same `id` can be used with different `namespace`s.
# Corresponds to the JSON property `preferredMemberKey`
# @return [Google::Apis::CloudidentityV1beta1::EntityKey]
attr_accessor :preferred_member_key
# The `MembershipRole`s that apply to the `Membership`.
# If unspecified, defaults to a single `MembershipRole` with `name` `MEMBER`.
# Must not contain duplicate `MembershipRole`s with the same `name`.
# The `MembershipRole`s that apply to the `Membership`. If unspecified, defaults
# to a single `MembershipRole` with `name` `MEMBER`. Must not contain duplicate `
# MembershipRole`s with the same `name`.
# Corresponds to the JSON property `roles`
# @return [Array<Google::Apis::CloudidentityV1beta1::MembershipRole>]
attr_accessor :roles
@ -1090,8 +1128,8 @@ module Google
end
end
# A membership role within the Cloud Identity Groups API.
# A `MembershipRole` defines the privileges granted to a `Membership`.
# A membership role within the Cloud Identity Groups API. A `MembershipRole`
# defines the privileges granted to a `Membership`.
class MembershipRole
include Google::Apis::Core::Hashable
@ -1100,8 +1138,7 @@ module Google
# @return [Google::Apis::CloudidentityV1beta1::ExpiryDetail]
attr_accessor :expiry_detail
# The name of the `MembershipRole`.
# Must be one of `OWNER`, `MANAGER`, `MEMBER`.
# The name of the `MembershipRole`. Must be one of `OWNER`, `MANAGER`, `MEMBER`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -1121,29 +1158,25 @@ module Google
class ModifyMembershipRolesRequest
include Google::Apis::Core::Hashable
# The `MembershipRole`s to be added.
# Adding or removing roles in the same request as updating roles is not
# supported.
# Must not be set if `update_roles_params` is set.
# The `MembershipRole`s to be added. Adding or removing roles in the same
# request as updating roles is not supported. Must not be set if `
# update_roles_params` is set.
# Corresponds to the JSON property `addRoles`
# @return [Array<Google::Apis::CloudidentityV1beta1::MembershipRole>]
attr_accessor :add_roles
# The `name`s of the `MembershipRole`s to be removed.
# Adding or removing roles in the same request as updating roles is not
# supported.
# It is not possible to remove the `MEMBER` `MembershipRole`. If you wish to
# delete a `Membership`, call MembershipsService.DeleteMembership
# instead.
# Must not contain `MEMBER`. Must not be set if `update_roles_params` is set.
# The `name`s of the `MembershipRole`s to be removed. Adding or removing roles
# in the same request as updating roles is not supported. It is not possible to
# remove the `MEMBER` `MembershipRole`. If you wish to delete a `Membership`,
# call MembershipsService.DeleteMembership instead. Must not contain `MEMBER`.
# Must not be set if `update_roles_params` is set.
# Corresponds to the JSON property `removeRoles`
# @return [Array<String>]
attr_accessor :remove_roles
# The `MembershipRole`s to be updated.
# Updating roles in the same request as adding or removing roles is not
# supported.
# Must not be set if either `add_roles` or `remove_roles` is set.
# The `MembershipRole`s to be updated. Updating roles in the same request as
# adding or removing roles is not supported. Must not be set if either `
# add_roles` or `remove_roles` is set.
# Corresponds to the JSON property `updateRolesParams`
# @return [Array<Google::Apis::CloudidentityV1beta1::UpdateMembershipRolesParams>]
attr_accessor :update_roles_params
@ -1164,9 +1197,9 @@ module Google
class ModifyMembershipRolesResponse
include Google::Apis::Core::Hashable
# A membership within the Cloud Identity Groups API.
# A `Membership` defines a relationship between a `Group` and an entity
# belonging to that `Group`, referred to as a "member".
# A membership within the Cloud Identity Groups API. A `Membership` defines a
# relationship between a `Group` and an entity belonging to that `Group`,
# referred to as a "member".
# Corresponds to the JSON property `membership`
# @return [Google::Apis::CloudidentityV1beta1::Membership]
attr_accessor :membership
@ -1186,47 +1219,45 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# If the value is `false`, it means the operation is still in progress. If `true`
# , the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::CloudidentityV1beta1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# originally returns it. If you use the default HTTP mapping, the `name` should
# be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
@ -1254,8 +1285,8 @@ module Google
# @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
attr_accessor :groups
# A continuation token to retrieve the next page of results, or empty if
# there are no more results available.
# A continuation token to retrieve the next page of results, or empty if there
# are no more results available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -1271,12 +1302,12 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
@ -1285,15 +1316,15 @@ module Google
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -1314,14 +1345,14 @@ module Google
class UpdateMembershipRolesParams
include Google::Apis::Core::Hashable
# The fully-qualified names of fields to update.
# May only contain the field `expiry_detail`.
# The fully-qualified names of fields to update. May only contain the field `
# expiry_detail`.
# Corresponds to the JSON property `fieldMask`
# @return [String]
attr_accessor :field_mask
# A membership role within the Cloud Identity Groups API.
# A `MembershipRole` defines the privileges granted to a `Membership`.
# A membership role within the Cloud Identity Groups API. A `MembershipRole`
# defines the privileges granted to a `Membership`.
# Corresponds to the JSON property `membershipRole`
# @return [Google::Apis::CloudidentityV1beta1::MembershipRole]
attr_accessor :membership_role
@ -1337,12 +1368,36 @@ module Google
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.
class WipeDeviceResponse
include Google::Apis::Core::Hashable
# Represents a Device known to Google Cloud, independent of the device
# ownership, type, and whether it is assigned or in use by a user.
# 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
@ -1357,11 +1412,35 @@ module Google
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.
class WipeDeviceUserResponse
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`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user

View File

@ -28,24 +28,48 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ApproveDeviceUserRequest
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 BlockDeviceUserRequest
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 CancelWipeDeviceRequest
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 CancelWipeDeviceUserRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelWipeDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -58,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CreateDeviceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomAttributeValue
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -76,12 +106,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class EndpointApp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EntityKey
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -124,12 +148,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListEndpointAppsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListGroupsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -214,12 +232,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceUserRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -236,6 +266,13 @@ module Google
end
end
class ApproveDeviceUserRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class ApproveDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -244,6 +281,13 @@ module Google
end
end
class BlockDeviceUserRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class BlockDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -252,6 +296,13 @@ module Google
end
end
class CancelWipeDeviceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class CancelWipeDeviceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -260,6 +311,13 @@ module Google
end
end
class CancelWipeDeviceUserRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class CancelWipeDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -287,6 +345,15 @@ module Google
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
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -347,18 +414,6 @@ module Google
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
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -428,15 +483,6 @@ module Google
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
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -570,6 +616,13 @@ module Google
end
end
class WipeDeviceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class WipeDeviceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -578,6 +631,13 @@ module Google
end
end
class WipeDeviceUserRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
end
end
class WipeDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -47,6 +47,681 @@ module Google
@batch_path = 'batch'
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`.
# @param [Google::Apis::CloudidentityV1beta1::Group] group_object
# @param [String] initial_group_config
@ -83,9 +758,8 @@ module Google
# Deletes a `Group`.
# @param [String] name
# Required. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the `Group` to retrieve.
# Must be of the form `groups/`group_id``.
# resource_names) of the `Group` to retrieve. Must be of the form `groups/`
# group_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -116,9 +790,8 @@ module Google
# Retrieves a `Group`.
# @param [String] name
# Required. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the `Group` to retrieve.
# Must be of the form `groups/`group_id``.
# resource_names) of the `Group` to retrieve. Must be of the form `groups/`
# group_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -148,22 +821,20 @@ module Google
# Lists the `Group`s under a customer or namespace.
# @param [Fixnum] page_size
# The maximum number of results to return.
# Note that the number of results returned may be less than this value even
# if there are more available results. To fetch all results, clients must
# continue calling this method repeatedly until the response no longer
# contains a `next_page_token`.
# If unspecified, defaults to 200 for `View.BASIC` and to 50 for `View.FULL`.
# Must not be greater than 1000 for `View.BASIC` or 500 for `View.FULL`.
# The maximum number of results to return. Note that the number of results
# returned may be less than this value even if there are more available results.
# To fetch all results, clients must continue calling this method repeatedly
# until the response no longer contains a `next_page_token`. If unspecified,
# defaults to 200 for `View.BASIC` and to 50 for `View.FULL`. Must not be
# greater than 1000 for `View.BASIC` or 500 for `View.FULL`.
# @param [String] page_token
# The `next_page_token` value returned from a previous list request, if any.
# @param [String] parent
# Required. The parent resource under which to list all `Group`s.
# Must be of the form `identitysources/`identity_source_id`` for external-
# identity-mapped groups or `customers/`customer_id`` for Google Groups.
# Required. The parent resource under which to list all `Group`s. Must be of the
# form `identitysources/`identity_source_id`` for external- identity-mapped
# groups or `customers/`customer_id`` for Google Groups.
# @param [String] view
# The level of detail to be returned.
# If unspecified, defaults to `View.BASIC`.
# The level of detail to be returned. If unspecified, defaults to `View.BASIC`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -194,23 +865,19 @@ module Google
execute_or_queue_command(command, &block)
end
# Looks up the [resource
# name](https://cloud.google.com/apis/design/resource_names) of a `Group` by
# its `EntityKey`.
# Looks up the [resource name](https://cloud.google.com/apis/design/
# resource_names) of a `Group` by its `EntityKey`.
# @param [String] group_key_id
# The ID of the entity.
# For Google-managed entities, the `id` must be the email address of an
# existing group or user.
# For external-identity-mapped entities, the `id` must be a string conforming
# to the Identity Source's requirements.
# The ID of the entity. For Google-managed entities, the `id` must be the email
# address of an existing group or user. For external-identity-mapped entities,
# the `id` must be a string conforming to the Identity Source's requirements.
# Must be unique within a `namespace`.
# @param [String] group_key_namespace
# The namespace in which the entity exists.
# If not specified, the `EntityKey` represents a Google-managed entity such
# as a Google user or a Google Group.
# If specified, the `EntityKey` represents an external-identity-mapped group.
# The namespace must correspond to an identity source created in Admin
# Console and must be in the form of `identitysources/`identity_source_id`.
# The namespace in which the entity exists. If not specified, the `EntityKey`
# represents a Google-managed entity such as a Google user or a Google Group. If
# specified, the `EntityKey` represents an external-identity-mapped group. The
# namespace must correspond to an identity source created in Admin Console and
# must be in the form of `identitysources/`identity_source_id`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -242,13 +909,11 @@ module Google
# Updates a `Group`.
# @param [String] name
# Output only. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the `Group`.
# Shall be of the form `groups/`group_id``.
# resource_names) of the `Group`. Shall be of the form `groups/`group_id``.
# @param [Google::Apis::CloudidentityV1beta1::Group] group_object
# @param [String] update_mask
# Required. The fully-qualified names of fields to update.
# May only contain the following fields: `display_name`, `description`.
# Required. The fully-qualified names of fields to update. May only contain the
# following fields: `display_name`, `description`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -281,28 +946,22 @@ module Google
# Searches for `Group`s matching a specified query.
# @param [Fixnum] page_size
# The maximum number of results to return.
# Note that the number of results returned may be less than this value even
# if there are more available results. To fetch all results, clients must
# continue calling this method repeatedly until the response no longer
# contains a `next_page_token`.
# If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for
# `GroupView.FULL`.
# Must not be greater than 1000 for `GroupView.BASIC` or 500 for
# `GroupView.FULL`.
# The maximum number of results to return. Note that the number of results
# returned may be less than this value even if there are more available results.
# To fetch all results, clients must continue calling this method repeatedly
# until the response no longer contains a `next_page_token`. If unspecified,
# defaults to 200 for `GroupView.BASIC` and to 50 for `GroupView.FULL`. Must not
# be greater than 1000 for `GroupView.BASIC` or 500 for `GroupView.FULL`.
# @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
# Required. The search query.
# Must be specified in [Common Expression
# Language](https://opensource.google/projects/cel). May only contain
# equality operators on the parent and inclusion operators on labels (e.g.,
# `parent == 'customers/`customer_id`' &&
# 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`).
# Required. The search query. Must be specified in [Common Expression Language](
# https://opensource.google/projects/cel). May only contain equality operators
# on the parent and inclusion operators on labels (e.g., `parent == 'customers/`
# customer_id`' && 'cloudidentity.googleapis.com/groups.discussion_forum' in
# labels`).
# @param [String] view
# The level of detail to be returned.
# If unspecified, defaults to `View.BASIC`.
# The level of detail to be returned. If unspecified, defaults to `View.BASIC`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -370,9 +1029,8 @@ module Google
# Deletes a `Membership`.
# @param [String] name
# Required. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the `Membership` to delete.
# Must be of the form `groups/`group_id`/memberships/`membership_id``.
# resource_names) of the `Membership` to delete. Must be of the form `groups/`
# group_id`/memberships/`membership_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -403,9 +1061,8 @@ module Google
# Retrieves a `Membership`.
# @param [String] name
# Required. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the `Membership` to retrieve.
# Must be of the form `groups/`group_id`/memberships/`membership_id``.
# resource_names) of the `Membership` to retrieve. Must be of the form `groups/`
# group_id`/memberships/`membership_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -436,24 +1093,19 @@ module Google
# Lists the `Membership`s within a `Group`.
# @param [String] parent
# Required. The parent `Group` resource under which to lookup the `Membership`
# name.
# Must be of the form `groups/`group_id``.
# name. Must be of the form `groups/`group_id``.
# @param [Fixnum] page_size
# The maximum number of results to return.
# Note that the number of results returned may be less than this value even
# if there are more available results. To fetch all results, clients must
# continue calling this method repeatedly until the response no longer
# contains a `next_page_token`.
# If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for
# `GroupView.FULL`.
# Must not be greater than 1000 for `GroupView.BASIC` or 500 for
# `GroupView.FULL`.
# The maximum number of results to return. Note that the number of results
# returned may be less than this value even if there are more available results.
# To fetch all results, clients must continue calling this method repeatedly
# until the response no longer contains a `next_page_token`. If unspecified,
# defaults to 200 for `GroupView.BASIC` and to 50 for `GroupView.FULL`. Must not
# be greater than 1000 for `GroupView.BASIC` or 500 for `GroupView.FULL`.
# @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] view
# The level of detail to be returned.
# If unspecified, defaults to `MembershipView.BASIC`.
# The level of detail to be returned. If unspecified, defaults to `
# MembershipView.BASIC`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -484,27 +1136,22 @@ module Google
execute_or_queue_command(command, &block)
end
# Looks up the [resource
# name](https://cloud.google.com/apis/design/resource_names) of a
# `Membership` by its `EntityKey`.
# Looks up the [resource name](https://cloud.google.com/apis/design/
# resource_names) of a `Membership` by its `EntityKey`.
# @param [String] parent
# Required. The parent `Group` resource under which to lookup the `Membership`
# name.
# Must be of the form `groups/`group_id``.
# name. Must be of the form `groups/`group_id``.
# @param [String] member_key_id
# The ID of the entity.
# For Google-managed entities, the `id` must be the email address of an
# existing group or user.
# For external-identity-mapped entities, the `id` must be a string conforming
# to the Identity Source's requirements.
# The ID of the entity. For Google-managed entities, the `id` must be the email
# address of an existing group or user. For external-identity-mapped entities,
# the `id` must be a string conforming to the Identity Source's requirements.
# Must be unique within a `namespace`.
# @param [String] member_key_namespace
# The namespace in which the entity exists.
# If not specified, the `EntityKey` represents a Google-managed entity such
# as a Google user or a Google Group.
# If specified, the `EntityKey` represents an external-identity-mapped group.
# The namespace must correspond to an identity source created in Admin
# Console and must be in the form of `identitysources/`identity_source_id`.
# The namespace in which the entity exists. If not specified, the `EntityKey`
# represents a Google-managed entity such as a Google user or a Google Group. If
# specified, the `EntityKey` represents an external-identity-mapped group. The
# namespace must correspond to an identity source created in Admin Console and
# must be in the form of `identitysources/`identity_source_id`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -537,9 +1184,8 @@ module Google
# Modifies the `MembershipRole`s of a `Membership`.
# @param [String] name
# Required. The [resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the `Membership` whose roles are to be modified.
# Must be of the form `groups/`group_id`/memberships/`membership_id``.
# resource_names) of the `Membership` whose roles are to be modified. Must be of
# the form `groups/`group_id`/memberships/`membership_id``.
# @param [Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesRequest] modify_membership_roles_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -20,13 +20,13 @@ module Google
module Apis
# Cloud Search API
#
# Cloud Search provides cloud-based search capabilities over G Suite data. The
# Cloud Search provides cloud-based search capabilities over G Suite data. The
# Cloud Search API allows indexing of non-G Suite data into Cloud Search.
#
# @see https://developers.google.com/cloud-search/docs/guides/
module CloudsearchV1
VERSION = 'V1'
REVISION = '20200721'
REVISION = '20200803'
# Index and serve your organization's data with Cloud Search
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

@ -22,6 +22,26 @@ module Google
module Apis
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.
class GoogleCloudDialogflowCxV3beta1ExportAgentResponse
include Google::Apis::Core::Hashable
@ -372,8 +392,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
include Google::Apis::Core::Hashable
# Whether the playback of this segment can be interrupted by the end user's
# speech and the client should then start the next Dialogflow request.
# Output only. Whether the playback of this segment can be interrupted by the
# end user's speech and the client should then start the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean]
attr_accessor :allow_playback_interruption
@ -435,8 +455,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
include Google::Apis::Core::Hashable
# Whether the playback of this message can be interrupted by the end user's
# speech and the client can then starts the next Dialogflow request.
# Output only. Whether the playback of this message can be interrupted by the
# end user's speech and the client can then starts the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean]
attr_accessor :allow_playback_interruption
@ -463,8 +483,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessageText
include Google::Apis::Core::Hashable
# Whether the playback of this message can be interrupted by the end user's
# speech and the client can then starts the next Dialogflow request.
# Output only. Whether the playback of this message can be interrupted by the
# end user's speech and the client can then starts the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean]
attr_accessor :allow_playback_interruption
@ -6807,6 +6827,26 @@ module Google
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.
class GoogleCloudDialogflowV3alpha1ExportAgentResponse
include Google::Apis::Core::Hashable

View File

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

View File

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

View File

@ -22,6 +22,26 @@ module Google
module Apis
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.
class GoogleCloudDialogflowCxV3beta1ExportAgentResponse
include Google::Apis::Core::Hashable
@ -372,8 +392,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
include Google::Apis::Core::Hashable
# Whether the playback of this segment can be interrupted by the end user's
# speech and the client should then start the next Dialogflow request.
# Output only. Whether the playback of this segment can be interrupted by the
# end user's speech and the client should then start the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean]
attr_accessor :allow_playback_interruption
@ -435,8 +455,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
include Google::Apis::Core::Hashable
# Whether the playback of this message can be interrupted by the end user's
# speech and the client can then starts the next Dialogflow request.
# Output only. Whether the playback of this message can be interrupted by the
# end user's speech and the client can then starts the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean]
attr_accessor :allow_playback_interruption
@ -463,8 +483,8 @@ module Google
class GoogleCloudDialogflowCxV3beta1ResponseMessageText
include Google::Apis::Core::Hashable
# Whether the playback of this message can be interrupted by the end user's
# speech and the client can then starts the next Dialogflow request.
# Output only. Whether the playback of this message can be interrupted by the
# end user's speech and the client can then starts the next Dialogflow request.
# Corresponds to the JSON property `allowPlaybackInterruption`
# @return [Boolean]
attr_accessor :allow_playback_interruption
@ -7131,6 +7151,26 @@ module Google
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.
class GoogleCloudDialogflowV3alpha1ExportAgentResponse
include Google::Apis::Core::Hashable

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/
module OsconfigV1beta
VERSION = 'V1beta'
REVISION = '20200731'
REVISION = '20200807'
# View and manage your data across Google Cloud Platform services
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.
# @param [String] parent
# Required. The resource name of the parent using one of the following forms:
# `projects/`project_number``.
# Required. The resource name of the parent using one of the following forms: `
# projects/`project_number``.
# @param [Google::Apis::OsconfigV1beta::GuestPolicy] guest_policy_object
# @param [String] guest_policy_id
# Required. The logical name of the guest policy in the project
# with the following restrictions:
# * Must contain only lowercase letters, numbers, and hyphens.
# * Must start with a letter.
# * Must be between 1-63 characters.
# * Must end with a number or a letter.
# * Must be unique within the project.
# Required. The logical name of the guest policy in the project with the
# following restrictions: * Must contain only lowercase letters, numbers, and
# hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must
# end with a number or a letter. * Must be unique within the project.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -93,9 +90,8 @@ module Google
# Delete an OS Config guest policy.
# @param [String] name
# Required. The resource name of the guest policy using one of the following
# forms:
# `projects/`project_number`/guestPolicies/`guest_policy_id``.
# Required. The resource name of the guest policy using one of the following
# forms: `projects/`project_number`/guestPolicies/`guest_policy_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -126,8 +122,7 @@ module Google
# Get an OS Config guest policy.
# @param [String] name
# Required. The resource name of the guest policy using one of the following
# forms:
# `projects/`project_number`/guestPolicies/`guest_policy_id``.
# forms: `projects/`project_number`/guestPolicies/`guest_policy_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -157,13 +152,13 @@ module Google
# Get a page of OS Config guest policies.
# @param [String] parent
# Required. The resource name of the parent using one of the following forms:
# `projects/`project_number``.
# Required. The resource name of the parent using one of the following forms: `
# projects/`project_number``.
# @param [Fixnum] page_size
# The maximum number of guest policies to return.
# @param [String] page_token
# A pagination token returned from a previous call to `ListGuestPolicies`
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to `ListGuestPolicies` that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -196,13 +191,10 @@ module Google
# Update an OS Config guest policy.
# @param [String] name
# Required. Unique name of the resource in this project using one of the
# following
# forms:
# `projects/`project_number`/guestPolicies/`guest_policy_id``.
# following forms: `projects/`project_number`/guestPolicies/`guest_policy_id``.
# @param [Google::Apis::OsconfigV1beta::GuestPolicy] guest_policy_object
# @param [String] update_mask
# Field mask that controls which fields of the guest policy should be
# updated.
# Field mask that controls which fields of the guest policy should be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -240,12 +232,9 @@ module Google
# @param [Google::Apis::OsconfigV1beta::PatchDeployment] patch_deployment_object
# @param [String] patch_deployment_id
# Required. A name for the patch deployment in the project. When creating a name
# the following rules apply:
# * Must contain only lowercase letters, numbers, and hyphens.
# * Must start with a letter.
# * Must be between 1-63 characters.
# * Must end with a number or a letter.
# * Must be unique within the project.
# the following rules apply: * Must contain only lowercase letters, numbers, and
# hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must
# end with a number or a letter. * Must be unique within the project.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -278,8 +267,8 @@ module Google
# Delete an OS Config patch deployment.
# @param [String] name
# Required. The resource name of the patch deployment in the form
# `projects/*/patchDeployments/*`.
# Required. The resource name of the patch deployment in the form `projects/*/
# patchDeployments/*`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -309,8 +298,8 @@ module Google
# Get an OS Config patch deployment.
# @param [String] name
# Required. The resource name of the patch deployment in the form
# `projects/*/patchDeployments/*`.
# Required. The resource name of the patch deployment in the form `projects/*/
# patchDeployments/*`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -345,8 +334,7 @@ module Google
# Optional. The maximum number of patch deployments to return. Default is 100.
# @param [String] page_token
# Optional. A pagination token returned from a previous call to
# ListPatchDeployments
# that indicates where this listing should continue from.
# ListPatchDeployments that indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -376,8 +364,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Cancel a patch job. The patch job must be active. Canceled patch jobs
# cannot be restarted.
# Cancel a patch job. The patch job must be active. Canceled patch jobs cannot
# be restarted.
# @param [String] name
# Required. Name of the patch in the form `projects/*/patchJobs/*`
# @param [Google::Apis::OsconfigV1beta::CancelPatchJobRequest] cancel_patch_job_request_object
@ -443,8 +431,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Get the patch job. This can be used to track the progress of an
# ongoing patch job or review the details of completed jobs.
# Get the patch job. This can be used to track the progress of an ongoing patch
# job or review the details of completed jobs.
# @param [String] name
# Required. Name of the patch in the form `projects/*/patchJobs/*`
# @param [String] fields
@ -478,14 +466,14 @@ module Google
# @param [String] parent
# Required. In the form of `projects/*`
# @param [String] filter
# If provided, this field specifies the criteria that must be met by patch
# jobs to be included in the response.
# Currently, filtering is only available on the patch_deployment field.
# If provided, this field specifies the criteria that must be met by patch jobs
# to be included in the response. Currently, filtering is only available on the
# patch_deployment field.
# @param [Fixnum] page_size
# The maximum number of instance status to return.
# @param [String] page_token
# A pagination token returned from a previous call
# that indicates where this listing should continue from.
# A pagination token returned from a previous call that indicates where this
# listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -521,14 +509,13 @@ module Google
# Required. The parent for the instances are in the form of `projects/*/
# patchJobs/*`.
# @param [String] filter
# A filter expression that filters results listed in the response. This
# field supports filtering results by instance zone, name, state, or
# `failure_reason`.
# A filter expression that filters results listed in the response. This field
# supports filtering results by instance zone, name, state, or `failure_reason`.
# @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
# A pagination token returned from a previous call
# that indicates where this listing should continue from.
# A pagination token returned from a previous call that indicates where this
# listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -559,8 +546,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Lookup the effective guest policy that applies to a VM instance. This
# lookup merges all policies that are assigned to the instance ancestry.
# Lookup the effective guest policy that applies to a VM instance. This lookup
# merges all policies that are assigned to the instance ancestry.
# @param [String] instance
# Required. The VM instance whose policies are being looked up.
# @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/
module RemotebuildexecutionV1
VERSION = 'V1'
REVISION = '20200721'
REVISION = '20200810'
# View and manage your data across Google Cloud Platform services
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
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 Representation < Google::Apis::Core::JsonRepresentation; end
@ -766,6 +778,37 @@ module Google
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
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -783,6 +826,8 @@ module Google
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
# @private
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 :logging_enabled, as: 'loggingEnabled'
property :name, as: 'name'

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1alpha
VERSION = 'V1alpha'
REVISION = '20200721'
REVISION = '20200810'
# View and manage your data across Google Cloud Platform services
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
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 Representation < Google::Apis::Core::JsonRepresentation; end
@ -735,6 +747,37 @@ module Google
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
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -752,6 +795,8 @@ module Google
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
# @private
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 :logging_enabled, as: 'loggingEnabled'
property :name, as: 'name'

View File

@ -47,13 +47,13 @@ module Google
@batch_path = 'batch'
end
# Creates a new instance in the specified region.
# Returns a long running operation which contains an instance on completion.
# While the long running operation is in progress, any call to `GetInstance`
# returns an instance in state `CREATING`.
# Creates a new instance in the specified region. Returns a long running
# operation which contains an instance on completion. While the long running
# operation is in progress, any call to `GetInstance` returns an instance in
# state `CREATING`.
# @param [String] parent
# Resource name of the project containing the instance.
# Format: `projects/[PROJECT_ID]`.
# Resource name of the project containing the instance. Format: `projects/[
# PROJECT_ID]`.
# @param [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest] google_devtools_remotebuildexecution_admin_v1alpha_create_instance_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -84,14 +84,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified instance.
# Returns a long running operation which contains a `google.protobuf.Empty`
# response on completion.
# Deleting an instance with worker pools in it will delete these worker
# pools.
# Deletes the specified instance. Returns a long running operation which
# contains a `google.protobuf.Empty` response on completion. Deleting an
# instance with worker pools in it will delete these worker pools.
# @param [String] name
# Name of the instance to delete.
# Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
# Name of the instance to delete. Format: `projects/[PROJECT_ID]/instances/[
# INSTANCE_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -121,8 +119,8 @@ module Google
# Returns the specified instance.
# @param [String] name
# Name of the instance to retrieve.
# Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
# Name of the instance to retrieve. Format: `projects/[PROJECT_ID]/instances/[
# INSTANCE_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -152,8 +150,7 @@ module Google
# Lists instances in a project.
# @param [String] parent
# Resource name of the project.
# Format: `projects/[PROJECT_ID]`.
# Resource name of the project. Format: `projects/[PROJECT_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -181,13 +178,65 @@ module Google
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`.
# Updates the specified instance. Returns a long running operation which
# contains the updated instance in the response on completion.
# @param [String] name
# 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
# Resource name of the instance in which to create the new worker pool.
# Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
# Resource name of the instance in which to create the new worker pool. Format: `
# projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
# @param [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest] google_devtools_remotebuildexecution_admin_v1alpha_create_worker_pool_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -218,15 +267,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified worker pool.
# Returns a long running operation, which contains a `google.protobuf.Empty`
# response on completion.
# While the long running operation is in progress, any call to
# `GetWorkerPool` returns a worker pool in state `DELETING`.
# Deletes the specified worker pool. Returns a long running operation, which
# contains a `google.protobuf.Empty` response on completion. While the long
# running operation is in progress, any call to `GetWorkerPool` returns a worker
# pool in state `DELETING`.
# @param [String] name
# Name of the worker pool to delete.
# Format:
# `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
# Name of the worker pool to delete. Format: `projects/[PROJECT_ID]/instances/[
# INSTANCE_ID]/workerpools/[POOL_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -256,9 +303,8 @@ module Google
# Returns the specified worker pool.
# @param [String] name
# Name of the worker pool to retrieve.
# Format:
# `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
# Name of the worker pool to retrieve. Format: `projects/[PROJECT_ID]/instances/[
# INSTANCE_ID]/workerpools/[POOL_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -288,28 +334,22 @@ module Google
# Lists worker pools in an instance.
# @param [String] parent
# Resource name of the instance.
# Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
# Resource name of the instance. Format: `projects/[PROJECT_ID]/instances/[
# INSTANCE_ID]`.
# @param [String] filter
# Optional. A filter expression that filters resources listed in
# the response. The expression must specify the field name, a comparison
# operator, and the value that you want to use for filtering. The value
# must be a string, a number, or a boolean. String values are
# case-insensitive.
# The comparison operator must be either `:`, `=`, `!=`, `>`, `>=`, `<=` or
# `<`.
# The `:` operator can be used with string fields to match substrings.
# For non-string fields it is equivalent to the `=` operator.
# The `:*` comparison can be used to test whether a key has been defined.
# You can also filter on nested fields.
# To filter on multiple expressions, you can separate expression using
# `AND` and `OR` operators, using parentheses to specify precedence. If
# 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:
# Optional. A filter expression that filters resources listed in the response.
# The expression must specify the field name, a comparison operator, and the
# value that you want to use for filtering. The value must be a string, a number,
# or a boolean. String values are case-insensitive. The comparison operator
# must be either `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. The `:` operator can be
# used with string fields to match substrings. For non-string fields it is
# equivalent to the `=` operator. The `:*` comparison can be used to test
# whether a key has been defined. You can also filter on nested fields. To
# filter on multiple expressions, you can separate expression using `AND` and `
# OR` operators, using parentheses to specify precedence. If 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`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -340,14 +380,13 @@ module Google
end
# Updates an existing worker pool with a specified size and/or 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 `UPDATING`.
# 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 `UPDATING`.
# @param [String] name
# WorkerPool resource name formatted as:
# `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
# name should not be populated when creating a worker pool since it is
# provided in the `poolId` field.
# WorkerPool resource name formatted as: `projects/[PROJECT_ID]/instances/[
# INSTANCE_ID]/workerpools/[POOL_ID]`. name should not be populated when
# creating a worker pool since it is provided in the `poolId` field.
# @param [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest] google_devtools_remotebuildexecution_admin_v1alpha_update_worker_pool_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -378,9 +417,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV2
VERSION = 'V2'
REVISION = '20200721'
REVISION = '20200810'
# View and manage your data across Google Cloud Platform services
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
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 Representation < Google::Apis::Core::JsonRepresentation; end
@ -1054,6 +1066,37 @@ module Google
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
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1071,6 +1114,8 @@ module Google
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
# @private
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 :logging_enabled, as: 'loggingEnabled'
property :name, as: 'name'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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