Autogenerated update (2020-01-31)

Delete:
- plus_domains_v1
- replicapool_v1beta1

Update:
- container_v1
- container_v1beta1
- healthcare_v1beta1
- monitoring_v1
- monitoring_v3
- pubsub_v1
- pubsub_v1beta2
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- sourcerepo_v1
This commit is contained in:
Google APIs 2020-01-31 00:37:48 +00:00
parent c580b9bb75
commit 87222398b4
40 changed files with 6202 additions and 6400 deletions

View File

@ -0,0 +1,31 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/admob_v1/service.rb'
require 'google/apis/admob_v1/classes.rb'
require 'google/apis/admob_v1/representations.rb'
module Google
module Apis
# AdMob API
#
# The Google AdMob API lets you programmatically get reports on earnings.
#
# @see https://developers.google.com/admob/api/
module AdmobV1
VERSION = 'V1'
REVISION = '20200130'
end
end
end

View File

@ -0,0 +1,951 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AdmobV1
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# * A full date, with non-zero year, month and day values
# * A month and day value, with a zero year, e.g. an anniversary
# * A year on its own, with zero month and day values
# * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
class Date
include Google::Apis::Core::Hashable
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
# if specifying a year by itself or a year and month where the day is not
# significant.
# Corresponds to the JSON property `day`
# @return [Fixnum]
attr_accessor :day
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a
# month and day.
# Corresponds to the JSON property `month`
# @return [Fixnum]
attr_accessor :month
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
# a year.
# Corresponds to the JSON property `year`
# @return [Fixnum]
attr_accessor :year
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@day = args[:day] if args.key?(:day)
@month = args[:month] if args.key?(:month)
@year = args[:year] if args.key?(:year)
end
end
# Specification of a single date range. Both dates are inclusive.
class DateRange
include Google::Apis::Core::Hashable
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# * A full date, with non-zero year, month and day values
# * A month and day value, with a zero year, e.g. an anniversary
# * A year on its own, with zero month and day values
# * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `endDate`
# @return [Google::Apis::AdmobV1::Date]
attr_accessor :end_date
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# * A full date, with non-zero year, month and day values
# * A month and day value, with a zero year, e.g. an anniversary
# * A year on its own, with zero month and day values
# * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `startDate`
# @return [Google::Apis::AdmobV1::Date]
attr_accessor :start_date
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_date = args[:end_date] if args.key?(:end_date)
@start_date = args[:start_date] if args.key?(:start_date)
end
end
# Request to generate an AdMob Mediation report.
class GenerateMediationReportRequest
include Google::Apis::Core::Hashable
# The specification for generating an AdMob Mediation report.
# For example, the specification to get observed ECPM sliced by ad source and
# app for the 'US' and 'CN' countries can look like the following example:
# `
# "date_range": `
# "start_date": `"year": 2018, "month": 9, "day": 1`,
# "end_date": `"year": 2018, "month": 9, "day": 30`
# `,
# "dimensions": ["AD_SOURCE", "APP", "COUNTRY"],
# "metrics": ["OBSERVED_ECPM"],
# "dimension_filters": [
# `
# "dimension": "COUNTRY",
# "matches_any": `"values": [`"value": "US", "value": "CN"`]`
# `
# ],
# "sort_conditions": [
# `"dimension":"APP", order: "ASCENDING"`
# ],
# "localization_settings": `
# "currency_code": "USD",
# "language_code": "en-US"
# `
# `
# For a better understanding, you can treat the preceding specification like
# the following pseudo SQL:
# SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM
# FROM MEDIATION_REPORT
# WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
# AND COUNTRY IN ('US', 'CN')
# GROUP BY AD_SOURCE, APP, COUNTRY
# ORDER BY APP ASC;
# Corresponds to the JSON property `reportSpec`
# @return [Google::Apis::AdmobV1::MediationReportSpec]
attr_accessor :report_spec
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@report_spec = args[:report_spec] if args.key?(:report_spec)
end
end
# The streaming response for the AdMob Mediation report where the first
# response contains the report header, then a stream of row responses, and
# finally a footer as the last response message.
# For example:
# [`
# "header": `
# "date_range": `
# "start_date": `"year": 2018, "month": 9, "day": 1`,
# "end_date": `"year": 2018, "month": 9, "day": 30`
# `
# "localization_settings": `
# "currency_code": "USD",
# "language_code": "en-US"
# `
# `
# `,
# `
# "row": `
# "dimension_values": `
# "DATE": `"value": "20180918"`,
# "APP": `
# "value": "ca-app-pub-8123415297019784~1001342552",
# "display_label": "My app name!"
# `
# `,
# "metric_values": `
# "ESTIMATED_EARNINGS": `"decimal_value": "1324746"`
# `
# `
# `,
# `
# "footer": `"matching_row_count": 1`
# `]
class GenerateMediationReportResponse
include Google::Apis::Core::Hashable
# Groups data available after report generation, for example, warnings and row
# counts. Always sent as the last message in the stream response.
# Corresponds to the JSON property `footer`
# @return [Google::Apis::AdmobV1::ReportFooter]
attr_accessor :footer
# Groups data helps to treat the generated report. Always sent as a first
# message in the stream response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::AdmobV1::ReportHeader]
attr_accessor :header
# A row of the returning report.
# Corresponds to the JSON property `row`
# @return [Google::Apis::AdmobV1::ReportRow]
attr_accessor :row
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@footer = args[:footer] if args.key?(:footer)
@header = args[:header] if args.key?(:header)
@row = args[:row] if args.key?(:row)
end
end
# Request to generate an AdMob Network report.
class GenerateNetworkReportRequest
include Google::Apis::Core::Hashable
# The specification for generating an AdMob Network report.
# For example, the specification to get clicks and estimated earnings for only
# the 'US' and 'CN' countries can look like the following example:
# `
# 'date_range': `
# 'start_date': `'year': 2018, 'month': 9, 'day': 1`,
# 'end_date': `'year': 2018, 'month': 9, 'day': 30`
# `,
# 'dimensions': ['DATE', 'APP', 'COUNTRY'],
# 'metrics': ['CLICKS', 'ESTIMATED_EARNINGS'],
# 'dimension_filters': [
# `
# 'dimension': 'COUNTRY',
# 'matches_any': `'values': [`'value': 'US', 'value': 'CN'`]`
# `
# ],
# 'sort_conditions': [
# `'dimension':'APP', order: 'ASCENDING'`,
# `'metric':'CLICKS', order: 'DESCENDING'`
# ],
# 'localization_settings': `
# 'currency_code': 'USD',
# 'language_code': 'en-US'
# `
# `
# For a better understanding, you can treat the preceding specification like
# the following pseudo SQL:
# SELECT DATE, APP, COUNTRY, CLICKS, ESTIMATED_EARNINGS
# FROM NETWORK_REPORT
# WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
# AND COUNTRY IN ('US', 'CN')
# GROUP BY DATE, APP, COUNTRY
# ORDER BY APP ASC, CLICKS DESC;
# Corresponds to the JSON property `reportSpec`
# @return [Google::Apis::AdmobV1::NetworkReportSpec]
attr_accessor :report_spec
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@report_spec = args[:report_spec] if args.key?(:report_spec)
end
end
# The streaming response for the AdMob Network report where the first response
# contains the report header, then a stream of row responses, and finally a
# footer as the last response message.
# For example:
# [`
# "header": `
# "dateRange": `
# "startDate": `"year": 2018, "month": 9, "day": 1`,
# "endDate": `"year": 2018, "month": 9, "day": 30`
# `
# "localizationSettings": `
# "currencyCode": "USD",
# "languageCode": "en-US"
# `
# `
# `,
# `
# "row": `
# "dimensionValues": `
# "DATE": `"value": "20180918"`,
# "APP": `
# "value": "ca-app-pub-8123415297019784~1001342552",
# displayLabel: "My app name!"
# `
# `,
# "metricValues": `
# "ESTIMATED_EARNINGS": `"microsValue": 6500000`
# `
# `
# `,
# ...
# `
# "footer": `"matchingRowCount": 5`
# `]
class GenerateNetworkReportResponse
include Google::Apis::Core::Hashable
# Groups data available after report generation, for example, warnings and row
# counts. Always sent as the last message in the stream response.
# Corresponds to the JSON property `footer`
# @return [Google::Apis::AdmobV1::ReportFooter]
attr_accessor :footer
# Groups data helps to treat the generated report. Always sent as a first
# message in the stream response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::AdmobV1::ReportHeader]
attr_accessor :header
# A row of the returning report.
# Corresponds to the JSON property `row`
# @return [Google::Apis::AdmobV1::ReportRow]
attr_accessor :row
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@footer = args[:footer] if args.key?(:footer)
@header = args[:header] if args.key?(:header)
@row = args[:row] if args.key?(:row)
end
end
# Response for the publisher account list request.
class ListPublisherAccountsResponse
include Google::Apis::Core::Hashable
# Publisher that the client credentials can access.
# Corresponds to the JSON property `account`
# @return [Array<Google::Apis::AdmobV1::PublisherAccount>]
attr_accessor :account
# If not empty, indicates that there might be more accounts for the request;
# you must pass this value in a new `ListPublisherAccountsRequest`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account = args[:account] if args.key?(:account)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Localization settings for reports, such as currency and language. It affects
# how metrics are calculated.
class LocalizationSettings
include Google::Apis::Core::Hashable
# Currency code of the earning related metrics, which is the 3-letter code
# defined in ISO 4217. The daily average rate is used for the currency
# conversion. Defaults to the account currency code if unspecified.
# Corresponds to the JSON property `currencyCode`
# @return [String]
attr_accessor :currency_code
# Language used for any localized text, such as some dimension value display
# labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if
# unspecified.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@language_code = args[:language_code] if args.key?(:language_code)
end
end
# The specification for generating an AdMob Mediation report.
# For example, the specification to get observed ECPM sliced by ad source and
# app for the 'US' and 'CN' countries can look like the following example:
# `
# "date_range": `
# "start_date": `"year": 2018, "month": 9, "day": 1`,
# "end_date": `"year": 2018, "month": 9, "day": 30`
# `,
# "dimensions": ["AD_SOURCE", "APP", "COUNTRY"],
# "metrics": ["OBSERVED_ECPM"],
# "dimension_filters": [
# `
# "dimension": "COUNTRY",
# "matches_any": `"values": [`"value": "US", "value": "CN"`]`
# `
# ],
# "sort_conditions": [
# `"dimension":"APP", order: "ASCENDING"`
# ],
# "localization_settings": `
# "currency_code": "USD",
# "language_code": "en-US"
# `
# `
# For a better understanding, you can treat the preceding specification like
# the following pseudo SQL:
# SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM
# FROM MEDIATION_REPORT
# WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
# AND COUNTRY IN ('US', 'CN')
# GROUP BY AD_SOURCE, APP, COUNTRY
# ORDER BY APP ASC;
class MediationReportSpec
include Google::Apis::Core::Hashable
# Specification of a single date range. Both dates are inclusive.
# Corresponds to the JSON property `dateRange`
# @return [Google::Apis::AdmobV1::DateRange]
attr_accessor :date_range
# Describes which report rows to match based on their dimension values.
# Corresponds to the JSON property `dimensionFilters`
# @return [Array<Google::Apis::AdmobV1::MediationReportSpecDimensionFilter>]
attr_accessor :dimension_filters
# List of dimensions of the report. The value combination of these dimensions
# determines the row of the report. If no dimensions are specified, the
# report returns a single row of requested metrics for the entire account.
# Corresponds to the JSON property `dimensions`
# @return [Array<String>]
attr_accessor :dimensions
# Localization settings for reports, such as currency and language. It affects
# how metrics are calculated.
# Corresponds to the JSON property `localizationSettings`
# @return [Google::Apis::AdmobV1::LocalizationSettings]
attr_accessor :localization_settings
# Maximum number of report data rows to return. If the value is not set, the
# API returns as many rows as possible, up to 100000. Acceptable values are
# 1-100000, inclusive. Any other values are treated as 100000.
# Corresponds to the JSON property `maxReportRows`
# @return [Fixnum]
attr_accessor :max_report_rows
# List of metrics of the report. A report must specify at least one metric.
# Corresponds to the JSON property `metrics`
# @return [Array<String>]
attr_accessor :metrics
# Describes the sorting of report rows. The order of the condition in the
# list defines its precedence; the earlier the condition, the higher its
# precedence. If no sort conditions are specified, the row ordering is
# undefined.
# Corresponds to the JSON property `sortConditions`
# @return [Array<Google::Apis::AdmobV1::MediationReportSpecSortCondition>]
attr_accessor :sort_conditions
# A report time zone. Accepts an IANA TZ name values, such as
# "America/Los_Angeles." If no time zone is defined, the account default
# takes effect. Check default value by the get account action.
# **Warning:** The "America/Los_Angeles" is the only supported value at
# the moment.
# Corresponds to the JSON property `timeZone`
# @return [String]
attr_accessor :time_zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@date_range = args[:date_range] if args.key?(:date_range)
@dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@localization_settings = args[:localization_settings] if args.key?(:localization_settings)
@max_report_rows = args[:max_report_rows] if args.key?(:max_report_rows)
@metrics = args[:metrics] if args.key?(:metrics)
@sort_conditions = args[:sort_conditions] if args.key?(:sort_conditions)
@time_zone = args[:time_zone] if args.key?(:time_zone)
end
end
# Describes which report rows to match based on their dimension values.
class MediationReportSpecDimensionFilter
include Google::Apis::Core::Hashable
# Applies the filter criterion to the specified dimension.
# Corresponds to the JSON property `dimension`
# @return [String]
attr_accessor :dimension
# List of string values.
# Corresponds to the JSON property `matchesAny`
# @return [Google::Apis::AdmobV1::StringList]
attr_accessor :matches_any
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dimension = args[:dimension] if args.key?(:dimension)
@matches_any = args[:matches_any] if args.key?(:matches_any)
end
end
# Sorting direction to be applied on a dimension or a metric.
class MediationReportSpecSortCondition
include Google::Apis::Core::Hashable
# Sort by the specified dimension.
# Corresponds to the JSON property `dimension`
# @return [String]
attr_accessor :dimension
# Sort by the specified metric.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# Sorting order of the dimension or metric.
# Corresponds to the JSON property `order`
# @return [String]
attr_accessor :order
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dimension = args[:dimension] if args.key?(:dimension)
@metric = args[:metric] if args.key?(:metric)
@order = args[:order] if args.key?(:order)
end
end
# The specification for generating an AdMob Network report.
# For example, the specification to get clicks and estimated earnings for only
# the 'US' and 'CN' countries can look like the following example:
# `
# 'date_range': `
# 'start_date': `'year': 2018, 'month': 9, 'day': 1`,
# 'end_date': `'year': 2018, 'month': 9, 'day': 30`
# `,
# 'dimensions': ['DATE', 'APP', 'COUNTRY'],
# 'metrics': ['CLICKS', 'ESTIMATED_EARNINGS'],
# 'dimension_filters': [
# `
# 'dimension': 'COUNTRY',
# 'matches_any': `'values': [`'value': 'US', 'value': 'CN'`]`
# `
# ],
# 'sort_conditions': [
# `'dimension':'APP', order: 'ASCENDING'`,
# `'metric':'CLICKS', order: 'DESCENDING'`
# ],
# 'localization_settings': `
# 'currency_code': 'USD',
# 'language_code': 'en-US'
# `
# `
# For a better understanding, you can treat the preceding specification like
# the following pseudo SQL:
# SELECT DATE, APP, COUNTRY, CLICKS, ESTIMATED_EARNINGS
# FROM NETWORK_REPORT
# WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
# AND COUNTRY IN ('US', 'CN')
# GROUP BY DATE, APP, COUNTRY
# ORDER BY APP ASC, CLICKS DESC;
class NetworkReportSpec
include Google::Apis::Core::Hashable
# Specification of a single date range. Both dates are inclusive.
# Corresponds to the JSON property `dateRange`
# @return [Google::Apis::AdmobV1::DateRange]
attr_accessor :date_range
# Describes which report rows to match based on their dimension values.
# Corresponds to the JSON property `dimensionFilters`
# @return [Array<Google::Apis::AdmobV1::NetworkReportSpecDimensionFilter>]
attr_accessor :dimension_filters
# List of dimensions of the report. The value combination of these dimensions
# determines the row of the report. If no dimensions are specified, the
# report returns a single row of requested metrics for the entire account.
# Corresponds to the JSON property `dimensions`
# @return [Array<String>]
attr_accessor :dimensions
# Localization settings for reports, such as currency and language. It affects
# how metrics are calculated.
# Corresponds to the JSON property `localizationSettings`
# @return [Google::Apis::AdmobV1::LocalizationSettings]
attr_accessor :localization_settings
# Maximum number of report data rows to return. If the value is not set, the
# API returns as many rows as possible, up to 100000. Acceptable values are
# 1-100000, inclusive. Any other values are treated as 100000.
# Corresponds to the JSON property `maxReportRows`
# @return [Fixnum]
attr_accessor :max_report_rows
# List of metrics of the report. A report must specify at least one metric.
# Corresponds to the JSON property `metrics`
# @return [Array<String>]
attr_accessor :metrics
# Describes the sorting of report rows. The order of the condition in the
# list defines its precedence; the earlier the condition, the higher its
# precedence. If no sort conditions are specified, the row ordering is
# undefined.
# Corresponds to the JSON property `sortConditions`
# @return [Array<Google::Apis::AdmobV1::NetworkReportSpecSortCondition>]
attr_accessor :sort_conditions
# A report time zone. Accepts an IANA TZ name values, such as
# "America/Los_Angeles." If no time zone is defined, the account default
# takes effect. Check default value by the get account action.
# **Warning:** The "America/Los_Angeles" is the only supported value at
# the moment.
# Corresponds to the JSON property `timeZone`
# @return [String]
attr_accessor :time_zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@date_range = args[:date_range] if args.key?(:date_range)
@dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@localization_settings = args[:localization_settings] if args.key?(:localization_settings)
@max_report_rows = args[:max_report_rows] if args.key?(:max_report_rows)
@metrics = args[:metrics] if args.key?(:metrics)
@sort_conditions = args[:sort_conditions] if args.key?(:sort_conditions)
@time_zone = args[:time_zone] if args.key?(:time_zone)
end
end
# Describes which report rows to match based on their dimension values.
class NetworkReportSpecDimensionFilter
include Google::Apis::Core::Hashable
# Applies the filter criterion to the specified dimension.
# Corresponds to the JSON property `dimension`
# @return [String]
attr_accessor :dimension
# List of string values.
# Corresponds to the JSON property `matchesAny`
# @return [Google::Apis::AdmobV1::StringList]
attr_accessor :matches_any
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dimension = args[:dimension] if args.key?(:dimension)
@matches_any = args[:matches_any] if args.key?(:matches_any)
end
end
# Sorting direction to be applied on a dimension or a metric.
class NetworkReportSpecSortCondition
include Google::Apis::Core::Hashable
# Sort by the specified dimension.
# Corresponds to the JSON property `dimension`
# @return [String]
attr_accessor :dimension
# Sort by the specified metric.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# Sorting order of the dimension or metric.
# Corresponds to the JSON property `order`
# @return [String]
attr_accessor :order
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dimension = args[:dimension] if args.key?(:dimension)
@metric = args[:metric] if args.key?(:metric)
@order = args[:order] if args.key?(:order)
end
end
# A publisher account contains information relevant to the use of this API,
# such as the time zone used for the reports.
class PublisherAccount
include Google::Apis::Core::Hashable
# Currency code of the earning-related metrics, which is the 3-letter code
# defined in ISO 4217. The daily average rate is used for the currency
# conversion.
# Corresponds to the JSON property `currencyCode`
# @return [String]
attr_accessor :currency_code
# Resource name of this account.
# Format is accounts/`publisher_id`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The unique ID by which this publisher account can be identified
# in the API requests (for example, pub-1234567890).
# Corresponds to the JSON property `publisherId`
# @return [String]
attr_accessor :publisher_id
# The time zone that is used in reports that are generated for this account.
# The value is a time-zone ID as specified by the CLDR project,
# for example, "America/Los_Angeles".
# Corresponds to the JSON property `reportingTimeZone`
# @return [String]
attr_accessor :reporting_time_zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@name = args[:name] if args.key?(:name)
@publisher_id = args[:publisher_id] if args.key?(:publisher_id)
@reporting_time_zone = args[:reporting_time_zone] if args.key?(:reporting_time_zone)
end
end
# Groups data available after report generation, for example, warnings and row
# counts. Always sent as the last message in the stream response.
class ReportFooter
include Google::Apis::Core::Hashable
# Total number of rows that did match the request.
# Corresponds to the JSON property `matchingRowCount`
# @return [Fixnum]
attr_accessor :matching_row_count
# Warnings associated with generation of the report.
# Corresponds to the JSON property `warnings`
# @return [Array<Google::Apis::AdmobV1::ReportWarning>]
attr_accessor :warnings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@matching_row_count = args[:matching_row_count] if args.key?(:matching_row_count)
@warnings = args[:warnings] if args.key?(:warnings)
end
end
# Groups data helps to treat the generated report. Always sent as a first
# message in the stream response.
class ReportHeader
include Google::Apis::Core::Hashable
# Specification of a single date range. Both dates are inclusive.
# Corresponds to the JSON property `dateRange`
# @return [Google::Apis::AdmobV1::DateRange]
attr_accessor :date_range
# Localization settings for reports, such as currency and language. It affects
# how metrics are calculated.
# Corresponds to the JSON property `localizationSettings`
# @return [Google::Apis::AdmobV1::LocalizationSettings]
attr_accessor :localization_settings
# The report time zone. The value is a time-zone ID as specified by the CLDR
# project, for example, "America/Los_Angeles".
# Corresponds to the JSON property `reportingTimeZone`
# @return [String]
attr_accessor :reporting_time_zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@date_range = args[:date_range] if args.key?(:date_range)
@localization_settings = args[:localization_settings] if args.key?(:localization_settings)
@reporting_time_zone = args[:reporting_time_zone] if args.key?(:reporting_time_zone)
end
end
# A row of the returning report.
class ReportRow
include Google::Apis::Core::Hashable
# Map of dimension values in a row, with keys as enum name of the dimensions.
# Corresponds to the JSON property `dimensionValues`
# @return [Hash<String,Google::Apis::AdmobV1::ReportRowDimensionValue>]
attr_accessor :dimension_values
# Map of metric values in a row, with keys as enum name of the metrics. If
# a metric being requested has no value returned, the map will not include
# it.
# Corresponds to the JSON property `metricValues`
# @return [Hash<String,Google::Apis::AdmobV1::ReportRowMetricValue>]
attr_accessor :metric_values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dimension_values = args[:dimension_values] if args.key?(:dimension_values)
@metric_values = args[:metric_values] if args.key?(:metric_values)
end
end
# Representation of a dimension value.
class ReportRowDimensionValue
include Google::Apis::Core::Hashable
# The localized string representation of the value. If unspecified, the
# display label should be derived from the value.
# Corresponds to the JSON property `displayLabel`
# @return [String]
attr_accessor :display_label
# Dimension value in the format specified in the report's spec Dimension
# enum.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_label = args[:display_label] if args.key?(:display_label)
@value = args[:value] if args.key?(:value)
end
end
# Representation of a metric value.
class ReportRowMetricValue
include Google::Apis::Core::Hashable
# Double precision (approximate) decimal values. Rates are from 0 to 1.
# Corresponds to the JSON property `doubleValue`
# @return [Float]
attr_accessor :double_value
# Metric integer value.
# Corresponds to the JSON property `integerValue`
# @return [Fixnum]
attr_accessor :integer_value
# Amount in micros. One million is equivalent to one unit. Currency value
# is in the unit (USD, EUR or other) specified by the request.
# For example, $6.50 whould be represented as 6500000 micros.
# Corresponds to the JSON property `microsValue`
# @return [Fixnum]
attr_accessor :micros_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@double_value = args[:double_value] if args.key?(:double_value)
@integer_value = args[:integer_value] if args.key?(:integer_value)
@micros_value = args[:micros_value] if args.key?(:micros_value)
end
end
# Warnings associated with generation of the report.
class ReportWarning
include Google::Apis::Core::Hashable
# Describes the details of the warning message, in English.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Type of the warning.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@type = args[:type] if args.key?(:type)
end
end
# List of string values.
class StringList
include Google::Apis::Core::Hashable
# The string values.
# 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)
@values = args[:values] if args.key?(:values)
end
end
end
end
end

View File

@ -0,0 +1,378 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AdmobV1
class Date
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DateRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateMediationReportRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateMediationReportResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateNetworkReportRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateNetworkReportResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListPublisherAccountsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocalizationSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MediationReportSpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MediationReportSpecDimensionFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MediationReportSpecSortCondition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkReportSpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkReportSpecDimensionFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkReportSpecSortCondition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PublisherAccount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportFooter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportRowDimensionValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportRowMetricValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportWarning
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StringList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Date
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day, as: 'day'
property :month, as: 'month'
property :year, as: 'year'
end
end
class DateRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_date, as: 'endDate', class: Google::Apis::AdmobV1::Date, decorator: Google::Apis::AdmobV1::Date::Representation
property :start_date, as: 'startDate', class: Google::Apis::AdmobV1::Date, decorator: Google::Apis::AdmobV1::Date::Representation
end
end
class GenerateMediationReportRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :report_spec, as: 'reportSpec', class: Google::Apis::AdmobV1::MediationReportSpec, decorator: Google::Apis::AdmobV1::MediationReportSpec::Representation
end
end
class GenerateMediationReportResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :footer, as: 'footer', class: Google::Apis::AdmobV1::ReportFooter, decorator: Google::Apis::AdmobV1::ReportFooter::Representation
property :header, as: 'header', class: Google::Apis::AdmobV1::ReportHeader, decorator: Google::Apis::AdmobV1::ReportHeader::Representation
property :row, as: 'row', class: Google::Apis::AdmobV1::ReportRow, decorator: Google::Apis::AdmobV1::ReportRow::Representation
end
end
class GenerateNetworkReportRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :report_spec, as: 'reportSpec', class: Google::Apis::AdmobV1::NetworkReportSpec, decorator: Google::Apis::AdmobV1::NetworkReportSpec::Representation
end
end
class GenerateNetworkReportResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :footer, as: 'footer', class: Google::Apis::AdmobV1::ReportFooter, decorator: Google::Apis::AdmobV1::ReportFooter::Representation
property :header, as: 'header', class: Google::Apis::AdmobV1::ReportHeader, decorator: Google::Apis::AdmobV1::ReportHeader::Representation
property :row, as: 'row', class: Google::Apis::AdmobV1::ReportRow, decorator: Google::Apis::AdmobV1::ReportRow::Representation
end
end
class ListPublisherAccountsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :account, as: 'account', class: Google::Apis::AdmobV1::PublisherAccount, decorator: Google::Apis::AdmobV1::PublisherAccount::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class LocalizationSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :currency_code, as: 'currencyCode'
property :language_code, as: 'languageCode'
end
end
class MediationReportSpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date_range, as: 'dateRange', class: Google::Apis::AdmobV1::DateRange, decorator: Google::Apis::AdmobV1::DateRange::Representation
collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::AdmobV1::MediationReportSpecDimensionFilter, decorator: Google::Apis::AdmobV1::MediationReportSpecDimensionFilter::Representation
collection :dimensions, as: 'dimensions'
property :localization_settings, as: 'localizationSettings', class: Google::Apis::AdmobV1::LocalizationSettings, decorator: Google::Apis::AdmobV1::LocalizationSettings::Representation
property :max_report_rows, as: 'maxReportRows'
collection :metrics, as: 'metrics'
collection :sort_conditions, as: 'sortConditions', class: Google::Apis::AdmobV1::MediationReportSpecSortCondition, decorator: Google::Apis::AdmobV1::MediationReportSpecSortCondition::Representation
property :time_zone, as: 'timeZone'
end
end
class MediationReportSpecDimensionFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dimension, as: 'dimension'
property :matches_any, as: 'matchesAny', class: Google::Apis::AdmobV1::StringList, decorator: Google::Apis::AdmobV1::StringList::Representation
end
end
class MediationReportSpecSortCondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dimension, as: 'dimension'
property :metric, as: 'metric'
property :order, as: 'order'
end
end
class NetworkReportSpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date_range, as: 'dateRange', class: Google::Apis::AdmobV1::DateRange, decorator: Google::Apis::AdmobV1::DateRange::Representation
collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::AdmobV1::NetworkReportSpecDimensionFilter, decorator: Google::Apis::AdmobV1::NetworkReportSpecDimensionFilter::Representation
collection :dimensions, as: 'dimensions'
property :localization_settings, as: 'localizationSettings', class: Google::Apis::AdmobV1::LocalizationSettings, decorator: Google::Apis::AdmobV1::LocalizationSettings::Representation
property :max_report_rows, as: 'maxReportRows'
collection :metrics, as: 'metrics'
collection :sort_conditions, as: 'sortConditions', class: Google::Apis::AdmobV1::NetworkReportSpecSortCondition, decorator: Google::Apis::AdmobV1::NetworkReportSpecSortCondition::Representation
property :time_zone, as: 'timeZone'
end
end
class NetworkReportSpecDimensionFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dimension, as: 'dimension'
property :matches_any, as: 'matchesAny', class: Google::Apis::AdmobV1::StringList, decorator: Google::Apis::AdmobV1::StringList::Representation
end
end
class NetworkReportSpecSortCondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dimension, as: 'dimension'
property :metric, as: 'metric'
property :order, as: 'order'
end
end
class PublisherAccount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :currency_code, as: 'currencyCode'
property :name, as: 'name'
property :publisher_id, as: 'publisherId'
property :reporting_time_zone, as: 'reportingTimeZone'
end
end
class ReportFooter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :matching_row_count, :numeric_string => true, as: 'matchingRowCount'
collection :warnings, as: 'warnings', class: Google::Apis::AdmobV1::ReportWarning, decorator: Google::Apis::AdmobV1::ReportWarning::Representation
end
end
class ReportHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date_range, as: 'dateRange', class: Google::Apis::AdmobV1::DateRange, decorator: Google::Apis::AdmobV1::DateRange::Representation
property :localization_settings, as: 'localizationSettings', class: Google::Apis::AdmobV1::LocalizationSettings, decorator: Google::Apis::AdmobV1::LocalizationSettings::Representation
property :reporting_time_zone, as: 'reportingTimeZone'
end
end
class ReportRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :dimension_values, as: 'dimensionValues', class: Google::Apis::AdmobV1::ReportRowDimensionValue, decorator: Google::Apis::AdmobV1::ReportRowDimensionValue::Representation
hash :metric_values, as: 'metricValues', class: Google::Apis::AdmobV1::ReportRowMetricValue, decorator: Google::Apis::AdmobV1::ReportRowMetricValue::Representation
end
end
class ReportRowDimensionValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_label, as: 'displayLabel'
property :value, as: 'value'
end
end
class ReportRowMetricValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :double_value, as: 'doubleValue'
property :integer_value, :numeric_string => true, as: 'integerValue'
property :micros_value, :numeric_string => true, as: 'microsValue'
end
end
class ReportWarning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :type, as: 'type'
end
end
class StringList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values'
end
end
end
end
end

View File

@ -0,0 +1,196 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AdmobV1
# AdMob API
#
# The Google AdMob API lets you programmatically get reports on earnings.
#
# @example
# require 'google/apis/admob_v1'
#
# Admob = Google::Apis::AdmobV1 # Alias the module
# service = Admob::AdMobService.new
#
# @see https://developers.google.com/admob/api/
class AdMobService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://admob.googleapis.com/', '')
@batch_path = 'batch'
end
# Gets information about the specified AdMob publisher account.
# @param [String] name
# Resource name of the publisher account to retrieve.
# Example: accounts/pub-9876543210987654
# @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::AdmobV1::PublisherAccount] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdmobV1::PublisherAccount]
#
# @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_account(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::AdmobV1::PublisherAccount::Representation
command.response_class = Google::Apis::AdmobV1::PublisherAccount
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the AdMob publisher account accessible with the client credential.
# Currently, all credentials have access to at most one AdMob account.
# @param [Fixnum] page_size
# Maximum number of accounts to return.
# @param [String] page_token
# The value returned by the last `ListPublisherAccountsResponse`; indicates
# that this is a continuation of a prior `ListPublisherAccounts` call, and
# that the system should return the next page of data.
# @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::AdmobV1::ListPublisherAccountsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdmobV1::ListPublisherAccountsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_accounts(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/accounts', options)
command.response_representation = Google::Apis::AdmobV1::ListPublisherAccountsResponse::Representation
command.response_class = Google::Apis::AdmobV1::ListPublisherAccountsResponse
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Generates an AdMob Mediation report based on the provided report
# specification.
# @param [String] parent
# Resource name of the account to generate the report for.
# Example: accounts/pub-9876543210987654
# @param [Google::Apis::AdmobV1::GenerateMediationReportRequest] generate_mediation_report_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::AdmobV1::GenerateMediationReportResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdmobV1::GenerateMediationReportResponse]
#
# @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 generate_mediation_report(parent, generate_mediation_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/mediationReport:generate', options)
command.request_representation = Google::Apis::AdmobV1::GenerateMediationReportRequest::Representation
command.request_object = generate_mediation_report_request_object
command.response_representation = Google::Apis::AdmobV1::GenerateMediationReportResponse::Representation
command.response_class = Google::Apis::AdmobV1::GenerateMediationReportResponse
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
# Generates an AdMob Network report based on the provided report
# specification.
# @param [String] parent
# Resource name of the account to generate the report for.
# Example: accounts/pub-9876543210987654
# @param [Google::Apis::AdmobV1::GenerateNetworkReportRequest] generate_network_report_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::AdmobV1::GenerateNetworkReportResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdmobV1::GenerateNetworkReportResponse]
#
# @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 generate_network_report(parent, generate_network_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/networkReport:generate', options)
command.request_representation = Google::Apis::AdmobV1::GenerateNetworkReportRequest::Representation
command.request_object = generate_network_report_request_object
command.response_representation = Google::Apis::AdmobV1::GenerateNetworkReportResponse::Representation
command.response_class = Google::Apis::AdmobV1::GenerateNetworkReportResponse
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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

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

View File

@ -2243,6 +2243,12 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :instance_group_urls attr_accessor :instance_group_urls
# The list of Google Compute Engine [zones](/compute/docs/zones#available)
# in which the NodePool's nodes should be located.
# Corresponds to the JSON property `locations`
# @return [Array<String>]
attr_accessor :locations
# NodeManagement defines the set of node management services turned on for the # NodeManagement defines the set of node management services turned on for the
# node pool. # node pool.
# Corresponds to the JSON property `management` # Corresponds to the JSON property `management`
@ -2280,6 +2286,28 @@ module Google
# @return [String] # @return [String]
attr_accessor :status_message attr_accessor :status_message
# These upgrade settings control the level of parallelism and the level of
# disruption caused by an upgrade.
# maxUnavailable controls the number of nodes that can be simultaneously
# unavailable.
# maxSurge controls the number of additional nodes that can be added to the
# node pool temporarily for the time of the upgrade to increase the number of
# available nodes.
# (maxUnavailable + maxSurge) determines the level of parallelism (how many
# nodes are being upgraded at the same time).
# Note: upgrades inevitably introduce some disruption since workloads need to
# be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
# this holds true. (Disruption stays within the limits of
# PodDisruptionBudget, if it is configured.)
# Consider a hypothetical node pool with 5 nodes having maxSurge=2,
# maxUnavailable=1. This means the upgrade process upgrades 3 nodes
# simultaneously. It creates 2 additional (upgraded) nodes, then it brings
# down 3 old (not yet upgraded) nodes at the same time. This ensures that
# there are always at least 4 nodes available.
# Corresponds to the JSON property `upgradeSettings`
# @return [Google::Apis::ContainerV1::UpgradeSettings]
attr_accessor :upgrade_settings
# The version of the Kubernetes of this node. # The version of the Kubernetes of this node.
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [String] # @return [String]
@ -2296,6 +2324,7 @@ module Google
@config = args[:config] if args.key?(:config) @config = args[:config] if args.key?(:config)
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count) @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) @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
@locations = args[:locations] if args.key?(:locations)
@management = args[:management] if args.key?(:management) @management = args[:management] if args.key?(:management)
@max_pods_constraint = args[:max_pods_constraint] if args.key?(:max_pods_constraint) @max_pods_constraint = args[:max_pods_constraint] if args.key?(:max_pods_constraint)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@ -2303,6 +2332,7 @@ module Google
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message) @status_message = args[:status_message] if args.key?(:status_message)
@upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings)
@version = args[:version] if args.key?(:version) @version = args[:version] if args.key?(:version)
end end
end end
@ -3749,6 +3779,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :image_type attr_accessor :image_type
# The desired list of Google Compute Engine
# [zones](/compute/docs/zones#available) in which the node pool's nodes
# should be located. Changing the locations for a node pool will result
# in nodes being either created or removed from the node pool, depending
# on whether locations are being added or removed.
# Corresponds to the JSON property `locations`
# @return [Array<String>]
attr_accessor :locations
# The name (project, location, cluster, node pool) of the node pool to # The name (project, location, cluster, node pool) of the node pool to
# update. Specified in the format # update. Specified in the format
# 'projects/*/locations/*/clusters/*/nodePools/*'. # 'projects/*/locations/*/clusters/*/nodePools/*'.
@ -3782,6 +3821,28 @@ module Google
# @return [String] # @return [String]
attr_accessor :project_id attr_accessor :project_id
# These upgrade settings control the level of parallelism and the level of
# disruption caused by an upgrade.
# maxUnavailable controls the number of nodes that can be simultaneously
# unavailable.
# maxSurge controls the number of additional nodes that can be added to the
# node pool temporarily for the time of the upgrade to increase the number of
# available nodes.
# (maxUnavailable + maxSurge) determines the level of parallelism (how many
# nodes are being upgraded at the same time).
# Note: upgrades inevitably introduce some disruption since workloads need to
# be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
# this holds true. (Disruption stays within the limits of
# PodDisruptionBudget, if it is configured.)
# Consider a hypothetical node pool with 5 nodes having maxSurge=2,
# maxUnavailable=1. This means the upgrade process upgrades 3 nodes
# simultaneously. It creates 2 additional (upgraded) nodes, then it brings
# down 3 old (not yet upgraded) nodes at the same time. This ensures that
# there are always at least 4 nodes available.
# Corresponds to the JSON property `upgradeSettings`
# @return [Google::Apis::ContainerV1::UpgradeSettings]
attr_accessor :upgrade_settings
# Required. Deprecated. The name of the Google Compute Engine # Required. Deprecated. The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster # [zone](/compute/docs/zones#available) in which the cluster
# resides. # resides.
@ -3798,14 +3859,61 @@ module Google
def update!(**args) def update!(**args)
@cluster_id = args[:cluster_id] if args.key?(:cluster_id) @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
@image_type = args[:image_type] if args.key?(:image_type) @image_type = args[:image_type] if args.key?(:image_type)
@locations = args[:locations] if args.key?(:locations)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id) @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
@node_version = args[:node_version] if args.key?(:node_version) @node_version = args[:node_version] if args.key?(:node_version)
@project_id = args[:project_id] if args.key?(:project_id) @project_id = args[:project_id] if args.key?(:project_id)
@upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings)
@zone = args[:zone] if args.key?(:zone) @zone = args[:zone] if args.key?(:zone)
end end
end end
# These upgrade settings control the level of parallelism and the level of
# disruption caused by an upgrade.
# maxUnavailable controls the number of nodes that can be simultaneously
# unavailable.
# maxSurge controls the number of additional nodes that can be added to the
# node pool temporarily for the time of the upgrade to increase the number of
# available nodes.
# (maxUnavailable + maxSurge) determines the level of parallelism (how many
# nodes are being upgraded at the same time).
# Note: upgrades inevitably introduce some disruption since workloads need to
# be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
# this holds true. (Disruption stays within the limits of
# PodDisruptionBudget, if it is configured.)
# Consider a hypothetical node pool with 5 nodes having maxSurge=2,
# maxUnavailable=1. This means the upgrade process upgrades 3 nodes
# simultaneously. It creates 2 additional (upgraded) nodes, then it brings
# down 3 old (not yet upgraded) nodes at the same time. This ensures that
# there are always at least 4 nodes available.
class UpgradeSettings
include Google::Apis::Core::Hashable
# The maximum number of nodes that can be created beyond the current size
# of the node pool during the upgrade process.
# Corresponds to the JSON property `maxSurge`
# @return [Fixnum]
attr_accessor :max_surge
# The maximum number of nodes that can be simultaneously unavailable during
# the upgrade process. A node is considered available if its status is
# Ready.
# Corresponds to the JSON property `maxUnavailable`
# @return [Fixnum]
attr_accessor :max_unavailable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_surge = args[:max_surge] if args.key?(:max_surge)
@max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable)
end
end
# UsableSubnetwork resource returns the subnetwork name, its associated network # UsableSubnetwork resource returns the subnetwork name, its associated network
# and the primary CIDR range. # and the primary CIDR range.
class UsableSubnetwork class UsableSubnetwork

View File

@ -484,6 +484,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UpgradeSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UsableSubnetwork class UsableSubnetwork
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1038,6 +1044,7 @@ module Google
property :initial_node_count, as: 'initialNodeCount' property :initial_node_count, as: 'initialNodeCount'
collection :instance_group_urls, as: 'instanceGroupUrls' collection :instance_group_urls, as: 'instanceGroupUrls'
collection :locations, as: 'locations'
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
property :max_pods_constraint, as: 'maxPodsConstraint', class: Google::Apis::ContainerV1::MaxPodsConstraint, decorator: Google::Apis::ContainerV1::MaxPodsConstraint::Representation property :max_pods_constraint, as: 'maxPodsConstraint', class: Google::Apis::ContainerV1::MaxPodsConstraint, decorator: Google::Apis::ContainerV1::MaxPodsConstraint::Representation
@ -1047,6 +1054,8 @@ module Google
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :status, as: 'status' property :status, as: 'status'
property :status_message, as: 'statusMessage' property :status_message, as: 'statusMessage'
property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1::UpgradeSettings, decorator: Google::Apis::ContainerV1::UpgradeSettings::Representation
property :version, as: 'version' property :version, as: 'version'
end end
end end
@ -1383,14 +1392,25 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cluster_id, as: 'clusterId' property :cluster_id, as: 'clusterId'
property :image_type, as: 'imageType' property :image_type, as: 'imageType'
collection :locations, as: 'locations'
property :name, as: 'name' property :name, as: 'name'
property :node_pool_id, as: 'nodePoolId' property :node_pool_id, as: 'nodePoolId'
property :node_version, as: 'nodeVersion' property :node_version, as: 'nodeVersion'
property :project_id, as: 'projectId' property :project_id, as: 'projectId'
property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1::UpgradeSettings, decorator: Google::Apis::ContainerV1::UpgradeSettings::Representation
property :zone, as: 'zone' property :zone, as: 'zone'
end end
end end
class UpgradeSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_surge, as: 'maxSurge'
property :max_unavailable, as: 'maxUnavailable'
end
end
class UsableSubnetwork class UsableSubnetwork
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -458,6 +458,10 @@ module Google
end end
# Sets the locations for a specific cluster. # Sets the locations for a specific cluster.
# Deprecated. Use
# [projects.locations.clusters.update](/kubernetes-engine/docs/reference/rest/v1/
# projects.locations.clusters.update)
# instead.
# @param [String] name # @param [String] name
# The name (project, location, cluster) of the cluster to set locations. # The name (project, location, cluster) of the cluster to set locations.
# Specified in the format 'projects/*/locations/*/clusters/*'. # Specified in the format 'projects/*/locations/*/clusters/*'.
@ -1687,6 +1691,10 @@ module Google
end end
# Sets the locations for a specific cluster. # Sets the locations for a specific cluster.
# Deprecated. Use
# [projects.locations.clusters.update](/kubernetes-engine/docs/reference/rest/v1/
# projects.locations.clusters.update)
# instead.
# @param [String] project_id # @param [String] project_id
# Required. Deprecated. The Google Developers Console [project ID or project # Required. Deprecated. The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840). # number](https://support.google.com/cloud/answer/6158840).

View File

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

View File

@ -489,6 +489,10 @@ module Google
end end
# Sets the locations for a specific cluster. # Sets the locations for a specific cluster.
# Deprecated. Use
# [projects.locations.clusters.update](/kubernetes-engine/docs/reference/rest/
# v1beta1/projects.locations.clusters.update)
# instead.
# @param [String] name # @param [String] name
# The name (project, location, cluster) of the cluster to set locations. # The name (project, location, cluster) of the cluster to set locations.
# Specified in the format 'projects/*/locations/*/clusters/*'. # Specified in the format 'projects/*/locations/*/clusters/*'.
@ -1718,6 +1722,10 @@ module Google
end end
# Sets the locations for a specific cluster. # Sets the locations for a specific cluster.
# Deprecated. Use
# [projects.locations.clusters.update](/kubernetes-engine/docs/reference/rest/
# v1beta1/projects.locations.clusters.update)
# instead.
# @param [String] project_id # @param [String] project_id
# Required. Deprecated. The Google Developers Console [project ID or project # Required. Deprecated. The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840). # number](https://support.google.com/cloud/answer/6158840).

View File

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

View File

@ -1071,7 +1071,7 @@ module Google
# `.../`study_id`/`series_id`/`instance_id`[/`frame_number`].`extension`` # `.../`study_id`/`series_id`/`instance_id`[/`frame_number`].`extension``
# The frame_number component exists only for multi-frame instances. # The frame_number component exists only for multi-frame instances.
# Refer to the DICOM conformance statement for permissible MIME types: # Refer to the DICOM conformance statement for permissible MIME types:
# https://cloud.google.com/healthcare/docs/dicom#wado-rs # https://cloud.google.com/healthcare/docs/dicom#retrieve_transaction
# The following extensions are used for output files: # The following extensions are used for output files:
# application/dicom -> .dcm # application/dicom -> .dcm
# image/jpeg -> .jpg # image/jpeg -> .jpg
@ -2447,7 +2447,8 @@ module Google
# The FHIR resource type to search, such as Patient or Observation. For a # The FHIR resource type to search, such as Patient or Observation. For a
# complete list, see the FHIR Resource Index # complete list, see the FHIR Resource Index
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html),
# [R4](http://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
# Corresponds to the JSON property `resourceType` # Corresponds to the JSON property `resourceType`
# @return [String] # @return [String]
attr_accessor :resource_type attr_accessor :resource_type

View File

@ -616,7 +616,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new DICOM store containing de-identified data from the source # De-identifies data from the source store and writes it to the destination
# store. The metadata field type # store. The metadata field type
# is OperationMetadata. # is OperationMetadata.
# If the request is successful, the # If the request is successful, the
@ -1156,7 +1156,7 @@ module Google
end end
# DeleteStudy deletes all instances within the given study. Delete requests # DeleteStudy deletes all instances within the given study. Delete requests
# are equivalent to the GET requests specified in the WADO-RS standard. # are equivalent to the GET requests specified in the Retrieve transaction.
# @param [String] parent # @param [String] parent
# @param [String] dicom_web_path # @param [String] dicom_web_path
# The path of the DeleteStudy request. For example, `studies/`study_uid``. # The path of the DeleteStudy request. For example, `studies/`study_uid``.
@ -1380,8 +1380,8 @@ module Google
end end
# DeleteSeries deletes all instances within the given study and series. # DeleteSeries deletes all instances within the given study and series.
# Delete requests are equivalent to the GET requests specified in the WADO-RS # Delete requests are equivalent to the GET requests specified in the
# standard. # Retrieve transaction.
# @param [String] parent # @param [String] parent
# The name of the DICOM store that is being accessed. For example, # The name of the DICOM store that is being accessed. For example,
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
@ -1532,7 +1532,7 @@ module Google
# DeleteInstance deletes an instance associated with the given study, series, # DeleteInstance deletes an instance associated with the given study, series,
# and SOP Instance UID. Delete requests are equivalent to the GET requests # and SOP Instance UID. Delete requests are equivalent to the GET requests
# specified in the WADO-RS standard. # specified in the Retrieve transaction.
# @param [String] parent # @param [String] parent
# The name of the DICOM store that is being accessed. For example, # The name of the DICOM store that is being accessed. For example,
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
@ -1799,7 +1799,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new FHIR store containing de-identified data from the source # De-identifies data from the source store and writes it to the destination
# store. The metadata field type # store. The metadata field type
# is OperationMetadata. # is OperationMetadata.
# If the request is successful, the # If the request is successful, the
@ -2252,7 +2252,9 @@ module Google
# `Observation.code`, sorted from most recent to oldest. # `Observation.code`, sorted from most recent to oldest.
# Implements the FHIR extended operation Observation-lastn # Implements the FHIR extended operation Observation-lastn
# ([STU3](http://hl7.org/implement/standards/fhir/STU3/observation-operations. # ([STU3](http://hl7.org/implement/standards/fhir/STU3/observation-operations.
# html#lastn)). # html#lastn),
# [R4](http://hl7.org/implement/standards/fhir/R4/observation-operations.html#
# lastn)).
# DSTU2 doesn't define the Observation-lastn method, but the server supports # DSTU2 doesn't define the Observation-lastn method, but the server supports
# it the same way it supports STU3. # it the same way it supports STU3.
# Search terms are provided as query parameters following the same pattern as # Search terms are provided as query parameters following the same pattern as
@ -2394,14 +2396,15 @@ module Google
end end
# Gets the FHIR capability statement # Gets the FHIR capability statement
# ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html)) # ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html),
# , # [R4](http://hl7.org/implement/standards/fhir/R4/capabilitystatement.html)),
# or the [conformance # or the [conformance
# statement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html) # statement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html)
# in the DSTU2 case for the store, which contains a description of # in the DSTU2 case for the store, which contains a description of
# functionality supported by the server. # functionality supported by the server.
# Implements the FHIR standard capabilities interaction # Implements the FHIR standard capabilities interaction
# ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)), # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#capabilities)),
# or the [conformance # or the [conformance
# interaction](http://hl7.org/implement/standards/fhir/DSTU2/http.html# # interaction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#
# conformance) # conformance)
@ -2440,7 +2443,8 @@ module Google
# Deletes FHIR resources that match a search query. # Deletes FHIR resources that match a search query.
# Implements the FHIR standard conditional delete interaction # Implements the FHIR standard conditional delete interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)).
# If multiple resources match, all of them will be deleted. # If multiple resources match, all of them will be deleted.
# Search terms are provided as query parameters following the same pattern as # Search terms are provided as query parameters following the same pattern as
# the search method. # the search method.
@ -2456,7 +2460,8 @@ module Google
# The FHIR resource type to delete, such as Patient or Observation. For a # The FHIR resource type to delete, such as Patient or Observation. For a
# complete list, see the FHIR Resource Index # complete list, see the FHIR Resource Index
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html),
# [R4](http://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2489,7 +2494,8 @@ module Google
# parameters, updates part of that resource by applying the operations # parameters, updates part of that resource by applying the operations
# specified in a [JSON Patch](http://jsonpatch.com/) document. # specified in a [JSON Patch](http://jsonpatch.com/) document.
# Implements the FHIR standard conditional patch interaction # Implements the FHIR standard conditional patch interaction
# ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)). # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#patch)).
# DSTU2 doesn't define a conditional patch method, but the server supports it # DSTU2 doesn't define a conditional patch method, but the server supports it
# in the same way it supports STU3. # in the same way it supports STU3.
# Search terms are provided as query parameters following the same pattern as # Search terms are provided as query parameters following the same pattern as
@ -2510,7 +2516,8 @@ module Google
# The FHIR resource type to update, such as Patient or Observation. For a # The FHIR resource type to update, such as Patient or Observation. For a
# complete list, see the FHIR Resource Index # complete list, see the FHIR Resource Index
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html),
# [R4](http://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
# @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2546,7 +2553,8 @@ module Google
# parameters, updates the entire contents of that resource. # parameters, updates the entire contents of that resource.
# Implements the FHIR standard conditional update interaction # Implements the FHIR standard conditional update interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cond-update)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cond-update),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#cond-update)).
# Search terms are provided as query parameters following the same pattern as # Search terms are provided as query parameters following the same pattern as
# the search method. # the search method.
# If the search criteria identify more than one match, the request will # If the search criteria identify more than one match, the request will
@ -2572,7 +2580,8 @@ module Google
# The FHIR resource type to update, such as Patient or Observation. For a # The FHIR resource type to update, such as Patient or Observation. For a
# complete list, see the FHIR Resource Index # complete list, see the FHIR Resource Index
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html),
# [R4](http://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
# Must match the resource type in the provided content. # Must match the resource type in the provided content.
# @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
# @param [String] fields # @param [String] fields
@ -2608,11 +2617,13 @@ module Google
# Creates a FHIR resource. # Creates a FHIR resource.
# Implements the FHIR standard create interaction # Implements the FHIR standard create interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#create), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#create),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#create)), # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#create),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#create)),
# which creates a new resource with a server-assigned resource ID. # which creates a new resource with a server-assigned resource ID.
# Also supports the FHIR standard conditional create interaction # Also supports the FHIR standard conditional create interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate)), # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#ccreate)),
# specified by supplying an `If-None-Exist` header containing a FHIR search # specified by supplying an `If-None-Exist` header containing a FHIR search
# query. If no resources match this search query, the server processes the # query. If no resources match this search query, the server processes the
# create operation as normal. # create operation as normal.
@ -2631,7 +2642,8 @@ module Google
# The FHIR resource type to create, such as Patient or Observation. For a # The FHIR resource type to create, such as Patient or Observation. For a
# complete list, see the FHIR Resource Index # complete list, see the FHIR Resource Index
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html),
# [R4](http://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
# Must match the resource type in the provided content. # Must match the resource type in the provided content.
# @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
# @param [String] fields # @param [String] fields
@ -2667,7 +2679,8 @@ module Google
# Deletes a FHIR resource. # Deletes a FHIR resource.
# Implements the FHIR standard delete interaction # Implements the FHIR standard delete interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#delete), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#delete),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#delete)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#delete),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#delete)).
# Note: Unless resource versioning is disabled by setting the # Note: Unless resource versioning is disabled by setting the
# disable_resource_versioning flag # disable_resource_versioning flag
# on the FHIR store, the deleted resources will be moved to a history # on the FHIR store, the deleted resources will be moved to a history
@ -2706,15 +2719,18 @@ module Google
# Executes all the requests in the given Bundle. # Executes all the requests in the given Bundle.
# Implements the FHIR standard batch/transaction interaction # Implements the FHIR standard batch/transaction interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#transaction)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#transaction),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#transaction)).
# Supports all interactions within a bundle, except search. This method # Supports all interactions within a bundle, except search. This method
# accepts Bundles of type `batch` and `transaction`, processing them # accepts Bundles of type `batch` and `transaction`, processing them
# according to the batch processing rules # according to the batch processing rules
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1)) # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#brules))
# and transaction processing rules # and transaction processing rules
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#trules)).
# The request body must contain a JSON-encoded FHIR `Bundle` resource, and # The request body must contain a JSON-encoded FHIR `Bundle` resource, and
# the request headers must contain `Content-Type: application/fhir+json`. # the request headers must contain `Content-Type: application/fhir+json`.
# For a batch bundle or a successful transaction the response body will # For a batch bundle or a successful transaction the response body will
@ -2761,7 +2777,8 @@ module Google
# deleted versions) from the FHIR store. # deleted versions) from the FHIR store.
# Implements the per-resource form of the FHIR standard history interaction # Implements the per-resource form of the FHIR standard history interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#history), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#history),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#history)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#history),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#history)).
# On success, the response body will contain a JSON-encoded representation # On success, the response body will contain a JSON-encoded representation
# of a `Bundle` resource of type `history`, containing the version history # of a `Bundle` resource of type `history`, containing the version history
# sorted from most recent to oldest versions. # sorted from most recent to oldest versions.
@ -2829,7 +2846,8 @@ module Google
# Updates part of an existing resource by applying the operations specified # Updates part of an existing resource by applying the operations specified
# in a [JSON Patch](http://jsonpatch.com/) document. # in a [JSON Patch](http://jsonpatch.com/) document.
# Implements the FHIR standard patch interaction # Implements the FHIR standard patch interaction
# ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)). # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#patch)]).
# DSTU2 doesn't define a patch method, but the server supports it in the same # DSTU2 doesn't define a patch method, but the server supports it in the same
# way it supports STU3. # way it supports STU3.
# The request body must contain a JSON Patch document, and the request # The request body must contain a JSON Patch document, and the request
@ -2875,10 +2893,12 @@ module Google
# Gets the contents of a FHIR resource. # Gets the contents of a FHIR resource.
# Implements the FHIR standard read interaction # Implements the FHIR standard read interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#read), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#read),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#read)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#read),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#read)).
# Also supports the FHIR standard conditional read interaction # Also supports the FHIR standard conditional read interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#cread), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#cread),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cread)) # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cread),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#cread))
# specified by supplying an `If-Modified-Since` header with a date/time value # specified by supplying an `If-Modified-Since` header with a date/time value
# or an `If-None-Match` header with an ETag value. # or an `If-None-Match` header with an ETag value.
# On success, the response body will contain a JSON-encoded representation # On success, the response body will contain a JSON-encoded representation
@ -2920,10 +2940,12 @@ module Google
# specified as query parameters. # specified as query parameters.
# Implements the FHIR standard search interaction # Implements the FHIR standard search interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search)) # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search))
# using the search semantics described in the FHIR Search specification # using the search semantics described in the FHIR Search specification
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html),
# [R4](http://hl7.org/implement/standards/fhir/R4/search.html)).
# Supports three methods of search defined by the specification: # Supports three methods of search defined by the specification:
# * `GET [base]?[parameters]` to search across all resources. # * `GET [base]?[parameters]` to search across all resources.
# * `GET [base]/[type]?[parameters]` to search resources of a specified # * `GET [base]/[type]?[parameters]` to search resources of a specified
@ -2945,7 +2967,9 @@ module Google
# defined by the specification can be found in the FHIR Search Parameter # defined by the specification can be found in the FHIR Search Parameter
# Registry # Registry
# ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry. # ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.
# html)). # html),
# [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html))
# .
# FHIR search parameters for DSTU2 can be found on each resource's definition # FHIR search parameters for DSTU2 can be found on each resource's definition
# page. # page.
# Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, # Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`,
@ -2997,7 +3021,8 @@ module Google
# Updates the entire contents of a resource. # Updates the entire contents of a resource.
# Implements the FHIR standard update interaction # Implements the FHIR standard update interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#update), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#update),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#update)). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#update),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#update)).
# If the specified resource does # If the specified resource does
# not exist and the FHIR store has # not exist and the FHIR store has
# enable_update_create set, creates the # enable_update_create set, creates the
@ -3048,7 +3073,8 @@ module Google
# by version ID. # by version ID.
# Implements the FHIR standard vread interaction # Implements the FHIR standard vread interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#vread), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#vread),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#vread). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#vread),
# [R4](http://hl7.org/implement/standards/fhir/R4/http.html#vread)).
# On success, the response body will contain a JSON-encoded representation # On success, the response body will contain a JSON-encoded representation
# of the resource. # of the resource.
# Errors generated by the FHIR store will contain a JSON-encoded # Errors generated by the FHIR store will contain a JSON-encoded

View File

@ -30,7 +30,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/ # @see https://cloud.google.com/monitoring/api/
module MonitoringV1 module MonitoringV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200104' REVISION = '20200126'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,57 +22,81 @@ module Google
module Apis module Apis
module MonitoringV1 module MonitoringV1
# Describes how to combine multiple time series to provide different views of # Describes how to combine multiple time series to provide a different view of
# the data. Aggregation consists of an alignment step on individual time series ( # the data. Aggregation of time series is done in two steps. First, each time
# alignment_period and per_series_aligner) followed by an optional reduction # series in the set is aligned to the same time interval boundaries, then the
# step of the data across the aligned time series (cross_series_reducer and # set of time series is optionally reduced in number.Alignment consists of
# group_by_fields). For more details, see Aggregation. # applying the per_series_aligner operation to each time series after its data
# has been divided into regular alignment_period time intervals. This process
# takes all of the data points in an alignment period, applies a mathematical
# transformation such as averaging, minimum, maximum, delta, etc., and converts
# them into a single data point per period.Reduction is when the aligned and
# transformed time series can optionally be combined, reducing the number of
# time series through similar mathematical transformations. Reduction involves
# applying a cross_series_reducer to all the time series, optionally sorting the
# time series into subsets with group_by_fields, and applying the reducer to
# each subset.The raw time series data can contain a huge amount of information
# from multiple sources. Alignment and reduction transforms this mass of data
# into a more manageable and representative collection of data, for example "the
# 95% latency across the average of all tasks in a cluster". This representative
# data can be more easily graphed and comprehended, and the individual time
# series data is still available for later drilldown. For more details, see
# Aggregating Time Series.
class Aggregation class Aggregation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The alignment period for per-time series alignment. If present, # The alignment_period specifies a time interval, in seconds, that is used to
# alignmentPeriod must be at least 60 seconds. After per-time series alignment, # divide the data in all the time series into consistent blocks of time. This
# each time series will contain data points only on the period boundaries. If # will be done before the per-series aligner can be applied to the data.The
# perSeriesAligner is not specified or equals ALIGN_NONE, then this field is # value must be at least 60 seconds. If a per-series aligner other than
# ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then # ALIGN_NONE is specified, this field is required or an error is returned. If no
# this field must be defined; otherwise an error is returned. # per-series aligner is specified, or the aligner ALIGN_NONE is specified, then
# this field is ignored.
# Corresponds to the JSON property `alignmentPeriod` # Corresponds to the JSON property `alignmentPeriod`
# @return [String] # @return [String]
attr_accessor :alignment_period attr_accessor :alignment_period
# The approach to be used to combine time series. Not all reducer functions may # The reduction operation to be used to combine time series into a single time
# be applied to all time series, depending on the metric type and the value type # series, where the value of each data point in the resulting series is a
# of the original time series. Reduction may change the metric type of value # function of all the already aligned values in the input time series.Not all
# type of the time series.Time series data must be aligned in order to perform # reducer operations can be applied to all time series. The valid choices depend
# cross-time series reduction. If crossSeriesReducer is specified, then # on the metric_kind and the value_type of the original time series. Reduction
# perSeriesAligner must be specified and not equal ALIGN_NONE and # can yield a time series with a different metric_kind or value_type than the
# alignmentPeriod must be specified; otherwise, an error is returned. # input time series.Time series data must first be aligned (see
# per_series_aligner) in order to perform cross-time series reduction. If
# cross_series_reducer is specified, then per_series_aligner must be specified,
# and must not be ALIGN_NONE. An alignment_period must also be specified;
# otherwise, an error is returned.
# Corresponds to the JSON property `crossSeriesReducer` # Corresponds to the JSON property `crossSeriesReducer`
# @return [String] # @return [String]
attr_accessor :cross_series_reducer attr_accessor :cross_series_reducer
# The set of fields to preserve when crossSeriesReducer is specified. The # The set of fields to preserve when cross_series_reducer is specified. The
# groupByFields determine how the time series are partitioned into subsets prior # group_by_fields determine how the time series are partitioned into subsets
# to applying the aggregation function. Each subset contains time series that # prior to applying the aggregation operation. Each subset contains time series
# have the same value for each of the grouping fields. Each individual time # that have the same value for each of the grouping fields. Each individual time
# series is a member of exactly one subset. The crossSeriesReducer is applied to # series is a member of exactly one subset. The cross_series_reducer is applied
# each subset of time series. It is not possible to reduce across different # to each subset of time series. It is not possible to reduce across different
# resource types, so this field implicitly contains resource.type. Fields not # resource types, so this field implicitly contains resource.type. Fields not
# specified in groupByFields are aggregated away. If groupByFields is not # specified in group_by_fields are aggregated away. If group_by_fields is not
# specified and all the time series have the same resource type, then the time # specified and all the time series have the same resource type, then the time
# series are aggregated into a single output time series. If crossSeriesReducer # series are aggregated into a single output time series. If
# is not defined, this field is ignored. # cross_series_reducer is not defined, this field is ignored.
# Corresponds to the JSON property `groupByFields` # Corresponds to the JSON property `groupByFields`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :group_by_fields attr_accessor :group_by_fields
# The approach to be used to align individual time series. Not all alignment # An Aligner describes how to bring the data points in a single time series into
# functions may be applied to all time series, depending on the metric type and # temporal alignment. Except for ALIGN_NONE, all alignments cause all the data
# value type of the original time series. Alignment may change the metric type # points in an alignment_period to be mathematically grouped together, resulting
# or the value type of the time series.Time series data must be aligned in order # in a single data point for each alignment_period with end timestamp at the end
# to perform cross-time series reduction. If crossSeriesReducer is specified, # of the period.Not all alignment operations may be applied to all time series.
# then perSeriesAligner must be specified and not equal ALIGN_NONE and # The valid choices depend on the metric_kind and value_type of the original
# alignmentPeriod must be specified; otherwise, an error is returned. # time series. Alignment can change the metric_kind or the value_type of the
# time series.Time series data must be aligned in order to perform cross-time
# series reduction. If cross_series_reducer is specified, then
# per_series_aligner must be specified and not equal to ALIGN_NONE and
# alignment_period must be specified; otherwise, an error is returned.
# Corresponds to the JSON property `perSeriesAligner` # Corresponds to the JSON property `perSeriesAligner`
# @return [String] # @return [String]
attr_accessor :per_series_aligner attr_accessor :per_series_aligner
@ -524,8 +548,11 @@ module Google
end end
# Describes a ranking-based time series filter. Each input time series is ranked # Describes a ranking-based time series filter. Each input time series is ranked
# with an aligner. The filter lets through up to num_time_series time series, # with an aligner. The filter will allow up to num_time_series time series to
# selecting them based on the relative ranking. # pass through it, selecting them based on the relative ranking.For example, if
# ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3,
# then the 3 times series with the lowest mean values will pass through the
# filter.
class PickTimeSeriesFilter class PickTimeSeriesFilter
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -534,12 +561,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :direction attr_accessor :direction
# How many time series to return. # How many time series to allow to pass through the filter.
# Corresponds to the JSON property `numTimeSeries` # Corresponds to the JSON property `numTimeSeries`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :num_time_series attr_accessor :num_time_series
# rankingMethod is applied to each time series independently to produce the # ranking_method is applied to each time series independently to produce the
# value which will be used to compare the time series to other time series. # value which will be used to compare the time series to other time series.
# Corresponds to the JSON property `rankingMethod` # Corresponds to the JSON property `rankingMethod`
# @return [String] # @return [String]
@ -562,11 +589,26 @@ module Google
class RatioPart class RatioPart
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Describes how to combine multiple time series to provide different views of # Describes how to combine multiple time series to provide a different view of
# the data. Aggregation consists of an alignment step on individual time series ( # the data. Aggregation of time series is done in two steps. First, each time
# alignment_period and per_series_aligner) followed by an optional reduction # series in the set is aligned to the same time interval boundaries, then the
# step of the data across the aligned time series (cross_series_reducer and # set of time series is optionally reduced in number.Alignment consists of
# group_by_fields). For more details, see Aggregation. # applying the per_series_aligner operation to each time series after its data
# has been divided into regular alignment_period time intervals. This process
# takes all of the data points in an alignment period, applies a mathematical
# transformation such as averaging, minimum, maximum, delta, etc., and converts
# them into a single data point per period.Reduction is when the aligned and
# transformed time series can optionally be combined, reducing the number of
# time series through similar mathematical transformations. Reduction involves
# applying a cross_series_reducer to all the time series, optionally sorting the
# time series into subsets with group_by_fields, and applying the reducer to
# each subset.The raw time series data can contain a huge amount of information
# from multiple sources. Alignment and reduction transforms this mass of data
# into a more manageable and representative collection of data, for example "the
# 95% latency across the average of all tasks in a cluster". This representative
# data can be more easily graphed and comprehended, and the individual time
# series data is still available for later drilldown. For more details, see
# Aggregating Time Series.
# Corresponds to the JSON property `aggregation` # Corresponds to the JSON property `aggregation`
# @return [Google::Apis::MonitoringV1::Aggregation] # @return [Google::Apis::MonitoringV1::Aggregation]
attr_accessor :aggregation attr_accessor :aggregation
@ -771,35 +813,6 @@ module Google
end end
end end
# A filter that ranks streams based on their statistical relation to other
# streams in a request.
class StatisticalTimeSeriesFilter
include Google::Apis::Core::Hashable
# How many time series to output.
# Corresponds to the JSON property `numTimeSeries`
# @return [Fixnum]
attr_accessor :num_time_series
# rankingMethod is applied to a set of time series, and then the produced value
# for each individual time series is used to compare a given time series to
# others. These are methods that cannot be applied stream-by-stream, but rather
# require the full context of a request to evaluate time series.
# Corresponds to the JSON property `rankingMethod`
# @return [String]
attr_accessor :ranking_method
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@num_time_series = args[:num_time_series] if args.key?(:num_time_series)
@ranking_method = args[:ranking_method] if args.key?(:ranking_method)
end
end
# A widget that displays textual content. # A widget that displays textual content.
class Text class Text
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -868,11 +881,26 @@ module Google
class TimeSeriesFilter class TimeSeriesFilter
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Describes how to combine multiple time series to provide different views of # Describes how to combine multiple time series to provide a different view of
# the data. Aggregation consists of an alignment step on individual time series ( # the data. Aggregation of time series is done in two steps. First, each time
# alignment_period and per_series_aligner) followed by an optional reduction # series in the set is aligned to the same time interval boundaries, then the
# step of the data across the aligned time series (cross_series_reducer and # set of time series is optionally reduced in number.Alignment consists of
# group_by_fields). For more details, see Aggregation. # applying the per_series_aligner operation to each time series after its data
# has been divided into regular alignment_period time intervals. This process
# takes all of the data points in an alignment period, applies a mathematical
# transformation such as averaging, minimum, maximum, delta, etc., and converts
# them into a single data point per period.Reduction is when the aligned and
# transformed time series can optionally be combined, reducing the number of
# time series through similar mathematical transformations. Reduction involves
# applying a cross_series_reducer to all the time series, optionally sorting the
# time series into subsets with group_by_fields, and applying the reducer to
# each subset.The raw time series data can contain a huge amount of information
# from multiple sources. Alignment and reduction transforms this mass of data
# into a more manageable and representative collection of data, for example "the
# 95% latency across the average of all tasks in a cluster". This representative
# data can be more easily graphed and comprehended, and the individual time
# series data is still available for later drilldown. For more details, see
# Aggregating Time Series.
# Corresponds to the JSON property `aggregation` # Corresponds to the JSON property `aggregation`
# @return [Google::Apis::MonitoringV1::Aggregation] # @return [Google::Apis::MonitoringV1::Aggregation]
attr_accessor :aggregation attr_accessor :aggregation
@ -884,18 +912,15 @@ module Google
attr_accessor :filter attr_accessor :filter
# Describes a ranking-based time series filter. Each input time series is ranked # Describes a ranking-based time series filter. Each input time series is ranked
# with an aligner. The filter lets through up to num_time_series time series, # with an aligner. The filter will allow up to num_time_series time series to
# selecting them based on the relative ranking. # pass through it, selecting them based on the relative ranking.For example, if
# ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3,
# then the 3 times series with the lowest mean values will pass through the
# filter.
# Corresponds to the JSON property `pickTimeSeriesFilter` # Corresponds to the JSON property `pickTimeSeriesFilter`
# @return [Google::Apis::MonitoringV1::PickTimeSeriesFilter] # @return [Google::Apis::MonitoringV1::PickTimeSeriesFilter]
attr_accessor :pick_time_series_filter attr_accessor :pick_time_series_filter
# A filter that ranks streams based on their statistical relation to other
# streams in a request.
# Corresponds to the JSON property `statisticalTimeSeriesFilter`
# @return [Google::Apis::MonitoringV1::StatisticalTimeSeriesFilter]
attr_accessor :statistical_time_series_filter
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -905,7 +930,6 @@ module Google
@aggregation = args[:aggregation] if args.key?(:aggregation) @aggregation = args[:aggregation] if args.key?(:aggregation)
@filter = args[:filter] if args.key?(:filter) @filter = args[:filter] if args.key?(:filter)
@pick_time_series_filter = args[:pick_time_series_filter] if args.key?(:pick_time_series_filter) @pick_time_series_filter = args[:pick_time_series_filter] if args.key?(:pick_time_series_filter)
@statistical_time_series_filter = args[:statistical_time_series_filter] if args.key?(:statistical_time_series_filter)
end end
end end
@ -928,27 +952,39 @@ module Google
attr_accessor :numerator attr_accessor :numerator
# Describes a ranking-based time series filter. Each input time series is ranked # Describes a ranking-based time series filter. Each input time series is ranked
# with an aligner. The filter lets through up to num_time_series time series, # with an aligner. The filter will allow up to num_time_series time series to
# selecting them based on the relative ranking. # pass through it, selecting them based on the relative ranking.For example, if
# ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3,
# then the 3 times series with the lowest mean values will pass through the
# filter.
# Corresponds to the JSON property `pickTimeSeriesFilter` # Corresponds to the JSON property `pickTimeSeriesFilter`
# @return [Google::Apis::MonitoringV1::PickTimeSeriesFilter] # @return [Google::Apis::MonitoringV1::PickTimeSeriesFilter]
attr_accessor :pick_time_series_filter attr_accessor :pick_time_series_filter
# Describes how to combine multiple time series to provide different views of # Describes how to combine multiple time series to provide a different view of
# the data. Aggregation consists of an alignment step on individual time series ( # the data. Aggregation of time series is done in two steps. First, each time
# alignment_period and per_series_aligner) followed by an optional reduction # series in the set is aligned to the same time interval boundaries, then the
# step of the data across the aligned time series (cross_series_reducer and # set of time series is optionally reduced in number.Alignment consists of
# group_by_fields). For more details, see Aggregation. # applying the per_series_aligner operation to each time series after its data
# has been divided into regular alignment_period time intervals. This process
# takes all of the data points in an alignment period, applies a mathematical
# transformation such as averaging, minimum, maximum, delta, etc., and converts
# them into a single data point per period.Reduction is when the aligned and
# transformed time series can optionally be combined, reducing the number of
# time series through similar mathematical transformations. Reduction involves
# applying a cross_series_reducer to all the time series, optionally sorting the
# time series into subsets with group_by_fields, and applying the reducer to
# each subset.The raw time series data can contain a huge amount of information
# from multiple sources. Alignment and reduction transforms this mass of data
# into a more manageable and representative collection of data, for example "the
# 95% latency across the average of all tasks in a cluster". This representative
# data can be more easily graphed and comprehended, and the individual time
# series data is still available for later drilldown. For more details, see
# Aggregating Time Series.
# Corresponds to the JSON property `secondaryAggregation` # Corresponds to the JSON property `secondaryAggregation`
# @return [Google::Apis::MonitoringV1::Aggregation] # @return [Google::Apis::MonitoringV1::Aggregation]
attr_accessor :secondary_aggregation attr_accessor :secondary_aggregation
# A filter that ranks streams based on their statistical relation to other
# streams in a request.
# Corresponds to the JSON property `statisticalTimeSeriesFilter`
# @return [Google::Apis::MonitoringV1::StatisticalTimeSeriesFilter]
attr_accessor :statistical_time_series_filter
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -959,7 +995,6 @@ module Google
@numerator = args[:numerator] if args.key?(:numerator) @numerator = args[:numerator] if args.key?(:numerator)
@pick_time_series_filter = args[:pick_time_series_filter] if args.key?(:pick_time_series_filter) @pick_time_series_filter = args[:pick_time_series_filter] if args.key?(:pick_time_series_filter)
@secondary_aggregation = args[:secondary_aggregation] if args.key?(:secondary_aggregation) @secondary_aggregation = args[:secondary_aggregation] if args.key?(:secondary_aggregation)
@statistical_time_series_filter = args[:statistical_time_series_filter] if args.key?(:statistical_time_series_filter)
end end
end end

View File

@ -154,12 +154,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class StatisticalTimeSeriesFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Text class Text
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -411,14 +405,6 @@ module Google
end end
end end
class StatisticalTimeSeriesFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :num_time_series, as: 'numTimeSeries'
property :ranking_method, as: 'rankingMethod'
end
end
class Text class Text
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -445,8 +431,6 @@ module Google
property :filter, as: 'filter' property :filter, as: 'filter'
property :pick_time_series_filter, as: 'pickTimeSeriesFilter', class: Google::Apis::MonitoringV1::PickTimeSeriesFilter, decorator: Google::Apis::MonitoringV1::PickTimeSeriesFilter::Representation property :pick_time_series_filter, as: 'pickTimeSeriesFilter', class: Google::Apis::MonitoringV1::PickTimeSeriesFilter, decorator: Google::Apis::MonitoringV1::PickTimeSeriesFilter::Representation
property :statistical_time_series_filter, as: 'statisticalTimeSeriesFilter', class: Google::Apis::MonitoringV1::StatisticalTimeSeriesFilter, decorator: Google::Apis::MonitoringV1::StatisticalTimeSeriesFilter::Representation
end end
end end
@ -461,8 +445,6 @@ module Google
property :secondary_aggregation, as: 'secondaryAggregation', class: Google::Apis::MonitoringV1::Aggregation, decorator: Google::Apis::MonitoringV1::Aggregation::Representation property :secondary_aggregation, as: 'secondaryAggregation', class: Google::Apis::MonitoringV1::Aggregation, decorator: Google::Apis::MonitoringV1::Aggregation::Representation
property :statistical_time_series_filter, as: 'statisticalTimeSeriesFilter', class: Google::Apis::MonitoringV1::StatisticalTimeSeriesFilter, decorator: Google::Apis::MonitoringV1::StatisticalTimeSeriesFilter::Representation
end end
end end

View File

@ -30,7 +30,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/ # @see https://cloud.google.com/monitoring/api/
module MonitoringV3 module MonitoringV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20200120' REVISION = '20200126'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,57 +22,81 @@ module Google
module Apis module Apis
module MonitoringV3 module MonitoringV3
# Describes how to combine multiple time series to provide different views of # Describes how to combine multiple time series to provide a different view of
# the data. Aggregation consists of an alignment step on individual time series ( # the data. Aggregation of time series is done in two steps. First, each time
# alignment_period and per_series_aligner) followed by an optional reduction # series in the set is aligned to the same time interval boundaries, then the
# step of the data across the aligned time series (cross_series_reducer and # set of time series is optionally reduced in number.Alignment consists of
# group_by_fields). For more details, see Aggregation. # applying the per_series_aligner operation to each time series after its data
# has been divided into regular alignment_period time intervals. This process
# takes all of the data points in an alignment period, applies a mathematical
# transformation such as averaging, minimum, maximum, delta, etc., and converts
# them into a single data point per period.Reduction is when the aligned and
# transformed time series can optionally be combined, reducing the number of
# time series through similar mathematical transformations. Reduction involves
# applying a cross_series_reducer to all the time series, optionally sorting the
# time series into subsets with group_by_fields, and applying the reducer to
# each subset.The raw time series data can contain a huge amount of information
# from multiple sources. Alignment and reduction transforms this mass of data
# into a more manageable and representative collection of data, for example "the
# 95% latency across the average of all tasks in a cluster". This representative
# data can be more easily graphed and comprehended, and the individual time
# series data is still available for later drilldown. For more details, see
# Aggregating Time Series.
class Aggregation class Aggregation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The alignment period for per-time series alignment. If present, # The alignment_period specifies a time interval, in seconds, that is used to
# alignmentPeriod must be at least 60 seconds. After per-time series alignment, # divide the data in all the time series into consistent blocks of time. This
# each time series will contain data points only on the period boundaries. If # will be done before the per-series aligner can be applied to the data.The
# perSeriesAligner is not specified or equals ALIGN_NONE, then this field is # value must be at least 60 seconds. If a per-series aligner other than
# ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then # ALIGN_NONE is specified, this field is required or an error is returned. If no
# this field must be defined; otherwise an error is returned. # per-series aligner is specified, or the aligner ALIGN_NONE is specified, then
# this field is ignored.
# Corresponds to the JSON property `alignmentPeriod` # Corresponds to the JSON property `alignmentPeriod`
# @return [String] # @return [String]
attr_accessor :alignment_period attr_accessor :alignment_period
# The approach to be used to combine time series. Not all reducer functions may # The reduction operation to be used to combine time series into a single time
# be applied to all time series, depending on the metric type and the value type # series, where the value of each data point in the resulting series is a
# of the original time series. Reduction may change the metric type of value # function of all the already aligned values in the input time series.Not all
# type of the time series.Time series data must be aligned in order to perform # reducer operations can be applied to all time series. The valid choices depend
# cross-time series reduction. If crossSeriesReducer is specified, then # on the metric_kind and the value_type of the original time series. Reduction
# perSeriesAligner must be specified and not equal ALIGN_NONE and # can yield a time series with a different metric_kind or value_type than the
# alignmentPeriod must be specified; otherwise, an error is returned. # input time series.Time series data must first be aligned (see
# per_series_aligner) in order to perform cross-time series reduction. If
# cross_series_reducer is specified, then per_series_aligner must be specified,
# and must not be ALIGN_NONE. An alignment_period must also be specified;
# otherwise, an error is returned.
# Corresponds to the JSON property `crossSeriesReducer` # Corresponds to the JSON property `crossSeriesReducer`
# @return [String] # @return [String]
attr_accessor :cross_series_reducer attr_accessor :cross_series_reducer
# The set of fields to preserve when crossSeriesReducer is specified. The # The set of fields to preserve when cross_series_reducer is specified. The
# groupByFields determine how the time series are partitioned into subsets prior # group_by_fields determine how the time series are partitioned into subsets
# to applying the aggregation function. Each subset contains time series that # prior to applying the aggregation operation. Each subset contains time series
# have the same value for each of the grouping fields. Each individual time # that have the same value for each of the grouping fields. Each individual time
# series is a member of exactly one subset. The crossSeriesReducer is applied to # series is a member of exactly one subset. The cross_series_reducer is applied
# each subset of time series. It is not possible to reduce across different # to each subset of time series. It is not possible to reduce across different
# resource types, so this field implicitly contains resource.type. Fields not # resource types, so this field implicitly contains resource.type. Fields not
# specified in groupByFields are aggregated away. If groupByFields is not # specified in group_by_fields are aggregated away. If group_by_fields is not
# specified and all the time series have the same resource type, then the time # specified and all the time series have the same resource type, then the time
# series are aggregated into a single output time series. If crossSeriesReducer # series are aggregated into a single output time series. If
# is not defined, this field is ignored. # cross_series_reducer is not defined, this field is ignored.
# Corresponds to the JSON property `groupByFields` # Corresponds to the JSON property `groupByFields`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :group_by_fields attr_accessor :group_by_fields
# The approach to be used to align individual time series. Not all alignment # An Aligner describes how to bring the data points in a single time series into
# functions may be applied to all time series, depending on the metric type and # temporal alignment. Except for ALIGN_NONE, all alignments cause all the data
# value type of the original time series. Alignment may change the metric type # points in an alignment_period to be mathematically grouped together, resulting
# or the value type of the time series.Time series data must be aligned in order # in a single data point for each alignment_period with end timestamp at the end
# to perform cross-time series reduction. If crossSeriesReducer is specified, # of the period.Not all alignment operations may be applied to all time series.
# then perSeriesAligner must be specified and not equal ALIGN_NONE and # The valid choices depend on the metric_kind and value_type of the original
# alignmentPeriod must be specified; otherwise, an error is returned. # time series. Alignment can change the metric_kind or the value_type of the
# time series.Time series data must be aligned in order to perform cross-time
# series reduction. If cross_series_reducer is specified, then
# per_series_aligner must be specified and not equal to ALIGN_NONE and
# alignment_period must be specified; otherwise, an error is returned.
# Corresponds to the JSON property `perSeriesAligner` # Corresponds to the JSON property `perSeriesAligner`
# @return [String] # @return [String]
attr_accessor :per_series_aligner attr_accessor :per_series_aligner

View File

@ -1219,40 +1219,49 @@ module Google
# The project on which to execute the request. The format is "projects/` # The project on which to execute the request. The format is "projects/`
# project_id_or_number`". # project_id_or_number`".
# @param [String] aggregation_alignment_period # @param [String] aggregation_alignment_period
# The alignment period for per-time series alignment. If present, # The alignment_period specifies a time interval, in seconds, that is used to
# alignmentPeriod must be at least 60 seconds. After per-time series alignment, # divide the data in all the time series into consistent blocks of time. This
# each time series will contain data points only on the period boundaries. If # will be done before the per-series aligner can be applied to the data.The
# perSeriesAligner is not specified or equals ALIGN_NONE, then this field is # value must be at least 60 seconds. If a per-series aligner other than
# ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then # ALIGN_NONE is specified, this field is required or an error is returned. If no
# this field must be defined; otherwise an error is returned. # per-series aligner is specified, or the aligner ALIGN_NONE is specified, then
# this field is ignored.
# @param [String] aggregation_cross_series_reducer # @param [String] aggregation_cross_series_reducer
# The approach to be used to combine time series. Not all reducer functions may # The reduction operation to be used to combine time series into a single time
# be applied to all time series, depending on the metric type and the value type # series, where the value of each data point in the resulting series is a
# of the original time series. Reduction may change the metric type of value # function of all the already aligned values in the input time series.Not all
# type of the time series.Time series data must be aligned in order to perform # reducer operations can be applied to all time series. The valid choices depend
# cross-time series reduction. If crossSeriesReducer is specified, then # on the metric_kind and the value_type of the original time series. Reduction
# perSeriesAligner must be specified and not equal ALIGN_NONE and # can yield a time series with a different metric_kind or value_type than the
# alignmentPeriod must be specified; otherwise, an error is returned. # input time series.Time series data must first be aligned (see
# per_series_aligner) in order to perform cross-time series reduction. If
# cross_series_reducer is specified, then per_series_aligner must be specified,
# and must not be ALIGN_NONE. An alignment_period must also be specified;
# otherwise, an error is returned.
# @param [Array<String>, String] aggregation_group_by_fields # @param [Array<String>, String] aggregation_group_by_fields
# The set of fields to preserve when crossSeriesReducer is specified. The # The set of fields to preserve when cross_series_reducer is specified. The
# groupByFields determine how the time series are partitioned into subsets prior # group_by_fields determine how the time series are partitioned into subsets
# to applying the aggregation function. Each subset contains time series that # prior to applying the aggregation operation. Each subset contains time series
# have the same value for each of the grouping fields. Each individual time # that have the same value for each of the grouping fields. Each individual time
# series is a member of exactly one subset. The crossSeriesReducer is applied to # series is a member of exactly one subset. The cross_series_reducer is applied
# each subset of time series. It is not possible to reduce across different # to each subset of time series. It is not possible to reduce across different
# resource types, so this field implicitly contains resource.type. Fields not # resource types, so this field implicitly contains resource.type. Fields not
# specified in groupByFields are aggregated away. If groupByFields is not # specified in group_by_fields are aggregated away. If group_by_fields is not
# specified and all the time series have the same resource type, then the time # specified and all the time series have the same resource type, then the time
# series are aggregated into a single output time series. If crossSeriesReducer # series are aggregated into a single output time series. If
# is not defined, this field is ignored. # cross_series_reducer is not defined, this field is ignored.
# @param [String] aggregation_per_series_aligner # @param [String] aggregation_per_series_aligner
# The approach to be used to align individual time series. Not all alignment # An Aligner describes how to bring the data points in a single time series into
# functions may be applied to all time series, depending on the metric type and # temporal alignment. Except for ALIGN_NONE, all alignments cause all the data
# value type of the original time series. Alignment may change the metric type # points in an alignment_period to be mathematically grouped together, resulting
# or the value type of the time series.Time series data must be aligned in order # in a single data point for each alignment_period with end timestamp at the end
# to perform cross-time series reduction. If crossSeriesReducer is specified, # of the period.Not all alignment operations may be applied to all time series.
# then perSeriesAligner must be specified and not equal ALIGN_NONE and # The valid choices depend on the metric_kind and value_type of the original
# alignmentPeriod must be specified; otherwise, an error is returned. # time series. Alignment can change the metric_kind or the value_type of the
# time series.Time series data must be aligned in order to perform cross-time
# series reduction. If cross_series_reducer is specified, then
# per_series_aligner must be specified and not equal to ALIGN_NONE and
# alignment_period must be specified; otherwise, an error is returned.
# @param [String] filter # @param [String] filter
# A monitoring filter that specifies which time series should be returned. The # A monitoring filter that specifies which time series should be returned. The
# filter must specify a single metric type, and can additionally specify metric # filter must specify a single metric type, and can additionally specify metric

View File

@ -0,0 +1,38 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/osconfig_v1beta/service.rb'
require 'google/apis/osconfig_v1beta/classes.rb'
require 'google/apis/osconfig_v1beta/representations.rb'
module Google
module Apis
# Cloud OS Config API
#
# OS management tools that can be used for patch management, patch compliance,
# and configuration management on VM instances.
#
# @see https://cloud.google.com/
module OsconfigV1beta
VERSION = 'V1beta'
REVISION = '20200109'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View and manage your Google Compute Engine resources
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,966 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module OsconfigV1beta
class AptRepository
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AptSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Assignment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AssignmentGroupLabel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AssignmentOsType
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelPatchJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EffectiveGuestPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EffectiveGuestPolicySourcedPackage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EffectiveGuestPolicySourcedPackageRepository
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EffectiveGuestPolicySourcedSoftwareRecipe
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExecStep
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExecStepConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExecutePatchJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GcsObject
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooRepository
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GuestPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListGuestPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListPatchDeploymentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListPatchJobInstanceDetailsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListPatchJobsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LookupEffectiveGuestPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonthlySchedule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OneTimeSchedule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Package
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PackageRepository
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PatchConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PatchDeployment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PatchInstanceFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PatchInstanceFilterGroupLabel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PatchJob
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PatchJobInstanceDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PatchJobInstanceDetailsSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RecurringSchedule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipe
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeArtifact
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeArtifactGcs
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeArtifactRemote
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeStep
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeStepCopyFile
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeStepExecFile
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeStepExtractArchive
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeStepInstallDpkg
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeStepInstallMsi
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeStepInstallRpm
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareRecipeStepRunScript
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeOfDay
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WeekDayOfMonth
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WeeklySchedule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WindowsUpdateSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class YumRepository
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class YumSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ZypperRepository
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ZypperSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AptRepository
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :archive_type, as: 'archiveType'
collection :components, as: 'components'
property :distribution, as: 'distribution'
property :gpg_key, as: 'gpgKey'
property :uri, as: 'uri'
end
end
class AptSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :excludes, as: 'excludes'
collection :exclusive_packages, as: 'exclusivePackages'
property :type, as: 'type'
end
end
class Assignment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :group_labels, as: 'groupLabels', class: Google::Apis::OsconfigV1beta::AssignmentGroupLabel, decorator: Google::Apis::OsconfigV1beta::AssignmentGroupLabel::Representation
collection :instance_name_prefixes, as: 'instanceNamePrefixes'
collection :instances, as: 'instances'
collection :os_types, as: 'osTypes', class: Google::Apis::OsconfigV1beta::AssignmentOsType, decorator: Google::Apis::OsconfigV1beta::AssignmentOsType::Representation
collection :zones, as: 'zones'
end
end
class AssignmentGroupLabel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
end
end
class AssignmentOsType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :os_architecture, as: 'osArchitecture'
property :os_short_name, as: 'osShortName'
property :os_version, as: 'osVersion'
end
end
class CancelPatchJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class EffectiveGuestPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :package_repositories, as: 'packageRepositories', class: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackageRepository, decorator: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackageRepository::Representation
collection :packages, as: 'packages', class: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackage, decorator: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackage::Representation
collection :software_recipes, as: 'softwareRecipes', class: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedSoftwareRecipe, decorator: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedSoftwareRecipe::Representation
end
end
class EffectiveGuestPolicySourcedPackage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :package, as: 'package', class: Google::Apis::OsconfigV1beta::Package, decorator: Google::Apis::OsconfigV1beta::Package::Representation
property :source, as: 'source'
end
end
class EffectiveGuestPolicySourcedPackageRepository
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :package_repository, as: 'packageRepository', class: Google::Apis::OsconfigV1beta::PackageRepository, decorator: Google::Apis::OsconfigV1beta::PackageRepository::Representation
property :source, as: 'source'
end
end
class EffectiveGuestPolicySourcedSoftwareRecipe
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :software_recipe, as: 'softwareRecipe', class: Google::Apis::OsconfigV1beta::SoftwareRecipe, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipe::Representation
property :source, as: 'source'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ExecStep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :linux_exec_step_config, as: 'linuxExecStepConfig', class: Google::Apis::OsconfigV1beta::ExecStepConfig, decorator: Google::Apis::OsconfigV1beta::ExecStepConfig::Representation
property :windows_exec_step_config, as: 'windowsExecStepConfig', class: Google::Apis::OsconfigV1beta::ExecStepConfig, decorator: Google::Apis::OsconfigV1beta::ExecStepConfig::Representation
end
end
class ExecStepConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_success_codes, as: 'allowedSuccessCodes'
property :gcs_object, as: 'gcsObject', class: Google::Apis::OsconfigV1beta::GcsObject, decorator: Google::Apis::OsconfigV1beta::GcsObject::Representation
property :interpreter, as: 'interpreter'
property :local_path, as: 'localPath'
end
end
class ExecutePatchJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :display_name, as: 'displayName'
property :dry_run, as: 'dryRun'
property :duration, as: 'duration'
property :instance_filter, as: 'instanceFilter', class: Google::Apis::OsconfigV1beta::PatchInstanceFilter, decorator: Google::Apis::OsconfigV1beta::PatchInstanceFilter::Representation
property :patch_config, as: 'patchConfig', class: Google::Apis::OsconfigV1beta::PatchConfig, decorator: Google::Apis::OsconfigV1beta::PatchConfig::Representation
end
end
class GcsObject
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket, as: 'bucket'
property :generation_number, :numeric_string => true, as: 'generationNumber'
property :object, as: 'object'
end
end
class GooRepository
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :url, as: 'url'
end
end
class GooSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GuestPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :assignment, as: 'assignment', class: Google::Apis::OsconfigV1beta::Assignment, decorator: Google::Apis::OsconfigV1beta::Assignment::Representation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :etag, as: 'etag'
property :name, as: 'name'
collection :package_repositories, as: 'packageRepositories', class: Google::Apis::OsconfigV1beta::PackageRepository, decorator: Google::Apis::OsconfigV1beta::PackageRepository::Representation
collection :packages, as: 'packages', class: Google::Apis::OsconfigV1beta::Package, decorator: Google::Apis::OsconfigV1beta::Package::Representation
collection :recipes, as: 'recipes', class: Google::Apis::OsconfigV1beta::SoftwareRecipe, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipe::Representation
property :update_time, as: 'updateTime'
end
end
class ListGuestPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :guest_policies, as: 'guestPolicies', class: Google::Apis::OsconfigV1beta::GuestPolicy, decorator: Google::Apis::OsconfigV1beta::GuestPolicy::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListPatchDeploymentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :patch_deployments, as: 'patchDeployments', class: Google::Apis::OsconfigV1beta::PatchDeployment, decorator: Google::Apis::OsconfigV1beta::PatchDeployment::Representation
end
end
class ListPatchJobInstanceDetailsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :patch_job_instance_details, as: 'patchJobInstanceDetails', class: Google::Apis::OsconfigV1beta::PatchJobInstanceDetails, decorator: Google::Apis::OsconfigV1beta::PatchJobInstanceDetails::Representation
end
end
class ListPatchJobsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :patch_jobs, as: 'patchJobs', class: Google::Apis::OsconfigV1beta::PatchJob, decorator: Google::Apis::OsconfigV1beta::PatchJob::Representation
end
end
class LookupEffectiveGuestPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :os_architecture, as: 'osArchitecture'
property :os_short_name, as: 'osShortName'
property :os_version, as: 'osVersion'
end
end
class MonthlySchedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :month_day, as: 'monthDay'
property :week_day_of_month, as: 'weekDayOfMonth', class: Google::Apis::OsconfigV1beta::WeekDayOfMonth, decorator: Google::Apis::OsconfigV1beta::WeekDayOfMonth::Representation
end
end
class OneTimeSchedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execute_time, as: 'executeTime'
end
end
class Package
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :desired_state, as: 'desiredState'
property :manager, as: 'manager'
property :name, as: 'name'
end
end
class PackageRepository
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :apt, as: 'apt', class: Google::Apis::OsconfigV1beta::AptRepository, decorator: Google::Apis::OsconfigV1beta::AptRepository::Representation
property :goo, as: 'goo', class: Google::Apis::OsconfigV1beta::GooRepository, decorator: Google::Apis::OsconfigV1beta::GooRepository::Representation
property :yum, as: 'yum', class: Google::Apis::OsconfigV1beta::YumRepository, decorator: Google::Apis::OsconfigV1beta::YumRepository::Representation
property :zypper, as: 'zypper', class: Google::Apis::OsconfigV1beta::ZypperRepository, decorator: Google::Apis::OsconfigV1beta::ZypperRepository::Representation
end
end
class PatchConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :apt, as: 'apt', class: Google::Apis::OsconfigV1beta::AptSettings, decorator: Google::Apis::OsconfigV1beta::AptSettings::Representation
property :goo, as: 'goo', class: Google::Apis::OsconfigV1beta::GooSettings, decorator: Google::Apis::OsconfigV1beta::GooSettings::Representation
property :post_step, as: 'postStep', class: Google::Apis::OsconfigV1beta::ExecStep, decorator: Google::Apis::OsconfigV1beta::ExecStep::Representation
property :pre_step, as: 'preStep', class: Google::Apis::OsconfigV1beta::ExecStep, decorator: Google::Apis::OsconfigV1beta::ExecStep::Representation
property :reboot_config, as: 'rebootConfig'
property :windows_update, as: 'windowsUpdate', class: Google::Apis::OsconfigV1beta::WindowsUpdateSettings, decorator: Google::Apis::OsconfigV1beta::WindowsUpdateSettings::Representation
property :yum, as: 'yum', class: Google::Apis::OsconfigV1beta::YumSettings, decorator: Google::Apis::OsconfigV1beta::YumSettings::Representation
property :zypper, as: 'zypper', class: Google::Apis::OsconfigV1beta::ZypperSettings, decorator: Google::Apis::OsconfigV1beta::ZypperSettings::Representation
end
end
class PatchDeployment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :duration, as: 'duration'
property :instance_filter, as: 'instanceFilter', class: Google::Apis::OsconfigV1beta::PatchInstanceFilter, decorator: Google::Apis::OsconfigV1beta::PatchInstanceFilter::Representation
property :last_execute_time, as: 'lastExecuteTime'
property :name, as: 'name'
property :one_time_schedule, as: 'oneTimeSchedule', class: Google::Apis::OsconfigV1beta::OneTimeSchedule, decorator: Google::Apis::OsconfigV1beta::OneTimeSchedule::Representation
property :patch_config, as: 'patchConfig', class: Google::Apis::OsconfigV1beta::PatchConfig, decorator: Google::Apis::OsconfigV1beta::PatchConfig::Representation
property :recurring_schedule, as: 'recurringSchedule', class: Google::Apis::OsconfigV1beta::RecurringSchedule, decorator: Google::Apis::OsconfigV1beta::RecurringSchedule::Representation
property :update_time, as: 'updateTime'
end
end
class PatchInstanceFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :all, as: 'all'
collection :group_labels, as: 'groupLabels', class: Google::Apis::OsconfigV1beta::PatchInstanceFilterGroupLabel, decorator: Google::Apis::OsconfigV1beta::PatchInstanceFilterGroupLabel::Representation
collection :instance_name_prefixes, as: 'instanceNamePrefixes'
collection :instances, as: 'instances'
collection :zones, as: 'zones'
end
end
class PatchInstanceFilterGroupLabel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
end
end
class PatchJob
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :display_name, as: 'displayName'
property :dry_run, as: 'dryRun'
property :duration, as: 'duration'
property :error_message, as: 'errorMessage'
property :instance_details_summary, as: 'instanceDetailsSummary', class: Google::Apis::OsconfigV1beta::PatchJobInstanceDetailsSummary, decorator: Google::Apis::OsconfigV1beta::PatchJobInstanceDetailsSummary::Representation
property :instance_filter, as: 'instanceFilter', class: Google::Apis::OsconfigV1beta::PatchInstanceFilter, decorator: Google::Apis::OsconfigV1beta::PatchInstanceFilter::Representation
property :name, as: 'name'
property :patch_config, as: 'patchConfig', class: Google::Apis::OsconfigV1beta::PatchConfig, decorator: Google::Apis::OsconfigV1beta::PatchConfig::Representation
property :patch_deployment, as: 'patchDeployment'
property :percent_complete, as: 'percentComplete'
property :state, as: 'state'
property :update_time, as: 'updateTime'
end
end
class PatchJobInstanceDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :attempt_count, :numeric_string => true, as: 'attemptCount'
property :failure_reason, as: 'failureReason'
property :instance_system_id, as: 'instanceSystemId'
property :name, as: 'name'
property :state, as: 'state'
end
end
class PatchJobInstanceDetailsSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :acked_instance_count, :numeric_string => true, as: 'ackedInstanceCount'
property :applying_patches_instance_count, :numeric_string => true, as: 'applyingPatchesInstanceCount'
property :downloading_patches_instance_count, :numeric_string => true, as: 'downloadingPatchesInstanceCount'
property :failed_instance_count, :numeric_string => true, as: 'failedInstanceCount'
property :inactive_instance_count, :numeric_string => true, as: 'inactiveInstanceCount'
property :no_agent_detected_instance_count, :numeric_string => true, as: 'noAgentDetectedInstanceCount'
property :notified_instance_count, :numeric_string => true, as: 'notifiedInstanceCount'
property :pending_instance_count, :numeric_string => true, as: 'pendingInstanceCount'
property :post_patch_step_instance_count, :numeric_string => true, as: 'postPatchStepInstanceCount'
property :pre_patch_step_instance_count, :numeric_string => true, as: 'prePatchStepInstanceCount'
property :rebooting_instance_count, :numeric_string => true, as: 'rebootingInstanceCount'
property :started_instance_count, :numeric_string => true, as: 'startedInstanceCount'
property :succeeded_instance_count, :numeric_string => true, as: 'succeededInstanceCount'
property :succeeded_reboot_required_instance_count, :numeric_string => true, as: 'succeededRebootRequiredInstanceCount'
property :timed_out_instance_count, :numeric_string => true, as: 'timedOutInstanceCount'
end
end
class RecurringSchedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :frequency, as: 'frequency'
property :last_execute_time, as: 'lastExecuteTime'
property :monthly, as: 'monthly', class: Google::Apis::OsconfigV1beta::MonthlySchedule, decorator: Google::Apis::OsconfigV1beta::MonthlySchedule::Representation
property :next_execute_time, as: 'nextExecuteTime'
property :start_time, as: 'startTime'
property :time_of_day, as: 'timeOfDay', class: Google::Apis::OsconfigV1beta::TimeOfDay, decorator: Google::Apis::OsconfigV1beta::TimeOfDay::Representation
property :time_zone, as: 'timeZone', class: Google::Apis::OsconfigV1beta::TimeZone, decorator: Google::Apis::OsconfigV1beta::TimeZone::Representation
property :weekly, as: 'weekly', class: Google::Apis::OsconfigV1beta::WeeklySchedule, decorator: Google::Apis::OsconfigV1beta::WeeklySchedule::Representation
end
end
class SoftwareRecipe
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :artifacts, as: 'artifacts', class: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifact, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifact::Representation
property :desired_state, as: 'desiredState'
collection :install_steps, as: 'installSteps', class: Google::Apis::OsconfigV1beta::SoftwareRecipeStep, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeStep::Representation
property :name, as: 'name'
collection :update_steps, as: 'updateSteps', class: Google::Apis::OsconfigV1beta::SoftwareRecipeStep, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeStep::Representation
property :version, as: 'version'
end
end
class SoftwareRecipeArtifact
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allow_insecure, as: 'allowInsecure'
property :gcs, as: 'gcs', class: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactGcs, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactGcs::Representation
property :id, as: 'id'
property :remote, as: 'remote', class: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactRemote, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactRemote::Representation
end
end
class SoftwareRecipeArtifactGcs
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket, as: 'bucket'
property :generation, :numeric_string => true, as: 'generation'
property :object, as: 'object'
end
end
class SoftwareRecipeArtifactRemote
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :checksum, as: 'checksum'
property :uri, as: 'uri'
end
end
class SoftwareRecipeStep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :archive_extraction, as: 'archiveExtraction', class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepExtractArchive, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeStepExtractArchive::Representation
property :dpkg_installation, as: 'dpkgInstallation', class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallDpkg, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallDpkg::Representation
property :file_copy, as: 'fileCopy', class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepCopyFile, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeStepCopyFile::Representation
property :file_exec, as: 'fileExec', class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepExecFile, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeStepExecFile::Representation
property :msi_installation, as: 'msiInstallation', class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallMsi, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallMsi::Representation
property :rpm_installation, as: 'rpmInstallation', class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallRpm, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallRpm::Representation
property :script_run, as: 'scriptRun', class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepRunScript, decorator: Google::Apis::OsconfigV1beta::SoftwareRecipeStepRunScript::Representation
end
end
class SoftwareRecipeStepCopyFile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :artifact_id, as: 'artifactId'
property :destination, as: 'destination'
property :overwrite, as: 'overwrite'
property :permissions, as: 'permissions'
end
end
class SoftwareRecipeStepExecFile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_exit_codes, as: 'allowedExitCodes'
collection :args, as: 'args'
property :artifact_id, as: 'artifactId'
property :local_path, as: 'localPath'
end
end
class SoftwareRecipeStepExtractArchive
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :artifact_id, as: 'artifactId'
property :destination, as: 'destination'
property :type, as: 'type'
end
end
class SoftwareRecipeStepInstallDpkg
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :artifact_id, as: 'artifactId'
end
end
class SoftwareRecipeStepInstallMsi
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_exit_codes, as: 'allowedExitCodes'
property :artifact_id, as: 'artifactId'
collection :flags, as: 'flags'
end
end
class SoftwareRecipeStepInstallRpm
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :artifact_id, as: 'artifactId'
end
end
class SoftwareRecipeStepRunScript
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_exit_codes, as: 'allowedExitCodes'
property :interpreter, as: 'interpreter'
property :script, as: 'script'
end
end
class TimeOfDay
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hours, as: 'hours'
property :minutes, as: 'minutes'
property :nanos, as: 'nanos'
property :seconds, as: 'seconds'
end
end
class TimeZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :version, as: 'version'
end
end
class WeekDayOfMonth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day_of_week, as: 'dayOfWeek'
property :week_ordinal, as: 'weekOrdinal'
end
end
class WeeklySchedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day_of_week, as: 'dayOfWeek'
end
end
class WindowsUpdateSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :classifications, as: 'classifications'
collection :excludes, as: 'excludes'
collection :exclusive_patches, as: 'exclusivePatches'
end
end
class YumRepository
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :base_url, as: 'baseUrl'
property :display_name, as: 'displayName'
collection :gpg_keys, as: 'gpgKeys'
property :id, as: 'id'
end
end
class YumSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :excludes, as: 'excludes'
collection :exclusive_packages, as: 'exclusivePackages'
property :minimal, as: 'minimal'
property :security, as: 'security'
end
end
class ZypperRepository
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :base_url, as: 'baseUrl'
property :display_name, as: 'displayName'
collection :gpg_keys, as: 'gpgKeys'
property :id, as: 'id'
end
end
class ZypperSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :categories, as: 'categories'
collection :excludes, as: 'excludes'
collection :exclusive_patches, as: 'exclusivePatches'
collection :severities, as: 'severities'
property :with_optional, as: 'withOptional'
property :with_update, as: 'withUpdate'
end
end
end
end
end

View File

@ -0,0 +1,605 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module OsconfigV1beta
# Cloud OS Config API
#
# OS management tools that can be used for patch management, patch compliance,
# and configuration management on VM instances.
#
# @example
# require 'google/apis/osconfig_v1beta'
#
# Osconfig = Google::Apis::OsconfigV1beta # Alias the module
# service = Osconfig::SystemsManagementService.new
#
# @see https://cloud.google.com/
class SystemsManagementService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://osconfig.googleapis.com/', '')
@batch_path = 'batch'
end
# Create an OS Config guest policy.
# @param [String] parent
# Required. The resource name of the parent using one of the following forms:
# `projects/`project_number``.
# @param [Google::Apis::OsconfigV1beta::GuestPolicy] guest_policy_object
# @param [String] guest_policy_id
# Required. The logical name of the guest policy in the project
# with the following restrictions:
# * Must contain only lowercase letters, numbers, and hyphens.
# * Must start with a letter.
# * Must be between 1-63 characters.
# * Must end with a number or a letter.
# * Must be unique within the project.
# @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::OsconfigV1beta::GuestPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::GuestPolicy]
#
# @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_project_guest_policy(parent, guest_policy_object = nil, guest_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta/{+parent}/guestPolicies', options)
command.request_representation = Google::Apis::OsconfigV1beta::GuestPolicy::Representation
command.request_object = guest_policy_object
command.response_representation = Google::Apis::OsconfigV1beta::GuestPolicy::Representation
command.response_class = Google::Apis::OsconfigV1beta::GuestPolicy
command.params['parent'] = parent unless parent.nil?
command.query['guestPolicyId'] = guest_policy_id unless guest_policy_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Delete an OS Config guest policy.
# @param [String] name
# Required. The resource name of the guest policy using one of the following
# forms:
# `projects/`project_number`/guestPolicies/`guest_policy_id``.
# @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::OsconfigV1beta::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::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 delete_project_guest_policy(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta/{+name}', options)
command.response_representation = Google::Apis::OsconfigV1beta::Empty::Representation
command.response_class = Google::Apis::OsconfigV1beta::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get an OS Config guest policy.
# @param [String] name
# Required. The resource name of the guest policy using one of the following
# forms:
# `projects/`project_number`/guestPolicies/`guest_policy_id``.
# @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::OsconfigV1beta::GuestPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::GuestPolicy]
#
# @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_project_guest_policy(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta/{+name}', options)
command.response_representation = Google::Apis::OsconfigV1beta::GuestPolicy::Representation
command.response_class = Google::Apis::OsconfigV1beta::GuestPolicy
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get a page of OS Config guest policies.
# @param [String] parent
# Required. The resource name of the parent using one of the following forms:
# `projects/`project_number``.
# @param [Fixnum] page_size
# The maximum number of guest policies to return.
# @param [String] page_token
# A pagination token returned from a previous call to `ListGuestPolicies`
# that indicates where this listing should continue from.
# @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::OsconfigV1beta::ListGuestPoliciesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::ListGuestPoliciesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_guest_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta/{+parent}/guestPolicies', options)
command.response_representation = Google::Apis::OsconfigV1beta::ListGuestPoliciesResponse::Representation
command.response_class = Google::Apis::OsconfigV1beta::ListGuestPoliciesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Update an OS Config guest policy.
# @param [String] name
# Required. Unique name of the resource in this project using one of the
# following
# forms:
# `projects/`project_number`/guestPolicies/`guest_policy_id``.
# @param [Google::Apis::OsconfigV1beta::GuestPolicy] guest_policy_object
# @param [String] update_mask
# Field mask that controls which fields of the guest policy should be
# updated.
# @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::OsconfigV1beta::GuestPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::GuestPolicy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_guest_policy(name, guest_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta/{+name}', options)
command.request_representation = Google::Apis::OsconfigV1beta::GuestPolicy::Representation
command.request_object = guest_policy_object
command.response_representation = Google::Apis::OsconfigV1beta::GuestPolicy::Representation
command.response_class = Google::Apis::OsconfigV1beta::GuestPolicy
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Create an OS Config patch deployment.
# @param [String] parent
# Required. The project to apply this patch deployment to in the form `projects/*
# `.
# @param [Google::Apis::OsconfigV1beta::PatchDeployment] patch_deployment_object
# @param [String] patch_deployment_id
# Required. A name for the patch deployment in the project. When creating a name
# the following rules apply:
# * Must contain only lowercase letters, numbers, and hyphens.
# * Must start with a letter.
# * Must be between 1-63 characters.
# * Must end with a number or a letter.
# * Must be unique within the project.
# @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::OsconfigV1beta::PatchDeployment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::PatchDeployment]
#
# @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_project_patch_deployment(parent, patch_deployment_object = nil, patch_deployment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta/{+parent}/patchDeployments', options)
command.request_representation = Google::Apis::OsconfigV1beta::PatchDeployment::Representation
command.request_object = patch_deployment_object
command.response_representation = Google::Apis::OsconfigV1beta::PatchDeployment::Representation
command.response_class = Google::Apis::OsconfigV1beta::PatchDeployment
command.params['parent'] = parent unless parent.nil?
command.query['patchDeploymentId'] = patch_deployment_id unless patch_deployment_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Delete an OS Config patch deployment.
# @param [String] name
# Required. The resource name of the patch deployment in the form
# `projects/*/patchDeployments/*`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::OsconfigV1beta::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::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 delete_project_patch_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta/{+name}', options)
command.response_representation = Google::Apis::OsconfigV1beta::Empty::Representation
command.response_class = Google::Apis::OsconfigV1beta::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get an OS Config patch deployment.
# @param [String] name
# Required. The resource name of the patch deployment in the form
# `projects/*/patchDeployments/*`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::OsconfigV1beta::PatchDeployment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::PatchDeployment]
#
# @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_project_patch_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta/{+name}', options)
command.response_representation = Google::Apis::OsconfigV1beta::PatchDeployment::Representation
command.response_class = Google::Apis::OsconfigV1beta::PatchDeployment
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get a page of OS Config patch deployments.
# @param [String] parent
# Required. The resource name of the parent in the form `projects/*`.
# @param [Fixnum] page_size
# Optional. The maximum number of patch deployments to return. Default is 100.
# @param [String] page_token
# Optional. A pagination token returned from a previous call to
# ListPatchDeployments
# that indicates where this listing should continue from.
# @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::OsconfigV1beta::ListPatchDeploymentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::ListPatchDeploymentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_patch_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta/{+parent}/patchDeployments', options)
command.response_representation = Google::Apis::OsconfigV1beta::ListPatchDeploymentsResponse::Representation
command.response_class = Google::Apis::OsconfigV1beta::ListPatchDeploymentsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Cancel a patch job. The patch job must be active. Canceled patch jobs
# cannot be restarted.
# @param [String] name
# Required. Name of the patch in the form `projects/*/patchJobs/*`
# @param [Google::Apis::OsconfigV1beta::CancelPatchJobRequest] cancel_patch_job_request_object
# @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::OsconfigV1beta::PatchJob] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::PatchJob]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_patch_job(name, cancel_patch_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta/{+name}:cancel', options)
command.request_representation = Google::Apis::OsconfigV1beta::CancelPatchJobRequest::Representation
command.request_object = cancel_patch_job_request_object
command.response_representation = Google::Apis::OsconfigV1beta::PatchJob::Representation
command.response_class = Google::Apis::OsconfigV1beta::PatchJob
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Patch VM instances by creating and running a patch job.
# @param [String] parent
# Required. The project in which to run this patch in the form `projects/*`
# @param [Google::Apis::OsconfigV1beta::ExecutePatchJobRequest] execute_patch_job_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::OsconfigV1beta::PatchJob] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::PatchJob]
#
# @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 execute_patch_job(parent, execute_patch_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta/{+parent}/patchJobs:execute', options)
command.request_representation = Google::Apis::OsconfigV1beta::ExecutePatchJobRequest::Representation
command.request_object = execute_patch_job_request_object
command.response_representation = Google::Apis::OsconfigV1beta::PatchJob::Representation
command.response_class = Google::Apis::OsconfigV1beta::PatchJob
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
# Get the patch job. This can be used to track the progress of an
# ongoing patch job or review the details of completed jobs.
# @param [String] name
# Required. Name of the patch in the form `projects/*/patchJobs/*`
# @param [String] fields
# 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::OsconfigV1beta::PatchJob] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::PatchJob]
#
# @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_project_patch_job(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta/{+name}', options)
command.response_representation = Google::Apis::OsconfigV1beta::PatchJob::Representation
command.response_class = Google::Apis::OsconfigV1beta::PatchJob
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get a list of patch jobs.
# @param [String] parent
# Required. In the form of `projects/*`
# @param [String] filter
# If provided, this field specifies the criteria that must be met by patch
# jobs to be included in the response.
# Currently, filtering is only available on the patch_deployment field.
# @param [Fixnum] page_size
# The maximum number of instance status to return.
# @param [String] page_token
# A pagination token returned from a previous call
# that indicates where this listing should continue from.
# @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::OsconfigV1beta::ListPatchJobsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::ListPatchJobsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_patch_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta/{+parent}/patchJobs', options)
command.response_representation = Google::Apis::OsconfigV1beta::ListPatchJobsResponse::Representation
command.response_class = Google::Apis::OsconfigV1beta::ListPatchJobsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get a list of instance details for a given patch job.
# @param [String] parent
# Required. The parent for the instances are in the form of `projects/*/
# patchJobs/*`.
# @param [String] filter
# A filter expression that filters results listed in the response. This
# field supports filtering results by instance zone, name, state, or
# `failure_reason`.
# @param [Fixnum] page_size
# The maximum number of instance details records to return. Default is 100.
# @param [String] page_token
# A pagination token returned from a previous call
# that indicates where this listing should continue from.
# @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::OsconfigV1beta::ListPatchJobInstanceDetailsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::ListPatchJobInstanceDetailsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_patch_job_instance_details(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta/{+parent}/instanceDetails', options)
command.response_representation = Google::Apis::OsconfigV1beta::ListPatchJobInstanceDetailsResponse::Representation
command.response_class = Google::Apis::OsconfigV1beta::ListPatchJobInstanceDetailsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lookup the effective guest policy that applies to a VM instance. This
# lookup merges all policies that are assigned to the instance ancestry.
# @param [String] instance
# Required. The VM instance whose policies are being looked up.
# @param [Google::Apis::OsconfigV1beta::LookupEffectiveGuestPolicyRequest] lookup_effective_guest_policy_request_object
# @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::OsconfigV1beta::EffectiveGuestPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OsconfigV1beta::EffectiveGuestPolicy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def lookup_instance_effective_guest_policy(instance, lookup_effective_guest_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta/{+instance}:lookupEffectiveGuestPolicy', options)
command.request_representation = Google::Apis::OsconfigV1beta::LookupEffectiveGuestPolicyRequest::Representation
command.request_object = lookup_effective_guest_policy_request_object
command.response_representation = Google::Apis::OsconfigV1beta::EffectiveGuestPolicy::Representation
command.response_class = Google::Apis::OsconfigV1beta::EffectiveGuestPolicy
command.params['instance'] = instance unless instance.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -1,55 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/plus_domains_v1/service.rb'
require 'google/apis/plus_domains_v1/classes.rb'
require 'google/apis/plus_domains_v1/representations.rb'
module Google
module Apis
# Google+ Domains API
#
# Builds on top of the Google+ platform for Google Apps Domains.
#
# @see https://developers.google.com/+/domains/
module PlusDomainsV1
VERSION = 'V1'
REVISION = '20190415'
# View your circles and the people and pages in them
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
# View your basic profile info, including your age range and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
# Associate you with your personal info on Google
AUTH_PLUS_ME = 'https://www.googleapis.com/auth/plus.me'
# Send your photos and videos to Google+
AUTH_PLUS_MEDIA_UPLOAD = 'https://www.googleapis.com/auth/plus.media.upload'
# View your own Google+ profile and profiles visible to you
AUTH_PLUS_PROFILES_READ = 'https://www.googleapis.com/auth/plus.profiles.read'
# View your Google+ posts, comments, and stream
AUTH_PLUS_STREAM_READ = 'https://www.googleapis.com/auth/plus.stream.read'
# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
# See your personal info, including any personal info you've made publicly available
AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,489 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PlusDomainsV1
# Google+ Domains API
#
# Builds on top of the Google+ platform for Google Apps Domains.
#
# @example
# require 'google/apis/plus_domains_v1'
#
# PlusDomains = Google::Apis::PlusDomainsV1 # Alias the module
# service = PlusDomains::PlusDomainsService.new
#
# @see https://developers.google.com/+/domains/
class PlusDomainsService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'plusDomains/v1/')
@batch_path = 'batch/plusDomains/v1'
end
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
# @param [String] activity_id
# The ID of the activity to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusDomainsV1::Activity] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusDomainsV1::Activity]
#
# @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_activity(activity_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'activities/{activityId}', options)
command.response_representation = Google::Apis::PlusDomainsV1::Activity::Representation
command.response_class = Google::Apis::PlusDomainsV1::Activity
command.params['activityId'] = activity_id unless activity_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
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
# @param [String] user_id
# The ID of the user to get activities for. The special value "me" can be used
# to indicate the authenticated user.
# @param [String] collection
# The collection of activities to list.
# @param [Fixnum] max_results
# The maximum number of activities to include in the response, which is used for
# paging. For any response, the actual number returned might be less than the
# specified maxResults.
# @param [String] page_token
# The continuation token, which is used to page through large result sets. To
# get the next page of results, set this parameter to the value of "
# nextPageToken" from the previous response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusDomainsV1::ActivityFeed] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusDomainsV1::ActivityFeed]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_activities(user_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'people/{userId}/activities/{collection}', options)
command.response_representation = Google::Apis::PlusDomainsV1::ActivityFeed::Representation
command.response_class = Google::Apis::PlusDomainsV1::ActivityFeed
command.params['userId'] = user_id unless user_id.nil?
command.params['collection'] = collection unless collection.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
# @param [String] user_id
# The ID of the user to get audiences for. The special value "me" can be used to
# indicate the authenticated user.
# @param [Fixnum] max_results
# The maximum number of circles to include in the response, which is used for
# paging. For any response, the actual number returned might be less than the
# specified maxResults.
# @param [String] page_token
# The continuation token, which is used to page through large result sets. To
# get the next page of results, set this parameter to the value of "
# nextPageToken" from the previous response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusDomainsV1::AudiencesFeed] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusDomainsV1::AudiencesFeed]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_audiences(user_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'people/{userId}/audiences', options)
command.response_representation = Google::Apis::PlusDomainsV1::AudiencesFeed::Representation
command.response_class = Google::Apis::PlusDomainsV1::AudiencesFeed
command.params['userId'] = user_id unless user_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
# @param [String] user_id
# The ID of the user to get circles for. The special value "me" can be used to
# indicate the authenticated user.
# @param [Fixnum] max_results
# The maximum number of circles to include in the response, which is used for
# paging. For any response, the actual number returned might be less than the
# specified maxResults.
# @param [String] page_token
# The continuation token, which is used to page through large result sets. To
# get the next page of results, set this parameter to the value of "
# nextPageToken" from the previous response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusDomainsV1::CircleFeed] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusDomainsV1::CircleFeed]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_circles(user_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'people/{userId}/circles', options)
command.response_representation = Google::Apis::PlusDomainsV1::CircleFeed::Representation
command.response_class = Google::Apis::PlusDomainsV1::CircleFeed
command.params['userId'] = user_id unless user_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
# @param [String] comment_id
# The ID of the comment to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusDomainsV1::Comment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusDomainsV1::Comment]
#
# @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_comment(comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'comments/{commentId}', options)
command.response_representation = Google::Apis::PlusDomainsV1::Comment::Representation
command.response_class = Google::Apis::PlusDomainsV1::Comment
command.params['commentId'] = comment_id unless comment_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
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
# @param [String] activity_id
# The ID of the activity to get comments for.
# @param [Fixnum] max_results
# The maximum number of comments to include in the response, which is used for
# paging. For any response, the actual number returned might be less than the
# specified maxResults.
# @param [String] page_token
# The continuation token, which is used to page through large result sets. To
# get the next page of results, set this parameter to the value of "
# nextPageToken" from the previous response.
# @param [String] sort_order
# The order in which to sort the list of comments.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusDomainsV1::CommentFeed] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusDomainsV1::CommentFeed]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_comments(activity_id, max_results: nil, page_token: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'activities/{activityId}/comments', options)
command.response_representation = Google::Apis::PlusDomainsV1::CommentFeed::Representation
command.response_class = Google::Apis::PlusDomainsV1::CommentFeed
command.params['activityId'] = activity_id unless activity_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortOrder'] = sort_order unless sort_order.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
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
# @param [String] user_id
# The ID of the user to create the activity on behalf of.
# @param [String] collection
# @param [Google::Apis::PlusDomainsV1::Media] media_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [IO, String] upload_source
# IO stream or filename containing content to upload
# @param [String] content_type
# Content type of the uploaded content.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusDomainsV1::Media] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusDomainsV1::Media]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_medium(user_id, collection, media_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, 'people/{userId}/media/{collection}', options)
else
command = make_upload_command(:post, 'people/{userId}/media/{collection}', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
command.request_representation = Google::Apis::PlusDomainsV1::Media::Representation
command.request_object = media_object
command.response_representation = Google::Apis::PlusDomainsV1::Media::Representation
command.response_class = Google::Apis::PlusDomainsV1::Media
command.params['userId'] = user_id unless user_id.nil?
command.params['collection'] = collection unless collection.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
# Get a person's profile.
# @param [String] user_id
# The ID of the person to get the profile for. The special value "me" can be
# used to indicate the authenticated user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusDomainsV1::Person] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusDomainsV1::Person]
#
# @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_person(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'people/{userId}', options)
command.response_representation = Google::Apis::PlusDomainsV1::Person::Representation
command.response_class = Google::Apis::PlusDomainsV1::Person
command.params['userId'] = user_id unless user_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
# List all of the people in the specified collection.
# @param [String] user_id
# Get the collection of people for the person identified. Use "me" to indicate
# the authenticated user.
# @param [String] collection
# The collection of people to list.
# @param [Fixnum] max_results
# The maximum number of people to include in the response, which is used for
# paging. For any response, the actual number returned might be less than the
# specified maxResults.
# @param [String] order_by
# The order to return people in.
# @param [String] page_token
# The continuation token, which is used to page through large result sets. To
# get the next page of results, set this parameter to the value of "
# nextPageToken" from the previous response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusDomainsV1::PeopleFeed] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusDomainsV1::PeopleFeed]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_people(user_id, collection, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'people/{userId}/people/{collection}', options)
command.response_representation = Google::Apis::PlusDomainsV1::PeopleFeed::Representation
command.response_class = Google::Apis::PlusDomainsV1::PeopleFeed
command.params['userId'] = user_id unless user_id.nil?
command.params['collection'] = collection unless collection.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Shut down. See https://developers.google.com/+/api-shutdown for more details.
# @param [String] activity_id
# The ID of the activity to get the list of people for.
# @param [String] collection
# The collection of people to list.
# @param [Fixnum] max_results
# The maximum number of people to include in the response, which is used for
# paging. For any response, the actual number returned might be less than the
# specified maxResults.
# @param [String] page_token
# The continuation token, which is used to page through large result sets. To
# get the next page of results, set this parameter to the value of "
# nextPageToken" from the previous response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusDomainsV1::PeopleFeed] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusDomainsV1::PeopleFeed]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_people_by_activity(activity_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'activities/{activityId}/people/{collection}', options)
command.response_representation = Google::Apis::PlusDomainsV1::PeopleFeed::Representation
command.response_class = Google::Apis::PlusDomainsV1::PeopleFeed
command.params['activityId'] = activity_id unless activity_id.nil?
command.params['collection'] = collection unless collection.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

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

View File

@ -46,10 +46,28 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents an expression text. Example: # Represents a textual expression in the Common Expression Language (CEL)
# title: "User account presence" # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
# description: "Determines whether the request has a user account" # are documented at https://github.com/google/cel-spec.
# expression: "size(request.user) > 0" # Example (Comparison):
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
# Example (Equality):
# title: "Requestor is owner"
# description: "Determines if requestor is the document owner"
# expression: "document.owner == request.auth.claims.email"
# Example (Logic):
# title: "Public documents"
# description: "Determine whether the document should be publicly visible"
# expression: "document.type != 'private' && document.type != 'internal'"
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
# Corresponds to the JSON property `condition` # Corresponds to the JSON property `condition`
# @return [Google::Apis::PubsubV1::Expr] # @return [Google::Apis::PubsubV1::Expr]
attr_accessor :condition attr_accessor :condition
@ -141,6 +159,49 @@ module Google
end end
end end
# Dead lettering is done on a best effort basis. The same message might be
# dead lettered multiple times.
# If validation on any of the fields fails at subscription creation/updation,
# the create/update subscription request will fail.
class DeadLetterPolicy
include Google::Apis::Core::Hashable
# The name of the topic to which dead letter messages should be published.
# Format is `projects/`project`/topics/`topic``.The Cloud Pub/Sub service
# account associated with the enclosing subscription's parent project (i.e.,
# service-`project_number`@gcp-sa-pubsub.iam.gserviceaccount.com) must have
# permission to Publish() to this topic.
# The operation will fail if the topic does not exist.
# Users should ensure that there is a subscription attached to this topic
# since messages published to a topic with no subscriptions are lost.
# Corresponds to the JSON property `deadLetterTopic`
# @return [String]
attr_accessor :dead_letter_topic
# The maximum number of delivery attempts for any message. The value must be
# between 5 and 100.
# The number of delivery attempts is defined as 1 + (the sum of number of
# NACKs and number of times the acknowledgement deadline has been exceeded
# for the message).
# A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that
# client libraries may automatically extend ack_deadlines.
# This field will be honored on a best effort basis.
# If this parameter is 0, a default value of 5 is used.
# Corresponds to the JSON property `maxDeliveryAttempts`
# @return [Fixnum]
attr_accessor :max_delivery_attempts
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dead_letter_topic = args[:dead_letter_topic] if args.key?(:dead_letter_topic)
@max_delivery_attempts = args[:max_delivery_attempts] if args.key?(:max_delivery_attempts)
end
end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request # empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance: # or the response type of an API method. For instance:
@ -185,34 +246,50 @@ module Google
end end
end end
# Represents an expression text. Example: # Represents a textual expression in the Common Expression Language (CEL)
# title: "User account presence" # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
# description: "Determines whether the request has a user account" # are documented at https://github.com/google/cel-spec.
# expression: "size(request.user) > 0" # Example (Comparison):
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
# Example (Equality):
# title: "Requestor is owner"
# description: "Determines if requestor is the document owner"
# expression: "document.owner == request.auth.claims.email"
# Example (Logic):
# title: "Public documents"
# description: "Determine whether the document should be publicly visible"
# expression: "document.type != 'private' && document.type != 'internal'"
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
class Expr class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI. # describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in # Textual representation of an expression in Common Expression Language
# Common Expression Language syntax. # syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# An optional string indicating the location of the expression for error # Optional. String indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file. # reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# An optional title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the # its purpose. This can be used e.g. in UIs which allow to enter the
# expression. # expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
@ -792,6 +869,23 @@ module Google
# @return [String] # @return [String]
attr_accessor :ack_id attr_accessor :ack_id
# Delivery attempt counter is 1 + (the sum of number of NACKs and number of
# ack_deadline exceeds) for this message.
# A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline
# exceeds event is whenever a message is not acknowledged within
# ack_deadline. Note that ack_deadline is initially
# Subscription.ackDeadlineSeconds, but may get extended automatically by
# the client library.
# The first delivery of a given message will have this value as 1. The value
# is calculated at best effort and is approximate.
# If a DeadLetterPolicy is not set on the subscription, this will be 0.
# <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
# API might be changed in backward-incompatible ways and is not recommended
# for production use. It is not subject to any SLA or deprecation policy.
# Corresponds to the JSON property `deliveryAttempt`
# @return [Fixnum]
attr_accessor :delivery_attempt
# A message that is published by publishers and consumed by subscribers. The # A message that is published by publishers and consumed by subscribers. The
# message must contain either a non-empty data field or at least one attribute. # message must contain either a non-empty data field or at least one attribute.
# Note that client libraries represent this object differently # Note that client libraries represent this object differently
@ -811,6 +905,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@ack_id = args[:ack_id] if args.key?(:ack_id) @ack_id = args[:ack_id] if args.key?(:ack_id)
@delivery_attempt = args[:delivery_attempt] if args.key?(:delivery_attempt)
@message = args[:message] if args.key?(:message) @message = args[:message] if args.key?(:message)
end end
end end
@ -1016,6 +1111,14 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :ack_deadline_seconds attr_accessor :ack_deadline_seconds
# Dead lettering is done on a best effort basis. The same message might be
# dead lettered multiple times.
# If validation on any of the fields fails at subscription creation/updation,
# the create/update subscription request will fail.
# Corresponds to the JSON property `deadLetterPolicy`
# @return [Google::Apis::PubsubV1::DeadLetterPolicy]
attr_accessor :dead_letter_policy
# A policy that specifies the conditions for resource expiration (i.e., # A policy that specifies the conditions for resource expiration (i.e.,
# automatic resource deletion). # automatic resource deletion).
# Corresponds to the JSON property `expirationPolicy` # Corresponds to the JSON property `expirationPolicy`
@ -1080,6 +1183,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds) @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
@dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy)
@expiration_policy = args[:expiration_policy] if args.key?(:expiration_policy) @expiration_policy = args[:expiration_policy] if args.key?(:expiration_policy)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@message_retention_duration = args[:message_retention_duration] if args.key?(:message_retention_duration) @message_retention_duration = args[:message_retention_duration] if args.key?(:message_retention_duration)

View File

@ -40,6 +40,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DeadLetterPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -251,6 +257,14 @@ module Google
end end
end end
class DeadLetterPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dead_letter_topic, as: 'deadLetterTopic'
property :max_delivery_attempts, as: 'maxDeliveryAttempts'
end
end
class Empty class Empty
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -413,6 +427,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :ack_id, as: 'ackId' property :ack_id, as: 'ackId'
property :delivery_attempt, as: 'deliveryAttempt'
property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
end end
@ -454,6 +469,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :ack_deadline_seconds, as: 'ackDeadlineSeconds' property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
property :dead_letter_policy, as: 'deadLetterPolicy', class: Google::Apis::PubsubV1::DeadLetterPolicy, decorator: Google::Apis::PubsubV1::DeadLetterPolicy::Representation
property :expiration_policy, as: 'expirationPolicy', class: Google::Apis::PubsubV1::ExpirationPolicy, decorator: Google::Apis::PubsubV1::ExpirationPolicy::Representation property :expiration_policy, as: 'expirationPolicy', class: Google::Apis::PubsubV1::ExpirationPolicy, decorator: Google::Apis::PubsubV1::ExpirationPolicy::Representation
hash :labels, as: 'labels' hash :labels, as: 'labels'

View File

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

View File

@ -46,10 +46,28 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents an expression text. Example: # Represents a textual expression in the Common Expression Language (CEL)
# title: "User account presence" # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
# description: "Determines whether the request has a user account" # are documented at https://github.com/google/cel-spec.
# expression: "size(request.user) > 0" # Example (Comparison):
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
# Example (Equality):
# title: "Requestor is owner"
# description: "Determines if requestor is the document owner"
# expression: "document.owner == request.auth.claims.email"
# Example (Logic):
# title: "Public documents"
# description: "Determine whether the document should be publicly visible"
# expression: "document.type != 'private' && document.type != 'internal'"
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
# Corresponds to the JSON property `condition` # Corresponds to the JSON property `condition`
# @return [Google::Apis::PubsubV1beta2::Expr] # @return [Google::Apis::PubsubV1beta2::Expr]
attr_accessor :condition attr_accessor :condition
@ -126,34 +144,50 @@ module Google
end end
end end
# Represents an expression text. Example: # Represents a textual expression in the Common Expression Language (CEL)
# title: "User account presence" # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
# description: "Determines whether the request has a user account" # are documented at https://github.com/google/cel-spec.
# expression: "size(request.user) > 0" # Example (Comparison):
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
# Example (Equality):
# title: "Requestor is owner"
# description: "Determines if requestor is the document owner"
# expression: "document.owner == request.auth.claims.email"
# Example (Logic):
# title: "Public documents"
# description: "Determine whether the document should be publicly visible"
# expression: "document.type != 'private' && document.type != 'internal'"
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
class Expr class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI. # describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in # Textual representation of an expression in Common Expression Language
# Common Expression Language syntax. # syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# An optional string indicating the location of the expression for error # Optional. String indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file. # reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# An optional title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the # its purpose. This can be used e.g. in UIs which allow to enter the
# expression. # expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/ # @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1 module RemotebuildexecutionV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200121' REVISION = '20200128'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/ # @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1alpha module RemotebuildexecutionV1alpha
VERSION = 'V1alpha' VERSION = 'V1alpha'
REVISION = '20200121' REVISION = '20200128'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1,50 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/replicapool_v1beta1/service.rb'
require 'google/apis/replicapool_v1beta1/classes.rb'
require 'google/apis/replicapool_v1beta1/representations.rb'
module Google
module Apis
# Replica Pool API
#
# The Replica Pool API allows users to declaratively provision and manage groups
# of Google Compute Engine instances based on a common template.
#
# @see https://developers.google.com/compute/docs/replica-pool/
module ReplicapoolV1beta1
VERSION = 'V1beta1'
REVISION = '20160512'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View and manage your Google Cloud Platform management resources and deployment status information
AUTH_NDEV_CLOUDMAN = 'https://www.googleapis.com/auth/ndev.cloudman'
# View your Google Cloud Platform management resources and deployment status information
AUTH_NDEV_CLOUDMAN_READONLY = 'https://www.googleapis.com/auth/ndev.cloudman.readonly'
# View and manage replica pools
AUTH_REPLICAPOOL = 'https://www.googleapis.com/auth/replicapool'
# View replica pools
AUTH_REPLICAPOOL_READONLY = 'https://www.googleapis.com/auth/replicapool.readonly'
end
end
end

View File

@ -1,918 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ReplicapoolV1beta1
# A Compute Engine network accessConfig. Identical to the accessConfig on
# corresponding Compute Engine resource.
class AccessConfig
include Google::Apis::Core::Hashable
# Name of this access configuration.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# An external IP address associated with this instance.
# Corresponds to the JSON property `natIp`
# @return [String]
attr_accessor :nat_ip
# Type of this access configuration file. Currently only ONE_TO_ONE_NAT is
# supported.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@nat_ip = args[:nat_ip] if args.key?(:nat_ip)
@type = args[:type] if args.key?(:type)
end
end
# An action that gets executed during initialization of the replicas.
class Action
include Google::Apis::Core::Hashable
# A list of commands to run, one per line. If any command fails, the whole
# action is considered a failure and no further actions are run. This also marks
# the virtual machine or replica as a failure.
# Corresponds to the JSON property `commands`
# @return [Array<String>]
attr_accessor :commands
# A list of environment variables to use for the commands in this action.
# Corresponds to the JSON property `envVariables`
# @return [Array<Google::Apis::ReplicapoolV1beta1::EnvVariable>]
attr_accessor :env_variables
# If an action's commands on a particular replica do not finish in the specified
# timeoutMilliSeconds, the replica is considered to be in a FAILING state. No
# efforts are made to stop any processes that were spawned or created as the
# result of running the action's commands. The default is the max allowed value,
# 1 hour (i.e. 3600000 milliseconds).
# Corresponds to the JSON property `timeoutMilliSeconds`
# @return [Fixnum]
attr_accessor :timeout_milli_seconds
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@commands = args[:commands] if args.key?(:commands)
@env_variables = args[:env_variables] if args.key?(:env_variables)
@timeout_milli_seconds = args[:timeout_milli_seconds] if args.key?(:timeout_milli_seconds)
end
end
# Specifies how to attach a disk to a Replica.
class DiskAttachment
include Google::Apis::Core::Hashable
# The device name of this disk.
# Corresponds to the JSON property `deviceName`
# @return [String]
attr_accessor :device_name
# A zero-based index to assign to this disk, where 0 is reserved for the boot
# disk. If not specified, this is assigned by the server.
# Corresponds to the JSON property `index`
# @return [Fixnum]
attr_accessor :index
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_name = args[:device_name] if args.key?(:device_name)
@index = args[:index] if args.key?(:index)
end
end
# An environment variable to set for an action.
class EnvVariable
include Google::Apis::Core::Hashable
# Deprecated, do not use.
# Corresponds to the JSON property `hidden`
# @return [Boolean]
attr_accessor :hidden
alias_method :hidden?, :hidden
# The name of the environment variable.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The value of the variable.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@hidden = args[:hidden] if args.key?(:hidden)
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
end
end
# A pre-existing persistent disk that will be attached to every Replica in the
# Pool in READ_ONLY mode.
class ExistingDisk
include Google::Apis::Core::Hashable
# Specifies how to attach a disk to a Replica.
# Corresponds to the JSON property `attachment`
# @return [Google::Apis::ReplicapoolV1beta1::DiskAttachment]
attr_accessor :attachment
# The name of the Persistent Disk resource. The Persistent Disk resource must be
# in the same zone as the Pool.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@attachment = args[:attachment] if args.key?(:attachment)
@source = args[:source] if args.key?(:source)
end
end
#
class HealthCheck
include Google::Apis::Core::Hashable
# How often (in seconds) to make HTTP requests for this healthcheck. The default
# value is 5 seconds.
# Corresponds to the JSON property `checkIntervalSec`
# @return [Fixnum]
attr_accessor :check_interval_sec
# The description for this health check.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The number of consecutive health check requests that need to succeed before
# the replica is considered healthy again. The default value is 2.
# Corresponds to the JSON property `healthyThreshold`
# @return [Fixnum]
attr_accessor :healthy_threshold
# The value of the host header in the HTTP health check request. If left empty (
# default value), the localhost IP 127.0.0.1 will be used.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
# The name of this health check.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The localhost request path to send this health check, in the format /path/to/
# use. For example, /healthcheck.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
# The TCP port for the health check requests.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# How long (in seconds) to wait before a timeout failure for this healthcheck.
# The default value is 5 seconds.
# Corresponds to the JSON property `timeoutSec`
# @return [Fixnum]
attr_accessor :timeout_sec
# The number of consecutive health check requests that need to fail in order to
# consider the replica unhealthy. The default value is 2.
# Corresponds to the JSON property `unhealthyThreshold`
# @return [Fixnum]
attr_accessor :unhealthy_threshold
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec)
@description = args[:description] if args.key?(:description)
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
@host = args[:host] if args.key?(:host)
@name = args[:name] if args.key?(:name)
@path = args[:path] if args.key?(:path)
@port = args[:port] if args.key?(:port)
@timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
@unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
end
end
# A label to apply to this replica pool.
class Label
include Google::Apis::Core::Hashable
# The key for this label.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# The value of this label.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
# A Compute Engine metadata entry. Identical to the metadata on the
# corresponding Compute Engine resource.
class Metadata
include Google::Apis::Core::Hashable
# The fingerprint of the metadata. Required for updating the metadata entries
# for this instance.
# Corresponds to the JSON property `fingerPrint`
# @return [String]
attr_accessor :finger_print
# A list of metadata items.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ReplicapoolV1beta1::MetadataItem>]
attr_accessor :items
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@finger_print = args[:finger_print] if args.key?(:finger_print)
@items = args[:items] if args.key?(:items)
end
end
# A Compute Engine metadata item, defined as a key:value pair. Identical to the
# metadata on the corresponding Compute Engine resource.
class MetadataItem
include Google::Apis::Core::Hashable
# A metadata key.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# A metadata value.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
# A Compute Engine NetworkInterface resource. Identical to the NetworkInterface
# on the corresponding Compute Engine resource.
class NetworkInterface
include Google::Apis::Core::Hashable
# An array of configurations for this interface. This specifies how this
# interface is configured to interact with other network services.
# Corresponds to the JSON property `accessConfigs`
# @return [Array<Google::Apis::ReplicapoolV1beta1::AccessConfig>]
attr_accessor :access_configs
# Name the Network resource to which this interface applies.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# An optional IPV4 internal network address to assign to the instance for this
# network interface.
# Corresponds to the JSON property `networkIp`
# @return [String]
attr_accessor :network_ip
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@access_configs = args[:access_configs] if args.key?(:access_configs)
@network = args[:network] if args.key?(:network)
@network_ip = args[:network_ip] if args.key?(:network_ip)
end
end
# A Persistent Disk resource that will be created and attached to each Replica
# in the Pool. Each Replica will have a unique persistent disk that is created
# and attached to that Replica in READ_WRITE mode.
class NewDisk
include Google::Apis::Core::Hashable
# Specifies how to attach a disk to a Replica.
# Corresponds to the JSON property `attachment`
# @return [Google::Apis::ReplicapoolV1beta1::DiskAttachment]
attr_accessor :attachment
# If true, then this disk will be deleted when the instance is deleted. The
# default value is true.
# Corresponds to the JSON property `autoDelete`
# @return [Boolean]
attr_accessor :auto_delete
alias_method :auto_delete?, :auto_delete
# If true, indicates that this is the root persistent disk.
# Corresponds to the JSON property `boot`
# @return [Boolean]
attr_accessor :boot
alias_method :boot?, :boot
# Initialization parameters for creating a new disk.
# Corresponds to the JSON property `initializeParams`
# @return [Google::Apis::ReplicapoolV1beta1::NewDiskInitializeParams]
attr_accessor :initialize_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@attachment = args[:attachment] if args.key?(:attachment)
@auto_delete = args[:auto_delete] if args.key?(:auto_delete)
@boot = args[:boot] if args.key?(:boot)
@initialize_params = args[:initialize_params] if args.key?(:initialize_params)
end
end
# Initialization parameters for creating a new disk.
class NewDiskInitializeParams
include Google::Apis::Core::Hashable
# The size of the created disk in gigabytes.
# Corresponds to the JSON property `diskSizeGb`
# @return [Fixnum]
attr_accessor :disk_size_gb
# Name of the disk type resource describing which disk type to use to create the
# disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard'
# Corresponds to the JSON property `diskType`
# @return [String]
attr_accessor :disk_type
# The name or fully-qualified URL of a source image to use to create this disk.
# If you provide a name of the source image, Replica Pool will look for an image
# with that name in your project. If you are specifying an image provided by
# Compute Engine, you will need to provide the full URL with the correct project,
# such as:
# http://www.googleapis.com/compute/v1/projects/debian-cloud/ global/images/
# debian-wheezy-7-vYYYYMMDD
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@disk_type = args[:disk_type] if args.key?(:disk_type)
@source_image = args[:source_image] if args.key?(:source_image)
end
end
#
class Pool
include Google::Apis::Core::Hashable
# Whether replicas in this pool should be restarted if they experience a failure.
# The default value is true.
# Corresponds to the JSON property `autoRestart`
# @return [Boolean]
attr_accessor :auto_restart
alias_method :auto_restart?, :auto_restart
# The base instance name to use for the replicas in this pool. This must match
# the regex [a-z]([-a-z0-9]*[a-z0-9])?. If specified, the instances in this
# replica pool will be named in the format <base-instance-name>-<ID>. The <ID>
# postfix will be a four character alphanumeric identifier generated by the
# service.
# If this is not specified by the user, a random base instance name is generated
# by the service.
# Corresponds to the JSON property `baseInstanceName`
# @return [String]
attr_accessor :base_instance_name
# [Output Only] The current number of replicas in the pool.
# Corresponds to the JSON property `currentNumReplicas`
# @return [Fixnum]
attr_accessor :current_num_replicas
# An optional description of the replica pool.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Deprecated. Please use template[].healthChecks instead.
# Corresponds to the JSON property `healthChecks`
# @return [Array<Google::Apis::ReplicapoolV1beta1::HealthCheck>]
attr_accessor :health_checks
# The initial number of replicas this pool should have. You must provide a value
# greater than or equal to 0.
# Corresponds to the JSON property `initialNumReplicas`
# @return [Fixnum]
attr_accessor :initial_num_replicas
# A list of labels to attach to this replica pool and all created virtual
# machines in this replica pool.
# Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::ReplicapoolV1beta1::Label>]
attr_accessor :labels
# The name of the replica pool. Must follow the regex [a-z]([-a-z0-9]*[a-z0-9])?
# and be 1-28 characters long.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Deprecated! Use initial_num_replicas instead.
# Corresponds to the JSON property `numReplicas`
# @return [Fixnum]
attr_accessor :num_replicas
# The list of resource views that should be updated with all the replicas that
# are managed by this pool.
# Corresponds to the JSON property `resourceViews`
# @return [Array<String>]
attr_accessor :resource_views
# [Output Only] A self-link to the replica pool.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# Deprecated, please use target_pools instead.
# Corresponds to the JSON property `targetPool`
# @return [String]
attr_accessor :target_pool
# A list of target pools to update with the replicas that are managed by this
# pool. If specified, the replicas in this replica pool will be added to the
# specified target pools for load balancing purposes. The replica pool must live
# in the same region as the specified target pools. These values must be the
# target pool resource names, and not fully qualified URLs.
# Corresponds to the JSON property `targetPools`
# @return [Array<String>]
attr_accessor :target_pools
# The template used for creating replicas in the pool.
# Corresponds to the JSON property `template`
# @return [Google::Apis::ReplicapoolV1beta1::Template]
attr_accessor :template
# Deprecated! Do not set.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_restart = args[:auto_restart] if args.key?(:auto_restart)
@base_instance_name = args[:base_instance_name] if args.key?(:base_instance_name)
@current_num_replicas = args[:current_num_replicas] if args.key?(:current_num_replicas)
@description = args[:description] if args.key?(:description)
@health_checks = args[:health_checks] if args.key?(:health_checks)
@initial_num_replicas = args[:initial_num_replicas] if args.key?(:initial_num_replicas)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@num_replicas = args[:num_replicas] if args.key?(:num_replicas)
@resource_views = args[:resource_views] if args.key?(:resource_views)
@self_link = args[:self_link] if args.key?(:self_link)
@target_pool = args[:target_pool] if args.key?(:target_pool)
@target_pools = args[:target_pools] if args.key?(:target_pools)
@template = args[:template] if args.key?(:template)
@type = args[:type] if args.key?(:type)
end
end
#
class PoolsDeleteRequest
include Google::Apis::Core::Hashable
# If there are instances you would like to keep, you can specify them here.
# These instances won't be deleted, but the associated replica objects will be
# removed.
# Corresponds to the JSON property `abandonInstances`
# @return [Array<String>]
attr_accessor :abandon_instances
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@abandon_instances = args[:abandon_instances] if args.key?(:abandon_instances)
end
end
#
class PoolsListResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ReplicapoolV1beta1::Pool>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@resources = args[:resources] if args.key?(:resources)
end
end
# An individual Replica within a Pool. Replicas are automatically created by the
# replica pool, using the template provided by the user. You cannot directly
# create replicas.
class Replica
include Google::Apis::Core::Hashable
# [Output Only] The name of the Replica object.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Output Only] The self-link of the Replica.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# The current status of a Replica.
# Corresponds to the JSON property `status`
# @return [Google::Apis::ReplicapoolV1beta1::ReplicaStatus]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
end
end
# The current status of a Replica.
class ReplicaStatus
include Google::Apis::Core::Hashable
# [Output Only] Human-readable details about the current state of the replica
# Corresponds to the JSON property `details`
# @return [String]
attr_accessor :details
# [Output Only] The state of the Replica.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# [Output Only] The template used to build the replica.
# Corresponds to the JSON property `templateVersion`
# @return [String]
attr_accessor :template_version
# [Output Only] Link to the virtual machine that this Replica represents.
# Corresponds to the JSON property `vmLink`
# @return [String]
attr_accessor :vm_link
# [Output Only] The time that this Replica got to the RUNNING state, in RFC 3339
# format. If the start time is unknown, UNKNOWN is returned.
# Corresponds to the JSON property `vmStartTime`
# @return [String]
attr_accessor :vm_start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@details = args[:details] if args.key?(:details)
@state = args[:state] if args.key?(:state)
@template_version = args[:template_version] if args.key?(:template_version)
@vm_link = args[:vm_link] if args.key?(:vm_link)
@vm_start_time = args[:vm_start_time] if args.key?(:vm_start_time)
end
end
#
class ReplicasDeleteRequest
include Google::Apis::Core::Hashable
# Whether the instance resource represented by this replica should be deleted or
# abandoned. If abandoned, the replica will be deleted but the virtual machine
# instance will remain. By default, this is set to false and the instance will
# be deleted along with the replica.
# Corresponds to the JSON property `abandonInstance`
# @return [Boolean]
attr_accessor :abandon_instance
alias_method :abandon_instance?, :abandon_instance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@abandon_instance = args[:abandon_instance] if args.key?(:abandon_instance)
end
end
#
class ReplicasListResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ReplicapoolV1beta1::Replica>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@resources = args[:resources] if args.key?(:resources)
end
end
# A Compute Engine service account, identical to the Compute Engine resource.
class ServiceAccount
include Google::Apis::Core::Hashable
# The service account email address, for example: 123845678986@project.
# gserviceaccount.com
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# The list of OAuth2 scopes to obtain for the service account, for example:
# https://www.googleapis.com/auth/devstorage.full_control
# Corresponds to the JSON property `scopes`
# @return [Array<String>]
attr_accessor :scopes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@email = args[:email] if args.key?(:email)
@scopes = args[:scopes] if args.key?(:scopes)
end
end
# A Compute Engine Instance tag, identical to the tags on the corresponding
# Compute Engine Instance resource.
class Tag
include Google::Apis::Core::Hashable
# The fingerprint of the tag. Required for updating the list of tags.
# Corresponds to the JSON property `fingerPrint`
# @return [String]
attr_accessor :finger_print
# Items contained in this tag.
# Corresponds to the JSON property `items`
# @return [Array<String>]
attr_accessor :items
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@finger_print = args[:finger_print] if args.key?(:finger_print)
@items = args[:items] if args.key?(:items)
end
end
# The template used for creating replicas in the pool.
class Template
include Google::Apis::Core::Hashable
# An action that gets executed during initialization of the replicas.
# Corresponds to the JSON property `action`
# @return [Google::Apis::ReplicapoolV1beta1::Action]
attr_accessor :action
# A list of HTTP Health Checks to configure for this replica pool and all
# virtual machines in this replica pool.
# Corresponds to the JSON property `healthChecks`
# @return [Array<Google::Apis::ReplicapoolV1beta1::HealthCheck>]
attr_accessor :health_checks
# A free-form string describing the version of this template. You can provide
# any versioning string you would like. For example, version1 or template-v1.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
# Parameters for creating a Compute Engine Instance resource. Most fields are
# identical to the corresponding Compute Engine resource.
# Corresponds to the JSON property `vmParams`
# @return [Google::Apis::ReplicapoolV1beta1::VmParams]
attr_accessor :vm_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@health_checks = args[:health_checks] if args.key?(:health_checks)
@version = args[:version] if args.key?(:version)
@vm_params = args[:vm_params] if args.key?(:vm_params)
end
end
# Parameters for creating a Compute Engine Instance resource. Most fields are
# identical to the corresponding Compute Engine resource.
class VmParams
include Google::Apis::Core::Hashable
# Deprecated. Please use baseInstanceName instead.
# Corresponds to the JSON property `baseInstanceName`
# @return [String]
attr_accessor :base_instance_name
# Enables IP Forwarding, which allows this instance to receive packets destined
# for a different IP address, and send packets with a different source IP. See
# IP Forwarding for more information.
# Corresponds to the JSON property `canIpForward`
# @return [Boolean]
attr_accessor :can_ip_forward
alias_method :can_ip_forward?, :can_ip_forward
# An optional textual description of the instance.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# A list of existing Persistent Disk resources to attach to each replica in the
# pool. Each disk will be attached in read-only mode to every replica.
# Corresponds to the JSON property `disksToAttach`
# @return [Array<Google::Apis::ReplicapoolV1beta1::ExistingDisk>]
attr_accessor :disks_to_attach
# A list of Disk resources to create and attach to each Replica in the Pool.
# Currently, you can only define one disk and it must be a root persistent disk.
# Note that Replica Pool will create a root persistent disk for each replica.
# Corresponds to the JSON property `disksToCreate`
# @return [Array<Google::Apis::ReplicapoolV1beta1::NewDisk>]
attr_accessor :disks_to_create
# The machine type for this instance. The resource name (e.g. n1-standard-1).
# Corresponds to the JSON property `machineType`
# @return [String]
attr_accessor :machine_type
# A Compute Engine metadata entry. Identical to the metadata on the
# corresponding Compute Engine resource.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::ReplicapoolV1beta1::Metadata]
attr_accessor :metadata
# A list of network interfaces for the instance. Currently only one interface is
# supported by Google Compute Engine, ONE_TO_ONE_NAT.
# Corresponds to the JSON property `networkInterfaces`
# @return [Array<Google::Apis::ReplicapoolV1beta1::NetworkInterface>]
attr_accessor :network_interfaces
#
# Corresponds to the JSON property `onHostMaintenance`
# @return [String]
attr_accessor :on_host_maintenance
# A list of Service Accounts to enable for this instance.
# Corresponds to the JSON property `serviceAccounts`
# @return [Array<Google::Apis::ReplicapoolV1beta1::ServiceAccount>]
attr_accessor :service_accounts
# A Compute Engine Instance tag, identical to the tags on the corresponding
# Compute Engine Instance resource.
# Corresponds to the JSON property `tags`
# @return [Google::Apis::ReplicapoolV1beta1::Tag]
attr_accessor :tags
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@base_instance_name = args[:base_instance_name] if args.key?(:base_instance_name)
@can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
@description = args[:description] if args.key?(:description)
@disks_to_attach = args[:disks_to_attach] if args.key?(:disks_to_attach)
@disks_to_create = args[:disks_to_create] if args.key?(:disks_to_create)
@machine_type = args[:machine_type] if args.key?(:machine_type)
@metadata = args[:metadata] if args.key?(:metadata)
@network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
@on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
@service_accounts = args[:service_accounts] if args.key?(:service_accounts)
@tags = args[:tags] if args.key?(:tags)
end
end
end
end
end

View File

@ -1,409 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ReplicapoolV1beta1
class AccessConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Action
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DiskAttachment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EnvVariable
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExistingDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Label
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Metadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetadataItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkInterface
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NewDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NewDiskInitializeParams
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Pool
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoolsDeleteRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoolsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Replica
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReplicaStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReplicasDeleteRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReplicasListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServiceAccount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Tag
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Template
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VmParams
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccessConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :nat_ip, as: 'natIp'
property :type, as: 'type'
end
end
class Action
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :commands, as: 'commands'
collection :env_variables, as: 'envVariables', class: Google::Apis::ReplicapoolV1beta1::EnvVariable, decorator: Google::Apis::ReplicapoolV1beta1::EnvVariable::Representation
property :timeout_milli_seconds, as: 'timeoutMilliSeconds'
end
end
class DiskAttachment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_name, as: 'deviceName'
property :index, as: 'index'
end
end
class EnvVariable
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hidden, as: 'hidden'
property :name, as: 'name'
property :value, as: 'value'
end
end
class ExistingDisk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :attachment, as: 'attachment', class: Google::Apis::ReplicapoolV1beta1::DiskAttachment, decorator: Google::Apis::ReplicapoolV1beta1::DiskAttachment::Representation
property :source, as: 'source'
end
end
class HealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :check_interval_sec, as: 'checkIntervalSec'
property :description, as: 'description'
property :healthy_threshold, as: 'healthyThreshold'
property :host, as: 'host'
property :name, as: 'name'
property :path, as: 'path'
property :port, as: 'port'
property :timeout_sec, as: 'timeoutSec'
property :unhealthy_threshold, as: 'unhealthyThreshold'
end
end
class Label
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
class Metadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finger_print, as: 'fingerPrint'
collection :items, as: 'items', class: Google::Apis::ReplicapoolV1beta1::MetadataItem, decorator: Google::Apis::ReplicapoolV1beta1::MetadataItem::Representation
end
end
class MetadataItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
class NetworkInterface
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :access_configs, as: 'accessConfigs', class: Google::Apis::ReplicapoolV1beta1::AccessConfig, decorator: Google::Apis::ReplicapoolV1beta1::AccessConfig::Representation
property :network, as: 'network'
property :network_ip, as: 'networkIp'
end
end
class NewDisk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :attachment, as: 'attachment', class: Google::Apis::ReplicapoolV1beta1::DiskAttachment, decorator: Google::Apis::ReplicapoolV1beta1::DiskAttachment::Representation
property :auto_delete, as: 'autoDelete'
property :boot, as: 'boot'
property :initialize_params, as: 'initializeParams', class: Google::Apis::ReplicapoolV1beta1::NewDiskInitializeParams, decorator: Google::Apis::ReplicapoolV1beta1::NewDiskInitializeParams::Representation
end
end
class NewDiskInitializeParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
property :disk_type, as: 'diskType'
property :source_image, as: 'sourceImage'
end
end
class Pool
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_restart, as: 'autoRestart'
property :base_instance_name, as: 'baseInstanceName'
property :current_num_replicas, as: 'currentNumReplicas'
property :description, as: 'description'
collection :health_checks, as: 'healthChecks', class: Google::Apis::ReplicapoolV1beta1::HealthCheck, decorator: Google::Apis::ReplicapoolV1beta1::HealthCheck::Representation
property :initial_num_replicas, as: 'initialNumReplicas'
collection :labels, as: 'labels', class: Google::Apis::ReplicapoolV1beta1::Label, decorator: Google::Apis::ReplicapoolV1beta1::Label::Representation
property :name, as: 'name'
property :num_replicas, as: 'numReplicas'
collection :resource_views, as: 'resourceViews'
property :self_link, as: 'selfLink'
property :target_pool, as: 'targetPool'
collection :target_pools, as: 'targetPools'
property :template, as: 'template', class: Google::Apis::ReplicapoolV1beta1::Template, decorator: Google::Apis::ReplicapoolV1beta1::Template::Representation
property :type, as: 'type'
end
end
class PoolsDeleteRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :abandon_instances, as: 'abandonInstances'
end
end
class PoolsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :resources, as: 'resources', class: Google::Apis::ReplicapoolV1beta1::Pool, decorator: Google::Apis::ReplicapoolV1beta1::Pool::Representation
end
end
class Replica
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :status, as: 'status', class: Google::Apis::ReplicapoolV1beta1::ReplicaStatus, decorator: Google::Apis::ReplicapoolV1beta1::ReplicaStatus::Representation
end
end
class ReplicaStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :details, as: 'details'
property :state, as: 'state'
property :template_version, as: 'templateVersion'
property :vm_link, as: 'vmLink'
property :vm_start_time, as: 'vmStartTime'
end
end
class ReplicasDeleteRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :abandon_instance, as: 'abandonInstance'
end
end
class ReplicasListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :resources, as: 'resources', class: Google::Apis::ReplicapoolV1beta1::Replica, decorator: Google::Apis::ReplicapoolV1beta1::Replica::Representation
end
end
class ServiceAccount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
collection :scopes, as: 'scopes'
end
end
class Tag
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finger_print, as: 'fingerPrint'
collection :items, as: 'items'
end
end
class Template
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action', class: Google::Apis::ReplicapoolV1beta1::Action, decorator: Google::Apis::ReplicapoolV1beta1::Action::Representation
collection :health_checks, as: 'healthChecks', class: Google::Apis::ReplicapoolV1beta1::HealthCheck, decorator: Google::Apis::ReplicapoolV1beta1::HealthCheck::Representation
property :version, as: 'version'
property :vm_params, as: 'vmParams', class: Google::Apis::ReplicapoolV1beta1::VmParams, decorator: Google::Apis::ReplicapoolV1beta1::VmParams::Representation
end
end
class VmParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :base_instance_name, as: 'baseInstanceName'
property :can_ip_forward, as: 'canIpForward'
property :description, as: 'description'
collection :disks_to_attach, as: 'disksToAttach', class: Google::Apis::ReplicapoolV1beta1::ExistingDisk, decorator: Google::Apis::ReplicapoolV1beta1::ExistingDisk::Representation
collection :disks_to_create, as: 'disksToCreate', class: Google::Apis::ReplicapoolV1beta1::NewDisk, decorator: Google::Apis::ReplicapoolV1beta1::NewDisk::Representation
property :machine_type, as: 'machineType'
property :metadata, as: 'metadata', class: Google::Apis::ReplicapoolV1beta1::Metadata, decorator: Google::Apis::ReplicapoolV1beta1::Metadata::Representation
collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ReplicapoolV1beta1::NetworkInterface, decorator: Google::Apis::ReplicapoolV1beta1::NetworkInterface::Representation
property :on_host_maintenance, as: 'onHostMaintenance'
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ReplicapoolV1beta1::ServiceAccount, decorator: Google::Apis::ReplicapoolV1beta1::ServiceAccount::Representation
property :tags, as: 'tags', class: Google::Apis::ReplicapoolV1beta1::Tag, decorator: Google::Apis::ReplicapoolV1beta1::Tag::Representation
end
end
end
end
end

View File

@ -1,489 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ReplicapoolV1beta1
# Replica Pool API
#
# The Replica Pool API allows users to declaratively provision and manage groups
# of Google Compute Engine instances based on a common template.
#
# @example
# require 'google/apis/replicapool_v1beta1'
#
# Replicapool = Google::Apis::ReplicapoolV1beta1 # Alias the module
# service = Replicapool::ReplicapoolService.new
#
# @see https://developers.google.com/compute/docs/replica-pool/
class ReplicapoolService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'replicapool/v1beta1/projects/')
@batch_path = 'batch/replicapool/v1beta1'
end
# Deletes a replica pool.
# @param [String] project_name
# The project ID for this replica pool.
# @param [String] zone
# The zone for this replica pool.
# @param [String] pool_name
# The name of the replica pool for this request.
# @param [Google::Apis::ReplicapoolV1beta1::PoolsDeleteRequest] pools_delete_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_pool(project_name, zone, pool_name, pools_delete_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{projectName}/zones/{zone}/pools/{poolName}', options)
command.request_representation = Google::Apis::ReplicapoolV1beta1::PoolsDeleteRequest::Representation
command.request_object = pools_delete_request_object
command.params['projectName'] = project_name unless project_name.nil?
command.params['zone'] = zone unless zone.nil?
command.params['poolName'] = pool_name unless pool_name.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 information about a single replica pool.
# @param [String] project_name
# The project ID for this replica pool.
# @param [String] zone
# The zone for this replica pool.
# @param [String] pool_name
# The name of the replica pool for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolV1beta1::Pool] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolV1beta1::Pool]
#
# @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_pool(project_name, zone, pool_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{projectName}/zones/{zone}/pools/{poolName}', options)
command.response_representation = Google::Apis::ReplicapoolV1beta1::Pool::Representation
command.response_class = Google::Apis::ReplicapoolV1beta1::Pool
command.params['projectName'] = project_name unless project_name.nil?
command.params['zone'] = zone unless zone.nil?
command.params['poolName'] = pool_name unless pool_name.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
# Inserts a new replica pool.
# @param [String] project_name
# The project ID for this replica pool.
# @param [String] zone
# The zone for this replica pool.
# @param [Google::Apis::ReplicapoolV1beta1::Pool] pool_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolV1beta1::Pool] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolV1beta1::Pool]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_pool(project_name, zone, pool_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{projectName}/zones/{zone}/pools', options)
command.request_representation = Google::Apis::ReplicapoolV1beta1::Pool::Representation
command.request_object = pool_object
command.response_representation = Google::Apis::ReplicapoolV1beta1::Pool::Representation
command.response_class = Google::Apis::ReplicapoolV1beta1::Pool
command.params['projectName'] = project_name unless project_name.nil?
command.params['zone'] = zone unless zone.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
# List all replica pools.
# @param [String] project_name
# The project ID for this request.
# @param [String] zone
# The zone for this replica pool.
# @param [Fixnum] max_results
# Maximum count of results to be returned. Acceptable values are 0 to 100,
# inclusive. (Default: 50)
# @param [String] page_token
# Set this to the nextPageToken value returned by a previous list request to
# obtain the next page of results from the previous list request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolV1beta1::PoolsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolV1beta1::PoolsListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_pools(project_name, zone, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{projectName}/zones/{zone}/pools', options)
command.response_representation = Google::Apis::ReplicapoolV1beta1::PoolsListResponse::Representation
command.response_class = Google::Apis::ReplicapoolV1beta1::PoolsListResponse
command.params['projectName'] = project_name unless project_name.nil?
command.params['zone'] = zone unless zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Resize a pool. This is an asynchronous operation, and multiple overlapping
# resize requests can be made. Replica Pools will use the information from the
# last resize request.
# @param [String] project_name
# The project ID for this replica pool.
# @param [String] zone
# The zone for this replica pool.
# @param [String] pool_name
# The name of the replica pool for this request.
# @param [Fixnum] num_replicas
# The desired number of replicas to resize to. If this number is larger than the
# existing number of replicas, new replicas will be added. If the number is
# smaller, then existing replicas will be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolV1beta1::Pool] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolV1beta1::Pool]
#
# @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 resize_pool(project_name, zone, pool_name, num_replicas: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{projectName}/zones/{zone}/pools/{poolName}/resize', options)
command.response_representation = Google::Apis::ReplicapoolV1beta1::Pool::Representation
command.response_class = Google::Apis::ReplicapoolV1beta1::Pool
command.params['projectName'] = project_name unless project_name.nil?
command.params['zone'] = zone unless zone.nil?
command.params['poolName'] = pool_name unless pool_name.nil?
command.query['numReplicas'] = num_replicas unless num_replicas.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
# Update the template used by the pool.
# @param [String] project_name
# The project ID for this replica pool.
# @param [String] zone
# The zone for this replica pool.
# @param [String] pool_name
# The name of the replica pool for this request.
# @param [Google::Apis::ReplicapoolV1beta1::Template] template_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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 updatetemplate_pool(project_name, zone, pool_name, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{projectName}/zones/{zone}/pools/{poolName}/updateTemplate', options)
command.request_representation = Google::Apis::ReplicapoolV1beta1::Template::Representation
command.request_object = template_object
command.params['projectName'] = project_name unless project_name.nil?
command.params['zone'] = zone unless zone.nil?
command.params['poolName'] = pool_name unless pool_name.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
# Deletes a replica from the pool.
# @param [String] project_name
# The project ID for this request.
# @param [String] zone
# The zone where the replica lives.
# @param [String] pool_name
# The replica pool name for this request.
# @param [String] replica_name
# The name of the replica for this request.
# @param [Google::Apis::ReplicapoolV1beta1::ReplicasDeleteRequest] replicas_delete_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolV1beta1::Replica] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolV1beta1::Replica]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_replica(project_name, zone, pool_name, replica_name, replicas_delete_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}', options)
command.request_representation = Google::Apis::ReplicapoolV1beta1::ReplicasDeleteRequest::Representation
command.request_object = replicas_delete_request_object
command.response_representation = Google::Apis::ReplicapoolV1beta1::Replica::Representation
command.response_class = Google::Apis::ReplicapoolV1beta1::Replica
command.params['projectName'] = project_name unless project_name.nil?
command.params['zone'] = zone unless zone.nil?
command.params['poolName'] = pool_name unless pool_name.nil?
command.params['replicaName'] = replica_name unless replica_name.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 information about a specific replica.
# @param [String] project_name
# The project ID for this request.
# @param [String] zone
# The zone where the replica lives.
# @param [String] pool_name
# The replica pool name for this request.
# @param [String] replica_name
# The name of the replica for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolV1beta1::Replica] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolV1beta1::Replica]
#
# @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_replica(project_name, zone, pool_name, replica_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}', options)
command.response_representation = Google::Apis::ReplicapoolV1beta1::Replica::Representation
command.response_class = Google::Apis::ReplicapoolV1beta1::Replica
command.params['projectName'] = project_name unless project_name.nil?
command.params['zone'] = zone unless zone.nil?
command.params['poolName'] = pool_name unless pool_name.nil?
command.params['replicaName'] = replica_name unless replica_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists all replicas in a pool.
# @param [String] project_name
# The project ID for this request.
# @param [String] zone
# The zone where the replica pool lives.
# @param [String] pool_name
# The replica pool name for this request.
# @param [Fixnum] max_results
# Maximum count of results to be returned. Acceptable values are 0 to 100,
# inclusive. (Default: 50)
# @param [String] page_token
# Set this to the nextPageToken value returned by a previous list request to
# obtain the next page of results from the previous list request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolV1beta1::ReplicasListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolV1beta1::ReplicasListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_replicas(project_name, zone, pool_name, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{projectName}/zones/{zone}/pools/{poolName}/replicas', options)
command.response_representation = Google::Apis::ReplicapoolV1beta1::ReplicasListResponse::Representation
command.response_class = Google::Apis::ReplicapoolV1beta1::ReplicasListResponse
command.params['projectName'] = project_name unless project_name.nil?
command.params['zone'] = zone unless zone.nil?
command.params['poolName'] = pool_name unless pool_name.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Restarts a replica in a pool.
# @param [String] project_name
# The project ID for this request.
# @param [String] zone
# The zone where the replica lives.
# @param [String] pool_name
# The replica pool name for this request.
# @param [String] replica_name
# The name of the replica for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolV1beta1::Replica] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolV1beta1::Replica]
#
# @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 restart_replica(project_name, zone, pool_name, replica_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}/restart', options)
command.response_representation = Google::Apis::ReplicapoolV1beta1::Replica::Representation
command.response_class = Google::Apis::ReplicapoolV1beta1::Replica
command.params['projectName'] = project_name unless project_name.nil?
command.params['zone'] = zone unless zone.nil?
command.params['poolName'] = pool_name unless pool_name.nil?
command.params['replicaName'] = replica_name unless replica_name.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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/source-repositories/docs/apis # @see https://cloud.google.com/source-repositories/docs/apis
module SourcerepoV1 module SourcerepoV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200102' REVISION = '20200121'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -142,10 +142,28 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents an expression text. Example: # Represents a textual expression in the Common Expression Language (CEL)
# title: "User account presence" # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
# description: "Determines whether the request has a user account" # are documented at https://github.com/google/cel-spec.
# expression: "size(request.user) > 0" # Example (Comparison):
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
# Example (Equality):
# title: "Requestor is owner"
# description: "Determines if requestor is the document owner"
# expression: "document.owner == request.auth.claims.email"
# Example (Logic):
# title: "Public documents"
# description: "Determine whether the document should be publicly visible"
# expression: "document.type != 'private' && document.type != 'internal'"
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
# Corresponds to the JSON property `condition` # Corresponds to the JSON property `condition`
# @return [Google::Apis::SourcerepoV1::Expr] # @return [Google::Apis::SourcerepoV1::Expr]
attr_accessor :condition attr_accessor :condition
@ -222,34 +240,50 @@ module Google
end end
end end
# Represents an expression text. Example: # Represents a textual expression in the Common Expression Language (CEL)
# title: "User account presence" # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
# description: "Determines whether the request has a user account" # are documented at https://github.com/google/cel-spec.
# expression: "size(request.user) > 0" # Example (Comparison):
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
# Example (Equality):
# title: "Requestor is owner"
# description: "Determines if requestor is the document owner"
# expression: "document.owner == request.auth.claims.email"
# Example (Logic):
# title: "Public documents"
# description: "Determine whether the document should be publicly visible"
# expression: "document.type != 'private' && document.type != 'internal'"
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
class Expr class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI. # describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in # Textual representation of an expression in Common Expression Language
# Common Expression Language syntax. # syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# An optional string indicating the location of the expression for error # Optional. String indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file. # reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# An optional title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the # its purpose. This can be used e.g. in UIs which allow to enter the
# expression. # expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`