Autogenerated update (2018-04-10)

Update:
- androidmanagement_v1
- firestore_v1beta1
- sheets_v4
- storagetransfer_v1
This commit is contained in:
Google APIs 2018-04-10 00:35:44 +00:00
parent b56f774027
commit 498338ea8e
10 changed files with 170 additions and 5 deletions

View File

@ -6223,6 +6223,8 @@
"/androidmanagement:v1/Enterprise/name": name
"/androidmanagement:v1/Enterprise/primaryColor": primary_color
"/androidmanagement:v1/Enterprise/pubsubTopic": pubsub_topic
"/androidmanagement:v1/Enterprise/termsAndConditions": terms_and_conditions
"/androidmanagement:v1/Enterprise/termsAndConditions/terms_and_condition": terms_and_condition
"/androidmanagement:v1/ExternalData": external_data
"/androidmanagement:v1/ExternalData/sha256Hash": sha256_hash
"/androidmanagement:v1/ExternalData/url": url
@ -6463,6 +6465,9 @@
"/androidmanagement:v1/SystemUpdate/endMinutes": end_minutes
"/androidmanagement:v1/SystemUpdate/startMinutes": start_minutes
"/androidmanagement:v1/SystemUpdate/type": type
"/androidmanagement:v1/TermsAndConditions": terms_and_conditions
"/androidmanagement:v1/TermsAndConditions/content": content
"/androidmanagement:v1/TermsAndConditions/header": header
"/androidmanagement:v1/UserFacingMessage": user_facing_message
"/androidmanagement:v1/UserFacingMessage/defaultMessage": default_message
"/androidmanagement:v1/UserFacingMessage/localizedMessages": localized_messages
@ -65848,6 +65853,7 @@
"/sheets:v4/BasicChartDomain/domain": domain
"/sheets:v4/BasicChartDomain/reversed": reversed
"/sheets:v4/BasicChartSeries": basic_chart_series
"/sheets:v4/BasicChartSeries/color": color
"/sheets:v4/BasicChartSeries/lineStyle": line_style
"/sheets:v4/BasicChartSeries/series": series
"/sheets:v4/BasicChartSeries/targetAxis": target_axis

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20180326'
REVISION = '20180402'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'

View File

@ -788,6 +788,12 @@ module Google
# @return [String]
attr_accessor :pubsub_topic
# Terms and conditions that must be accepted when provisioning a device for this
# enterprise. A page of terms is generated for each value in this list.
# Corresponds to the JSON property `termsAndConditions`
# @return [Array<Google::Apis::AndroidmanagementV1::TermsAndConditions>]
attr_accessor :terms_and_conditions
def initialize(**args)
update!(**args)
end
@ -801,6 +807,7 @@ module Google
@name = args[:name] if args.key?(:name)
@primary_color = args[:primary_color] if args.key?(:primary_color)
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
@terms_and_conditions = args[:terms_and_conditions] if args.key?(:terms_and_conditions)
end
end
@ -2459,6 +2466,33 @@ module Google
end
end
# A terms and conditions page to be accepted during provisioning.
class TermsAndConditions
include Google::Apis::Core::Hashable
# Provides a user-facing message with locale info. The maximum message length is
# 4096 characters.
# Corresponds to the JSON property `content`
# @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]
attr_accessor :content
# Provides a user-facing message with locale info. The maximum message length is
# 4096 characters.
# Corresponds to the JSON property `header`
# @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]
attr_accessor :header
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@content = args[:content] if args.key?(:content)
@header = args[:header] if args.key?(:header)
end
end
# Provides a user-facing message with locale info. The maximum message length is
# 4096 characters.
class UserFacingMessage

View File

@ -256,6 +256,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TermsAndConditions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserFacingMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -443,6 +449,8 @@ module Google
property :name, as: 'name'
property :primary_color, as: 'primaryColor'
property :pubsub_topic, as: 'pubsubTopic'
collection :terms_and_conditions, as: 'termsAndConditions', class: Google::Apis::AndroidmanagementV1::TermsAndConditions, decorator: Google::Apis::AndroidmanagementV1::TermsAndConditions::Representation
end
end
@ -798,6 +806,16 @@ module Google
end
end
class TermsAndConditions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content, as: 'content', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
property :header, as: 'header', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
end
end
class UserFacingMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/
module SheetsV4
VERSION = 'V4'
REVISION = '20180329'
REVISION = '20180405'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -1049,6 +1049,109 @@ module Google
class BasicChartSeries
include Google::Apis::Core::Hashable
# Represents a color in the RGBA color space. This representation is designed
# for simplicity of conversion to/from color representations in various
# languages over compactness; for example, the fields of this representation
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
# method in iOS; and, with just a little work, it can be easily formatted into
# a CSS "rgba()" string in JavaScript, as well. Here are some examples:
# Example (Java):
# import com.google.type.Color;
# // ...
# public static java.awt.Color fromProto(Color protocolor) `
# float alpha = protocolor.hasAlpha()
# ? protocolor.getAlpha().getValue()
# : 1.0;
# return new java.awt.Color(
# protocolor.getRed(),
# protocolor.getGreen(),
# protocolor.getBlue(),
# alpha);
# `
# public static Color toProto(java.awt.Color color) `
# float red = (float) color.getRed();
# float green = (float) color.getGreen();
# float blue = (float) color.getBlue();
# float denominator = 255.0;
# Color.Builder resultBuilder =
# Color
# .newBuilder()
# .setRed(red / denominator)
# .setGreen(green / denominator)
# .setBlue(blue / denominator);
# int alpha = color.getAlpha();
# if (alpha != 255) `
# result.setAlpha(
# FloatValue
# .newBuilder()
# .setValue(((float) alpha) / denominator)
# .build());
# `
# return resultBuilder.build();
# `
# // ...
# Example (iOS / Obj-C):
# // ...
# static UIColor* fromProto(Color* protocolor) `
# float red = [protocolor red];
# float green = [protocolor green];
# float blue = [protocolor blue];
# FloatValue* alpha_wrapper = [protocolor alpha];
# float alpha = 1.0;
# if (alpha_wrapper != nil) `
# alpha = [alpha_wrapper value];
# `
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
# `
# static Color* toProto(UIColor* color) `
# CGFloat red, green, blue, alpha;
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
# return nil;
# `
# Color* result = [Color alloc] init];
# [result setRed:red];
# [result setGreen:green];
# [result setBlue:blue];
# if (alpha <= 0.9999) `
# [result setAlpha:floatWrapperWithValue(alpha)];
# `
# [result autorelease];
# return result;
# `
# // ...
# Example (JavaScript):
# // ...
# var protoToCssColor = function(rgb_color) `
# var redFrac = rgb_color.red || 0.0;
# var greenFrac = rgb_color.green || 0.0;
# var blueFrac = rgb_color.blue || 0.0;
# var red = Math.floor(redFrac * 255);
# var green = Math.floor(greenFrac * 255);
# var blue = Math.floor(blueFrac * 255);
# if (!('alpha' in rgb_color)) `
# return rgbToCssColor_(red, green, blue);
# `
# var alphaFrac = rgb_color.alpha.value || 0.0;
# var rgbParams = [red, green, blue].join(',');
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
# `;
# var rgbToCssColor_ = function(red, green, blue) `
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
# var hexString = rgbNumber.toString(16);
# var missingZeros = 6 - hexString.length;
# var resultBuilder = ['#'];
# for (var i = 0; i < missingZeros; i++) `
# resultBuilder.push('0');
# `
# resultBuilder.push(hexString);
# return resultBuilder.join('');
# `;
# // ...
# Corresponds to the JSON property `color`
# @return [Google::Apis::SheetsV4::Color]
attr_accessor :color
# Properties that describe the style of a line.
# Corresponds to the JSON property `lineStyle`
# @return [Google::Apis::SheetsV4::LineStyle]
@ -1086,6 +1189,7 @@ module Google
# Update properties of this object
def update!(**args)
@color = args[:color] if args.key?(:color)
@line_style = args[:line_style] if args.key?(:line_style)
@series = args[:series] if args.key?(:series)
@target_axis = args[:target_axis] if args.key?(:target_axis)

View File

@ -1300,6 +1300,8 @@ module Google
class BasicChartSeries
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
property :line_style, as: 'lineStyle', class: Google::Apis::SheetsV4::LineStyle, decorator: Google::Apis::SheetsV4::LineStyle::Representation
property :series, as: 'series', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation

View File

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

View File

@ -98,7 +98,8 @@ module Google
# @return [Fixnum]
attr_accessor :day
# Month of year. Must be from 1 to 12.
# Month of year. Must be from 1 to 12, or 0 if specifying a date without a
# month.
# Corresponds to the JSON property `month`
# @return [Fixnum]
attr_accessor :month