Autogenerated update (2020-07-03)

Update:
- container_v1
- container_v1beta1
- dns_v1beta2
- drive_v2
- drive_v3
- sasportal_v1alpha1
- spanner_v1
This commit is contained in:
Google APIs 2020-07-03 00:37:50 +00:00
parent 206045285c
commit 934f2a0d0c
22 changed files with 1553 additions and 380 deletions

View File

@ -48876,6 +48876,7 @@
"/container:v1/Cluster/nodePools": node_pools "/container:v1/Cluster/nodePools": node_pools
"/container:v1/Cluster/nodePools/node_pool": node_pool "/container:v1/Cluster/nodePools/node_pool": node_pool
"/container:v1/Cluster/privateClusterConfig": private_cluster_config "/container:v1/Cluster/privateClusterConfig": private_cluster_config
"/container:v1/Cluster/releaseChannel": release_channel
"/container:v1/Cluster/resourceLabels": resource_labels "/container:v1/Cluster/resourceLabels": resource_labels
"/container:v1/Cluster/resourceLabels/resource_label": resource_label "/container:v1/Cluster/resourceLabels/resource_label": resource_label
"/container:v1/Cluster/resourceUsageExportConfig": resource_usage_export_config "/container:v1/Cluster/resourceUsageExportConfig": resource_usage_export_config
@ -48912,6 +48913,7 @@
"/container:v1/ClusterUpdate/desiredNodePoolAutoscaling": desired_node_pool_autoscaling "/container:v1/ClusterUpdate/desiredNodePoolAutoscaling": desired_node_pool_autoscaling
"/container:v1/ClusterUpdate/desiredNodePoolId": desired_node_pool_id "/container:v1/ClusterUpdate/desiredNodePoolId": desired_node_pool_id
"/container:v1/ClusterUpdate/desiredNodeVersion": desired_node_version "/container:v1/ClusterUpdate/desiredNodeVersion": desired_node_version
"/container:v1/ClusterUpdate/desiredReleaseChannel": desired_release_channel
"/container:v1/ClusterUpdate/desiredResourceUsageExportConfig": desired_resource_usage_export_config "/container:v1/ClusterUpdate/desiredResourceUsageExportConfig": desired_resource_usage_export_config
"/container:v1/ClusterUpdate/desiredShieldedNodes": desired_shielded_nodes "/container:v1/ClusterUpdate/desiredShieldedNodes": desired_shielded_nodes
"/container:v1/ClusterUpdate/desiredVerticalPodAutoscaling": desired_vertical_pod_autoscaling "/container:v1/ClusterUpdate/desiredVerticalPodAutoscaling": desired_vertical_pod_autoscaling
@ -49053,6 +49055,7 @@
"/container:v1/NodeConfig": node_config "/container:v1/NodeConfig": node_config
"/container:v1/NodeConfig/accelerators": accelerators "/container:v1/NodeConfig/accelerators": accelerators
"/container:v1/NodeConfig/accelerators/accelerator": accelerator "/container:v1/NodeConfig/accelerators/accelerator": accelerator
"/container:v1/NodeConfig/bootDiskKmsKey": boot_disk_kms_key
"/container:v1/NodeConfig/diskSizeGb": disk_size_gb "/container:v1/NodeConfig/diskSizeGb": disk_size_gb
"/container:v1/NodeConfig/diskType": disk_type "/container:v1/NodeConfig/diskType": disk_type
"/container:v1/NodeConfig/imageType": image_type "/container:v1/NodeConfig/imageType": image_type
@ -49141,6 +49144,13 @@
"/container:v1/RecurringTimeWindow": recurring_time_window "/container:v1/RecurringTimeWindow": recurring_time_window
"/container:v1/RecurringTimeWindow/recurrence": recurrence "/container:v1/RecurringTimeWindow/recurrence": recurrence
"/container:v1/RecurringTimeWindow/window": window "/container:v1/RecurringTimeWindow/window": window
"/container:v1/ReleaseChannel": release_channel
"/container:v1/ReleaseChannel/channel": channel
"/container:v1/ReleaseChannelConfig": release_channel_config
"/container:v1/ReleaseChannelConfig/channel": channel
"/container:v1/ReleaseChannelConfig/defaultVersion": default_version
"/container:v1/ReleaseChannelConfig/validVersions": valid_versions
"/container:v1/ReleaseChannelConfig/validVersions/valid_version": valid_version
"/container:v1/ReservationAffinity": reservation_affinity "/container:v1/ReservationAffinity": reservation_affinity
"/container:v1/ReservationAffinity/consumeReservationType": consume_reservation_type "/container:v1/ReservationAffinity/consumeReservationType": consume_reservation_type
"/container:v1/ReservationAffinity/key": key "/container:v1/ReservationAffinity/key": key
@ -49163,6 +49173,8 @@
"/container:v1/SandboxConfig": sandbox_config "/container:v1/SandboxConfig": sandbox_config
"/container:v1/SandboxConfig/type": type "/container:v1/SandboxConfig/type": type
"/container:v1/ServerConfig": server_config "/container:v1/ServerConfig": server_config
"/container:v1/ServerConfig/channels": channels
"/container:v1/ServerConfig/channels/channel": channel
"/container:v1/ServerConfig/defaultClusterVersion": default_cluster_version "/container:v1/ServerConfig/defaultClusterVersion": default_cluster_version
"/container:v1/ServerConfig/defaultImageType": default_image_type "/container:v1/ServerConfig/defaultImageType": default_image_type
"/container:v1/ServerConfig/validImageTypes": valid_image_types "/container:v1/ServerConfig/validImageTypes": valid_image_types
@ -49803,6 +49815,9 @@
"/container:v1beta1/KubernetesDashboard/disabled": disabled "/container:v1beta1/KubernetesDashboard/disabled": disabled
"/container:v1beta1/LegacyAbac": legacy_abac "/container:v1beta1/LegacyAbac": legacy_abac
"/container:v1beta1/LegacyAbac/enabled": enabled "/container:v1beta1/LegacyAbac/enabled": enabled
"/container:v1beta1/LinuxNodeConfig": linux_node_config
"/container:v1beta1/LinuxNodeConfig/sysctls": sysctls
"/container:v1beta1/LinuxNodeConfig/sysctls/sysctl": sysctl
"/container:v1beta1/ListClustersResponse": list_clusters_response "/container:v1beta1/ListClustersResponse": list_clusters_response
"/container:v1beta1/ListClustersResponse/clusters": clusters "/container:v1beta1/ListClustersResponse/clusters": clusters
"/container:v1beta1/ListClustersResponse/clusters/cluster": cluster "/container:v1beta1/ListClustersResponse/clusters/cluster": cluster
@ -49872,8 +49887,10 @@
"/container:v1beta1/NodeConfig/diskSizeGb": disk_size_gb "/container:v1beta1/NodeConfig/diskSizeGb": disk_size_gb
"/container:v1beta1/NodeConfig/diskType": disk_type "/container:v1beta1/NodeConfig/diskType": disk_type
"/container:v1beta1/NodeConfig/imageType": image_type "/container:v1beta1/NodeConfig/imageType": image_type
"/container:v1beta1/NodeConfig/kubeletConfig": kubelet_config
"/container:v1beta1/NodeConfig/labels": labels "/container:v1beta1/NodeConfig/labels": labels
"/container:v1beta1/NodeConfig/labels/label": label "/container:v1beta1/NodeConfig/labels/label": label
"/container:v1beta1/NodeConfig/linuxNodeConfig": linux_node_config
"/container:v1beta1/NodeConfig/localSsdCount": local_ssd_count "/container:v1beta1/NodeConfig/localSsdCount": local_ssd_count
"/container:v1beta1/NodeConfig/machineType": machine_type "/container:v1beta1/NodeConfig/machineType": machine_type
"/container:v1beta1/NodeConfig/metadata": metadata "/container:v1beta1/NodeConfig/metadata": metadata
@ -49891,6 +49908,10 @@
"/container:v1beta1/NodeConfig/taints": taints "/container:v1beta1/NodeConfig/taints": taints
"/container:v1beta1/NodeConfig/taints/taint": taint_prop "/container:v1beta1/NodeConfig/taints/taint": taint_prop
"/container:v1beta1/NodeConfig/workloadMetadataConfig": workload_metadata_config "/container:v1beta1/NodeConfig/workloadMetadataConfig": workload_metadata_config
"/container:v1beta1/NodeKubeletConfig": node_kubelet_config
"/container:v1beta1/NodeKubeletConfig/cpuCfsQuota": cpu_cfs_quota
"/container:v1beta1/NodeKubeletConfig/cpuCfsQuotaPeriod": cpu_cfs_quota_period
"/container:v1beta1/NodeKubeletConfig/cpuManagerPolicy": cpu_manager_policy
"/container:v1beta1/NodeManagement": node_management "/container:v1beta1/NodeManagement": node_management
"/container:v1beta1/NodeManagement/autoRepair": auto_repair "/container:v1beta1/NodeManagement/autoRepair": auto_repair
"/container:v1beta1/NodeManagement/autoUpgrade": auto_upgrade "/container:v1beta1/NodeManagement/autoUpgrade": auto_upgrade
@ -49969,6 +49990,8 @@
"/container:v1beta1/ReleaseChannelConfig/availableVersions/available_version": available_version "/container:v1beta1/ReleaseChannelConfig/availableVersions/available_version": available_version
"/container:v1beta1/ReleaseChannelConfig/channel": channel "/container:v1beta1/ReleaseChannelConfig/channel": channel
"/container:v1beta1/ReleaseChannelConfig/defaultVersion": default_version "/container:v1beta1/ReleaseChannelConfig/defaultVersion": default_version
"/container:v1beta1/ReleaseChannelConfig/validVersions": valid_versions
"/container:v1beta1/ReleaseChannelConfig/validVersions/valid_version": valid_version
"/container:v1beta1/ReservationAffinity": reservation_affinity "/container:v1beta1/ReservationAffinity": reservation_affinity
"/container:v1beta1/ReservationAffinity/consumeReservationType": consume_reservation_type "/container:v1beta1/ReservationAffinity/consumeReservationType": consume_reservation_type
"/container:v1beta1/ReservationAffinity/key": key "/container:v1beta1/ReservationAffinity/key": key
@ -50117,6 +50140,8 @@
"/container:v1beta1/UpdateNodePoolRequest": update_node_pool_request "/container:v1beta1/UpdateNodePoolRequest": update_node_pool_request
"/container:v1beta1/UpdateNodePoolRequest/clusterId": cluster_id "/container:v1beta1/UpdateNodePoolRequest/clusterId": cluster_id
"/container:v1beta1/UpdateNodePoolRequest/imageType": image_type "/container:v1beta1/UpdateNodePoolRequest/imageType": image_type
"/container:v1beta1/UpdateNodePoolRequest/kubeletConfig": kubelet_config
"/container:v1beta1/UpdateNodePoolRequest/linuxNodeConfig": linux_node_config
"/container:v1beta1/UpdateNodePoolRequest/locations": locations "/container:v1beta1/UpdateNodePoolRequest/locations": locations
"/container:v1beta1/UpdateNodePoolRequest/locations/location": location "/container:v1beta1/UpdateNodePoolRequest/locations/location": location
"/container:v1beta1/UpdateNodePoolRequest/name": name "/container:v1beta1/UpdateNodePoolRequest/name": name
@ -89714,6 +89739,7 @@
"/drive:v2/File/canReadRevisions": can_read_revisions "/drive:v2/File/canReadRevisions": can_read_revisions
"/drive:v2/File/capabilities": capabilities "/drive:v2/File/capabilities": capabilities
"/drive:v2/File/capabilities/canAddChildren": can_add_children "/drive:v2/File/capabilities/canAddChildren": can_add_children
"/drive:v2/File/capabilities/canAddFolderFromAnotherDrive": can_add_folder_from_another_drive
"/drive:v2/File/capabilities/canAddMyDriveParent": can_add_my_drive_parent "/drive:v2/File/capabilities/canAddMyDriveParent": can_add_my_drive_parent
"/drive:v2/File/capabilities/canChangeCopyRequiresWriterPermission": can_change_copy_requires_writer_permission "/drive:v2/File/capabilities/canChangeCopyRequiresWriterPermission": can_change_copy_requires_writer_permission
"/drive:v2/File/capabilities/canChangeRestrictedDownload": can_change_restricted_download "/drive:v2/File/capabilities/canChangeRestrictedDownload": can_change_restricted_download
@ -90521,6 +90547,7 @@
"/drive:v3/File/appProperties/app_property": app_property "/drive:v3/File/appProperties/app_property": app_property
"/drive:v3/File/capabilities": capabilities "/drive:v3/File/capabilities": capabilities
"/drive:v3/File/capabilities/canAddChildren": can_add_children "/drive:v3/File/capabilities/canAddChildren": can_add_children
"/drive:v3/File/capabilities/canAddFolderFromAnotherDrive": can_add_folder_from_another_drive
"/drive:v3/File/capabilities/canAddMyDriveParent": can_add_my_drive_parent "/drive:v3/File/capabilities/canAddMyDriveParent": can_add_my_drive_parent
"/drive:v3/File/capabilities/canChangeCopyRequiresWriterPermission": can_change_copy_requires_writer_permission "/drive:v3/File/capabilities/canChangeCopyRequiresWriterPermission": can_change_copy_requires_writer_permission
"/drive:v3/File/capabilities/canChangeViewersCanCopyContent": can_change_viewers_can_copy_content "/drive:v3/File/capabilities/canChangeViewersCanCopyContent": can_change_viewers_can_copy_content
@ -117377,6 +117404,14 @@
"/sasportal:v1alpha1/SasPortalCustomer/name": name "/sasportal:v1alpha1/SasPortalCustomer/name": name
"/sasportal:v1alpha1/SasPortalCustomer/sasUserIds": sas_user_ids "/sasportal:v1alpha1/SasPortalCustomer/sasUserIds": sas_user_ids
"/sasportal:v1alpha1/SasPortalCustomer/sasUserIds/sas_user_id": sas_user_id "/sasportal:v1alpha1/SasPortalCustomer/sasUserIds/sas_user_id": sas_user_id
"/sasportal:v1alpha1/SasPortalDeployment": sas_portal_deployment
"/sasportal:v1alpha1/SasPortalDeployment/allowedBillingModes": allowed_billing_modes
"/sasportal:v1alpha1/SasPortalDeployment/allowedBillingModes/allowed_billing_mode": allowed_billing_mode
"/sasportal:v1alpha1/SasPortalDeployment/defaultBillingMode": default_billing_mode
"/sasportal:v1alpha1/SasPortalDeployment/displayName": display_name
"/sasportal:v1alpha1/SasPortalDeployment/name": name
"/sasportal:v1alpha1/SasPortalDeployment/sasUserIds": sas_user_ids
"/sasportal:v1alpha1/SasPortalDeployment/sasUserIds/sas_user_id": sas_user_id
"/sasportal:v1alpha1/SasPortalDevice": sas_portal_device "/sasportal:v1alpha1/SasPortalDevice": sas_portal_device
"/sasportal:v1alpha1/SasPortalDevice/activeConfig": active_config "/sasportal:v1alpha1/SasPortalDevice/activeConfig": active_config
"/sasportal:v1alpha1/SasPortalDevice/deviceMetadata": device_metadata "/sasportal:v1alpha1/SasPortalDevice/deviceMetadata": device_metadata
@ -117451,6 +117486,10 @@
"/sasportal:v1alpha1/SasPortalListCustomersResponse/customers": customers "/sasportal:v1alpha1/SasPortalListCustomersResponse/customers": customers
"/sasportal:v1alpha1/SasPortalListCustomersResponse/customers/customer": customer "/sasportal:v1alpha1/SasPortalListCustomersResponse/customers/customer": customer
"/sasportal:v1alpha1/SasPortalListCustomersResponse/nextPageToken": next_page_token "/sasportal:v1alpha1/SasPortalListCustomersResponse/nextPageToken": next_page_token
"/sasportal:v1alpha1/SasPortalListDeploymentsResponse": sas_portal_list_deployments_response
"/sasportal:v1alpha1/SasPortalListDeploymentsResponse/deployments": deployments
"/sasportal:v1alpha1/SasPortalListDeploymentsResponse/deployments/deployment": deployment
"/sasportal:v1alpha1/SasPortalListDeploymentsResponse/nextPageToken": next_page_token
"/sasportal:v1alpha1/SasPortalListDevicesResponse": sas_portal_list_devices_response "/sasportal:v1alpha1/SasPortalListDevicesResponse": sas_portal_list_devices_response
"/sasportal:v1alpha1/SasPortalListDevicesResponse/devices": devices "/sasportal:v1alpha1/SasPortalListDevicesResponse/devices": devices
"/sasportal:v1alpha1/SasPortalListDevicesResponse/devices/device": device "/sasportal:v1alpha1/SasPortalListDevicesResponse/devices/device": device
@ -117509,6 +117548,19 @@
"/sasportal:v1alpha1/fields": fields "/sasportal:v1alpha1/fields": fields
"/sasportal:v1alpha1/key": key "/sasportal:v1alpha1/key": key
"/sasportal:v1alpha1/quotaUser": quota_user "/sasportal:v1alpha1/quotaUser": quota_user
"/sasportal:v1alpha1/sasportal.customers.deployments.create": create_customer_deployment
"/sasportal:v1alpha1/sasportal.customers.deployments.create/parent": parent
"/sasportal:v1alpha1/sasportal.customers.deployments.delete": delete_customer_deployment
"/sasportal:v1alpha1/sasportal.customers.deployments.delete/name": name
"/sasportal:v1alpha1/sasportal.customers.deployments.get": get_customer_deployment
"/sasportal:v1alpha1/sasportal.customers.deployments.get/name": name
"/sasportal:v1alpha1/sasportal.customers.deployments.list": list_customer_deployments
"/sasportal:v1alpha1/sasportal.customers.deployments.list/pageSize": page_size
"/sasportal:v1alpha1/sasportal.customers.deployments.list/pageToken": page_token
"/sasportal:v1alpha1/sasportal.customers.deployments.list/parent": parent
"/sasportal:v1alpha1/sasportal.customers.deployments.patch": patch_customer_deployment
"/sasportal:v1alpha1/sasportal.customers.deployments.patch/name": name
"/sasportal:v1alpha1/sasportal.customers.deployments.patch/updateMask": update_mask
"/sasportal:v1alpha1/sasportal.customers.devices.bulk": bulk_customer_device "/sasportal:v1alpha1/sasportal.customers.devices.bulk": bulk_customer_device
"/sasportal:v1alpha1/sasportal.customers.devices.bulk/parent": parent "/sasportal:v1alpha1/sasportal.customers.devices.bulk/parent": parent
"/sasportal:v1alpha1/sasportal.customers.devices.create": create_customer_device "/sasportal:v1alpha1/sasportal.customers.devices.create": create_customer_device
@ -117542,6 +117594,12 @@
"/sasportal:v1alpha1/sasportal.customers.nodes.create/parent": parent "/sasportal:v1alpha1/sasportal.customers.nodes.create/parent": parent
"/sasportal:v1alpha1/sasportal.customers.nodes.delete": delete_customer_node "/sasportal:v1alpha1/sasportal.customers.nodes.delete": delete_customer_node
"/sasportal:v1alpha1/sasportal.customers.nodes.delete/name": name "/sasportal:v1alpha1/sasportal.customers.nodes.delete/name": name
"/sasportal:v1alpha1/sasportal.customers.nodes.deployments.create": create_customer_node_deployment
"/sasportal:v1alpha1/sasportal.customers.nodes.deployments.create/parent": parent
"/sasportal:v1alpha1/sasportal.customers.nodes.deployments.list": list_customer_node_deployments
"/sasportal:v1alpha1/sasportal.customers.nodes.deployments.list/pageSize": page_size
"/sasportal:v1alpha1/sasportal.customers.nodes.deployments.list/pageToken": page_token
"/sasportal:v1alpha1/sasportal.customers.nodes.deployments.list/parent": parent
"/sasportal:v1alpha1/sasportal.customers.nodes.get": get_customer_node "/sasportal:v1alpha1/sasportal.customers.nodes.get": get_customer_node
"/sasportal:v1alpha1/sasportal.customers.nodes.get/name": name "/sasportal:v1alpha1/sasportal.customers.nodes.get/name": name
"/sasportal:v1alpha1/sasportal.customers.nodes.list": list_customer_nodes "/sasportal:v1alpha1/sasportal.customers.nodes.list": list_customer_nodes
@ -117562,8 +117620,21 @@
"/sasportal:v1alpha1/sasportal.customers.patch": patch_customer "/sasportal:v1alpha1/sasportal.customers.patch": patch_customer
"/sasportal:v1alpha1/sasportal.customers.patch/name": name "/sasportal:v1alpha1/sasportal.customers.patch/name": name
"/sasportal:v1alpha1/sasportal.customers.patch/updateMask": update_mask "/sasportal:v1alpha1/sasportal.customers.patch/updateMask": update_mask
"/sasportal:v1alpha1/sasportal.deployments.get": get_deployment
"/sasportal:v1alpha1/sasportal.deployments.get/name": name
"/sasportal:v1alpha1/sasportal.installer.generateSecret": generate_installer_secret "/sasportal:v1alpha1/sasportal.installer.generateSecret": generate_installer_secret
"/sasportal:v1alpha1/sasportal.installer.validate": validate_installer "/sasportal:v1alpha1/sasportal.installer.validate": validate_installer
"/sasportal:v1alpha1/sasportal.nodes.deployments.delete": delete_node_deployment
"/sasportal:v1alpha1/sasportal.nodes.deployments.delete/name": name
"/sasportal:v1alpha1/sasportal.nodes.deployments.get": get_node_deployment
"/sasportal:v1alpha1/sasportal.nodes.deployments.get/name": name
"/sasportal:v1alpha1/sasportal.nodes.deployments.list": list_node_deployments
"/sasportal:v1alpha1/sasportal.nodes.deployments.list/pageSize": page_size
"/sasportal:v1alpha1/sasportal.nodes.deployments.list/pageToken": page_token
"/sasportal:v1alpha1/sasportal.nodes.deployments.list/parent": parent
"/sasportal:v1alpha1/sasportal.nodes.deployments.patch": patch_node_deployment
"/sasportal:v1alpha1/sasportal.nodes.deployments.patch/name": name
"/sasportal:v1alpha1/sasportal.nodes.deployments.patch/updateMask": update_mask
"/sasportal:v1alpha1/sasportal.nodes.devices.bulk": bulk_node_device "/sasportal:v1alpha1/sasportal.nodes.devices.bulk": bulk_node_device
"/sasportal:v1alpha1/sasportal.nodes.devices.bulk/parent": parent "/sasportal:v1alpha1/sasportal.nodes.devices.bulk/parent": parent
"/sasportal:v1alpha1/sasportal.nodes.devices.create": create_node_device "/sasportal:v1alpha1/sasportal.nodes.devices.create": create_node_device
@ -117594,6 +117665,12 @@
"/sasportal:v1alpha1/sasportal.nodes.nodes.create/parent": parent "/sasportal:v1alpha1/sasportal.nodes.nodes.create/parent": parent
"/sasportal:v1alpha1/sasportal.nodes.nodes.delete": delete_node_node "/sasportal:v1alpha1/sasportal.nodes.nodes.delete": delete_node_node
"/sasportal:v1alpha1/sasportal.nodes.nodes.delete/name": name "/sasportal:v1alpha1/sasportal.nodes.nodes.delete/name": name
"/sasportal:v1alpha1/sasportal.nodes.nodes.deployments.create": create_node_node_deployment
"/sasportal:v1alpha1/sasportal.nodes.nodes.deployments.create/parent": parent
"/sasportal:v1alpha1/sasportal.nodes.nodes.deployments.list": list_node_node_deployments
"/sasportal:v1alpha1/sasportal.nodes.nodes.deployments.list/pageSize": page_size
"/sasportal:v1alpha1/sasportal.nodes.nodes.deployments.list/pageToken": page_token
"/sasportal:v1alpha1/sasportal.nodes.nodes.deployments.list/parent": parent
"/sasportal:v1alpha1/sasportal.nodes.nodes.devices.bulk": bulk_node_node_device "/sasportal:v1alpha1/sasportal.nodes.nodes.devices.bulk": bulk_node_node_device
"/sasportal:v1alpha1/sasportal.nodes.nodes.devices.bulk/parent": parent "/sasportal:v1alpha1/sasportal.nodes.nodes.devices.bulk/parent": parent
"/sasportal:v1alpha1/sasportal.nodes.nodes.devices.create": create_node_node_device "/sasportal:v1alpha1/sasportal.nodes.nodes.devices.create": create_node_node_device

View File

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

View File

@ -496,7 +496,7 @@ module Google
attr_accessor :initial_cluster_version attr_accessor :initial_cluster_version
# The number of nodes to create in this cluster. You must ensure that your # The number of nodes to create in this cluster. You must ensure that your
# Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
# is sufficient for this number of instances. You must also have available # is sufficient for this number of instances. You must also have available
# firewall and routes quota. # firewall and routes quota.
# For requests, this field should only be used in lieu of a # For requests, this field should only be used in lieu of a
@ -648,6 +648,15 @@ module Google
# @return [Google::Apis::ContainerV1::PrivateClusterConfig] # @return [Google::Apis::ContainerV1::PrivateClusterConfig]
attr_accessor :private_cluster_config attr_accessor :private_cluster_config
# ReleaseChannel indicates which release channel a cluster is
# subscribed to. Release channels are arranged in order of risk.
# When a cluster is subscribed to a release channel, Google maintains
# both the master version and the node version. Node auto-upgrade
# defaults to true and cannot be disabled.
# Corresponds to the JSON property `releaseChannel`
# @return [Google::Apis::ContainerV1::ReleaseChannel]
attr_accessor :release_channel
# The resource labels for the cluster to use to annotate any related # The resource labels for the cluster to use to annotate any related
# Google Compute Engine resources. # Google Compute Engine resources.
# Corresponds to the JSON property `resourceLabels` # Corresponds to the JSON property `resourceLabels`
@ -767,6 +776,7 @@ module Google
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size) @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
@node_pools = args[:node_pools] if args.key?(:node_pools) @node_pools = args[:node_pools] if args.key?(:node_pools)
@private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config) @private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config)
@release_channel = args[:release_channel] if args.key?(:release_channel)
@resource_labels = args[:resource_labels] if args.key?(:resource_labels) @resource_labels = args[:resource_labels] if args.key?(:resource_labels)
@resource_usage_export_config = args[:resource_usage_export_config] if args.key?(:resource_usage_export_config) @resource_usage_export_config = args[:resource_usage_export_config] if args.key?(:resource_usage_export_config)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@ -952,6 +962,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :desired_node_version attr_accessor :desired_node_version
# ReleaseChannel indicates which release channel a cluster is
# subscribed to. Release channels are arranged in order of risk.
# When a cluster is subscribed to a release channel, Google maintains
# both the master version and the node version. Node auto-upgrade
# defaults to true and cannot be disabled.
# Corresponds to the JSON property `desiredReleaseChannel`
# @return [Google::Apis::ContainerV1::ReleaseChannel]
attr_accessor :desired_release_channel
# Configuration for exporting cluster resource usages. # Configuration for exporting cluster resource usages.
# Corresponds to the JSON property `desiredResourceUsageExportConfig` # Corresponds to the JSON property `desiredResourceUsageExportConfig`
# @return [Google::Apis::ContainerV1::ResourceUsageExportConfig] # @return [Google::Apis::ContainerV1::ResourceUsageExportConfig]
@ -995,6 +1014,7 @@ module Google
@desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling) @desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling)
@desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id) @desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id)
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version) @desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
@desired_release_channel = args[:desired_release_channel] if args.key?(:desired_release_channel)
@desired_resource_usage_export_config = args[:desired_resource_usage_export_config] if args.key?(:desired_resource_usage_export_config) @desired_resource_usage_export_config = args[:desired_resource_usage_export_config] if args.key?(:desired_resource_usage_export_config)
@desired_shielded_nodes = args[:desired_shielded_nodes] if args.key?(:desired_shielded_nodes) @desired_shielded_nodes = args[:desired_shielded_nodes] if args.key?(:desired_shielded_nodes)
@desired_vertical_pod_autoscaling = args[:desired_vertical_pod_autoscaling] if args.key?(:desired_vertical_pod_autoscaling) @desired_vertical_pod_autoscaling = args[:desired_vertical_pod_autoscaling] if args.key?(:desired_vertical_pod_autoscaling)
@ -2105,6 +2125,17 @@ module Google
# @return [Array<Google::Apis::ContainerV1::AcceleratorConfig>] # @return [Array<Google::Apis::ContainerV1::AcceleratorConfig>]
attr_accessor :accelerators attr_accessor :accelerators
# The Customer Managed Encryption Key used to encrypt the boot disk attached
# to each node in the node pool. This should be of the form
# projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/
# [KEY_NAME].
# For more information about protecting resources with Cloud KMS Keys please
# see:
# https://cloud.google.com/compute/docs/disks/customer-managed-encryption
# Corresponds to the JSON property `bootDiskKmsKey`
# @return [String]
attr_accessor :boot_disk_kms_key
# Size of the disk attached to each node, specified in GB. # Size of the disk attached to each node, specified in GB.
# The smallest allowed disk size is 10GB. # The smallest allowed disk size is 10GB.
# If unspecified, the default disk size is 100GB. # If unspecified, the default disk size is 100GB.
@ -2276,6 +2307,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@accelerators = args[:accelerators] if args.key?(:accelerators) @accelerators = args[:accelerators] if args.key?(:accelerators)
@boot_disk_kms_key = args[:boot_disk_kms_key] if args.key?(:boot_disk_kms_key)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@disk_type = args[:disk_type] if args.key?(:disk_type) @disk_type = args[:disk_type] if args.key?(:disk_type)
@image_type = args[:image_type] if args.key?(:image_type) @image_type = args[:image_type] if args.key?(:image_type)
@ -2362,7 +2394,7 @@ module Google
attr_accessor :config attr_accessor :config
# The initial node count for the pool. You must ensure that your # The initial node count for the pool. You must ensure that your
# Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
# is sufficient for this number of instances. You must also have available # is sufficient for this number of instances. You must also have available
# firewall and routes quota. # firewall and routes quota.
# Corresponds to the JSON property `initialNodeCount` # Corresponds to the JSON property `initialNodeCount`
@ -2807,6 +2839,60 @@ module Google
end end
end end
# ReleaseChannel indicates which release channel a cluster is
# subscribed to. Release channels are arranged in order of risk.
# When a cluster is subscribed to a release channel, Google maintains
# both the master version and the node version. Node auto-upgrade
# defaults to true and cannot be disabled.
class ReleaseChannel
include Google::Apis::Core::Hashable
# channel specifies which release channel the cluster is subscribed to.
# Corresponds to the JSON property `channel`
# @return [String]
attr_accessor :channel
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel = args[:channel] if args.key?(:channel)
end
end
# ReleaseChannelConfig exposes configuration for a release channel.
class ReleaseChannelConfig
include Google::Apis::Core::Hashable
# The release channel this configuration applies to.
# Corresponds to the JSON property `channel`
# @return [String]
attr_accessor :channel
# The default version for newly created clusters on the channel.
# Corresponds to the JSON property `defaultVersion`
# @return [String]
attr_accessor :default_version
# List of valid versions for the channel.
# Corresponds to the JSON property `validVersions`
# @return [Array<String>]
attr_accessor :valid_versions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel = args[:channel] if args.key?(:channel)
@default_version = args[:default_version] if args.key?(:default_version)
@valid_versions = args[:valid_versions] if args.key?(:valid_versions)
end
end
# [ReservationAffinity](https://cloud.google.com/compute/docs/instances/ # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/
# reserving-zonal-resources) # reserving-zonal-resources)
# is the configuration of desired reservation which instances could take # is the configuration of desired reservation which instances could take
@ -2985,6 +3071,11 @@ module Google
class ServerConfig class ServerConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of release channel configurations.
# Corresponds to the JSON property `channels`
# @return [Array<Google::Apis::ContainerV1::ReleaseChannelConfig>]
attr_accessor :channels
# Version of Kubernetes the service deploys by default. # Version of Kubernetes the service deploys by default.
# Corresponds to the JSON property `defaultClusterVersion` # Corresponds to the JSON property `defaultClusterVersion`
# @return [String] # @return [String]
@ -3016,6 +3107,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@channels = args[:channels] if args.key?(:channels)
@default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version) @default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version)
@default_image_type = args[:default_image_type] if args.key?(:default_image_type) @default_image_type = args[:default_image_type] if args.key?(:default_image_type)
@valid_image_types = args[:valid_image_types] if args.key?(:valid_image_types) @valid_image_types = args[:valid_image_types] if args.key?(:valid_image_types)

View File

@ -346,6 +346,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ReleaseChannel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReleaseChannelConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationAffinity class ReservationAffinity
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -696,6 +708,8 @@ module Google
property :private_cluster_config, as: 'privateClusterConfig', class: Google::Apis::ContainerV1::PrivateClusterConfig, decorator: Google::Apis::ContainerV1::PrivateClusterConfig::Representation property :private_cluster_config, as: 'privateClusterConfig', class: Google::Apis::ContainerV1::PrivateClusterConfig, decorator: Google::Apis::ContainerV1::PrivateClusterConfig::Representation
property :release_channel, as: 'releaseChannel', class: Google::Apis::ContainerV1::ReleaseChannel, decorator: Google::Apis::ContainerV1::ReleaseChannel::Representation
hash :resource_labels, as: 'resourceLabels' hash :resource_labels, as: 'resourceLabels'
property :resource_usage_export_config, as: 'resourceUsageExportConfig', class: Google::Apis::ContainerV1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1::ResourceUsageExportConfig::Representation property :resource_usage_export_config, as: 'resourceUsageExportConfig', class: Google::Apis::ContainerV1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1::ResourceUsageExportConfig::Representation
@ -751,6 +765,8 @@ module Google
property :desired_node_pool_id, as: 'desiredNodePoolId' property :desired_node_pool_id, as: 'desiredNodePoolId'
property :desired_node_version, as: 'desiredNodeVersion' property :desired_node_version, as: 'desiredNodeVersion'
property :desired_release_channel, as: 'desiredReleaseChannel', class: Google::Apis::ContainerV1::ReleaseChannel, decorator: Google::Apis::ContainerV1::ReleaseChannel::Representation
property :desired_resource_usage_export_config, as: 'desiredResourceUsageExportConfig', class: Google::Apis::ContainerV1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1::ResourceUsageExportConfig::Representation property :desired_resource_usage_export_config, as: 'desiredResourceUsageExportConfig', class: Google::Apis::ContainerV1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1::ResourceUsageExportConfig::Representation
property :desired_shielded_nodes, as: 'desiredShieldedNodes', class: Google::Apis::ContainerV1::ShieldedNodes, decorator: Google::Apis::ContainerV1::ShieldedNodes::Representation property :desired_shielded_nodes, as: 'desiredShieldedNodes', class: Google::Apis::ContainerV1::ShieldedNodes, decorator: Google::Apis::ContainerV1::ShieldedNodes::Representation
@ -1057,6 +1073,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :accelerators, as: 'accelerators', class: Google::Apis::ContainerV1::AcceleratorConfig, decorator: Google::Apis::ContainerV1::AcceleratorConfig::Representation collection :accelerators, as: 'accelerators', class: Google::Apis::ContainerV1::AcceleratorConfig, decorator: Google::Apis::ContainerV1::AcceleratorConfig::Representation
property :boot_disk_kms_key, as: 'bootDiskKmsKey'
property :disk_size_gb, as: 'diskSizeGb' property :disk_size_gb, as: 'diskSizeGb'
property :disk_type, as: 'diskType' property :disk_type, as: 'diskType'
property :image_type, as: 'imageType' property :image_type, as: 'imageType'
@ -1194,6 +1211,22 @@ module Google
end end
end end
class ReleaseChannel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel, as: 'channel'
end
end
class ReleaseChannelConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel, as: 'channel'
property :default_version, as: 'defaultVersion'
collection :valid_versions, as: 'validVersions'
end
end
class ReservationAffinity class ReservationAffinity
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1244,6 +1277,8 @@ module Google
class ServerConfig class ServerConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :channels, as: 'channels', class: Google::Apis::ContainerV1::ReleaseChannelConfig, decorator: Google::Apis::ContainerV1::ReleaseChannelConfig::Representation
property :default_cluster_version, as: 'defaultClusterVersion' property :default_cluster_version, as: 'defaultClusterVersion'
property :default_image_type, as: 'defaultImageType' property :default_image_type, as: 'defaultImageType'
collection :valid_image_types, as: 'validImageTypes' collection :valid_image_types, as: 'validImageTypes'

View File

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

View File

@ -269,8 +269,7 @@ module Google
end end
end end
# AvailableVersion is an additional Kubernetes versions offered # Deprecated.
# to users who subscribed to the release channel.
class AvailableVersion class AvailableVersion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -581,7 +580,7 @@ module Google
attr_accessor :initial_cluster_version attr_accessor :initial_cluster_version
# The number of nodes to create in this cluster. You must ensure that your # The number of nodes to create in this cluster. You must ensure that your
# Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
# is sufficient for this number of instances. You must also have available # is sufficient for this number of instances. You must also have available
# firewall and routes quota. # firewall and routes quota.
# For requests, this field should only be used in lieu of a # For requests, this field should only be used in lieu of a
@ -764,12 +763,10 @@ module Google
attr_accessor :private_cluster_config attr_accessor :private_cluster_config
# ReleaseChannel indicates which release channel a cluster is # ReleaseChannel indicates which release channel a cluster is
# subscribed to. Release channels are arranged in order of risk and # subscribed to. Release channels are arranged in order of risk.
# frequency of updates.
# When a cluster is subscribed to a release channel, Google maintains # When a cluster is subscribed to a release channel, Google maintains
# both the master version and the node version. Node auto-upgrade # both the master version and the node version. Node auto-upgrade
# defaults to true and cannot be disabled. Updates to version related # defaults to true and cannot be disabled.
# fields (e.g. current_master_version) return an error.
# Corresponds to the JSON property `releaseChannel` # Corresponds to the JSON property `releaseChannel`
# @return [Google::Apis::ContainerV1beta1::ReleaseChannel] # @return [Google::Apis::ContainerV1beta1::ReleaseChannel]
attr_accessor :release_channel attr_accessor :release_channel
@ -1144,12 +1141,10 @@ module Google
attr_accessor :desired_private_cluster_config attr_accessor :desired_private_cluster_config
# ReleaseChannel indicates which release channel a cluster is # ReleaseChannel indicates which release channel a cluster is
# subscribed to. Release channels are arranged in order of risk and # subscribed to. Release channels are arranged in order of risk.
# frequency of updates.
# When a cluster is subscribed to a release channel, Google maintains # When a cluster is subscribed to a release channel, Google maintains
# both the master version and the node version. Node auto-upgrade # both the master version and the node version. Node auto-upgrade
# defaults to true and cannot be disabled. Updates to version related # defaults to true and cannot be disabled.
# fields (e.g. current_master_version) return an error.
# Corresponds to the JSON property `desiredReleaseChannel` # Corresponds to the JSON property `desiredReleaseChannel`
# @return [Google::Apis::ContainerV1beta1::ReleaseChannel] # @return [Google::Apis::ContainerV1beta1::ReleaseChannel]
attr_accessor :desired_release_channel attr_accessor :desired_release_channel
@ -2049,6 +2044,36 @@ module Google
end end
end end
# Parameters that can be configured on Linux nodes.
class LinuxNodeConfig
include Google::Apis::Core::Hashable
# The Linux kernel parameters to be applied to the nodes and all pods running
# on the nodes.
# The following parameters are supported.
# net.core.netdev_max_backlog
# net.core.rmem_max
# net.core.wmem_default
# net.core.wmem_max
# net.core.optmem_max
# net.core.somaxconn
# net.ipv4.tcp_rmem
# net.ipv4.tcp_wmem
# net.ipv4.tcp_tw_reuse
# Corresponds to the JSON property `sysctls`
# @return [Hash<String,String>]
attr_accessor :sysctls
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@sysctls = args[:sysctls] if args.key?(:sysctls)
end
end
# ListClustersResponse is the result of ListClustersRequest. # ListClustersResponse is the result of ListClustersRequest.
class ListClustersResponse class ListClustersResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2568,6 +2593,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :image_type attr_accessor :image_type
# Node kubelet configs.
# Corresponds to the JSON property `kubeletConfig`
# @return [Google::Apis::ContainerV1beta1::NodeKubeletConfig]
attr_accessor :kubelet_config
# The map of Kubernetes labels (key/value pairs) to be applied to each node. # The map of Kubernetes labels (key/value pairs) to be applied to each node.
# These will added in addition to any default label(s) that # These will added in addition to any default label(s) that
# Kubernetes may apply to the node. # Kubernetes may apply to the node.
@ -2580,6 +2610,11 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Parameters that can be configured on Linux nodes.
# Corresponds to the JSON property `linuxNodeConfig`
# @return [Google::Apis::ContainerV1beta1::LinuxNodeConfig]
attr_accessor :linux_node_config
# The number of local SSD disks to be attached to the node. # The number of local SSD disks to be attached to the node.
# The limit for this value is dependent upon the maximum number of # The limit for this value is dependent upon the maximum number of
# disks available on a machine per zone. See: # disks available on a machine per zone. See:
@ -2724,7 +2759,9 @@ module Google
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@disk_type = args[:disk_type] if args.key?(:disk_type) @disk_type = args[:disk_type] if args.key?(:disk_type)
@image_type = args[:image_type] if args.key?(:image_type) @image_type = args[:image_type] if args.key?(:image_type)
@kubelet_config = args[:kubelet_config] if args.key?(:kubelet_config)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@linux_node_config = args[:linux_node_config] if args.key?(:linux_node_config)
@local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count) @local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count)
@machine_type = args[:machine_type] if args.key?(:machine_type) @machine_type = args[:machine_type] if args.key?(:machine_type)
@metadata = args[:metadata] if args.key?(:metadata) @metadata = args[:metadata] if args.key?(:metadata)
@ -2741,6 +2778,55 @@ module Google
end end
end end
# Node kubelet configs.
class NodeKubeletConfig
include Google::Apis::Core::Hashable
# Enable CPU CFS quota enforcement for containers that specify CPU limits.
# If this option is enabled, kubelet uses CFS quota
# (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
# enforce container CPU limits. Otherwise, CPU limits will not be enforced at
# all.
# Disable this option to mitigate CPU throttling problems while still having
# your pods to be in Guaranteed QoS class by specifying the CPU limits.
# The default value is 'true' if unspecified.
# Corresponds to the JSON property `cpuCfsQuota`
# @return [Boolean]
attr_accessor :cpu_cfs_quota
alias_method :cpu_cfs_quota?, :cpu_cfs_quota
# Set the CPU CFS quota period value 'cpu.cfs_period_us'.
# The string must be a sequence of decimal numbers, each with optional
# fraction and a unit suffix, such as "300ms".
# Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
# The value must be a positive duration.
# Corresponds to the JSON property `cpuCfsQuotaPeriod`
# @return [String]
attr_accessor :cpu_cfs_quota_period
# Control the CPU management policy on the node.
# See
# https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
# The following values are allowed.
# - "none": the default, which represents the existing scheduling behavior.
# - "static": allows pods with certain resource characteristics to be
# granted increased CPU affinity and exclusivity on the node.
# Corresponds to the JSON property `cpuManagerPolicy`
# @return [String]
attr_accessor :cpu_manager_policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cpu_cfs_quota = args[:cpu_cfs_quota] if args.key?(:cpu_cfs_quota)
@cpu_cfs_quota_period = args[:cpu_cfs_quota_period] if args.key?(:cpu_cfs_quota_period)
@cpu_manager_policy = args[:cpu_manager_policy] if args.key?(:cpu_manager_policy)
end
end
# NodeManagement defines the set of node management services turned on for the # NodeManagement defines the set of node management services turned on for the
# node pool. # node pool.
class NodeManagement class NodeManagement
@ -2802,7 +2888,7 @@ module Google
attr_accessor :config attr_accessor :config
# The initial node count for the pool. You must ensure that your # The initial node count for the pool. You must ensure that your
# Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
# is sufficient for this number of instances. You must also have available # is sufficient for this number of instances. You must also have available
# firewall and routes quota. # firewall and routes quota.
# Corresponds to the JSON property `initialNodeCount` # Corresponds to the JSON property `initialNodeCount`
@ -3295,12 +3381,10 @@ module Google
end end
# ReleaseChannel indicates which release channel a cluster is # ReleaseChannel indicates which release channel a cluster is
# subscribed to. Release channels are arranged in order of risk and # subscribed to. Release channels are arranged in order of risk.
# frequency of updates.
# When a cluster is subscribed to a release channel, Google maintains # When a cluster is subscribed to a release channel, Google maintains
# both the master version and the node version. Node auto-upgrade # both the master version and the node version. Node auto-upgrade
# defaults to true and cannot be disabled. Updates to version related # defaults to true and cannot be disabled.
# fields (e.g. current_master_version) return an error.
class ReleaseChannel class ReleaseChannel
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3323,7 +3407,9 @@ module Google
class ReleaseChannelConfig class ReleaseChannelConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of available versions for the release channel. # Deprecated.
# This field has been deprecated and replaced with the valid_versions
# field.
# Corresponds to the JSON property `availableVersions` # Corresponds to the JSON property `availableVersions`
# @return [Array<Google::Apis::ContainerV1beta1::AvailableVersion>] # @return [Array<Google::Apis::ContainerV1beta1::AvailableVersion>]
attr_accessor :available_versions attr_accessor :available_versions
@ -3338,6 +3424,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :default_version attr_accessor :default_version
# List of valid versions for the channel.
# Corresponds to the JSON property `validVersions`
# @return [Array<String>]
attr_accessor :valid_versions
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -3347,6 +3438,7 @@ module Google
@available_versions = args[:available_versions] if args.key?(:available_versions) @available_versions = args[:available_versions] if args.key?(:available_versions)
@channel = args[:channel] if args.key?(:channel) @channel = args[:channel] if args.key?(:channel)
@default_version = args[:default_version] if args.key?(:default_version) @default_version = args[:default_version] if args.key?(:default_version)
@valid_versions = args[:valid_versions] if args.key?(:valid_versions)
end end
end end
@ -4566,6 +4658,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :image_type attr_accessor :image_type
# Node kubelet configs.
# Corresponds to the JSON property `kubeletConfig`
# @return [Google::Apis::ContainerV1beta1::NodeKubeletConfig]
attr_accessor :kubelet_config
# Parameters that can be configured on Linux nodes.
# Corresponds to the JSON property `linuxNodeConfig`
# @return [Google::Apis::ContainerV1beta1::LinuxNodeConfig]
attr_accessor :linux_node_config
# The desired list of Google Compute Engine # The desired list of Google Compute Engine
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
# node pool's nodes should be located. Changing the locations for a node pool # node pool's nodes should be located. Changing the locations for a node pool
@ -4652,6 +4754,8 @@ module Google
def update!(**args) def update!(**args)
@cluster_id = args[:cluster_id] if args.key?(:cluster_id) @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
@image_type = args[:image_type] if args.key?(:image_type) @image_type = args[:image_type] if args.key?(:image_type)
@kubelet_config = args[:kubelet_config] if args.key?(:kubelet_config)
@linux_node_config = args[:linux_node_config] if args.key?(:linux_node_config)
@locations = args[:locations] if args.key?(:locations) @locations = args[:locations] if args.key?(:locations)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id) @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)

View File

@ -256,6 +256,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class LinuxNodeConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListClustersResponse class ListClustersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -358,6 +364,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class NodeKubeletConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NodeManagement class NodeManagement
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1112,6 +1124,13 @@ module Google
end end
end end
class LinuxNodeConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :sysctls, as: 'sysctls'
end
end
class ListClustersResponse class ListClustersResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1266,7 +1285,11 @@ module Google
property :disk_size_gb, as: 'diskSizeGb' property :disk_size_gb, as: 'diskSizeGb'
property :disk_type, as: 'diskType' property :disk_type, as: 'diskType'
property :image_type, as: 'imageType' property :image_type, as: 'imageType'
property :kubelet_config, as: 'kubeletConfig', class: Google::Apis::ContainerV1beta1::NodeKubeletConfig, decorator: Google::Apis::ContainerV1beta1::NodeKubeletConfig::Representation
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :linux_node_config, as: 'linuxNodeConfig', class: Google::Apis::ContainerV1beta1::LinuxNodeConfig, decorator: Google::Apis::ContainerV1beta1::LinuxNodeConfig::Representation
property :local_ssd_count, as: 'localSsdCount' property :local_ssd_count, as: 'localSsdCount'
property :machine_type, as: 'machineType' property :machine_type, as: 'machineType'
hash :metadata, as: 'metadata' hash :metadata, as: 'metadata'
@ -1288,6 +1311,15 @@ module Google
end end
end end
class NodeKubeletConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cpu_cfs_quota, as: 'cpuCfsQuota'
property :cpu_cfs_quota_period, as: 'cpuCfsQuotaPeriod'
property :cpu_manager_policy, as: 'cpuManagerPolicy'
end
end
class NodeManagement class NodeManagement
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1430,6 +1462,7 @@ module Google
property :channel, as: 'channel' property :channel, as: 'channel'
property :default_version, as: 'defaultVersion' property :default_version, as: 'defaultVersion'
collection :valid_versions, as: 'validVersions'
end end
end end
@ -1716,6 +1749,10 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cluster_id, as: 'clusterId' property :cluster_id, as: 'clusterId'
property :image_type, as: 'imageType' property :image_type, as: 'imageType'
property :kubelet_config, as: 'kubeletConfig', class: Google::Apis::ContainerV1beta1::NodeKubeletConfig, decorator: Google::Apis::ContainerV1beta1::NodeKubeletConfig::Representation
property :linux_node_config, as: 'linuxNodeConfig', class: Google::Apis::ContainerV1beta1::LinuxNodeConfig, decorator: Google::Apis::ContainerV1beta1::LinuxNodeConfig::Representation
collection :locations, as: 'locations' collection :locations, as: 'locations'
property :name, as: 'name' property :name, as: 'name'
property :node_pool_id, as: 'nodePoolId' property :node_pool_id, as: 'nodePoolId'

View File

@ -18,14 +18,14 @@ require 'google/apis/dns_v1beta2/representations.rb'
module Google module Google
module Apis module Apis
# Google Cloud DNS API # Cloud DNS API
# #
# Configures and serves authoritative DNS records.
# #
# @see https://developers.google.com/cloud-dns #
# @see http://developers.google.com/cloud-dns
module DnsV1beta2 module DnsV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20200515' REVISION = '20200625'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -20,9 +20,9 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module DnsV1beta2 module DnsV1beta2
# Google Cloud DNS API # Cloud DNS API
#
# #
# Configures and serves authoritative DNS records.
# #
# @example # @example
# require 'google/apis/dns_v1beta2' # require 'google/apis/dns_v1beta2'
@ -30,7 +30,7 @@ module Google
# Dns = Google::Apis::DnsV1beta2 # Alias the module # Dns = Google::Apis::DnsV1beta2 # Alias the module
# service = Dns::DnsService.new # service = Dns::DnsService.new
# #
# @see https://developers.google.com/cloud-dns # @see http://developers.google.com/cloud-dns
class DnsService < Google::Apis::Core::BaseService class DnsService < Google::Apis::Core::BaseService
# @return [String] # @return [String]
# API key. Your API key identifies your project and provides you with API access, # API key. Your API key identifies your project and provides you with API access,
@ -38,31 +38,31 @@ module Google
attr_accessor :key attr_accessor :key
# @return [String] # @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user attr_accessor :quota_user
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize def initialize
super('https://dns.googleapis.com/', 'dns/v1beta2/projects/') super('https://dns.googleapis.com/', '')
@batch_path = 'batch/dns/v1beta2' @batch_path = 'batch'
end end
# # Atomically update the ResourceRecordSet collection.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Google::Apis::DnsV1beta2::Change] change_object # @param [Google::Apis::DnsV1beta2::Change] change_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -75,8 +75,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def create_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def create_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/managedZones/{managedZone}/changes', options) command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes', options)
command.request_representation = Google::Apis::DnsV1beta2::Change::Representation command.request_representation = Google::Apis::DnsV1beta2::Change::Representation
command.request_object = change_object command.request_object = change_object
command.response_representation = Google::Apis::DnsV1beta2::Change::Representation command.response_representation = Google::Apis::DnsV1beta2::Change::Representation
@ -86,22 +86,27 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Fetch the representation of an existing Change.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] change_id # @param [String] change_id
# The identifier of the requested change, from a previous
# ResourceRecordSetsChangeResponse.
# @param [String] client_operation_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.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -114,8 +119,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes/{changeId}', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes/{changeId}', options)
command.response_representation = Google::Apis::DnsV1beta2::Change::Representation command.response_representation = Google::Apis::DnsV1beta2::Change::Representation
command.response_class = Google::Apis::DnsV1beta2::Change command.response_class = Google::Apis::DnsV1beta2::Change
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -124,24 +129,30 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Enumerate Changes to a ResourceRecordSet collection.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] sort_by # @param [String] sort_by
# Sorting criterion. The only supported value is change sequence.
# @param [String] sort_order # @param [String] sort_order
# Sorting order direction: 'ascending' or 'descending'.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -154,8 +165,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes', options)
command.response_representation = Google::Apis::DnsV1beta2::ChangesListResponse::Representation command.response_representation = Google::Apis::DnsV1beta2::ChangesListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ChangesListResponse command.response_class = Google::Apis::DnsV1beta2::ChangesListResponse
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -166,23 +177,30 @@ module Google
command.query['sortOrder'] = sort_order unless sort_order.nil? command.query['sortOrder'] = sort_order unless sort_order.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Fetch the representation of an existing DnsKey.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] dns_key_id # @param [String] dns_key_id
# The identifier of the requested DnsKey.
# @param [String] client_operation_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.
# @param [String] digest_type # @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.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -195,8 +213,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
command.response_representation = Google::Apis::DnsV1beta2::DnsKey::Representation command.response_representation = Google::Apis::DnsV1beta2::DnsKey::Representation
command.response_class = Google::Apis::DnsV1beta2::DnsKey command.response_class = Google::Apis::DnsV1beta2::DnsKey
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -206,23 +224,30 @@ module Google
command.query['digestType'] = digest_type unless digest_type.nil? command.query['digestType'] = digest_type unless digest_type.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Enumerate DnsKeys to a ResourceRecordSet collection.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] digest_type # @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.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -235,8 +260,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys', options)
command.response_representation = Google::Apis::DnsV1beta2::DnsKeysListResponse::Representation command.response_representation = Google::Apis::DnsV1beta2::DnsKeysListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::DnsKeysListResponse command.response_class = Google::Apis::DnsV1beta2::DnsKeysListResponse
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -246,22 +271,25 @@ module Google
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Fetch the representation of an existing Operation.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request.
# @param [String] operation # @param [String] operation
# Identifies the operation addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -274,8 +302,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations/{operation}', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}', options)
command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
command.response_class = Google::Apis::DnsV1beta2::Operation command.response_class = Google::Apis::DnsV1beta2::Operation
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -284,23 +312,27 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Enumerate Operations for the given ManagedZone.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] sort_by # @param [String] sort_by
# Sorting criterion. The only supported values are START_TIME and ID.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -313,8 +345,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations', options)
command.response_representation = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse::Representation command.response_representation = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse command.response_class = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -324,21 +356,22 @@ module Google
command.query['sortBy'] = sort_by unless sort_by.nil? command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Create a new ManagedZone.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -351,8 +384,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def create_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def create_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/managedZones', options) command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/managedZones', options)
command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.request_object = managed_zone_object command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
@ -361,21 +394,24 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Delete a previously created ManagedZone.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] client_operation_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.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -388,28 +424,31 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options) command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', options)
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Fetch the representation of an existing ManagedZone.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] client_operation_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.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -422,8 +461,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', options)
command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZone command.response_class = Google::Apis::DnsV1beta2::ManagedZone
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -431,22 +470,25 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Enumerate ManagedZones that have been created but not yet deleted.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] dns_name # @param [String] dns_name
# Restricts the list to return only zones with this domain name.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -459,8 +501,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones', options)
command.response_representation = Google::Apis::DnsV1beta2::ManagedZonesListResponse::Representation command.response_representation = Google::Apis::DnsV1beta2::ManagedZonesListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZonesListResponse command.response_class = Google::Apis::DnsV1beta2::ManagedZonesListResponse
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -469,22 +511,25 @@ module Google
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Apply a partial update to an existing ManagedZone.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -497,8 +542,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/managedZones/{managedZone}', options) command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.request_object = managed_zone_object command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
@ -508,22 +553,25 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Update an existing ManagedZone.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -536,8 +584,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/managedZones/{managedZone}', options) command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.request_object = managed_zone_object command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
@ -547,21 +595,22 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Create a new Policy
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1beta2::Policy] policy_object # @param [Google::Apis::DnsV1beta2::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -574,8 +623,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/policies', options) command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/policies', options)
command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation
command.request_object = policy_object command.request_object = policy_object
command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation
@ -584,21 +633,24 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Delete a previously created Policy. Will fail if the policy is still being
# referenced by a network.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy # @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -611,28 +663,30 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/policies/{policy}', options) command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/policies/{policy}', options)
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil? command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Fetch the representation of an existing Policy.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy # @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -645,8 +699,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/policies/{policy}', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/policies/{policy}', options)
command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation
command.response_class = Google::Apis::DnsV1beta2::Policy command.response_class = Google::Apis::DnsV1beta2::Policy
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -654,21 +708,23 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Enumerate all Policies associated with a project.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token # @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -681,8 +737,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/policies', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/policies', options)
command.response_representation = Google::Apis::DnsV1beta2::PoliciesListResponse::Representation command.response_representation = Google::Apis::DnsV1beta2::PoliciesListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::PoliciesListResponse command.response_class = Google::Apis::DnsV1beta2::PoliciesListResponse
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -690,22 +746,24 @@ module Google
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Apply a partial update to an existing Policy.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy # @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV1beta2::Policy] policy_object # @param [Google::Apis::DnsV1beta2::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -718,8 +776,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/policies/{policy}', options) command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/policies/{policy}', options)
command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation
command.request_object = policy_object command.request_object = policy_object
command.response_representation = Google::Apis::DnsV1beta2::PoliciesPatchResponse::Representation command.response_representation = Google::Apis::DnsV1beta2::PoliciesPatchResponse::Representation
@ -729,22 +787,24 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Update an existing Policy.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy # @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV1beta2::Policy] policy_object # @param [Google::Apis::DnsV1beta2::Policy] policy_object
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -757,8 +817,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/policies/{policy}', options) command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/policies/{policy}', options)
command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation
command.request_object = policy_object command.request_object = policy_object
command.response_representation = Google::Apis::DnsV1beta2::PoliciesUpdateResponse::Representation command.response_representation = Google::Apis::DnsV1beta2::PoliciesUpdateResponse::Representation
@ -768,20 +828,21 @@ module Google
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Fetch the representation of an existing Project.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] client_operation_id # @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -794,32 +855,40 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}', options)
command.response_representation = Google::Apis::DnsV1beta2::Project::Representation command.response_representation = Google::Apis::DnsV1beta2::Project::Representation
command.response_class = Google::Apis::DnsV1beta2::Project command.response_class = Google::Apis::DnsV1beta2::Project
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# # Enumerate ResourceRecordSets that have been created but not yet deleted.
# @param [String] project # @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone # @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] name # @param [String] name
# Restricts the list to return only records with this fully qualified domain
# name.
# @param [String] page_token # @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.
# @param [String] type # @param [String] type
# Restricts the list to return only records of this type. If present, the
# "name" parameter must also be present.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -832,8 +901,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/rrsets', options) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets', options)
command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse::Representation command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
@ -844,7 +913,6 @@ module Google
command.query['type'] = type unless type.nil? command.query['type'] = type unless type.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -853,7 +921,6 @@ module Google
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['key'] = key unless key.nil? command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end end
end end
end end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/ # @see https://developers.google.com/drive/
module DriveV2 module DriveV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200609' REVISION = '20200618'
# See, edit, create, and delete all of your Google Drive files # See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -2218,6 +2218,14 @@ module Google
attr_accessor :can_add_children attr_accessor :can_add_children
alias_method :can_add_children?, :can_add_children alias_method :can_add_children?, :can_add_children
# Whether the current user can add a folder from another drive (different shared
# drive or My Drive) to this folder. This is false when the item is not a folder.
# Only populated for items in shared drives.
# Corresponds to the JSON property `canAddFolderFromAnotherDrive`
# @return [Boolean]
attr_accessor :can_add_folder_from_another_drive
alias_method :can_add_folder_from_another_drive?, :can_add_folder_from_another_drive
# Whether the current user can add a parent for the item without removing an # Whether the current user can add a parent for the item without removing an
# existing parent in the same request. Not populated for shared drive files. # existing parent in the same request. Not populated for shared drive files.
# Corresponds to the JSON property `canAddMyDriveParent` # Corresponds to the JSON property `canAddMyDriveParent`
@ -2434,6 +2442,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@can_add_children = args[:can_add_children] if args.key?(:can_add_children) @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
@can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
@can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent) @can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
@can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission) @can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
@can_change_restricted_download = args[:can_change_restricted_download] if args.key?(:can_change_restricted_download) @can_change_restricted_download = args[:can_change_restricted_download] if args.key?(:can_change_restricted_download)

View File

@ -868,6 +868,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :can_add_children, as: 'canAddChildren' property :can_add_children, as: 'canAddChildren'
property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
property :can_add_my_drive_parent, as: 'canAddMyDriveParent' property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission' property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
property :can_change_restricted_download, as: 'canChangeRestrictedDownload' property :can_change_restricted_download, as: 'canChangeRestrictedDownload'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/ # @see https://developers.google.com/drive/
module DriveV3 module DriveV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20200609' REVISION = '20200618'
# See, edit, create, and delete all of your Google Drive files # See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -1375,6 +1375,14 @@ module Google
attr_accessor :can_add_children attr_accessor :can_add_children
alias_method :can_add_children?, :can_add_children alias_method :can_add_children?, :can_add_children
# Whether the current user can add a folder from another drive (different shared
# drive or My Drive) to this folder. This is false when the item is not a folder.
# Only populated for items in shared drives.
# Corresponds to the JSON property `canAddFolderFromAnotherDrive`
# @return [Boolean]
attr_accessor :can_add_folder_from_another_drive
alias_method :can_add_folder_from_another_drive?, :can_add_folder_from_another_drive
# Whether the current user can add a parent for the item without removing an # Whether the current user can add a parent for the item without removing an
# existing parent in the same request. Not populated for shared drive files. # existing parent in the same request. Not populated for shared drive files.
# Corresponds to the JSON property `canAddMyDriveParent` # Corresponds to the JSON property `canAddMyDriveParent`
@ -1591,6 +1599,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@can_add_children = args[:can_add_children] if args.key?(:can_add_children) @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
@can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
@can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent) @can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
@can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission) @can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
@can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content) @can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content)

View File

@ -566,6 +566,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :can_add_children, as: 'canAddChildren' property :can_add_children, as: 'canAddChildren'
property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
property :can_add_my_drive_parent, as: 'canAddMyDriveParent' property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission' property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
property :can_change_viewers_can_copy_content, as: 'canChangeViewersCanCopyContent' property :can_change_viewers_can_copy_content, as: 'canChangeViewersCanCopyContent'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/spectrum-access-system/ # @see https://developers.google.com/spectrum-access-system/
module SasportalV1alpha1 module SasportalV1alpha1
VERSION = 'V1alpha1' VERSION = 'V1alpha1'
REVISION = '20200623' REVISION = '20200629'
# View your email address # View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'

View File

@ -150,6 +150,50 @@ module Google
end end
end end
# The Deployment.
class SasPortalDeployment
include Google::Apis::Core::Hashable
# The allowed billing modes under this deployment.
# Corresponds to the JSON property `allowedBillingModes`
# @return [Array<String>]
attr_accessor :allowed_billing_modes
# Default billing mode for the deployment and devices under it.
# Corresponds to the JSON property `defaultBillingMode`
# @return [String]
attr_accessor :default_billing_mode
# The deployment's display name.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. Resource name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# User id used by the devices belonging to this deployment. Each deployment
# should be associated with one unique user_id.
# Corresponds to the JSON property `sasUserIds`
# @return [Array<String>]
attr_accessor :sas_user_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@allowed_billing_modes = args[:allowed_billing_modes] if args.key?(:allowed_billing_modes)
@default_billing_mode = args[:default_billing_mode] if args.key?(:default_billing_mode)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
@sas_user_ids = args[:sas_user_ids] if args.key?(:sas_user_ids)
end
end
# #
class SasPortalDevice class SasPortalDevice
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -721,6 +765,35 @@ module Google
end end
end end
# Response for ListDeployments method.
class SasPortalListDeploymentsResponse
include Google::Apis::Core::Hashable
# The deployments that match the
# request.
# Corresponds to the JSON property `deployments`
# @return [Array<Google::Apis::SasportalV1alpha1::SasPortalDeployment>]
attr_accessor :deployments
# A pagination token returned from a previous call to
# ListDeployments method that indicates
# from where listing should continue. If the field is missing or empty, it
# means there is no more deployments.
# 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)
@deployments = args[:deployments] if args.key?(:deployments)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response for ListDevices method. # Response for ListDevices method.
class SasPortalListDevicesResponse class SasPortalListDevicesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -52,6 +52,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SasPortalDeployment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SasPortalDevice class SasPortalDevice
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -136,6 +142,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SasPortalListDeploymentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SasPortalListDevicesResponse class SasPortalListDevicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -266,6 +278,17 @@ module Google
end end
end end
class SasPortalDeployment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_billing_modes, as: 'allowedBillingModes'
property :default_billing_mode, as: 'defaultBillingMode'
property :display_name, as: 'displayName'
property :name, as: 'name'
collection :sas_user_ids, as: 'sasUserIds'
end
end
class SasPortalDevice class SasPortalDevice
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -416,6 +439,15 @@ module Google
end end
end end
class SasPortalListDeploymentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :deployments, as: 'deployments', class: Google::Apis::SasportalV1alpha1::SasPortalDeployment, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class SasPortalListDevicesResponse class SasPortalListDevicesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -149,6 +149,174 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new deployment.
# @param [String] parent
# Required. The parent resource name where the deployment is to be created.
# @param [Google::Apis::SasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_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::SasportalV1alpha1::SasPortalDeployment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_customer_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.request_object = sas_portal_deployment_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a deployment.
# @param [String] name
# Required. The name of the deployment.
# @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::SasportalV1alpha1::SasPortalEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_customer_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a requested deployment.
# @param [String] name
# Required. The name of the deployment.
# @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::SasportalV1alpha1::SasPortalDeployment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_customer_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists deployments.
# @param [String] parent
# Required. The parent resource name, for example, "nodes/1",
# customer/1/nodes/2.
# @param [Fixnum] page_size
# The maximum number of deployments to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListDeployments
# method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_customer_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing deployment.
# @param [String] name
# Output only. Resource name.
# @param [Google::Apis::SasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
# @param [String] update_mask
# Fields to be 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::SasportalV1alpha1::SasPortalDeployment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_customer_deployment(name, sas_portal_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.request_object = sas_portal_deployment_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a device under a node or customer. Returned devices are unordered. # Creates a device under a node or customer. Returned devices are unordered.
# @param [String] parent # @param [String] parent
# Required. The name of the parent resource. # Required. The name of the parent resource.
@ -688,6 +856,78 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new deployment.
# @param [String] parent
# Required. The parent resource name where the deployment is to be created.
# @param [Google::Apis::SasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_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::SasportalV1alpha1::SasPortalDeployment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_customer_node_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.request_object = sas_portal_deployment_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists deployments.
# @param [String] parent
# Required. The parent resource name, for example, "nodes/1",
# customer/1/nodes/2.
# @param [Fixnum] page_size
# The maximum number of deployments to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListDeployments
# method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_customer_node_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new node. # Creates a new node.
# @param [String] parent # @param [String] parent
# Required. The parent resource name where the node is to be created. # Required. The parent resource name where the node is to be created.
@ -758,6 +998,36 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns a requested deployment.
# @param [String] name
# Required. The name of the deployment.
# @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::SasportalV1alpha1::SasPortalDeployment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
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
# Generates a secret to be used with the ValidateInstaller method # Generates a secret to be used with the ValidateInstaller method
# @param [Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretRequest] sas_portal_generate_secret_request_object # @param [Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretRequest] sas_portal_generate_secret_request_object
# @param [String] fields # @param [String] fields
@ -848,6 +1118,141 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a deployment.
# @param [String] name
# Required. The name of the deployment.
# @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::SasportalV1alpha1::SasPortalEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_node_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a requested deployment.
# @param [String] name
# Required. The name of the deployment.
# @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::SasportalV1alpha1::SasPortalDeployment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_node_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists deployments.
# @param [String] parent
# Required. The parent resource name, for example, "nodes/1",
# customer/1/nodes/2.
# @param [Fixnum] page_size
# The maximum number of deployments to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListDeployments
# method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_node_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing deployment.
# @param [String] name
# Output only. Resource name.
# @param [Google::Apis::SasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
# @param [String] update_mask
# Fields to be 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::SasportalV1alpha1::SasPortalDeployment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_node_deployment(name, sas_portal_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.request_object = sas_portal_deployment_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a device under a node or customer. Returned devices are unordered. # Creates a device under a node or customer. Returned devices are unordered.
# @param [String] parent # @param [String] parent
# Required. The name of the parent resource. # Required. The name of the parent resource.
@ -1387,6 +1792,78 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new deployment.
# @param [String] parent
# Required. The parent resource name where the deployment is to be created.
# @param [Google::Apis::SasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_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::SasportalV1alpha1::SasPortalDeployment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_node_node_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.request_object = sas_portal_deployment_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists deployments.
# @param [String] parent
# Required. The parent resource name, for example, "nodes/1",
# customer/1/nodes/2.
# @param [Fixnum] page_size
# The maximum number of deployments to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListDeployments
# method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_node_node_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a device under a node or customer. Returned devices are unordered. # Creates a device under a node or customer. Returned devices are unordered.
# @param [String] parent # @param [String] parent
# Required. The name of the parent resource. # Required. The name of the parent resource.

View File

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

View File

@ -1817,6 +1817,11 @@ module Google
# transactions. However, it can also happen for a variety of other # transactions. However, it can also happen for a variety of other
# reasons. If `Commit` returns `ABORTED`, the caller should re-attempt # reasons. If `Commit` returns `ABORTED`, the caller should re-attempt
# the transaction from the beginning, re-using the same session. # the transaction from the beginning, re-using the same session.
# On very rare occasions, `Commit` might return `UNKNOWN`. This can happen,
# for example, if the client job experiences a 1+ hour networking failure.
# At that point, Cloud Spanner has lost track of the transaction outcome and
# we recommend that you perform another read from the database to see the
# state of things as they are now.
# @param [String] session # @param [String] session
# Required. The session in which the transaction to be committed is running. # Required. The session in which the transaction to be committed is running.
# @param [Google::Apis::SpannerV1::CommitRequest] commit_request_object # @param [Google::Apis::SpannerV1::CommitRequest] commit_request_object