Autogenerated update (2017-09-05)

Update:
- androiddeviceprovisioning_v1
- androidenterprise_v1
- cloudfunctions_v1
- cloudfunctions_v1beta2
- servicemanagement_v1
- serviceuser_v1
This commit is contained in:
Google APIs 2017-09-05 00:36:10 +00:00
parent d6eb6def76
commit 7ffbcd94e2
18 changed files with 179 additions and 457 deletions

View File

@ -4868,6 +4868,8 @@
"/androiddeviceprovisioning:v1/Company/name": name
"/androiddeviceprovisioning:v1/Company/ownerEmails": owner_emails
"/androiddeviceprovisioning:v1/Company/ownerEmails/owner_email": owner_email
"/androiddeviceprovisioning:v1/CreateCustomerRequest": create_customer_request
"/androiddeviceprovisioning:v1/CreateCustomerRequest/customer": customer
"/androiddeviceprovisioning:v1/Device": device
"/androiddeviceprovisioning:v1/Device/claims": claims
"/androiddeviceprovisioning:v1/Device/claims/claim": claim
@ -4968,6 +4970,8 @@
"/androiddeviceprovisioning:v1/UpdateMetadataArguments/deviceMetadata": device_metadata
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.operations.get": get_operation
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.operations.get/name": name
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.create": create_customer
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.create/parent": parent
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.list": list_partner_customers
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.customers.list/partnerId": partner_id
"/androiddeviceprovisioning:v1/androiddeviceprovisioning.partners.devices.claim": claim_device

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/zero-touch/
module AndroiddeviceprovisioningV1
VERSION = 'V1'
REVISION = '20170825'
REVISION = '20170903'
end
end
end

View File

@ -31,12 +31,12 @@ module Google
# @return [Fixnum]
attr_accessor :customer_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# Section to claim
# The section to claim.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
@ -57,13 +57,13 @@ module Google
class ClaimDeviceResponse
include Google::Apis::Core::Hashable
# the device id of the claimed device.
# The device ID of the claimed device.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# the resource name of the device in
# 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.
# The resource name of the device in the format
# `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
# Corresponds to the JSON property `deviceName`
# @return [String]
attr_accessor :device_name
@ -83,7 +83,7 @@ module Google
class ClaimDevicesRequest
include Google::Apis::Core::Hashable
# list of claims.
# List of claims.
# Corresponds to the JSON property `claims`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim>]
attr_accessor :claims
@ -102,31 +102,32 @@ module Google
class Company
include Google::Apis::Core::Hashable
# Admin email.
# Admins will be able to operate on the portal.
# This field is a WRITE-only field at creation time.
# Admin emails.
# Admins are able to operate on the portal.
# This field is a write-only field at creation time.
# Corresponds to the JSON property `adminEmails`
# @return [Array<String>]
attr_accessor :admin_emails
# company id
# Company ID.
# Corresponds to the JSON property `companyId`
# @return [Fixnum]
attr_accessor :company_id
# company name
# Company name.
# Corresponds to the JSON property `companyName`
# @return [String]
attr_accessor :company_name
# REST Resource name.
# The API resource name of the company in the format
# `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Owner email.
# Owner is able to operate on the portal, and modify admins and other owners.
# This field is a WRITE-only field at creation time.
# Owner emails.
# Owners are able to operate on the portal, and modify admins or other
# owners. This field is a write-only field at creation time.
# Corresponds to the JSON property `ownerEmails`
# @return [Array<String>]
attr_accessor :owner_emails
@ -145,11 +146,30 @@ module Google
end
end
# Device
# Request message to create a customer.
class CreateCustomerRequest
include Google::Apis::Core::Hashable
# Company
# Corresponds to the JSON property `customer`
# @return [Google::Apis::AndroiddeviceprovisioningV1::Company]
attr_accessor :customer
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer = args[:customer] if args.key?(:customer)
end
end
# An Android device.
class Device
include Google::Apis::Core::Hashable
# claims
# Claims.
# Corresponds to the JSON property `claims`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim>]
attr_accessor :claims
@ -160,22 +180,22 @@ module Google
# @return [String]
attr_accessor :configuration
# Device id
# Device ID.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# A key value pair of the device metadata.
# A key-value pair of the device metadata.
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
# Resource name in 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.
# Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -195,16 +215,16 @@ module Google
end
end
# containing the necessary info about a claim for a partner.
# Information about a device claimed for a partner.
class DeviceClaim
include Google::Apis::Core::Hashable
# owner id
# Owner ID.
# Corresponds to the JSON property `ownerCompanyId`
# @return [Fixnum]
attr_accessor :owner_company_id
# section type.
# Section type of the device claim.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
@ -220,11 +240,11 @@ module Google
end
end
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
class DeviceIdentifier
include Google::Apis::Core::Hashable
# IMEI
# IMEI number.
# Corresponds to the JSON property `imei`
# @return [String]
attr_accessor :imei
@ -236,12 +256,12 @@ module Google
# @return [String]
attr_accessor :manufacturer
# MEID
# MEID number.
# Corresponds to the JSON property `meid`
# @return [String]
attr_accessor :meid
# Serial number (optional)
# Serial number (optional).
# Corresponds to the JSON property `serialNumber`
# @return [String]
attr_accessor :serial_number
@ -259,7 +279,7 @@ module Google
end
end
# A key value pair of the device metadata.
# A key-value pair of the device metadata.
class DeviceMetadata
include Google::Apis::Core::Hashable
@ -313,8 +333,8 @@ module Google
class DevicesLongRunningOperationResponse
include Google::Apis::Core::Hashable
# processing status for each device.
# One PerDeviceStatus per device. The order is the same as in your requests.
# Processing status for each device.
# One `PerDeviceStatus` per device. The order is the same as in your requests.
# Corresponds to the JSON property `perDeviceStatus`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice>]
attr_accessor :per_device_status
@ -358,7 +378,7 @@ module Google
class FindDevicesByDeviceIdentifierRequest
include Google::Apis::Core::Hashable
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@ -368,7 +388,7 @@ module Google
# @return [Fixnum]
attr_accessor :limit
# Page token
# Page token.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
@ -394,7 +414,7 @@ module Google
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
attr_accessor :devices
# Page token of next page
# Page token of the next page.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -414,7 +434,7 @@ module Google
class FindDevicesByOwnerRequest
include Google::Apis::Core::Hashable
# List of customer ids to search for.
# List of customer IDs to search for.
# Corresponds to the JSON property `customerId`
# @return [Array<Fixnum>]
attr_accessor :customer_id
@ -424,7 +444,7 @@ module Google
# @return [Fixnum]
attr_accessor :limit
# Page token
# Page token.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
@ -456,7 +476,7 @@ module Google
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
attr_accessor :devices
# Page token of next page
# Page token of the next page.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -621,22 +641,22 @@ module Google
class PartnerClaim
include Google::Apis::Core::Hashable
# customer id to claim for.
# Customer ID to claim for.
# Corresponds to the JSON property `customerId`
# @return [Fixnum]
attr_accessor :customer_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# A key value pair of the device metadata.
# A key-value pair of the device metadata.
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
# section type to claim.
# Section type to claim.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
@ -658,17 +678,17 @@ module Google
class PartnerUnclaim
include Google::Apis::Core::Hashable
# device id of the device.
# Device ID of the device.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# section type to unclaim.
# Section type to unclaim.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
@ -689,7 +709,7 @@ module Google
class PerDeviceStatusInBatch
include Google::Apis::Core::Hashable
# device id of the device if process succeeds.
# Device ID of the device if process succeeds.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
@ -699,7 +719,7 @@ module Google
# @return [String]
attr_accessor :error_identifier
# Error message
# Error message.
# Corresponds to the JSON property `errorMessage`
# @return [String]
attr_accessor :error_message
@ -798,12 +818,12 @@ module Google
class UnclaimDeviceRequest
include Google::Apis::Core::Hashable
# The device id returned by ClaimDevice.
# The device ID returned by `ClaimDevice`.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@ -829,7 +849,7 @@ module Google
class UnclaimDevicesRequest
include Google::Apis::Core::Hashable
# list of unclaims.
# List of devices to unclaim.
# Corresponds to the JSON property `unclaims`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim>]
attr_accessor :unclaims
@ -848,7 +868,7 @@ module Google
class UpdateDeviceMetadataInBatchRequest
include Google::Apis::Core::Hashable
# list of metadata updates.
# List of metadata updates.
# Corresponds to the JSON property `updates`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments>]
attr_accessor :updates
@ -867,7 +887,7 @@ module Google
class UpdateDeviceMetadataRequest
include Google::Apis::Core::Hashable
# A key value pair of the device metadata.
# A key-value pair of the device metadata.
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
@ -886,17 +906,17 @@ module Google
class UpdateMetadataArguments
include Google::Apis::Core::Hashable
# device id of the device.
# Device ID of the device.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# A key value pair of the device metadata.
# A key-value pair of the device metadata.
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata

View File

@ -46,6 +46,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CreateCustomerRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -221,6 +227,14 @@ module Google
end
end
class CreateCustomerRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -80,9 +80,46 @@ module Google
execute_or_queue_command(command, &block)
end
# List all the customers that has delegates some role to this customer.
# A customer for Zero Touch Provisioning will be created.
# After a Customer is created, their admins and owners will be able to manage
# devices on partner.android.com/zerotouch or via their API.
# @param [String] parent
# The parent resource in format `partners/[PARTNER_ID]'.
# @param [Google::Apis::AndroiddeviceprovisioningV1::CreateCustomerRequest] create_customer_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::Company] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroiddeviceprovisioningV1::Company]
#
# @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(parent, create_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/customers', options)
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::CreateCustomerRequest::Representation
command.request_object = create_customer_request_object
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Company
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
# List the customers that are enrolled to the reseller identified by the
# `partnerId` argument. This list includes customers that the reseller
# created and customers that enrolled themselves using the portal.
# @param [Fixnum] partner_id
# the id of the partner.
# The ID of the partner.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -112,7 +149,7 @@ module Google
# Claim the device identified by device identifier.
# @param [Fixnum] partner_id
# Id of the partner.
# ID of the partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceRequest] claim_device_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -143,9 +180,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Claim devices asynchronously
# Claim devices asynchronously.
# @param [Fixnum] partner_id
# partner id.
# Partner ID.
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDevicesRequest] claim_devices_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -178,7 +215,7 @@ module Google
# Find devices by device identifier.
# @param [Fixnum] partner_id
# id of the partner.
# ID of the partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierRequest] find_devices_by_device_identifier_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -211,7 +248,7 @@ module Google
# Find devices by ownership.
# @param [Fixnum] partner_id
# id of the partner.
# ID of the partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerRequest] find_devices_by_owner_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -242,9 +279,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Get a device
# Get a device.
# @param [String] name
# resource name in 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.
# Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -272,11 +309,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Update the metadata
# Update the metadata.
# @param [Fixnum] metadata_owner_id
# The owner of the newly set metadata. Should be partner id itself.
# The owner of the newly set metadata. Set this to the partner ID.
# @param [Fixnum] device_id
# id of the partner.
# ID of the partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataRequest] update_device_metadata_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -308,9 +345,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Unclaim the device identified by device_id or identifier.
# Unclaim the device identified by the `device_id` or the `deviceIdentifier`.
# @param [Fixnum] partner_id
# Id of the partner.
# ID of the partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDeviceRequest] unclaim_device_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -341,9 +378,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Unclaim devices asynchronously
# Unclaim devices asynchronously.
# @param [Fixnum] partner_id
# partner id.
# Partner ID.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDevicesRequest] unclaim_devices_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -376,7 +413,7 @@ module Google
# Set metadata in batch asynchronously.
# @param [Fixnum] partner_id
# partner id.
# Partner ID.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataInBatchRequest] update_device_metadata_in_batch_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20170823'
REVISION = '20170830'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -722,22 +722,20 @@ module Google
end
end
# A group license object indicates a product that an enterprise admin has
# approved for use in the enterprise. The product may be free or paid. For free
# products, a group license object is created in these cases: if the enterprise
# admin approves a product in Google Play, if the product is added to a
# collection, or if an entitlement for the product is created for a user via the
# API. For paid products, a group license object is only created as part of the
# first bulk purchase of that product in Google Play by the enterprise admin.
# The API can be used to query group licenses; the available information
# includes the total number of licenses purchased (for paid products) and the
# total number of licenses that have been provisioned, that is, the total number
# of user entitlements in existence for the product.
# Group license objects are never deleted. If, for example, a free app is added
# to a collection and then removed, the group license will remain, allowing the
# enterprise admin to keep track of any remaining entitlements. An enterprise
# admin may indicate they are no longer interested in the group license by
# marking it as unapproved in Google Play.
# Group license objects allow you to keep track of licenses (called entitlements)
# for both free and paid apps. For a free app, a group license is created when
# an enterprise admin first approves the product in Google Play or when the
# first entitlement for the product is created for a user via the API. For a
# paid app, a group license object is only created when an enterprise admin
# purchases the product in Google Play for the first time.
# Use the API to query group licenses. A Grouplicenses resource includes the
# total number of licenses purchased (paid apps only) and the total number of
# licenses currently in use. Iyn other words, the total number of Entitlements
# that exist for the product.
# Only one group license object is created per product and group license objects
# are never deleted. If a product is unapproved, its group license remains. This
# allows enterprise admins to keep track of any remaining entitlements for the
# product.
class GroupLicense
include Google::Apis::Core::Hashable
@ -1463,8 +1461,7 @@ module Google
class Product
include Google::Apis::Core::Hashable
# App versions currently available for this product. The returned list contains
# only public versions. Alpha and beta versions are not included.
# App versions currently available for this product.
# Corresponds to the JSON property `appVersion`
# @return [Array<Google::Apis::AndroidenterpriseV1::AppVersion>]
attr_accessor :app_version

View File

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

View File

@ -118,7 +118,7 @@ module Google
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If true, the operation is completed, and either `error` or `response` is
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/functions
module CloudfunctionsV1beta2
VERSION = 'V1beta2'
REVISION = '20170822'
REVISION = '20170830'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -402,7 +402,7 @@ module Google
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If true, the operation is completed, and either `error` or `response` is
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]

View File

@ -51,7 +51,7 @@ module Google
def initialize
super('https://www.googleapis.com/', 'deploymentmanager/v2beta/projects/')
@batch_path = 'batch/deploymentmanager/v2beta'
@batch_path = 'batch'
end
# Deletes a composite type.

View File

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

View File

@ -524,8 +524,9 @@ module Google
# @return [String]
attr_accessor :address
# The number of seconds to wait for a response from a request. The
# default depends on the deployment context.
# The number of seconds to wait for a response from a request. The default
# deadline for gRPC and HTTP requests is 5 seconds. For Stubby requests,
# the default is no deadline.
# Corresponds to the JSON property `deadline`
# @return [Float]
attr_accessor :deadline
@ -629,75 +630,6 @@ module Google
end
end
# Write a Cloud Audit log
class CloudAuditOptions
include Google::Apis::Core::Hashable
# The log_name to populate in the Cloud Audit Record.
# Corresponds to the JSON property `logName`
# @return [String]
attr_accessor :log_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@log_name = args[:log_name] if args.key?(:log_name)
end
end
# A condition to be met.
class Condition
include Google::Apis::Core::Hashable
# Trusted attributes supplied by the IAM system.
# Corresponds to the JSON property `iam`
# @return [String]
attr_accessor :iam
# An operator to apply the subject with.
# Corresponds to the JSON property `op`
# @return [String]
attr_accessor :op
# Trusted attributes discharged by the service.
# Corresponds to the JSON property `svc`
# @return [String]
attr_accessor :svc
# Trusted attributes supplied by any service that owns resources and uses
# the IAM system for access control.
# Corresponds to the JSON property `sys`
# @return [String]
attr_accessor :sys
# DEPRECATED. Use 'values' instead.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
# The objects of the condition. This is mutually exclusive with 'value'.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@iam = args[:iam] if args.key?(:iam)
@op = args[:op] if args.key?(:op)
@svc = args[:svc] if args.key?(:svc)
@sys = args[:sys] if args.key?(:sys)
@value = args[:value] if args.key?(:value)
@values = args[:values] if args.key?(:values)
end
end
# Output generated from semantically comparing two versions of a service
# configuration.
# Includes detailed information about a field that have changed with
@ -924,47 +856,6 @@ module Google
end
end
# Increment a streamz counter with the specified metric and field names.
# Metric names should start with a '/', generally be lowercase-only,
# and end in "_count". Field names should not contain an initial slash.
# The actual exported metric names will have "/iam/policy" prepended.
# Field names correspond to IAM request parameters and field values are
# their respective values.
# At present the only supported field names are
# - "iam_principal", corresponding to IAMContext.principal;
# - "" (empty string), resulting in one aggretated counter with no field.
# Examples:
# counter ` metric: "/debug_access_count" field: "iam_principal" `
# ==> increment counter /iam/policy/backend_debug_access_count
# `iam_principal=[value of IAMContext.principal]`
# At this time we do not support:
# * multiple field names (though this may be supported in the future)
# * decrementing the counter
# * incrementing it by anything other than 1
class CounterOptions
include Google::Apis::Core::Hashable
# The field value to attribute.
# Corresponds to the JSON property `field`
# @return [String]
attr_accessor :field
# The metric to update.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@field = args[:field] if args.key?(:field)
@metric = args[:metric] if args.key?(:metric)
end
end
# Configuration for a custom authentication provider.
class CustomAuthRequirements
include Google::Apis::Core::Hashable
@ -1072,26 +963,6 @@ module Google
end
end
# Write a Data Access (Gin) log
class DataAccessOptions
include Google::Apis::Core::Hashable
# Whether Gin logging should happen in a fail-closed manner at the caller.
# This is relevant only in the LocalIAM implementation, for now.
# Corresponds to the JSON property `logMode`
# @return [String]
attr_accessor :log_mode
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@log_mode = args[:log_mode] if args.key?(:log_mode)
end
end
# Strategy used to delete a service. This strategy is a placeholder only
# used by the system generated rollout to delete a service.
class DeleteServiceStrategy
@ -2215,53 +2086,6 @@ module Google
end
end
# Specifies what kind of log the caller must write
class LogConfig
include Google::Apis::Core::Hashable
# Write a Cloud Audit log
# Corresponds to the JSON property `cloudAudit`
# @return [Google::Apis::ServicemanagementV1::CloudAuditOptions]
attr_accessor :cloud_audit
# Increment a streamz counter with the specified metric and field names.
# Metric names should start with a '/', generally be lowercase-only,
# and end in "_count". Field names should not contain an initial slash.
# The actual exported metric names will have "/iam/policy" prepended.
# Field names correspond to IAM request parameters and field values are
# their respective values.
# At present the only supported field names are
# - "iam_principal", corresponding to IAMContext.principal;
# - "" (empty string), resulting in one aggretated counter with no field.
# Examples:
# counter ` metric: "/debug_access_count" field: "iam_principal" `
# ==> increment counter /iam/policy/backend_debug_access_count
# `iam_principal=[value of IAMContext.principal]`
# At this time we do not support:
# * multiple field names (though this may be supported in the future)
# * decrementing the counter
# * incrementing it by anything other than 1
# Corresponds to the JSON property `counter`
# @return [Google::Apis::ServicemanagementV1::CounterOptions]
attr_accessor :counter
# Write a Data Access (Gin) log
# Corresponds to the JSON property `dataAccess`
# @return [Google::Apis::ServicemanagementV1::DataAccessOptions]
attr_accessor :data_access
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
@counter = args[:counter] if args.key?(:counter)
@data_access = args[:data_access] if args.key?(:data_access)
end
end
# A description of a log type. Example in YAML format:
# - name: library.googleapis.com/activity_history
# description: The history of borrowing and returning library items.
@ -3063,7 +2887,7 @@ module Google
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If true, the operation is completed, and either `error` or `response` is
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]
@ -3332,19 +3156,6 @@ module Google
attr_accessor :iam_owned
alias_method :iam_owned?, :iam_owned
# If more than one rule is specified, the rules are applied in the following
# manner:
# - All matching LOG rules are always applied.
# - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
# Logging will be applied if one or more matching rule requires logging.
# - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
# granted.
# Logging will be applied if one or more matching rule requires logging.
# - Otherwise, if no rule applies, permission is denied.
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::ServicemanagementV1::Rule>]
attr_accessor :rules
# Version of the `Policy`. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
@ -3360,7 +3171,6 @@ module Google
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
@rules = args[:rules] if args.key?(:rules)
@version = args[:version] if args.key?(:version)
end
end
@ -3651,68 +3461,6 @@ module Google
end
end
# A rule to be applied in a Policy.
class Rule
include Google::Apis::Core::Hashable
# Required
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# Additional restrictions that must be met
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::ServicemanagementV1::Condition>]
attr_accessor :conditions
# Human-readable description of the rule.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# If one or more 'in' clauses are specified, the rule matches if
# the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
# Corresponds to the JSON property `in`
# @return [Array<String>]
attr_accessor :in
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
# that match the LOG action.
# Corresponds to the JSON property `logConfig`
# @return [Array<Google::Apis::ServicemanagementV1::LogConfig>]
attr_accessor :log_config
# If one or more 'not_in' clauses are specified, the rule matches
# if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
# The format for in and not_in entries is the same as for members in a
# Binding (see google/iam/v1/policy.proto).
# Corresponds to the JSON property `notIn`
# @return [Array<String>]
attr_accessor :not_in
# A permission is a string of form '<service>.<resource type>.<verb>'
# (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
# and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@conditions = args[:conditions] if args.key?(:conditions)
@description = args[:description] if args.key?(:description)
@in = args[:in] if args.key?(:in)
@log_config = args[:log_config] if args.key?(:log_config)
@not_in = args[:not_in] if args.key?(:not_in)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# `Service` is the root object of Google service configuration schema. It
# describes basic information about a service, such as the name and the
# title, and delegates other aspects to sub-sections. Each sub-section is

View File

@ -100,18 +100,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CloudAuditOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConfigChange
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -154,12 +142,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CounterOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomAuthRequirements
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -184,12 +166,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DataAccessOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeleteServiceStrategy
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -328,12 +304,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -466,12 +436,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Rule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Service
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -720,25 +684,6 @@ module Google
end
end
class CloudAuditOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_name, as: 'logName'
end
end
class Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :iam, as: 'iam'
property :op, as: 'op'
property :svc, as: 'svc'
property :sys, as: 'sys'
property :value, as: 'value'
collection :values, as: 'values'
end
end
class ConfigChange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -800,14 +745,6 @@ module Google
end
end
class CounterOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :field, as: 'field'
property :metric, as: 'metric'
end
end
class CustomAuthRequirements
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -840,13 +777,6 @@ module Google
end
end
class DataAccessOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_mode, as: 'logMode'
end
end
class DeleteServiceStrategy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1082,18 +1012,6 @@ module Google
end
end
class LogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::ServicemanagementV1::CloudAuditOptions, decorator: Google::Apis::ServicemanagementV1::CloudAuditOptions::Representation
property :counter, as: 'counter', class: Google::Apis::ServicemanagementV1::CounterOptions, decorator: Google::Apis::ServicemanagementV1::CounterOptions::Representation
property :data_access, as: 'dataAccess', class: Google::Apis::ServicemanagementV1::DataAccessOptions, decorator: Google::Apis::ServicemanagementV1::DataAccessOptions::Representation
end
end
class LogDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1289,8 +1207,6 @@ module Google
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::Rule, decorator: Google::Apis::ServicemanagementV1::Rule::Representation
property :version, as: 'version'
end
end
@ -1336,21 +1252,6 @@ module Google
end
end
class Rule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
collection :conditions, as: 'conditions', class: Google::Apis::ServicemanagementV1::Condition, decorator: Google::Apis::ServicemanagementV1::Condition::Representation
property :description, as: 'description'
collection :in, as: 'in'
collection :log_config, as: 'logConfig', class: Google::Apis::ServicemanagementV1::LogConfig, decorator: Google::Apis::ServicemanagementV1::LogConfig::Representation
collection :not_in, as: 'notIn'
collection :permissions, as: 'permissions'
end
end
class Service
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

@ -423,8 +423,9 @@ module Google
# @return [String]
attr_accessor :address
# The number of seconds to wait for a response from a request. The
# default depends on the deployment context.
# The number of seconds to wait for a response from a request. The default
# deadline for gRPC and HTTP requests is 5 seconds. For Stubby requests,
# the default is no deadline.
# Corresponds to the JSON property `deadline`
# @return [Float]
attr_accessor :deadline
@ -2267,7 +2268,7 @@ module Google
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If true, the operation is completed, and either `error` or `response` is
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]

View File

@ -50,7 +50,7 @@ module Google
def initialize
super('https://www.googleapis.com/', 'siteVerification/v1/')
@batch_path = 'batch'
@batch_path = 'batch/siteVerification/v1'
end
# Relinquish ownership of a website or domain.