Autogenerated update (2018-02-16)

Update:
- cloudresourcemanager_v1
- compute_alpha
- compute_beta
- compute_v1
- container_v1beta1
- dataproc_v1beta2
- logging_v2
- logging_v2beta1
- manufacturers_v1
- safebrowsing_v4
- youtube_partner_v1
This commit is contained in:
Google APIs 2018-02-16 00:36:10 +00:00
parent 7e1540d1e1
commit aed0b6c760
28 changed files with 458 additions and 67 deletions

View File

@ -17162,6 +17162,7 @@
"/compute:alpha/InstanceProperties/scheduling": scheduling
"/compute:alpha/InstanceProperties/serviceAccounts": service_accounts
"/compute:alpha/InstanceProperties/serviceAccounts/service_account": service_account
"/compute:alpha/InstanceProperties/shieldedVmConfig": shielded_vm_config
"/compute:alpha/InstanceProperties/tags": tags
"/compute:alpha/InstanceReference": instance_reference
"/compute:alpha/InstanceReference/instance": instance
@ -17273,6 +17274,7 @@
"/compute:alpha/InterconnectAttachment/creationTimestamp": creation_timestamp
"/compute:alpha/InterconnectAttachment/customerRouterIpAddress": customer_router_ip_address
"/compute:alpha/InterconnectAttachment/description": description
"/compute:alpha/InterconnectAttachment/edgeAvailabilityDomain": edge_availability_domain
"/compute:alpha/InterconnectAttachment/googleReferenceId": google_reference_id
"/compute:alpha/InterconnectAttachment/id": id
"/compute:alpha/InterconnectAttachment/interconnect": interconnect
@ -18373,6 +18375,7 @@
"/compute:alpha/SslCertificate/certificate": certificate
"/compute:alpha/SslCertificate/creationTimestamp": creation_timestamp
"/compute:alpha/SslCertificate/description": description
"/compute:alpha/SslCertificate/expireTime": expire_time
"/compute:alpha/SslCertificate/expiryTime": expiry_time
"/compute:alpha/SslCertificate/id": id
"/compute:alpha/SslCertificate/kind": kind
@ -18462,6 +18465,7 @@
"/compute:alpha/Subnetwork/creationTimestamp": creation_timestamp
"/compute:alpha/Subnetwork/description": description
"/compute:alpha/Subnetwork/enableFlowLogs": enable_flow_logs
"/compute:alpha/Subnetwork/enablePrivateV6Access": enable_private_v6_access
"/compute:alpha/Subnetwork/fingerprint": fingerprint
"/compute:alpha/Subnetwork/gatewayAddress": gateway_address
"/compute:alpha/Subnetwork/id": id
@ -20245,6 +20249,18 @@
"/compute:alpha/compute.networks.testIamPermissions": test_network_iam_permissions
"/compute:alpha/compute.networks.testIamPermissions/project": project
"/compute:alpha/compute.networks.testIamPermissions/resource": resource
"/compute:alpha/compute.nodeGroups.getIamPolicy": get_node_group_iam_policy
"/compute:alpha/compute.nodeGroups.getIamPolicy/project": project
"/compute:alpha/compute.nodeGroups.getIamPolicy/resource": resource
"/compute:alpha/compute.nodeGroups.getIamPolicy/zone": zone
"/compute:alpha/compute.nodeGroups.setIamPolicy": set_node_group_iam_policy
"/compute:alpha/compute.nodeGroups.setIamPolicy/project": project
"/compute:alpha/compute.nodeGroups.setIamPolicy/resource": resource
"/compute:alpha/compute.nodeGroups.setIamPolicy/zone": zone
"/compute:alpha/compute.nodeGroups.testIamPermissions": test_node_group_iam_permissions
"/compute:alpha/compute.nodeGroups.testIamPermissions/project": project
"/compute:alpha/compute.nodeGroups.testIamPermissions/resource": resource
"/compute:alpha/compute.nodeGroups.testIamPermissions/zone": zone
"/compute:alpha/compute.nodeTemplates.getIamPolicy": get_node_template_iam_policy
"/compute:alpha/compute.nodeTemplates.getIamPolicy/project": project
"/compute:alpha/compute.nodeTemplates.getIamPolicy/region": region
@ -21238,6 +21254,7 @@
"/compute:beta/AccessConfig/kind": kind
"/compute:beta/AccessConfig/name": name
"/compute:beta/AccessConfig/natIP": nat_ip
"/compute:beta/AccessConfig/networkTier": network_tier
"/compute:beta/AccessConfig/publicPtrDomainName": public_ptr_domain_name
"/compute:beta/AccessConfig/setPublicPtr": set_public_ptr
"/compute:beta/AccessConfig/type": type
@ -21253,6 +21270,7 @@
"/compute:beta/Address/labels": labels
"/compute:beta/Address/labels/label": label
"/compute:beta/Address/name": name
"/compute:beta/Address/networkTier": network_tier
"/compute:beta/Address/region": region
"/compute:beta/Address/selfLink": self_link
"/compute:beta/Address/status": status
@ -21823,6 +21841,7 @@
"/compute:beta/ForwardingRule/loadBalancingScheme": load_balancing_scheme
"/compute:beta/ForwardingRule/name": name
"/compute:beta/ForwardingRule/network": network
"/compute:beta/ForwardingRule/networkTier": network_tier
"/compute:beta/ForwardingRule/portRange": port_range
"/compute:beta/ForwardingRule/ports": ports
"/compute:beta/ForwardingRule/ports/port": port
@ -22822,6 +22841,7 @@
"/compute:beta/Project": project
"/compute:beta/Project/commonInstanceMetadata": common_instance_metadata
"/compute:beta/Project/creationTimestamp": creation_timestamp
"/compute:beta/Project/defaultNetworkTier": default_network_tier
"/compute:beta/Project/defaultServiceAccount": default_service_account
"/compute:beta/Project/description": description
"/compute:beta/Project/enabledFeatures": enabled_features
@ -22845,6 +22865,8 @@
"/compute:beta/ProjectsGetXpnResources/resources/resource": resource
"/compute:beta/ProjectsListXpnHostsRequest": projects_list_xpn_hosts_request
"/compute:beta/ProjectsListXpnHostsRequest/organization": organization
"/compute:beta/ProjectsSetDefaultNetworkTierRequest": projects_set_default_network_tier_request
"/compute:beta/ProjectsSetDefaultNetworkTierRequest/networkTier": network_tier
"/compute:beta/Quota": quota
"/compute:beta/Quota/limit": limit
"/compute:beta/Quota/metric": metric
@ -24811,6 +24833,9 @@
"/compute:beta/compute.projects.setCommonInstanceMetadata": set_common_instance_metadata
"/compute:beta/compute.projects.setCommonInstanceMetadata/project": project
"/compute:beta/compute.projects.setCommonInstanceMetadata/requestId": request_id
"/compute:beta/compute.projects.setDefaultNetworkTier": set_project_default_network_tier
"/compute:beta/compute.projects.setDefaultNetworkTier/project": project
"/compute:beta/compute.projects.setDefaultNetworkTier/requestId": request_id
"/compute:beta/compute.projects.setUsageExportBucket": set_usage_export_bucket
"/compute:beta/compute.projects.setUsageExportBucket/project": project
"/compute:beta/compute.projects.setUsageExportBucket/requestId": request_id
@ -29876,6 +29901,8 @@
"/container:v1beta1/Cluster/instanceGroupUrls": instance_group_urls
"/container:v1beta1/Cluster/instanceGroupUrls/instance_group_url": instance_group_url
"/container:v1beta1/Cluster/ipAllocationPolicy": ip_allocation_policy
"/container:v1beta1/Cluster/labelFingerprint": label_fingerprint
"/container:v1beta1/Cluster/legacyAbac": legacy_abac
"/container:v1beta1/Cluster/location": location
"/container:v1beta1/Cluster/locations": locations
"/container:v1beta1/Cluster/locations/location": location
@ -29892,6 +29919,8 @@
"/container:v1beta1/Cluster/nodePools": node_pools
"/container:v1beta1/Cluster/nodePools/node_pool": node_pool
"/container:v1beta1/Cluster/podSecurityPolicyConfig": pod_security_policy_config
"/container:v1beta1/Cluster/resourceLabels": resource_labels
"/container:v1beta1/Cluster/resourceLabels/resource_label": resource_label
"/container:v1beta1/Cluster/selfLink": self_link
"/container:v1beta1/Cluster/servicesIpv4Cidr": services_ipv4_cidr
"/container:v1beta1/Cluster/status": status
@ -29949,6 +29978,8 @@
"/container:v1beta1/IPAllocationPolicy/useIpAliases": use_ip_aliases
"/container:v1beta1/KubernetesDashboard": kubernetes_dashboard
"/container:v1beta1/KubernetesDashboard/disabled": disabled
"/container:v1beta1/LegacyAbac": legacy_abac
"/container:v1beta1/LegacyAbac/enabled": enabled
"/container:v1beta1/ListClustersResponse": list_clusters_response
"/container:v1beta1/ListClustersResponse/clusters": clusters
"/container:v1beta1/ListClustersResponse/clusters/cluster": cluster
@ -53460,6 +53491,9 @@
"/manufacturers:v1/manufacturers.accounts.products.update": update_account_product
"/manufacturers:v1/manufacturers.accounts.products.update/name": name
"/manufacturers:v1/manufacturers.accounts.products.update/parent": parent
"/manufacturers:v1/manufacturers.accounts.products.uploadProduct": upload_account_product_product
"/manufacturers:v1/manufacturers.accounts.products.uploadProduct/name": name
"/manufacturers:v1/manufacturers.accounts.products.uploadProduct/parent": parent
"/manufacturers:v1/quotaUser": quota_user
"/mirror:v1/Account": account
"/mirror:v1/Account/authTokens": auth_tokens

View File

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

View File

@ -1130,9 +1130,10 @@ module Google
# @return [String]
attr_accessor :creation_time
# A friendly string to be used to refer to the Organization in the UI.
# Assigned by the server, set to the primary domain of the G Suite
# customer that owns the organization.
# A human-readable string that refers to the Organization in the
# GCP Console UI. This string is set by the server and cannot be
# changed. The string will be set to the primary domain (for example,
# "google.com") of the G Suite customer that owns the organization.
# @OutputOnly
# Corresponds to the JSON property `displayName`
# @return [String]

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeAlpha
VERSION = 'Alpha'
REVISION = '20180112'
REVISION = '20180123'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1262,7 +1262,7 @@ module Google
# If there are AuditConfigs for both `allServices` and a specific service, the
# union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# AuditLogConfig are exempted.
# Example Policy with multiple AuditConfigs:
# ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` "
# log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` "
@ -1272,8 +1272,7 @@ module Google
# ] `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.
# com from DATA_WRITE logging. This message is only visible as GOOGLE_INTERNAL
# or IAM_AUDIT_CONFIG.
# com from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
@ -4205,7 +4204,8 @@ module Google
attr_accessor :storage_type
# URL of the disk type resource describing which disk type to use to create the
# disk. Provide this when creating the disk.
# disk. Provide this when creating the disk. For example: project/zones/zone/
# diskTypes/pd-standard or pd-ssd
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -5736,10 +5736,10 @@ module Google
# Some types of forwarding target have constraints on the acceptable ports:
# - TargetHttpProxy: 80, 8080
# - TargetHttpsProxy: 443
# - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883,
# 5222
# - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883,
# 5222
# - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688,
# 1883, 5222
# - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688,
# 1883, 5222
# - TargetVpnGateway: 500, 4500
# Corresponds to the JSON property `portRange`
# @return [String]
@ -11168,6 +11168,11 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::ServiceAccount>]
attr_accessor :service_accounts
# A set of Shielded VM options.
# Corresponds to the JSON property `shieldedVmConfig`
# @return [Google::Apis::ComputeAlpha::ShieldedVmConfig]
attr_accessor :shielded_vm_config
# A set of instance tags.
# Corresponds to the JSON property `tags`
# @return [Google::Apis::ComputeAlpha::Tags]
@ -11190,6 +11195,7 @@ module Google
@network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
@scheduling = args[:scheduling] if args.key?(:scheduling)
@service_accounts = args[:service_accounts] if args.key?(:service_accounts)
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
@tags = args[:tags] if args.key?(:tags)
end
end
@ -12000,6 +12006,17 @@ module Google
# @return [String]
attr_accessor :description
# Desired availability domain for the attachment. Can only be specified when
# creating PARTNER-type InterconnectAttachments.
# For improved reliability, customers should configure a pair of attachments
# with one per availability domain. The selected availability domain will be
# provided to the Partner via the pairing key so that the provisioned circuit
# will lie in the specified domain. If not specified, the value will default to
# AVAILABILITY_DOMAIN_ANY.
# Corresponds to the JSON property `edgeAvailabilityDomain`
# @return [String]
attr_accessor :edge_availability_domain
# [Output Only] Google reference ID, to be used when raising support tickets
# with Google or otherwise to debug backend connectivity issues.
# Corresponds to the JSON property `googleReferenceId`
@ -12139,6 +12156,7 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@customer_router_ip_address = args[:customer_router_ip_address] if args.key?(:customer_router_ip_address)
@description = args[:description] if args.key?(:description)
@edge_availability_domain = args[:edge_availability_domain] if args.key?(:edge_availability_domain)
@google_reference_id = args[:google_reference_id] if args.key?(:google_reference_id)
@id = args[:id] if args.key?(:id)
@interconnect = args[:interconnect] if args.key?(:interconnect)
@ -16750,8 +16768,7 @@ module Google
class Policy
include Google::Apis::Core::Hashable
# Specifies cloud audit logging configuration for this policy. This field is
# only visible as GOOGLE_INTERNAL or IAM_AUDIT_CONFIG.
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::ComputeAlpha::AuditConfig>]
attr_accessor :audit_configs
@ -20640,10 +20657,10 @@ module Google
# @return [String]
attr_accessor :description
# [Output Only] Expiry time of the certificate. RFC3339
# Corresponds to the JSON property `expiryTime`
# [Output Only] Expire time of the certificate. RFC3339
# Corresponds to the JSON property `expireTime`
# @return [String]
attr_accessor :expiry_time
attr_accessor :expire_time
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
@ -20710,7 +20727,7 @@ module Google
@certificate = args[:certificate] if args.key?(:certificate)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@expiry_time = args[:expiry_time] if args.key?(:expiry_time)
@expire_time = args[:expire_time] if args.key?(:expire_time)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@managed = args[:managed] if args.key?(:managed)
@ -21324,6 +21341,14 @@ module Google
attr_accessor :enable_flow_logs
alias_method :enable_flow_logs?, :enable_flow_logs
# Whether the VMs in this subnet can directly access Google services via
# internal IPv6 addresses. This field can be both set at resource creation time
# and updated using patch.
# Corresponds to the JSON property `enablePrivateV6Access`
# @return [Boolean]
attr_accessor :enable_private_v6_access
alias_method :enable_private_v6_access?, :enable_private_v6_access
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a Subnetwork. An up-to-date fingerprint must be provided in order to
@ -21414,6 +21439,7 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@enable_flow_logs = args[:enable_flow_logs] if args.key?(:enable_flow_logs)
@enable_private_v6_access = args[:enable_private_v6_access] if args.key?(:enable_private_v6_access)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@gateway_address = args[:gateway_address] if args.key?(:gateway_address)
@id = args[:id] if args.key?(:id)

View File

@ -6307,6 +6307,8 @@ module Google
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeAlpha::ServiceAccount, decorator: Google::Apis::ComputeAlpha::ServiceAccount::Representation
property :shielded_vm_config, as: 'shieldedVmConfig', class: Google::Apis::ComputeAlpha::ShieldedVmConfig, decorator: Google::Apis::ComputeAlpha::ShieldedVmConfig::Representation
property :tags, as: 'tags', class: Google::Apis::ComputeAlpha::Tags, decorator: Google::Apis::ComputeAlpha::Tags::Representation
end
@ -6521,6 +6523,7 @@ module Google
property :creation_timestamp, as: 'creationTimestamp'
property :customer_router_ip_address, as: 'customerRouterIpAddress'
property :description, as: 'description'
property :edge_availability_domain, as: 'edgeAvailabilityDomain'
property :google_reference_id, as: 'googleReferenceId'
property :id, :numeric_string => true, as: 'id'
property :interconnect, as: 'interconnect'
@ -8766,7 +8769,7 @@ module Google
property :certificate, as: 'certificate'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :expiry_time, as: 'expiryTime'
property :expire_time, as: 'expireTime'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :managed, as: 'managed', class: Google::Apis::ComputeAlpha::SslCertificateManagedSslCertificate, decorator: Google::Apis::ComputeAlpha::SslCertificateManagedSslCertificate::Representation
@ -8943,6 +8946,7 @@ module Google
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :enable_flow_logs, as: 'enableFlowLogs'
property :enable_private_v6_access, as: 'enablePrivateV6Access'
property :fingerprint, :base64 => true, as: 'fingerprint'
property :gateway_address, as: 'gatewayAddress'
property :id, :numeric_string => true, as: 'id'

View File

@ -14853,6 +14853,137 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource. May be empty if no such policy
# or resource exists.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_node_group_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy', options)
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
command.response_class = Google::Apis::ComputeAlpha::Policy
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeAlpha::Policy] policy_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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_node_group_iam_policy(project, zone, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy', options)
command.request_representation = Google::Apis::ComputeAlpha::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
command.response_class = Google::Apis::ComputeAlpha::Policy
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_node_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions', options)
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
command.request_object = test_permissions_request_object
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource. May be empty if no such policy
# or resource exists.
# @param [String] project

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20180112'
REVISION = '20180123'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -476,6 +476,17 @@ module Google
# @return [String]
attr_accessor :nat_ip
# This signifies the networking tier used for configuring this access
# configuration and can only take the following values: PREMIUM, STANDARD.
# If an AccessConfig is specified without a valid external IP address, an
# ephemeral IP will be created with this networkTier.
# If an AccessConfig with a valid external IP address is specified, it must
# match that of the networkTier associated with the Address resource owning that
# IP.
# Corresponds to the JSON property `networkTier`
# @return [String]
attr_accessor :network_tier
# The DNS domain name for the public PTR record. This field can only be set when
# the set_public_ptr field is enabled.
# Corresponds to the JSON property `publicPtrDomainName`
@ -503,6 +514,7 @@ module Google
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@nat_ip = args[:nat_ip] if args.key?(:nat_ip)
@network_tier = args[:network_tier] if args.key?(:network_tier)
@public_ptr_domain_name = args[:public_ptr_domain_name] if args.key?(:public_ptr_domain_name)
@set_public_ptr = args[:set_public_ptr] if args.key?(:set_public_ptr)
@type = args[:type] if args.key?(:type)
@ -582,6 +594,13 @@ module Google
# @return [String]
attr_accessor :name
# This signifies the networking tier used for configuring this Address and can
# only take the following values: PREMIUM , STANDARD.
# If this field is not specified, it is assumed to be PREMIUM.
# Corresponds to the JSON property `networkTier`
# @return [String]
attr_accessor :network_tier
# [Output Only] URL of the region where the regional address resides. This field
# is not applicable to global addresses. You must specify this field as part of
# the HTTP request URL. You cannot set this field in the request body.
@ -631,6 +650,7 @@ module Google
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@network_tier = args[:network_tier] if args.key?(:network_tier)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@ -1212,7 +1232,7 @@ module Google
# If there are AuditConfigs for both `allServices` and a specific service, the
# union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# AuditLogConfig are exempted.
# Example Policy with multiple AuditConfigs:
# ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` "
# log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` "
@ -1222,8 +1242,7 @@ module Google
# ] `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.
# com from DATA_WRITE logging. This message is only visible as GOOGLE_INTERNAL
# or IAM_AUDIT_CONFIG.
# com from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
@ -3826,7 +3845,8 @@ module Google
attr_accessor :storage_type
# URL of the disk type resource describing which disk type to use to create the
# disk. Provide this when creating the disk.
# disk. Provide this when creating the disk. For example: project/zones/zone/
# diskTypes/pd-standard or pd-ssd
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -5303,6 +5323,16 @@ module Google
# @return [String]
attr_accessor :network
# This signifies the networking tier used for configuring this load balancer and
# can only take the following values: PREMIUM , STANDARD.
# For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For
# GlobalForwardingRule, the valid value is PREMIUM.
# If this field is not specified, it is assumed to be PREMIUM. If IPAddress is
# specified, this value must be equal to the networkTier of the Address.
# Corresponds to the JSON property `networkTier`
# @return [String]
attr_accessor :network_tier
# This field is used along with the target field for TargetHttpProxy,
# TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool,
# TargetInstance.
@ -5312,10 +5342,10 @@ module Google
# Some types of forwarding target have constraints on the acceptable ports:
# - TargetHttpProxy: 80, 8080
# - TargetHttpsProxy: 443
# - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883,
# 5222
# - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883,
# 5222
# - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688,
# 1883, 5222
# - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688,
# 1883, 5222
# - TargetVpnGateway: 500, 4500
# Corresponds to the JSON property `portRange`
# @return [String]
@ -5401,6 +5431,7 @@ module Google
@load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@network_tier = args[:network_tier] if args.key?(:network_tier)
@port_range = args[:port_range] if args.key?(:port_range)
@ports = args[:ports] if args.key?(:ports)
@region = args[:region] if args.key?(:region)
@ -13295,8 +13326,7 @@ module Google
class Policy
include Google::Apis::Core::Hashable
# Specifies cloud audit logging configuration for this policy. This field is
# only visible as GOOGLE_INTERNAL or IAM_AUDIT_CONFIG.
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::ComputeBeta::AuditConfig>]
attr_accessor :audit_configs
@ -13373,6 +13403,13 @@ module Google
# @return [String]
attr_accessor :creation_timestamp
# This signifies the default network tier used for configuring resources of the
# project and can only take the following values: PREMIUM, STANDARD. Initially
# the default network tier is PREMIUM.
# Corresponds to the JSON property `defaultNetworkTier`
# @return [String]
attr_accessor :default_network_tier
# [Output Only] Default service account used by VMs running in this project.
# Corresponds to the JSON property `defaultServiceAccount`
# @return [String]
@ -13436,6 +13473,7 @@ module Google
def update!(**args)
@common_instance_metadata = args[:common_instance_metadata] if args.key?(:common_instance_metadata)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@default_network_tier = args[:default_network_tier] if args.key?(:default_network_tier)
@default_service_account = args[:default_service_account] if args.key?(:default_service_account)
@description = args[:description] if args.key?(:description)
@enabled_features = args[:enabled_features] if args.key?(:enabled_features)
@ -13545,6 +13583,25 @@ module Google
end
end
#
class ProjectsSetDefaultNetworkTierRequest
include Google::Apis::Core::Hashable
# Default network tier to be set.
# Corresponds to the JSON property `networkTier`
# @return [String]
attr_accessor :network_tier
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@network_tier = args[:network_tier] if args.key?(:network_tier)
end
end
# A quotas entry.
class Quota
include Google::Apis::Core::Hashable

View File

@ -1798,6 +1798,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ProjectsSetDefaultNetworkTierRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Quota
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3072,6 +3078,7 @@ module Google
property :kind, as: 'kind'
property :name, as: 'name'
property :nat_ip, as: 'natIP'
property :network_tier, as: 'networkTier'
property :public_ptr_domain_name, as: 'publicPtrDomainName'
property :set_public_ptr, as: 'setPublicPtr'
property :type, as: 'type'
@ -3091,6 +3098,7 @@ module Google
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
property :name, as: 'name'
property :network_tier, as: 'networkTier'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :status, as: 'status'
@ -4219,6 +4227,7 @@ module Google
property :load_balancing_scheme, as: 'loadBalancingScheme'
property :name, as: 'name'
property :network, as: 'network'
property :network_tier, as: 'networkTier'
property :port_range, as: 'portRange'
collection :ports, as: 'ports'
property :region, as: 'region'
@ -6228,6 +6237,7 @@ module Google
property :common_instance_metadata, as: 'commonInstanceMetadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :default_network_tier, as: 'defaultNetworkTier'
property :default_service_account, as: 'defaultServiceAccount'
property :description, as: 'description'
collection :enabled_features, as: 'enabledFeatures'
@ -6276,6 +6286,13 @@ module Google
end
end
class ProjectsSetDefaultNetworkTierRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :network_tier, as: 'networkTier'
end
end
class Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -11984,6 +11984,58 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the default network tier of the project. The default network tier is used
# when an address/forwardingRule/instance is created without specifying the
# network tier field.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeBeta::ProjectsSetDefaultNetworkTierRequest] projects_set_default_network_tier_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_project_default_network_tier(project, projects_set_default_network_tier_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/setDefaultNetworkTier', options)
command.request_representation = Google::Apis::ComputeBeta::ProjectsSetDefaultNetworkTierRequest::Representation
command.request_object = projects_set_default_network_tier_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Enables the usage export feature and sets the usage export bucket where
# reports are stored. If you provide an empty request body using this method,
# the usage export feature will be disabled.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20180112'
REVISION = '20180123'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -3457,7 +3457,8 @@ module Google
attr_accessor :status
# URL of the disk type resource describing which disk type to use to create the
# disk. Provide this when creating the disk.
# disk. Provide this when creating the disk. For example: project/zones/zone/
# diskTypes/pd-standard or pd-ssd
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -4757,10 +4758,10 @@ module Google
# Some types of forwarding target have constraints on the acceptable ports:
# - TargetHttpProxy: 80, 8080
# - TargetHttpsProxy: 443
# - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883,
# 5222
# - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883,
# 5222
# - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688,
# 1883, 5222
# - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688,
# 1883, 5222
# - TargetVpnGateway: 500, 4500
# Corresponds to the JSON property `portRange`
# @return [String]

View File

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

View File

@ -310,6 +310,17 @@ module Google
# @return [Google::Apis::ContainerV1beta1::IpAllocationPolicy]
attr_accessor :ip_allocation_policy
# The fingerprint of the set of labels for this cluster.
# Corresponds to the JSON property `labelFingerprint`
# @return [String]
attr_accessor :label_fingerprint
# Configuration for the legacy Attribute Based Access Control authorization
# mode.
# Corresponds to the JSON property `legacyAbac`
# @return [Google::Apis::ContainerV1beta1::LegacyAbac]
attr_accessor :legacy_abac
# [Output only] The name of the Google Compute Engine
# [zone](/compute/docs/regions-zones/regions-zones#available) or
# [region](/compute/docs/regions-zones/regions-zones#available) in which
@ -410,6 +421,12 @@ module Google
# @return [Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig]
attr_accessor :pod_security_policy_config
# The resource labels for the cluster to use to annotate any related GCE
# resources.
# Corresponds to the JSON property `resourceLabels`
# @return [Hash<String,String>]
attr_accessor :resource_labels
# [Output only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -470,6 +487,8 @@ module Google
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
@ip_allocation_policy = args[:ip_allocation_policy] if args.key?(:ip_allocation_policy)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@legacy_abac = args[:legacy_abac] if args.key?(:legacy_abac)
@location = args[:location] if args.key?(:location)
@locations = args[:locations] if args.key?(:locations)
@logging_service = args[:logging_service] if args.key?(:logging_service)
@ -484,6 +503,7 @@ module Google
@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)
@pod_security_policy_config = args[:pod_security_policy_config] if args.key?(:pod_security_policy_config)
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
@self_link = args[:self_link] if args.key?(:self_link)
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
@status = args[:status] if args.key?(:status)
@ -985,6 +1005,30 @@ module Google
end
end
# Configuration for the legacy Attribute Based Access Control authorization
# mode.
class LegacyAbac
include Google::Apis::Core::Hashable
# Whether the ABAC authorizer is enabled for this cluster. When enabled,
# identities in the system, including service accounts, nodes, and
# controllers, will have statically granted permissions beyond those
# provided by the RBAC configuration or IAM.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enabled = args[:enabled] if args.key?(:enabled)
end
end
# ListClustersResponse is the result of ListClustersRequest.
class ListClustersResponse
include Google::Apis::Core::Hashable

View File

@ -124,6 +124,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LegacyAbac
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListClustersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -408,6 +414,9 @@ module Google
collection :instance_group_urls, as: 'instanceGroupUrls'
property :ip_allocation_policy, as: 'ipAllocationPolicy', class: Google::Apis::ContainerV1beta1::IpAllocationPolicy, decorator: Google::Apis::ContainerV1beta1::IpAllocationPolicy::Representation
property :label_fingerprint, as: 'labelFingerprint'
property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1beta1::LegacyAbac, decorator: Google::Apis::ContainerV1beta1::LegacyAbac::Representation
property :location, as: 'location'
collection :locations, as: 'locations'
property :logging_service, as: 'loggingService'
@ -429,6 +438,7 @@ module Google
property :pod_security_policy_config, as: 'podSecurityPolicyConfig', class: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig, decorator: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig::Representation
hash :resource_labels, as: 'resourceLabels'
property :self_link, as: 'selfLink'
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
property :status, as: 'status'
@ -544,6 +554,13 @@ module Google
end
end
class LegacyAbac
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
end
end
class ListClustersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1043,7 +1043,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the version and/or iamge type of a specific node pool.
# Updates the version and/or image type of a specific node pool.
# @param [String] name
# The name (project, location, cluster, node pool) of the node pool to update.
# Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
@ -2402,7 +2402,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the version and/or iamge type of a specific node pool.
# Updates the version and/or image type of a specific node pool.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/
module DataprocV1beta2
VERSION = 'V1beta2'
REVISION = '20180122'
REVISION = '20180213'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -605,7 +605,9 @@ module Google
# <strong>Note:</strong> currently only some fields can be updated: |Mask|
# Purpose| |labels|Updates labels| |config.worker_config.num_instances|Resize
# primary worker group| |config.secondary_worker_config.num_instances|Resize
# secondary worker group|
# secondary worker group| |config.lifecycle_config.auto_delete_ttl|Reset MAX TTL
# duration| |config.lifecycle_config.auto_delete_time|Update MAX TTL deletion
# timestamp| |config.lifecycle_config.idle_delete_ttl|Update Idle TTL duration|
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/logging/docs/
module LoggingV2
VERSION = 'V2'
REVISION = '20180116'
REVISION = '20180213'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1196,13 +1196,12 @@ module Google
# Ki kibi (2**10)
# Mi mebi (2**20)
# Gi gibi (2**30)
# Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
# s.The grammar also includes these connectors:
# Ti tebi (2**40)GrammarThe grammar also includes these connectors:
# / division (as an infix operator, e.g. 1/s).
# . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
# as follows:
# Expression = Component ` "." Component ` ` "/" Component ` ;
# Component = [ PREFIX ] UNIT [ Annotation ]
# Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
# | Annotation
# | "1"
# ;
@ -1213,6 +1212,9 @@ module Google
# s.
# NAME is a sequence of non-blank printable ASCII characters not containing '`'
# or '`'.
# 1 represents dimensionless value 1, such as in 1/s.
# % represents dimensionless value 1/100, and annotates values giving a
# percentage.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/logging/docs/
module LoggingV2beta1
VERSION = 'V2beta1'
REVISION = '20180116'
REVISION = '20180213'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1119,13 +1119,12 @@ module Google
# Ki kibi (2**10)
# Mi mebi (2**20)
# Gi gibi (2**30)
# Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
# s.The grammar also includes these connectors:
# Ti tebi (2**40)GrammarThe grammar also includes these connectors:
# / division (as an infix operator, e.g. 1/s).
# . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
# as follows:
# Expression = Component ` "." Component ` ` "/" Component ` ;
# Component = [ PREFIX ] UNIT [ Annotation ]
# Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
# | Annotation
# | "1"
# ;
@ -1136,6 +1135,9 @@ module Google
# s.
# NAME is a sequence of non-blank printable ASCII characters not containing '`'
# or '`'.
# 1 represents dimensionless value 1, such as in 1/s.
# % represents dimensionless value 1/100, and annotates values giving a
# percentage.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/manufacturers/
module ManufacturersV1
VERSION = 'V1'
REVISION = '20180207'
REVISION = '20180215'
# Manage your product listings for Google Manufacturer Center
AUTH_MANUFACTURERCENTER = 'https://www.googleapis.com/auth/manufacturercenter'

View File

@ -172,16 +172,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Inserts or updates the product in a Manufacturer Center account.
# Uploads the product in a Manufacturer Center account.
# The checks at upload time are minimal. All required attributes need to be
# present for a product to be valid. Issues may show up later
# after the API has accepted an update for a product and it is possible to
# after the API has accepted a new upload for a product and it is possible to
# overwrite an existing valid product with an invalid product. To detect
# this, you should retrieve the product and check it for issues once the
# updated version is available.
# Inserted or updated products first need to be processed before they can be
# new version is available.
# Uploaded products first need to be processed before they can be
# retrieved. Until then, new products will be unavailable, and retrieval
# of updated products will return the original state of the product.
# of uploaded products will return the original state of the product.
# @param [String] parent
# Parent ID in the format `accounts/`account_id``.
# `account_id` - The ID of the Manufacturer Center account.
@ -194,7 +194,7 @@ module Google
# `product_id` - The ID of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#
# id.
# @param [Google::Apis::ManufacturersV1::Product] product_object
# @param [Google::Apis::ManufacturersV1::Attributes] attributes_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -204,20 +204,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ManufacturersV1::Product] parsed result object
# @yieldparam result [Google::Apis::ManufacturersV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ManufacturersV1::Product]
# @return [Google::Apis::ManufacturersV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_account_product(parent, name, product_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def upload_account_product_product(parent, name, attributes_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/{+parent}/products/{+name}', options)
command.request_representation = Google::Apis::ManufacturersV1::Product::Representation
command.request_object = product_object
command.response_representation = Google::Apis::ManufacturersV1::Product::Representation
command.response_class = Google::Apis::ManufacturersV1::Product
command.request_representation = Google::Apis::ManufacturersV1::Attributes::Representation
command.request_object = attributes_object
command.response_representation = Google::Apis::ManufacturersV1::Empty::Representation
command.response_class = Google::Apis::ManufacturersV1::Empty
command.params['parent'] = parent unless parent.nil?
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/safe-browsing/
module SafebrowsingV4
VERSION = 'V4'
REVISION = '20180130'
REVISION = '20180215'
end
end
end

View File

@ -538,7 +538,8 @@ module Google
attr_accessor :encoded_data
# The offset of the first entry in the encoded data, or, if only a single
# integer was encoded, that single integer's value.
# integer was encoded, that single integer's value. If the field is empty or
# missing, assume zero.
# Corresponds to the JSON property `firstValue`
# @return [Fixnum]
attr_accessor :first_value

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20180205'
REVISION = '20180212'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'