Autogenerated update (2020-06-27)

Update:
- bigquery_v2
- bigqueryconnection_v1beta1
- civicinfo_v2
- compute_alpha
- compute_beta
- compute_v1
- content_v2_1
- doubleclickbidmanager_v1_1
- logging_v2
- run_v1
- run_v1alpha1
- run_v1beta1
- servicecontrol_v1
- texttospeech_v1
- texttospeech_v1beta1
This commit is contained in:
Google APIs 2020-06-27 00:38:20 +00:00
parent 96d6af6b73
commit 4d4cd18998
38 changed files with 2326 additions and 1316 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20200603'
REVISION = '20200617'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -324,7 +324,7 @@ module Google
# `
# "audit_configs": [
# `
# "service": "allServices"
# "service": "allServices",
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
@ -333,18 +333,18 @@ module Google
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# "log_type": "DATA_WRITE"
# `,
# `
# "log_type": "ADMIN_READ",
# "log_type": "ADMIN_READ"
# `
# ]
# `,
# `
# "service": "sampleservice.googleapis.com"
# "service": "sampleservice.googleapis.com",
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "log_type": "DATA_READ"
# `,
# `
# "log_type": "DATA_WRITE",
@ -396,7 +396,7 @@ module Google
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# "log_type": "DATA_WRITE"
# `
# ]
# `
@ -3277,11 +3277,22 @@ module Google
# @return [Google::Apis::BigqueryV2::EncryptionConfiguration]
attr_accessor :destination_encryption_configuration
# [Optional] The time when the destination table expires. Expired tables will be
# deleted and their storage reclaimed.
# Corresponds to the JSON property `destinationExpirationTime`
# @return [Object]
attr_accessor :destination_expiration_time
# [Required] The destination table
# Corresponds to the JSON property `destinationTable`
# @return [Google::Apis::BigqueryV2::TableReference]
attr_accessor :destination_table
# [Optional] Supported operation types in table copy job.
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
# [Pick one] Source table to copy.
# Corresponds to the JSON property `sourceTable`
# @return [Google::Apis::BigqueryV2::TableReference]
@ -3312,7 +3323,9 @@ module Google
def update!(**args)
@create_disposition = args[:create_disposition] if args.key?(:create_disposition)
@destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration)
@destination_expiration_time = args[:destination_expiration_time] if args.key?(:destination_expiration_time)
@destination_table = args[:destination_table] if args.key?(:destination_table)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@source_table = args[:source_table] if args.key?(:source_table)
@source_tables = args[:source_tables] if args.key?(:source_tables)
@write_disposition = args[:write_disposition] if args.key?(:write_disposition)
@ -5139,6 +5152,12 @@ module Google
# @return [String]
attr_accessor :description
# Optional. [Experimental] The determinism level of the JavaScript UDF if
# defined.
# Corresponds to the JSON property `determinismLevel`
# @return [String]
attr_accessor :determinism_level
# Output only. A hash of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
@ -5195,6 +5214,7 @@ module Google
@creation_time = args[:creation_time] if args.key?(:creation_time)
@definition_body = args[:definition_body] if args.key?(:definition_body)
@description = args[:description] if args.key?(:description)
@determinism_level = args[:determinism_level] if args.key?(:determinism_level)
@etag = args[:etag] if args.key?(:etag)
@imported_libraries = args[:imported_libraries] if args.key?(:imported_libraries)
@language = args[:language] if args.key?(:language)
@ -6612,6 +6632,15 @@ module Google
# @return [String]
attr_accessor :optimization_strategy
# Whether to preserve the input structs in output feature names.
# Suppose there is a struct A with field b.
# When false (default), the output feature name is A_b.
# When true, the output feature name is A.b.
# Corresponds to the JSON property `preserveInputStructs`
# @return [Boolean]
attr_accessor :preserve_input_structs
alias_method :preserve_input_structs?, :preserve_input_structs
# Subsample fraction of the training data to grow tree to prevent
# overfitting for boosted tree models.
# Corresponds to the JSON property `subsample`
@ -6669,6 +6698,7 @@ module Google
@num_clusters = args[:num_clusters] if args.key?(:num_clusters)
@num_factors = args[:num_factors] if args.key?(:num_factors)
@optimization_strategy = args[:optimization_strategy] if args.key?(:optimization_strategy)
@preserve_input_structs = args[:preserve_input_structs] if args.key?(:preserve_input_structs)
@subsample = args[:subsample] if args.key?(:subsample)
@user_column = args[:user_column] if args.key?(:user_column)
@wals_alpha = args[:wals_alpha] if args.key?(:wals_alpha)

View File

@ -1518,8 +1518,10 @@ module Google
property :create_disposition, as: 'createDisposition'
property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
property :destination_expiration_time, as: 'destinationExpirationTime'
property :destination_table, as: 'destinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
property :operation_type, as: 'operationType'
property :source_table, as: 'sourceTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
collection :source_tables, as: 'sourceTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
@ -1972,6 +1974,7 @@ module Google
property :creation_time, :numeric_string => true, as: 'creationTime'
property :definition_body, as: 'definitionBody'
property :description, as: 'description'
property :determinism_level, as: 'determinismLevel'
property :etag, as: 'etag'
collection :imported_libraries, as: 'importedLibraries'
property :language, as: 'language'
@ -2340,6 +2343,7 @@ module Google
property :num_clusters, :numeric_string => true, as: 'numClusters'
property :num_factors, :numeric_string => true, as: 'numFactors'
property :optimization_strategy, as: 'optimizationStrategy'
property :preserve_input_structs, as: 'preserveInputStructs'
property :subsample, as: 'subsample'
property :user_column, as: 'userColumn'
property :wals_alpha, as: 'walsAlpha'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryconnectionV1beta1
VERSION = 'V1beta1'
REVISION = '20200430'
REVISION = '20200617'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -34,7 +34,7 @@ module Google
# `
# "audit_configs": [
# `
# "service": "allServices"
# "service": "allServices",
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
@ -43,18 +43,18 @@ module Google
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# "log_type": "DATA_WRITE"
# `,
# `
# "log_type": "ADMIN_READ",
# "log_type": "ADMIN_READ"
# `
# ]
# `,
# `
# "service": "sampleservice.googleapis.com"
# "service": "sampleservice.googleapis.com",
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "log_type": "DATA_READ"
# `,
# `
# "log_type": "DATA_WRITE",
@ -106,7 +106,7 @@ module Google
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# "log_type": "DATA_WRITE"
# `
# ]
# `

View File

@ -23,10 +23,10 @@ module Google
# Provides polling places, early vote locations, contest data, election
# officials, and government representatives for U.S. residential addresses.
#
# @see https://developers.google.com/civic-information
# @see https://developers.google.com/civic-information/
module CivicinfoV2
VERSION = 'V2'
REVISION = '20191030'
REVISION = '20200624'
end
end
end

View File

@ -79,11 +79,6 @@ module Google
# @return [String]
attr_accessor :absentee_voting_info_url
#
# Corresponds to the JSON property `addressLines`
# @return [Array<String>]
attr_accessor :address_lines
# A URL provided by this administrative body to give contest information to the
# voter.
# Corresponds to the JSON property `ballotInfoUrl`
@ -156,7 +151,6 @@ module Google
# Update properties of this object
def update!(**args)
@absentee_voting_info_url = args[:absentee_voting_info_url] if args.key?(:absentee_voting_info_url)
@address_lines = args[:address_lines] if args.key?(:address_lines)
@ballot_info_url = args[:ballot_info_url] if args.key?(:ballot_info_url)
@correspondence_address = args[:correspondence_address] if args.key?(:correspondence_address)
@election_info_url = args[:election_info_url] if args.key?(:election_info_url)
@ -449,63 +443,6 @@ module Google
end
end
#
class ContextParams
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `clientProfile`
# @return [String]
attr_accessor :client_profile
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@client_profile = args[:client_profile] if args.key?(:client_profile)
end
end
# A request to look up representative information for a single division.
class DivisionRepresentativeInfoRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `contextParams`
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
end
end
# A search request for political geographies.
class DivisionSearchRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `contextParams`
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
end
end
# The result of a division search query.
class SearchDivisionResponse
include Google::Apis::Core::Hashable
@ -550,7 +487,7 @@ module Google
# @return [String]
attr_accessor :name
# The unique Open Civic Data identifier for this division.
# The unique Open Civic Data identifier for this division
# Corresponds to the JSON property `ocdId`
# @return [String]
attr_accessor :ocd_id
@ -650,25 +587,6 @@ module Google
end
end
#
class ElectionsQueryRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `contextParams`
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
end
end
# The list of elections available for this version of the API.
class QueryElectionsResponse
include Google::Apis::Core::Hashable
@ -705,11 +623,6 @@ module Google
# @return [String]
attr_accessor :id
#
# Corresponds to the JSON property `kgForeignKey`
# @return [String]
attr_accessor :kg_foreign_key
# The name of the district.
# Corresponds to the JSON property `name`
# @return [String]
@ -730,43 +643,22 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@kg_foreign_key = args[:kg_foreign_key] if args.key?(:kg_foreign_key)
@name = args[:name] if args.key?(:name)
@scope = args[:scope] if args.key?(:scope)
end
end
#
class FieldMetadataProto
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `internal`
# @return [Google::Apis::CivicinfoV2::InternalFieldMetadataProto]
attr_accessor :internal
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@internal = args[:internal] if args.key?(:internal)
end
end
# Describes a political geography.
class GeographicDivision
include Google::Apis::Core::Hashable
# Any other valid OCD IDs that refer to the same division.
# Because OCD IDs are meant to be human-readable and at least somewhat
# predictable, there are occasionally several identifiers for a single division.
# These identifiers are defined to be equivalent to one another, and one is
# always indicated as the primary identifier. The primary identifier will be
# returned in ocd_id above, and any other equivalent valid identifiers will be
# returned in this list.
# For example, if this division's OCD ID is ocd-division/country:us/district:dc,
# Any other valid OCD IDs that refer to the same division.\n\nBecause OCD IDs
# are meant to be human-readable and at least somewhat predictable, there are
# occasionally several identifiers for a single division. These identifiers are
# defined to be equivalent to one another, and one is always indicated as the
# primary identifier. The primary identifier will be returned in ocd_id above,
# and any other equivalent valid identifiers will be returned in this list.\n\
# nFor example, if this division's OCD ID is ocd-division/country:us/district:dc,
# this will contain ocd-division/country:us/state:dc.
# Corresponds to the JSON property `alsoKnownAs`
# @return [Array<String>]
@ -796,57 +688,6 @@ module Google
end
end
#
class InternalFieldMetadataProto
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `isAuto`
# @return [Boolean]
attr_accessor :is_auto
alias_method :is_auto?, :is_auto
#
# Corresponds to the JSON property `sourceSummary`
# @return [Google::Apis::CivicinfoV2::InternalSourceSummaryProto]
attr_accessor :source_summary
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@is_auto = args[:is_auto] if args.key?(:is_auto)
@source_summary = args[:source_summary] if args.key?(:source_summary)
end
end
#
class InternalSourceSummaryProto
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `dataset`
# @return [String]
attr_accessor :dataset
#
# Corresponds to the JSON property `provider`
# @return [String]
attr_accessor :provider
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dataset = args[:dataset] if args.key?(:dataset)
@provider = args[:provider] if args.key?(:provider)
end
end
# Information about an Office held by one or more Officials.
class Office
include Google::Apis::Core::Hashable
@ -966,37 +807,6 @@ module Google
end
end
#
class PointProto
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `latE7`
# @return [Fixnum]
attr_accessor :lat_e7
#
# Corresponds to the JSON property `lngE7`
# @return [Fixnum]
attr_accessor :lng_e7
#
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::CivicinfoV2::FieldMetadataProto]
attr_accessor :metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@lat_e7 = args[:lat_e7] if args.key?(:lat_e7)
@lng_e7 = args[:lng_e7] if args.key?(:lng_e7)
@metadata = args[:metadata] if args.key?(:metadata)
end
end
# A location where a voter can vote. This may be an early vote site, an election
# day voting location, or a drop off location for a completed ballot.
class PollingLocation
@ -1090,218 +900,12 @@ module Google
end
end
#
class PostalAddress
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `addressLines`
# @return [Array<String>]
attr_accessor :address_lines
#
# Corresponds to the JSON property `administrativeAreaName`
# @return [String]
attr_accessor :administrative_area_name
#
# Corresponds to the JSON property `countryName`
# @return [String]
attr_accessor :country_name
#
# Corresponds to the JSON property `countryNameCode`
# @return [String]
attr_accessor :country_name_code
#
# Corresponds to the JSON property `dependentLocalityName`
# @return [String]
attr_accessor :dependent_locality_name
#
# Corresponds to the JSON property `dependentThoroughfareName`
# @return [String]
attr_accessor :dependent_thoroughfare_name
#
# Corresponds to the JSON property `firmName`
# @return [String]
attr_accessor :firm_name
#
# Corresponds to the JSON property `isDisputed`
# @return [Boolean]
attr_accessor :is_disputed
alias_method :is_disputed?, :is_disputed
#
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
#
# Corresponds to the JSON property `localityName`
# @return [String]
attr_accessor :locality_name
#
# Corresponds to the JSON property `postBoxNumber`
# @return [String]
attr_accessor :post_box_number
#
# Corresponds to the JSON property `postalCodeNumber`
# @return [String]
attr_accessor :postal_code_number
#
# Corresponds to the JSON property `postalCodeNumberExtension`
# @return [String]
attr_accessor :postal_code_number_extension
#
# Corresponds to the JSON property `premiseName`
# @return [String]
attr_accessor :premise_name
#
# Corresponds to the JSON property `recipientName`
# @return [String]
attr_accessor :recipient_name
#
# Corresponds to the JSON property `sortingCode`
# @return [String]
attr_accessor :sorting_code
#
# Corresponds to the JSON property `subAdministrativeAreaName`
# @return [String]
attr_accessor :sub_administrative_area_name
#
# Corresponds to the JSON property `subPremiseName`
# @return [String]
attr_accessor :sub_premise_name
#
# Corresponds to the JSON property `thoroughfareName`
# @return [String]
attr_accessor :thoroughfare_name
#
# Corresponds to the JSON property `thoroughfareNumber`
# @return [String]
attr_accessor :thoroughfare_number
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@address_lines = args[:address_lines] if args.key?(:address_lines)
@administrative_area_name = args[:administrative_area_name] if args.key?(:administrative_area_name)
@country_name = args[:country_name] if args.key?(:country_name)
@country_name_code = args[:country_name_code] if args.key?(:country_name_code)
@dependent_locality_name = args[:dependent_locality_name] if args.key?(:dependent_locality_name)
@dependent_thoroughfare_name = args[:dependent_thoroughfare_name] if args.key?(:dependent_thoroughfare_name)
@firm_name = args[:firm_name] if args.key?(:firm_name)
@is_disputed = args[:is_disputed] if args.key?(:is_disputed)
@language_code = args[:language_code] if args.key?(:language_code)
@locality_name = args[:locality_name] if args.key?(:locality_name)
@post_box_number = args[:post_box_number] if args.key?(:post_box_number)
@postal_code_number = args[:postal_code_number] if args.key?(:postal_code_number)
@postal_code_number_extension = args[:postal_code_number_extension] if args.key?(:postal_code_number_extension)
@premise_name = args[:premise_name] if args.key?(:premise_name)
@recipient_name = args[:recipient_name] if args.key?(:recipient_name)
@sorting_code = args[:sorting_code] if args.key?(:sorting_code)
@sub_administrative_area_name = args[:sub_administrative_area_name] if args.key?(:sub_administrative_area_name)
@sub_premise_name = args[:sub_premise_name] if args.key?(:sub_premise_name)
@thoroughfare_name = args[:thoroughfare_name] if args.key?(:thoroughfare_name)
@thoroughfare_number = args[:thoroughfare_number] if args.key?(:thoroughfare_number)
end
end
#
class Provenance
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `collidedSegmentSource`
# @return [Google::Apis::CivicinfoV2::StreetSegmentList]
attr_accessor :collided_segment_source
#
# Corresponds to the JSON property `ctclContestUuid`
# @return [String]
attr_accessor :ctcl_contest_uuid
#
# Corresponds to the JSON property `ctclOfficeUuid`
# @return [String]
attr_accessor :ctcl_office_uuid
#
# Corresponds to the JSON property `datasetId`
# @return [Fixnum]
attr_accessor :dataset_id
#
# Corresponds to the JSON property `precinctId`
# @return [Fixnum]
attr_accessor :precinct_id
#
# Corresponds to the JSON property `precinctSplitId`
# @return [Fixnum]
attr_accessor :precinct_split_id
#
# Corresponds to the JSON property `tsStreetSegmentId`
# @return [String]
attr_accessor :ts_street_segment_id
#
# Corresponds to the JSON property `vip5PrecinctId`
# @return [String]
attr_accessor :vip5_precinct_id
#
# Corresponds to the JSON property `vip5StreetSegmentId`
# @return [String]
attr_accessor :vip5_street_segment_id
#
# Corresponds to the JSON property `vipStreetSegmentId`
# @return [Fixnum]
attr_accessor :vip_street_segment_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@collided_segment_source = args[:collided_segment_source] if args.key?(:collided_segment_source)
@ctcl_contest_uuid = args[:ctcl_contest_uuid] if args.key?(:ctcl_contest_uuid)
@ctcl_office_uuid = args[:ctcl_office_uuid] if args.key?(:ctcl_office_uuid)
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@precinct_id = args[:precinct_id] if args.key?(:precinct_id)
@precinct_split_id = args[:precinct_split_id] if args.key?(:precinct_split_id)
@ts_street_segment_id = args[:ts_street_segment_id] if args.key?(:ts_street_segment_id)
@vip5_precinct_id = args[:vip5_precinct_id] if args.key?(:vip5_precinct_id)
@vip5_street_segment_id = args[:vip5_street_segment_id] if args.key?(:vip5_street_segment_id)
@vip_street_segment_id = args[:vip_street_segment_id] if args.key?(:vip_street_segment_id)
end
end
#
class RepresentativeInfoData
include Google::Apis::Core::Hashable
# Political geographic divisions that contain the requested address.
# A map of political geographic divisions that contain the requested address,
# keyed by the unique Open Civic Data identifier for this division.
# Corresponds to the JSON property `divisions`
# @return [Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>]
attr_accessor :divisions
@ -1330,31 +934,12 @@ module Google
end
end
# A request for political geography and representative information for an
# address.
class RepresentativeInfoRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `contextParams`
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
end
end
# The result of a representative info lookup query.
class RepresentativeInfoResponse
include Google::Apis::Core::Hashable
# Political geographic divisions that contain the requested address.
# A map of political geographic divisions that contain the requested address,
# keyed by the unique Open Civic Data identifier for this division.
# Corresponds to the JSON property `divisions`
# @return [Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>]
attr_accessor :divisions
@ -1477,336 +1062,6 @@ module Google
end
end
#
class StreetSegment
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `administrationRegionIds`
# @return [Array<String>]
attr_accessor :administration_region_ids
#
# Corresponds to the JSON property `beforeGeocodeId`
# @return [String]
attr_accessor :before_geocode_id
#
# Corresponds to the JSON property `catalistUniquePrecinctCode`
# @return [String]
attr_accessor :catalist_unique_precinct_code
#
# Corresponds to the JSON property `city`
# @return [String]
attr_accessor :city
#
# Corresponds to the JSON property `cityCouncilDistrict`
# @return [String]
attr_accessor :city_council_district
#
# Corresponds to the JSON property `congressionalDistrict`
# @return [String]
attr_accessor :congressional_district
#
# Corresponds to the JSON property `contestIds`
# @return [Array<String>]
attr_accessor :contest_ids
#
# Corresponds to the JSON property `countyCouncilDistrict`
# @return [String]
attr_accessor :county_council_district
#
# Corresponds to the JSON property `countyFips`
# @return [String]
attr_accessor :county_fips
#
# Corresponds to the JSON property `datasetId`
# @return [Fixnum]
attr_accessor :dataset_id
#
# Corresponds to the JSON property `earlyVoteSiteByIds`
# @return [Array<String>]
attr_accessor :early_vote_site_by_ids
#
# Corresponds to the JSON property `endHouseNumber`
# @return [Fixnum]
attr_accessor :end_house_number
#
# Corresponds to the JSON property `geocodedPoint`
# @return [Google::Apis::CivicinfoV2::PointProto]
attr_accessor :geocoded_point
#
# Corresponds to the JSON property `geographicDivisionOcdIds`
# @return [Array<String>]
attr_accessor :geographic_division_ocd_ids
#
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
#
# Corresponds to the JSON property `judicialDistrict`
# @return [String]
attr_accessor :judicial_district
#
# Corresponds to the JSON property `mailOnly`
# @return [Boolean]
attr_accessor :mail_only
alias_method :mail_only?, :mail_only
#
# Corresponds to the JSON property `municipalDistrict`
# @return [String]
attr_accessor :municipal_district
#
# Corresponds to the JSON property `ncoaAddress`
# @return [String]
attr_accessor :ncoa_address
#
# Corresponds to the JSON property `oddOrEvens`
# @return [Array<String>]
attr_accessor :odd_or_evens
#
# Corresponds to the JSON property `originalId`
# @return [String]
attr_accessor :original_id
#
# Corresponds to the JSON property `pollinglocationByIds`
# @return [Array<String>]
attr_accessor :pollinglocation_by_ids
#
# Corresponds to the JSON property `precinctName`
# @return [String]
attr_accessor :precinct_name
#
# Corresponds to the JSON property `precinctOcdId`
# @return [String]
attr_accessor :precinct_ocd_id
#
# Corresponds to the JSON property `provenances`
# @return [Array<Google::Apis::CivicinfoV2::Provenance>]
attr_accessor :provenances
#
# Corresponds to the JSON property `published`
# @return [Boolean]
attr_accessor :published
alias_method :published?, :published
#
# Corresponds to the JSON property `schoolDistrict`
# @return [String]
attr_accessor :school_district
#
# Corresponds to the JSON property `startHouseNumber`
# @return [Fixnum]
attr_accessor :start_house_number
#
# Corresponds to the JSON property `startLatE7`
# @return [Fixnum]
attr_accessor :start_lat_e7
#
# Corresponds to the JSON property `startLngE7`
# @return [Fixnum]
attr_accessor :start_lng_e7
#
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
#
# Corresponds to the JSON property `stateHouseDistrict`
# @return [String]
attr_accessor :state_house_district
#
# Corresponds to the JSON property `stateSenateDistrict`
# @return [String]
attr_accessor :state_senate_district
#
# Corresponds to the JSON property `streetName`
# @return [String]
attr_accessor :street_name
#
# Corresponds to the JSON property `subAdministrativeAreaName`
# @return [String]
attr_accessor :sub_administrative_area_name
#
# Corresponds to the JSON property `surrogateId`
# @return [Fixnum]
attr_accessor :surrogate_id
#
# Corresponds to the JSON property `targetsmartUniquePrecinctCode`
# @return [String]
attr_accessor :targetsmart_unique_precinct_code
#
# Corresponds to the JSON property `townshipDistrict`
# @return [String]
attr_accessor :township_district
#
# Corresponds to the JSON property `unitNumber`
# @return [String]
attr_accessor :unit_number
#
# Corresponds to the JSON property `unitType`
# @return [String]
attr_accessor :unit_type
#
# Corresponds to the JSON property `vanPrecinctCode`
# @return [String]
attr_accessor :van_precinct_code
#
# Corresponds to the JSON property `voterGeographicDivisionOcdIds`
# @return [Array<String>]
attr_accessor :voter_geographic_division_ocd_ids
#
# Corresponds to the JSON property `wardDistrict`
# @return [String]
attr_accessor :ward_district
#
# Corresponds to the JSON property `wildcard`
# @return [Boolean]
attr_accessor :wildcard
alias_method :wildcard?, :wildcard
#
# Corresponds to the JSON property `zip`
# @return [String]
attr_accessor :zip
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@administration_region_ids = args[:administration_region_ids] if args.key?(:administration_region_ids)
@before_geocode_id = args[:before_geocode_id] if args.key?(:before_geocode_id)
@catalist_unique_precinct_code = args[:catalist_unique_precinct_code] if args.key?(:catalist_unique_precinct_code)
@city = args[:city] if args.key?(:city)
@city_council_district = args[:city_council_district] if args.key?(:city_council_district)
@congressional_district = args[:congressional_district] if args.key?(:congressional_district)
@contest_ids = args[:contest_ids] if args.key?(:contest_ids)
@county_council_district = args[:county_council_district] if args.key?(:county_council_district)
@county_fips = args[:county_fips] if args.key?(:county_fips)
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@early_vote_site_by_ids = args[:early_vote_site_by_ids] if args.key?(:early_vote_site_by_ids)
@end_house_number = args[:end_house_number] if args.key?(:end_house_number)
@geocoded_point = args[:geocoded_point] if args.key?(:geocoded_point)
@geographic_division_ocd_ids = args[:geographic_division_ocd_ids] if args.key?(:geographic_division_ocd_ids)
@id = args[:id] if args.key?(:id)
@judicial_district = args[:judicial_district] if args.key?(:judicial_district)
@mail_only = args[:mail_only] if args.key?(:mail_only)
@municipal_district = args[:municipal_district] if args.key?(:municipal_district)
@ncoa_address = args[:ncoa_address] if args.key?(:ncoa_address)
@odd_or_evens = args[:odd_or_evens] if args.key?(:odd_or_evens)
@original_id = args[:original_id] if args.key?(:original_id)
@pollinglocation_by_ids = args[:pollinglocation_by_ids] if args.key?(:pollinglocation_by_ids)
@precinct_name = args[:precinct_name] if args.key?(:precinct_name)
@precinct_ocd_id = args[:precinct_ocd_id] if args.key?(:precinct_ocd_id)
@provenances = args[:provenances] if args.key?(:provenances)
@published = args[:published] if args.key?(:published)
@school_district = args[:school_district] if args.key?(:school_district)
@start_house_number = args[:start_house_number] if args.key?(:start_house_number)
@start_lat_e7 = args[:start_lat_e7] if args.key?(:start_lat_e7)
@start_lng_e7 = args[:start_lng_e7] if args.key?(:start_lng_e7)
@state = args[:state] if args.key?(:state)
@state_house_district = args[:state_house_district] if args.key?(:state_house_district)
@state_senate_district = args[:state_senate_district] if args.key?(:state_senate_district)
@street_name = args[:street_name] if args.key?(:street_name)
@sub_administrative_area_name = args[:sub_administrative_area_name] if args.key?(:sub_administrative_area_name)
@surrogate_id = args[:surrogate_id] if args.key?(:surrogate_id)
@targetsmart_unique_precinct_code = args[:targetsmart_unique_precinct_code] if args.key?(:targetsmart_unique_precinct_code)
@township_district = args[:township_district] if args.key?(:township_district)
@unit_number = args[:unit_number] if args.key?(:unit_number)
@unit_type = args[:unit_type] if args.key?(:unit_type)
@van_precinct_code = args[:van_precinct_code] if args.key?(:van_precinct_code)
@voter_geographic_division_ocd_ids = args[:voter_geographic_division_ocd_ids] if args.key?(:voter_geographic_division_ocd_ids)
@ward_district = args[:ward_district] if args.key?(:ward_district)
@wildcard = args[:wildcard] if args.key?(:wildcard)
@zip = args[:zip] if args.key?(:zip)
end
end
#
class StreetSegmentList
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `segments`
# @return [Array<Google::Apis::CivicinfoV2::StreetSegment>]
attr_accessor :segments
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@segments = args[:segments] if args.key?(:segments)
end
end
# A request for information about a voter.
class VoterInfoRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `contextParams`
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
#
# Corresponds to the JSON property `voterInfoSegmentResult`
# @return [Google::Apis::CivicinfoV2::VoterInfoSegmentResult]
attr_accessor :voter_info_segment_result
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
@voter_info_segment_result = args[:voter_info_segment_result] if args.key?(:voter_info_segment_result)
end
end
# The result of a voter info lookup query.
class VoterInfoResponse
include Google::Apis::Core::Hashable
@ -1876,11 +1131,6 @@ module Google
# @return [String]
attr_accessor :precinct_id
#
# Corresponds to the JSON property `segments`
# @return [Array<Google::Apis::CivicinfoV2::StreetSegment>]
attr_accessor :segments
# Local Election Information for the state that the voter votes in. For the US,
# there will only be one element in this array.
# Corresponds to the JSON property `state`
@ -1903,47 +1153,9 @@ module Google
@other_elections = args[:other_elections] if args.key?(:other_elections)
@polling_locations = args[:polling_locations] if args.key?(:polling_locations)
@precinct_id = args[:precinct_id] if args.key?(:precinct_id)
@segments = args[:segments] if args.key?(:segments)
@state = args[:state] if args.key?(:state)
end
end
#
class VoterInfoSegmentResult
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `generatedMillis`
# @return [Fixnum]
attr_accessor :generated_millis
#
# Corresponds to the JSON property `postalAddress`
# @return [Google::Apis::CivicinfoV2::PostalAddress]
attr_accessor :postal_address
# A request for information about a voter.
# Corresponds to the JSON property `request`
# @return [Google::Apis::CivicinfoV2::VoterInfoRequest]
attr_accessor :request
# The result of a voter info lookup query.
# Corresponds to the JSON property `response`
# @return [Google::Apis::CivicinfoV2::VoterInfoResponse]
attr_accessor :response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@generated_millis = args[:generated_millis] if args.key?(:generated_millis)
@postal_address = args[:postal_address] if args.key?(:postal_address)
@request = args[:request] if args.key?(:request)
@response = args[:response] if args.key?(:response)
end
end
end
end
end

View File

@ -52,24 +52,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ContextParams
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DivisionRepresentativeInfoRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DivisionSearchRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchDivisionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -94,12 +76,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ElectionsQueryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QueryElectionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -112,30 +88,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FieldMetadataProto
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GeographicDivision
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InternalFieldMetadataProto
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InternalSourceSummaryProto
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Office
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -148,42 +106,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PointProto
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PollingLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PostalAddress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Provenance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RepresentativeInfoData
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RepresentativeInfoRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RepresentativeInfoResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -202,36 +136,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class StreetSegment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StreetSegmentList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VoterInfoRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VoterInfoResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VoterInfoSegmentResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AdministrationRegion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -250,7 +160,6 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :absentee_voting_info_url, as: 'absenteeVotingInfoUrl'
collection :address_lines, as: 'addressLines'
property :ballot_info_url, as: 'ballotInfoUrl'
property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
@ -326,29 +235,6 @@ module Google
end
end
class ContextParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :client_profile, as: 'clientProfile'
end
end
class DivisionRepresentativeInfoRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
end
end
class DivisionSearchRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
end
end
class SearchDivisionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -388,14 +274,6 @@ module Google
end
end
class ElectionsQueryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
end
end
class QueryElectionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -409,20 +287,11 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kg_foreign_key, as: 'kgForeignKey'
property :name, as: 'name'
property :scope, as: 'scope'
end
end
class FieldMetadataProto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :internal, as: 'internal', class: Google::Apis::CivicinfoV2::InternalFieldMetadataProto, decorator: Google::Apis::CivicinfoV2::InternalFieldMetadataProto::Representation
end
end
class GeographicDivision
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -432,23 +301,6 @@ module Google
end
end
class InternalFieldMetadataProto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_auto, as: 'isAuto'
property :source_summary, as: 'sourceSummary', class: Google::Apis::CivicinfoV2::InternalSourceSummaryProto, decorator: Google::Apis::CivicinfoV2::InternalSourceSummaryProto::Representation
end
end
class InternalSourceSummaryProto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dataset, as: 'dataset'
property :provider, as: 'provider'
end
end
class Office
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -478,16 +330,6 @@ module Google
end
end
class PointProto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lat_e7, as: 'latE7'
property :lng_e7, as: 'lngE7'
property :metadata, as: 'metadata', class: Google::Apis::CivicinfoV2::FieldMetadataProto, decorator: Google::Apis::CivicinfoV2::FieldMetadataProto::Representation
end
end
class PollingLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -507,49 +349,6 @@ module Google
end
end
class PostalAddress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :address_lines, as: 'addressLines'
property :administrative_area_name, as: 'administrativeAreaName'
property :country_name, as: 'countryName'
property :country_name_code, as: 'countryNameCode'
property :dependent_locality_name, as: 'dependentLocalityName'
property :dependent_thoroughfare_name, as: 'dependentThoroughfareName'
property :firm_name, as: 'firmName'
property :is_disputed, as: 'isDisputed'
property :language_code, as: 'languageCode'
property :locality_name, as: 'localityName'
property :post_box_number, as: 'postBoxNumber'
property :postal_code_number, as: 'postalCodeNumber'
property :postal_code_number_extension, as: 'postalCodeNumberExtension'
property :premise_name, as: 'premiseName'
property :recipient_name, as: 'recipientName'
property :sorting_code, as: 'sortingCode'
property :sub_administrative_area_name, as: 'subAdministrativeAreaName'
property :sub_premise_name, as: 'subPremiseName'
property :thoroughfare_name, as: 'thoroughfareName'
property :thoroughfare_number, as: 'thoroughfareNumber'
end
end
class Provenance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :collided_segment_source, as: 'collidedSegmentSource', class: Google::Apis::CivicinfoV2::StreetSegmentList, decorator: Google::Apis::CivicinfoV2::StreetSegmentList::Representation
property :ctcl_contest_uuid, as: 'ctclContestUuid'
property :ctcl_office_uuid, as: 'ctclOfficeUuid'
property :dataset_id, :numeric_string => true, as: 'datasetId'
property :precinct_id, :numeric_string => true, as: 'precinctId'
property :precinct_split_id, :numeric_string => true, as: 'precinctSplitId'
property :ts_street_segment_id, as: 'tsStreetSegmentId'
property :vip5_precinct_id, as: 'vip5PrecinctId'
property :vip5_street_segment_id, as: 'vip5StreetSegmentId'
property :vip_street_segment_id, :numeric_string => true, as: 'vipStreetSegmentId'
end
end
class RepresentativeInfoData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -562,14 +361,6 @@ module Google
end
end
class RepresentativeInfoRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
end
end
class RepresentativeInfoResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -606,77 +397,6 @@ module Google
end
end
class StreetSegment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :administration_region_ids, as: 'administrationRegionIds'
property :before_geocode_id, as: 'beforeGeocodeId'
property :catalist_unique_precinct_code, as: 'catalistUniquePrecinctCode'
property :city, as: 'city'
property :city_council_district, as: 'cityCouncilDistrict'
property :congressional_district, as: 'congressionalDistrict'
collection :contest_ids, as: 'contestIds'
property :county_council_district, as: 'countyCouncilDistrict'
property :county_fips, as: 'countyFips'
property :dataset_id, :numeric_string => true, as: 'datasetId'
collection :early_vote_site_by_ids, as: 'earlyVoteSiteByIds'
property :end_house_number, :numeric_string => true, as: 'endHouseNumber'
property :geocoded_point, as: 'geocodedPoint', class: Google::Apis::CivicinfoV2::PointProto, decorator: Google::Apis::CivicinfoV2::PointProto::Representation
collection :geographic_division_ocd_ids, as: 'geographicDivisionOcdIds'
property :id, as: 'id'
property :judicial_district, as: 'judicialDistrict'
property :mail_only, as: 'mailOnly'
property :municipal_district, as: 'municipalDistrict'
property :ncoa_address, as: 'ncoaAddress'
collection :odd_or_evens, as: 'oddOrEvens'
property :original_id, as: 'originalId'
collection :pollinglocation_by_ids, as: 'pollinglocationByIds'
property :precinct_name, as: 'precinctName'
property :precinct_ocd_id, as: 'precinctOcdId'
collection :provenances, as: 'provenances', class: Google::Apis::CivicinfoV2::Provenance, decorator: Google::Apis::CivicinfoV2::Provenance::Representation
property :published, as: 'published'
property :school_district, as: 'schoolDistrict'
property :start_house_number, :numeric_string => true, as: 'startHouseNumber'
property :start_lat_e7, as: 'startLatE7'
property :start_lng_e7, as: 'startLngE7'
property :state, as: 'state'
property :state_house_district, as: 'stateHouseDistrict'
property :state_senate_district, as: 'stateSenateDistrict'
property :street_name, as: 'streetName'
property :sub_administrative_area_name, as: 'subAdministrativeAreaName'
property :surrogate_id, :numeric_string => true, as: 'surrogateId'
property :targetsmart_unique_precinct_code, as: 'targetsmartUniquePrecinctCode'
property :township_district, as: 'townshipDistrict'
property :unit_number, as: 'unitNumber'
property :unit_type, as: 'unitType'
property :van_precinct_code, as: 'vanPrecinctCode'
collection :voter_geographic_division_ocd_ids, as: 'voterGeographicDivisionOcdIds'
property :ward_district, as: 'wardDistrict'
property :wildcard, as: 'wildcard'
property :zip, as: 'zip'
end
end
class StreetSegmentList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :segments, as: 'segments', class: Google::Apis::CivicinfoV2::StreetSegment, decorator: Google::Apis::CivicinfoV2::StreetSegment::Representation
end
end
class VoterInfoRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
property :voter_info_segment_result, as: 'voterInfoSegmentResult', class: Google::Apis::CivicinfoV2::VoterInfoSegmentResult, decorator: Google::Apis::CivicinfoV2::VoterInfoSegmentResult::Representation
end
end
class VoterInfoResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -697,25 +417,10 @@ module Google
collection :polling_locations, as: 'pollingLocations', class: Google::Apis::CivicinfoV2::PollingLocation, decorator: Google::Apis::CivicinfoV2::PollingLocation::Representation
property :precinct_id, as: 'precinctId'
collection :segments, as: 'segments', class: Google::Apis::CivicinfoV2::StreetSegment, decorator: Google::Apis::CivicinfoV2::StreetSegment::Representation
collection :state, as: 'state', class: Google::Apis::CivicinfoV2::AdministrationRegion, decorator: Google::Apis::CivicinfoV2::AdministrationRegion::Representation
end
end
class VoterInfoSegmentResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :generated_millis, :numeric_string => true, as: 'generatedMillis'
property :postal_address, as: 'postalAddress', class: Google::Apis::CivicinfoV2::PostalAddress, decorator: Google::Apis::CivicinfoV2::PostalAddress::Representation
property :request, as: 'request', class: Google::Apis::CivicinfoV2::VoterInfoRequest, decorator: Google::Apis::CivicinfoV2::VoterInfoRequest::Representation
property :response, as: 'response', class: Google::Apis::CivicinfoV2::VoterInfoResponse, decorator: Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
end
end
end
end
end

View File

@ -31,7 +31,7 @@ module Google
# Civicinfo = Google::Apis::CivicinfoV2 # Alias the module
# service = Civicinfo::CivicInfoService.new
#
# @see https://developers.google.com/civic-information
# @see https://developers.google.com/civic-information/
class CivicInfoService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
@ -39,21 +39,16 @@ module Google
attr_accessor :key
# @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# 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
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'civicinfo/v2/')
@batch_path = 'batch/civicinfo/v2'
super('https://civicinfo.googleapis.com/', '')
@batch_path = 'batch'
end
# Searches for political divisions by their natural name or OCD ID.
# @param [Google::Apis::CivicinfoV2::DivisionSearchRequest] division_search_request_object
# @param [String] query
# The search query. Queries can cover any parts of a OCD ID or a human readable
# division name. All words given in the query are treated as required patterns.
@ -62,10 +57,8 @@ module Google
# @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.
# 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
#
@ -78,28 +71,22 @@ module Google
# @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 search_divisions(division_search_request_object = nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'divisions', options)
command.request_representation = Google::Apis::CivicinfoV2::DivisionSearchRequest::Representation
command.request_object = division_search_request_object
def search_divisions(query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'civicinfo/v2/divisions', options)
command.response_representation = Google::Apis::CivicinfoV2::SearchDivisionResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::SearchDivisionResponse
command.query['query'] = query unless query.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 of available elections to query.
# @param [Google::Apis::CivicinfoV2::ElectionsQueryRequest] elections_query_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.
# 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
#
@ -112,15 +99,12 @@ module Google
# @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 query_election(elections_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'elections', options)
command.request_representation = Google::Apis::CivicinfoV2::ElectionsQueryRequest::Representation
command.request_object = elections_query_request_object
def query_election(fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'civicinfo/v2/elections', options)
command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
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
@ -128,10 +112,9 @@ module Google
# address.
# @param [String] address
# The registered address of the voter to look up.
# @param [Google::Apis::CivicinfoV2::VoterInfoRequest] voter_info_request_object
# @param [Fixnum] election_id
# The unique ID of the election to look up. A list of election IDs can be
# obtained at https://www.googleapis.com/civicinfo/`version`/electionsIf no
# obtained at https://www.googleapis.com/civicinfo/`version`/elections. If no
# election ID is specified in the query and there is more than one election with
# data for the given voter, the additional elections are provided in the
# otherElections response field.
@ -144,10 +127,8 @@ module Google
# @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.
# 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
#
@ -160,10 +141,8 @@ module Google
# @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 query_voter_info(address, voter_info_request_object = nil, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'voterinfo', options)
command.request_representation = Google::Apis::CivicinfoV2::VoterInfoRequest::Representation
command.request_object = voter_info_request_object
def query_voter_info(address, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'civicinfo/v2/voterinfo', options)
command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
command.query['address'] = address unless address.nil?
@ -172,16 +151,14 @@ module Google
command.query['returnAllAvailableData'] = return_all_available_data unless return_all_available_data.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
# Looks up political geography and representative information for a single
# address.
# @param [Google::Apis::CivicinfoV2::RepresentativeInfoRequest] representative_info_request_object
# @param [String] address
# The address to look up. May only be specified if the field ocdId is not given
# in the URL.
# in the URL
# @param [Boolean] include_offices
# Whether to return information about offices and officials. If false, only the
# top-level district information will be returned.
@ -196,10 +173,8 @@ module Google
# @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.
# 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
#
@ -212,10 +187,8 @@ module Google
# @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 representative_info_by_address(representative_info_request_object = nil, address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'representatives', options)
command.request_representation = Google::Apis::CivicinfoV2::RepresentativeInfoRequest::Representation
command.request_object = representative_info_request_object
def representative_info_by_address(address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'civicinfo/v2/representatives', options)
command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoResponse
command.query['address'] = address unless address.nil?
@ -224,14 +197,12 @@ module Google
command.query['roles'] = roles unless roles.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
# Looks up representative information for a single geographic division.
# @param [String] ocd_id
# The Open Civic Data division identifier of the division to look up.
# @param [Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest] division_representative_info_request_object
# @param [Array<String>, String] levels
# A list of office levels to filter by. Only offices that serve at least one of
# these levels will be returned. Divisions that don't contain a matching office
@ -247,10 +218,8 @@ module Google
# @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.
# 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
#
@ -263,10 +232,8 @@ module Google
# @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 representative_info_by_division(ocd_id, division_representative_info_request_object = nil, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'representatives/{ocdId}', options)
command.request_representation = Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest::Representation
command.request_object = division_representative_info_request_object
def representative_info_by_division(ocd_id, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'civicinfo/v2/representatives/{ocdId}', options)
command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoData::Representation
command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoData
command.params['ocdId'] = ocd_id unless ocd_id.nil?
@ -275,7 +242,6 @@ module Google
command.query['roles'] = roles unless roles.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
@ -284,7 +250,6 @@ module Google
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

View File

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

View File

@ -87,7 +87,7 @@ module Google
# @return [String]
attr_accessor :kind
# [Output Only] Maximum accelerator cards allowed per instance.
# [Output Only] Maximum number of accelerator cards allowed per instance.
# Corresponds to the JSON property `maximumCardsPerInstance`
# @return [Fixnum]
attr_accessor :maximum_cards_per_instance
@ -97,7 +97,7 @@ module Google
# @return [String]
attr_accessor :name
# [Output Only] Server-defined fully-qualified URL for this resource.
# [Output Only] Server-defined, fully qualified URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
@ -1539,10 +1539,10 @@ module Google
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditLogConfig are exempted.
# Example Policy with multiple AuditConfigs:
# ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` "
# ` "audit_configs": [ ` "service": "allServices", "audit_log_configs": [ ` "
# log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` "
# log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": "
# sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ",
# log_type": "DATA_WRITE" `, ` "log_type": "ADMIN_READ" ` ] `, ` "service": "
# sampleservice.googleapis.com", "audit_log_configs": [ ` "log_type": "DATA_READ"
# `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com"
# ] ` ] ` ] `
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
@ -1582,7 +1582,7 @@ module Google
# Provides the configuration for logging a type of permissions. Example:
# ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "
# user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] `
# user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@
# example.com from DATA_READ logging.
class AuditLogConfig
@ -3488,13 +3488,15 @@ module Google
class BackendServiceIap
include Google::Apis::Core::Hashable
#
# Whether the serving infrastructure will authenticate and authorize all
# incoming requests. If true, the oauth2ClientId and oauth2ClientSecret fields
# must be non-empty.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
#
# OAuth2 client ID to use for the authentication flow.
# Corresponds to the JSON property `oauth2ClientId`
# @return [String]
attr_accessor :oauth2_client_id
@ -3505,7 +3507,9 @@ module Google
# @return [Google::Apis::ComputeAlpha::BackendServiceIapoAuth2ClientInfo]
attr_accessor :oauth2_client_info
#
# OAuth2 client secret to use for the authentication flow. For security reasons,
# this value cannot be retrieved via the API. Instead, the SHA-256 hash of the
# value is returned in the oauth2ClientSecretSha256 field.
# Corresponds to the JSON property `oauth2ClientSecret`
# @return [String]
attr_accessor :oauth2_client_secret
@ -7246,7 +7250,7 @@ module Google
# Deprecated in favor of enable in LogConfig. This field denotes whether to
# enable logging for a particular firewall rule. If logging is enabled, logs
# will be exported to Stackdriver.
# will be exported t Cloud Logging.
# Corresponds to the JSON property `enableLogging`
# @return [Boolean]
attr_accessor :enable_logging
@ -11646,11 +11650,13 @@ module Google
# @return [String]
attr_accessor :source_disk_id
# URL of the source image used to create this image. This can be a full or valid
# partial URL. You must provide exactly one of:
# - this property, or
# - the rawDisk.source property, or
# - the sourceDisk property in order to create an image.
# URL of the source image used to create this image.
# In order to create an image, you must provide the full or partial URL of one
# of the following:
# - The selfLink URL
# - This property
# - The rawDisk.source URL
# - The sourceDisk URL
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
@ -11667,12 +11673,14 @@ module Google
# @return [String]
attr_accessor :source_image_id
# URL of the source snapshot used to create this image. This can be a full or
# valid partial URL. You must provide exactly one of:
# - this property, or
# - the sourceImage property, or
# - the rawDisk.source property, or
# - the sourceDisk property in order to create an image.
# URL of the source snapshot used to create this image.
# In order to create an image, you must provide the full or partial URL of one
# of the following:
# - The selfLink URL
# - This property
# - The sourceImage URL
# - The rawDisk.source URL
# - The sourceDisk URL
# Corresponds to the JSON property `sourceSnapshot`
# @return [String]
attr_accessor :source_snapshot
@ -16844,8 +16852,7 @@ module Google
end
# Describes a single physical circuit between the Customer and Google.
# CircuitInfo objects are created by Google, so all fields are output only. Next
# id: 4
# CircuitInfo objects are created by Google, so all fields are output only.
class InterconnectCircuitInfo
include Google::Apis::Core::Hashable
@ -17459,7 +17466,7 @@ module Google
end
end
# Description of a planned outage on this Interconnect. Next id: 9
# Description of a planned outage on this Interconnect.
class InterconnectOutageNotification
include Google::Apis::Core::Hashable
@ -19805,7 +19812,7 @@ module Google
end
end
# The network endpoint. Next ID: 7
# The network endpoint.
class NetworkEndpoint
include Google::Apis::Core::Hashable
@ -20504,7 +20511,7 @@ module Google
class NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter
include Google::Apis::Core::Hashable
# The network endpoint. Next ID: 7
# The network endpoint.
# Corresponds to the JSON property `networkEndpoint`
# @return [Google::Apis::ComputeAlpha::NetworkEndpoint]
attr_accessor :network_endpoint
@ -20733,7 +20740,7 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::HealthStatusForNetworkEndpoint>]
attr_accessor :healths
# The network endpoint. Next ID: 7
# The network endpoint.
# Corresponds to the JSON property `networkEndpoint`
# @return [Google::Apis::ComputeAlpha::NetworkEndpoint]
attr_accessor :network_endpoint
@ -22025,7 +22032,7 @@ module Google
# Represent a sole-tenant Node Template resource.
# You can use a template to define properties for nodes in a node group. For
# more information, read Creating node groups and instances. (== resource_for `$
# api_version`.nodeTemplates ==) (== NextID: 19 ==)
# api_version`.nodeTemplates ==)
class NodeTemplate
include Google::Apis::Core::Hashable
@ -24693,6 +24700,8 @@ module Google
# defaultService must not be set. Conversely if defaultService is set,
# defaultRouteAction cannot contain any weightedBackendServices.
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within a pathMatcher's defaultRouteAction.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeAlpha::HttpRouteAction]
attr_accessor :default_route_action
@ -24796,6 +24805,8 @@ module Google
# weightedBackendServices, service must not be set. Conversely if service is set,
# routeAction cannot contain any weightedBackendServices.
# Only one of routeAction or urlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within a pathRule's routeAction.
# Corresponds to the JSON property `routeAction`
# @return [Google::Apis::ComputeAlpha::HttpRouteAction]
attr_accessor :route_action
@ -30771,7 +30782,7 @@ module Google
end
end
# Status of a NAT contained in this router. Next tag: 9
# Status of a NAT contained in this router.
class RouterStatusNatStatus
include Google::Apis::Core::Hashable
@ -31290,8 +31301,9 @@ module Google
attr_accessor :on_host_maintenance
# Defines whether the instance is preemptible. This can only be set during
# instance creation, it cannot be set or changed after the instance has been
# created.
# instance creation or while the instance is stopped and therefore, in a `
# TERMINATED` state. See Instance Life Cycle for more information on the
# possible instance states.
# Corresponds to the JSON property `preemptible`
# @return [Boolean]
attr_accessor :preemptible
@ -38544,6 +38556,8 @@ module Google
# must not be set. Conversely if defaultService is set, defaultRouteAction
# cannot contain any weightedBackendServices.
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within defaultRouteAction.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeAlpha::HttpRouteAction]
attr_accessor :default_route_action

View File

@ -173,7 +173,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of accelerator types available to the specified project.
# Retrieves a list of accelerator types that are available to the specified
# project.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -11189,8 +11190,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the list of referrers to instances contained within the specified
# zone. For more information, read Viewing Referrers to VM Instances.
# Retrieves a list of resources that refer to the VM instance specified in the
# request. For example, if the VM instance is part of a managed instance group,
# the referrers list includes the managed instance group. For more information,
# read Viewing Referrers to VM Instances.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -11916,7 +11919,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets an instance's scheduling options.
# Sets an instance's scheduling options. You can only call this method on a
# stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
# Instance Life Cycle for more information on the possible instance states.
# @param [String] project
# Project ID for this request.
# @param [String] zone

View File

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

View File

@ -87,7 +87,7 @@ module Google
# @return [String]
attr_accessor :kind
# [Output Only] Maximum accelerator cards allowed per instance.
# [Output Only] Maximum number of accelerator cards allowed per instance.
# Corresponds to the JSON property `maximumCardsPerInstance`
# @return [Fixnum]
attr_accessor :maximum_cards_per_instance
@ -97,7 +97,7 @@ module Google
# @return [String]
attr_accessor :name
# [Output Only] Server-defined fully-qualified URL for this resource.
# [Output Only] Server-defined, fully qualified URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
@ -1366,6 +1366,13 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# Indicates whether or not the disk can be read/write attached to more than one
# instance.
# Corresponds to the JSON property `multiWriter`
# @return [Boolean]
attr_accessor :multi_writer
alias_method :multi_writer?, :multi_writer
# Specifies which action to take on instance update with this disk. Default is
# to use the existing disk.
# Corresponds to the JSON property `onUpdateAction`
@ -1433,6 +1440,7 @@ module Google
@disk_type = args[:disk_type] if args.key?(:disk_type)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@labels = args[:labels] if args.key?(:labels)
@multi_writer = args[:multi_writer] if args.key?(:multi_writer)
@on_update_action = args[:on_update_action] if args.key?(:on_update_action)
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
@source_image = args[:source_image] if args.key?(:source_image)
@ -1450,10 +1458,10 @@ module Google
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditLogConfig are exempted.
# Example Policy with multiple AuditConfigs:
# ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` "
# ` "audit_configs": [ ` "service": "allServices", "audit_log_configs": [ ` "
# log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` "
# log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": "
# sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ",
# log_type": "DATA_WRITE" `, ` "log_type": "ADMIN_READ" ` ] `, ` "service": "
# sampleservice.googleapis.com", "audit_log_configs": [ ` "log_type": "DATA_READ"
# `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com"
# ] ` ] ` ] `
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
@ -1493,7 +1501,7 @@ module Google
# Provides the configuration for logging a type of permissions. Example:
# ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "
# user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] `
# user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@
# example.com from DATA_READ logging.
class AuditLogConfig
@ -2117,6 +2125,13 @@ module Google
# @return [Google::Apis::ComputeBeta::AutoscalingPolicyScaleDownControl]
attr_accessor :scale_down_control
# Configuration that allows for slower scale in so that even if Autoscaler
# recommends an abrupt scale in of a MIG, it will be throttled as specified by
# the parameters below.
# Corresponds to the JSON property `scaleInControl`
# @return [Google::Apis::ComputeBeta::AutoscalingPolicyScaleInControl]
attr_accessor :scale_in_control
def initialize(**args)
update!(**args)
end
@ -2131,6 +2146,7 @@ module Google
@min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas)
@mode = args[:mode] if args.key?(:mode)
@scale_down_control = args[:scale_down_control] if args.key?(:scale_down_control)
@scale_in_control = args[:scale_in_control] if args.key?(:scale_in_control)
end
end
@ -2296,6 +2312,34 @@ module Google
end
end
# Configuration that allows for slower scale in so that even if Autoscaler
# recommends an abrupt scale in of a MIG, it will be throttled as specified by
# the parameters below.
class AutoscalingPolicyScaleInControl
include Google::Apis::Core::Hashable
# Encapsulates numeric value that can be either absolute or relative.
# Corresponds to the JSON property `maxScaledInReplicas`
# @return [Google::Apis::ComputeBeta::FixedOrPercent]
attr_accessor :max_scaled_in_replicas
# How long back autoscaling should look when computing recommendations to
# include directives regarding slower scale in, as described above.
# Corresponds to the JSON property `timeWindowSec`
# @return [Fixnum]
attr_accessor :time_window_sec
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_scaled_in_replicas = args[:max_scaled_in_replicas] if args.key?(:max_scaled_in_replicas)
@time_window_sec = args[:time_window_sec] if args.key?(:time_window_sec)
end
end
# Message containing information of one individual backend.
class Backend
include Google::Apis::Core::Hashable
@ -3248,18 +3292,22 @@ module Google
class BackendServiceIap
include Google::Apis::Core::Hashable
#
# Whether the serving infrastructure will authenticate and authorize all
# incoming requests. If true, the oauth2ClientId and oauth2ClientSecret fields
# must be non-empty.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
#
# OAuth2 client ID to use for the authentication flow.
# Corresponds to the JSON property `oauth2ClientId`
# @return [String]
attr_accessor :oauth2_client_id
#
# OAuth2 client secret to use for the authentication flow. For security reasons,
# this value cannot be retrieved via the API. Instead, the SHA-256 hash of the
# value is returned in the oauth2ClientSecretSha256 field.
# Corresponds to the JSON property `oauth2ClientSecret`
# @return [String]
attr_accessor :oauth2_client_secret
@ -4927,6 +4975,13 @@ module Google
# @return [Array<String>]
attr_accessor :licenses
# Indicates whether or not the disk can be read/write attached to more than one
# instance.
# Corresponds to the JSON property `multiWriter`
# @return [Boolean]
attr_accessor :multi_writer
alias_method :multi_writer?, :multi_writer
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
@ -5093,6 +5148,7 @@ module Google
@last_detach_timestamp = args[:last_detach_timestamp] if args.key?(:last_detach_timestamp)
@license_codes = args[:license_codes] if args.key?(:license_codes)
@licenses = args[:licenses] if args.key?(:licenses)
@multi_writer = args[:multi_writer] if args.key?(:multi_writer)
@name = args[:name] if args.key?(:name)
@options = args[:options] if args.key?(:options)
@physical_block_size_bytes = args[:physical_block_size_bytes] if args.key?(:physical_block_size_bytes)
@ -6655,7 +6711,7 @@ module Google
# Deprecated in favor of enable in LogConfig. This field denotes whether to
# enable logging for a particular firewall rule. If logging is enabled, logs
# will be exported to Stackdriver.
# will be exported t Cloud Logging.
# Corresponds to the JSON property `enableLogging`
# @return [Boolean]
attr_accessor :enable_logging
@ -10406,11 +10462,13 @@ module Google
# @return [String]
attr_accessor :source_disk_id
# URL of the source image used to create this image. This can be a full or valid
# partial URL. You must provide exactly one of:
# - this property, or
# - the rawDisk.source property, or
# - the sourceDisk property in order to create an image.
# URL of the source image used to create this image.
# In order to create an image, you must provide the full or partial URL of one
# of the following:
# - The selfLink URL
# - This property
# - The rawDisk.source URL
# - The sourceDisk URL
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
@ -10427,12 +10485,14 @@ module Google
# @return [String]
attr_accessor :source_image_id
# URL of the source snapshot used to create this image. This can be a full or
# valid partial URL. You must provide exactly one of:
# - this property, or
# - the sourceImage property, or
# - the rawDisk.source property, or
# - the sourceDisk property in order to create an image.
# URL of the source snapshot used to create this image.
# In order to create an image, you must provide the full or partial URL of one
# of the following:
# - The selfLink URL
# - This property
# - The sourceImage URL
# - The rawDisk.source URL
# - The sourceDisk URL
# Corresponds to the JSON property `sourceSnapshot`
# @return [String]
attr_accessor :source_snapshot
@ -15184,8 +15244,7 @@ module Google
end
# Describes a single physical circuit between the Customer and Google.
# CircuitInfo objects are created by Google, so all fields are output only. Next
# id: 4
# CircuitInfo objects are created by Google, so all fields are output only.
class InterconnectCircuitInfo
include Google::Apis::Core::Hashable
@ -15793,7 +15852,7 @@ module Google
end
end
# Description of a planned outage on this Interconnect. Next id: 9
# Description of a planned outage on this Interconnect.
class InterconnectOutageNotification
include Google::Apis::Core::Hashable
@ -17563,7 +17622,7 @@ module Google
end
end
# The network endpoint. Next ID: 7
# The network endpoint.
class NetworkEndpoint
include Google::Apis::Core::Hashable
@ -17630,6 +17689,33 @@ module Google
# @return [Hash<String,String>]
attr_accessor :annotations
# Configuration for an App Engine network endpoint group (NEG). The service is
# optional, may be provided explicitly or in the URL mask. The version is
# optional and can only be provided explicitly or in the URL mask when service
# is present.
# Note: App Engine service must be in the same project and located in the same
# region as the Serverless NEG.
# Corresponds to the JSON property `appEngine`
# @return [Google::Apis::ComputeBeta::NetworkEndpointGroupAppEngine]
attr_accessor :app_engine
# Configuration for a Cloud Function network endpoint group (NEG). The function
# must be provided explicitly or in the URL mask.
# Note: Cloud Function must be in the same project and located in the same
# region as the Serverless NEG.
# Corresponds to the JSON property `cloudFunction`
# @return [Google::Apis::ComputeBeta::NetworkEndpointGroupCloudFunction]
attr_accessor :cloud_function
# Configuration for a Cloud Run network endpoint group (NEG). The service must
# be provided explicitly or in the URL mask. The tag is optional, may be
# provided explicitly or in the URL mask.
# Note: Cloud Run service must be in the same project and located in the same
# region as the Serverless NEG.
# Corresponds to the JSON property `cloudRun`
# @return [Google::Apis::ComputeBeta::NetworkEndpointGroupCloudRun]
attr_accessor :cloud_run
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@ -17685,6 +17771,12 @@ module Google
# @return [String]
attr_accessor :network_endpoint_type
# [Output Only] The URL of the region where the network endpoint group is
# located.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -17713,6 +17805,9 @@ module Google
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@app_engine = args[:app_engine] if args.key?(:app_engine)
@cloud_function = args[:cloud_function] if args.key?(:cloud_function)
@cloud_run = args[:cloud_run] if args.key?(:cloud_run)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@default_port = args[:default_port] if args.key?(:default_port)
@description = args[:description] if args.key?(:description)
@ -17722,6 +17817,7 @@ module Google
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@network_endpoint_type = args[:network_endpoint_type] if args.key?(:network_endpoint_type)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@size = args[:size] if args.key?(:size)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@ -17848,6 +17944,134 @@ module Google
end
end
# Configuration for an App Engine network endpoint group (NEG). The service is
# optional, may be provided explicitly or in the URL mask. The version is
# optional and can only be provided explicitly or in the URL mask when service
# is present.
# Note: App Engine service must be in the same project and located in the same
# region as the Serverless NEG.
class NetworkEndpointGroupAppEngine
include Google::Apis::Core::Hashable
# Optional serving service.
# The service name must be 1-63 characters long, and comply with RFC1035.
# Example value: "default", "my-service".
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# A template to parse service and version fields from a request URL. URL mask
# allows for routing to multiple App Engine services without having to create
# multiple Network Endpoint Groups and backend services.
# For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-
# appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask
# "-dot-appname.appspot.com/". The URL mask will parse them to ` service = "foo1"
# , version = "v1" ` and ` service = "foo1", version = "v2" ` respectively.
# Corresponds to the JSON property `urlMask`
# @return [String]
attr_accessor :url_mask
# Optional serving version.
# The version must be 1-63 characters long, and comply with RFC1035.
# Example value: "v1", "v2".
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@service = args[:service] if args.key?(:service)
@url_mask = args[:url_mask] if args.key?(:url_mask)
@version = args[:version] if args.key?(:version)
end
end
# Configuration for a Cloud Function network endpoint group (NEG). The function
# must be provided explicitly or in the URL mask.
# Note: Cloud Function must be in the same project and located in the same
# region as the Serverless NEG.
class NetworkEndpointGroupCloudFunction
include Google::Apis::Core::Hashable
# A user-defined name of the Cloud Function.
# The function name is case-sensitive and must be 1-63 characters long.
# Example value: "func1".
# Corresponds to the JSON property `function`
# @return [String]
attr_accessor :function
# A template to parse function field from a request URL. URL mask allows for
# routing to multiple Cloud Functions without having to create multiple Network
# Endpoint Groups and backend services.
# For example, request URLs "mydomain.com/function1" and "mydomain.com/function2"
# can be backed by the same Serverless NEG with URL mask "/". The URL mask will
# parse them to ` function = "function1" ` and ` function = "function2" `
# respectively.
# Corresponds to the JSON property `urlMask`
# @return [String]
attr_accessor :url_mask
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@function = args[:function] if args.key?(:function)
@url_mask = args[:url_mask] if args.key?(:url_mask)
end
end
# Configuration for a Cloud Run network endpoint group (NEG). The service must
# be provided explicitly or in the URL mask. The tag is optional, may be
# provided explicitly or in the URL mask.
# Note: Cloud Run service must be in the same project and located in the same
# region as the Serverless NEG.
class NetworkEndpointGroupCloudRun
include Google::Apis::Core::Hashable
# Cloud Run service is the main resource of Cloud Run.
# The service must be 1-63 characters long, and comply with RFC1035.
# Example value: "run-service".
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# Optional Cloud Run tag represents the "named-revision" to provide additional
# fine-grained traffic routing information.
# The tag must be 1-63 characters long, and comply with RFC1035.
# Example value: "revision-0010".
# Corresponds to the JSON property `tag`
# @return [String]
attr_accessor :tag
# A template to parse service and tag fields from a request URL. URL mask allows
# for routing to multiple Run services without having to create multiple network
# endpoint groups and backend services.
# For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2"
# can be backed by the same Serverless Network Endpoint Group (NEG) with URL
# mask ".domain.com/". The URL mask will parse them to ` service="bar1", tag="
# foo1" ` and ` service="bar2", tag="foo2" ` respectively.
# Corresponds to the JSON property `urlMask`
# @return [String]
attr_accessor :url_mask
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@service = args[:service] if args.key?(:service)
@tag = args[:tag] if args.key?(:tag)
@url_mask = args[:url_mask] if args.key?(:url_mask)
end
end
# Load balancing specific fields for network endpoint group.
class NetworkEndpointGroupLbNetworkEndpointGroup
include Google::Apis::Core::Hashable
@ -18078,7 +18302,7 @@ module Google
class NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter
include Google::Apis::Core::Hashable
# The network endpoint. Next ID: 7
# The network endpoint.
# Corresponds to the JSON property `networkEndpoint`
# @return [Google::Apis::ComputeBeta::NetworkEndpoint]
attr_accessor :network_endpoint
@ -18307,7 +18531,7 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::HealthStatusForNetworkEndpoint>]
attr_accessor :healths
# The network endpoint. Next ID: 7
# The network endpoint.
# Corresponds to the JSON property `networkEndpoint`
# @return [Google::Apis::ComputeBeta::NetworkEndpoint]
attr_accessor :network_endpoint
@ -19501,7 +19725,7 @@ module Google
# Represent a sole-tenant Node Template resource.
# You can use a template to define properties for nodes in a node group. For
# more information, read Creating node groups and instances. (== resource_for `$
# api_version`.nodeTemplates ==) (== NextID: 19 ==)
# api_version`.nodeTemplates ==)
class NodeTemplate
include Google::Apis::Core::Hashable
@ -22088,6 +22312,8 @@ module Google
# defaultService must not be set. Conversely if defaultService is set,
# defaultRouteAction cannot contain any weightedBackendServices.
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within a pathMatcher's defaultRouteAction.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeBeta::HttpRouteAction]
attr_accessor :default_route_action
@ -22191,6 +22417,8 @@ module Google
# weightedBackendServices, service must not be set. Conversely if service is set,
# routeAction cannot contain any weightedBackendServices.
# Only one of routeAction or urlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within a pathRule's routeAction.
# Corresponds to the JSON property `routeAction`
# @return [Google::Apis::ComputeBeta::HttpRouteAction]
attr_accessor :route_action
@ -26803,7 +27031,7 @@ module Google
end
end
# Status of a NAT contained in this router. Next tag: 9
# Status of a NAT contained in this router.
class RouterStatusNatStatus
include Google::Apis::Core::Hashable
@ -27290,8 +27518,9 @@ module Google
attr_accessor :on_host_maintenance
# Defines whether the instance is preemptible. This can only be set during
# instance creation, it cannot be set or changed after the instance has been
# created.
# instance creation or while the instance is stopped and therefore, in a `
# TERMINATED` state. See Instance Life Cycle for more information on the
# possible instance states.
# Corresponds to the JSON property `preemptible`
# @return [Boolean]
attr_accessor :preemptible
@ -33460,6 +33689,8 @@ module Google
# must not be set. Conversely if defaultService is set, defaultRouteAction
# cannot contain any weightedBackendServices.
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within defaultRouteAction.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeBeta::HttpRouteAction]
attr_accessor :default_route_action

View File

@ -304,6 +304,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalingPolicyScaleInControl
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Backend
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2260,6 +2266,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NetworkEndpointGroupAppEngine
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkEndpointGroupCloudFunction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkEndpointGroupCloudRun
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkEndpointGroupLbNetworkEndpointGroup
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -5238,6 +5262,7 @@ module Google
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
hash :labels, as: 'labels'
property :multi_writer, as: 'multiWriter'
property :on_update_action, as: 'onUpdateAction'
collection :resource_policies, as: 'resourcePolicies'
property :source_image, as: 'sourceImage'
@ -5411,6 +5436,8 @@ module Google
property :mode, as: 'mode'
property :scale_down_control, as: 'scaleDownControl', class: Google::Apis::ComputeBeta::AutoscalingPolicyScaleDownControl, decorator: Google::Apis::ComputeBeta::AutoscalingPolicyScaleDownControl::Representation
property :scale_in_control, as: 'scaleInControl', class: Google::Apis::ComputeBeta::AutoscalingPolicyScaleInControl, decorator: Google::Apis::ComputeBeta::AutoscalingPolicyScaleInControl::Representation
end
end
@ -5448,6 +5475,15 @@ module Google
end
end
class AutoscalingPolicyScaleInControl
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_scaled_in_replicas, as: 'maxScaledInReplicas', class: Google::Apis::ComputeBeta::FixedOrPercent, decorator: Google::Apis::ComputeBeta::FixedOrPercent::Representation
property :time_window_sec, as: 'timeWindowSec'
end
end
class Backend
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6033,6 +6069,7 @@ module Google
property :last_detach_timestamp, as: 'lastDetachTimestamp'
collection :license_codes, as: 'licenseCodes'
collection :licenses, as: 'licenses'
property :multi_writer, as: 'multiWriter'
property :name, as: 'name'
property :options, as: 'options'
property :physical_block_size_bytes, :numeric_string => true, as: 'physicalBlockSizeBytes'
@ -9118,6 +9155,12 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
property :app_engine, as: 'appEngine', class: Google::Apis::ComputeBeta::NetworkEndpointGroupAppEngine, decorator: Google::Apis::ComputeBeta::NetworkEndpointGroupAppEngine::Representation
property :cloud_function, as: 'cloudFunction', class: Google::Apis::ComputeBeta::NetworkEndpointGroupCloudFunction, decorator: Google::Apis::ComputeBeta::NetworkEndpointGroupCloudFunction::Representation
property :cloud_run, as: 'cloudRun', class: Google::Apis::ComputeBeta::NetworkEndpointGroupCloudRun, decorator: Google::Apis::ComputeBeta::NetworkEndpointGroupCloudRun::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :default_port, as: 'defaultPort'
property :description, as: 'description'
@ -9128,6 +9171,7 @@ module Google
property :name, as: 'name'
property :network, as: 'network'
property :network_endpoint_type, as: 'networkEndpointType'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :size, as: 'size'
property :subnetwork, as: 'subnetwork'
@ -9167,6 +9211,32 @@ module Google
end
end
class NetworkEndpointGroupAppEngine
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service, as: 'service'
property :url_mask, as: 'urlMask'
property :version, as: 'version'
end
end
class NetworkEndpointGroupCloudFunction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :function, as: 'function'
property :url_mask, as: 'urlMask'
end
end
class NetworkEndpointGroupCloudRun
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service, as: 'service'
property :tag, as: 'tag'
property :url_mask, as: 'urlMask'
end
end
class NetworkEndpointGroupLbNetworkEndpointGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -169,7 +169,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of accelerator types available to the specified project.
# Retrieves a list of accelerator types that are available to the specified
# project.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -10509,8 +10510,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the list of referrers to instances contained within the specified
# zone. For more information, read Viewing Referrers to VM Instances.
# Retrieves a list of resources that refer to the VM instance specified in the
# request. For example, if the VM instance is part of a managed instance group,
# the referrers list includes the managed instance group. For more information,
# read Viewing Referrers to VM Instances.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -11178,7 +11181,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets an instance's scheduling options.
# Sets an instance's scheduling options. You can only call this method on a
# stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
# Instance Life Cycle for more information on the possible instance states.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -22143,6 +22148,230 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified network endpoint group. Note that the NEG cannot be
# deleted if it is configured as a backend of a backend service.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region where the network endpoint group is located. It should
# comply with RFC1035.
# @param [String] network_endpoint_group
# The name of the network endpoint group to delete. It should comply with
# RFC1035.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified network endpoint group. Gets a list of available network
# endpoint groups by making a list() request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region where the network endpoint group is located. It should
# comply with RFC1035.
# @param [String] network_endpoint_group
# The name of the network endpoint group. It should comply with RFC1035.
# @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::ComputeBeta::NetworkEndpointGroup] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::NetworkEndpointGroup]
#
# @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_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation
command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroup
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.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
# Creates a network endpoint group in the specified project using the parameters
# that are included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region where you want to create the network endpoint group. It
# should comply with RFC1035.
# @param [Google::Apis::ComputeBeta::NetworkEndpointGroup] network_endpoint_group_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/networkEndpointGroups', options)
command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation
command.request_object = network_endpoint_group_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the list of regional network endpoint groups available to the
# specified project in the given region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region where the network endpoint group is located. It should
# comply with RFC1035.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named `example-instance` by specifying `name != example-instance`.
# You can also filter nested fields. For example, you could specify `scheduling.
# automaticRestart = false` to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
# expression. However, you can include `AND` and `OR` expressions explicitly.
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
# Broadwell") AND (scheduling.automaticRestart = true) ```
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than `maxResults`, Compute Engine returns a `
# nextPageToken` that can be used to get the next page of results in subsequent
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
# creationTimestamp` field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
# by a previous list request to get the next page of results.
# @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::ComputeBeta::NetworkEndpointGroupList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::NetworkEndpointGroupList]
#
# @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_region_network_endpoint_groups(project, region, filter: nil, 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, '{project}/regions/{region}/networkEndpointGroups', options)
command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupList::Representation
command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.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
# Deletes the specified NotificationEndpoint in the given region
# @param [String] project
# Project ID for this request.

View File

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

View File

@ -87,7 +87,7 @@ module Google
# @return [String]
attr_accessor :kind
# [Output Only] Maximum accelerator cards allowed per instance.
# [Output Only] Maximum number of accelerator cards allowed per instance.
# Corresponds to the JSON property `maximumCardsPerInstance`
# @return [Fixnum]
attr_accessor :maximum_cards_per_instance
@ -97,7 +97,7 @@ module Google
# @return [String]
attr_accessor :name
# [Output Only] Server-defined fully-qualified URL for this resource.
# [Output Only] Server-defined, fully qualified URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
@ -1419,10 +1419,10 @@ module Google
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditLogConfig are exempted.
# Example Policy with multiple AuditConfigs:
# ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` "
# ` "audit_configs": [ ` "service": "allServices", "audit_log_configs": [ ` "
# log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` "
# log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": "
# sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ",
# log_type": "DATA_WRITE" `, ` "log_type": "ADMIN_READ" ` ] `, ` "service": "
# sampleservice.googleapis.com", "audit_log_configs": [ ` "log_type": "DATA_READ"
# `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com"
# ] ` ] ` ] `
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
@ -1462,7 +1462,7 @@ module Google
# Provides the configuration for logging a type of permissions. Example:
# ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "
# user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] `
# user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@
# example.com from DATA_READ logging.
class AuditLogConfig
@ -3095,6 +3095,11 @@ module Google
class BackendServiceGroupHealth
include Google::Apis::Core::Hashable
# Metadata defined as annotations on the network endpoint group.
# Corresponds to the JSON property `annotations`
# @return [Hash<String,String>]
attr_accessor :annotations
# Health state of the backend instances or endpoints in requested instance or
# network endpoint group, determined based on configured health checks.
# Corresponds to the JSON property `healthStatus`
@ -3113,6 +3118,7 @@ module Google
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@health_status = args[:health_status] if args.key?(:health_status)
@kind = args[:kind] if args.key?(:kind)
end
@ -3122,18 +3128,22 @@ module Google
class BackendServiceIap
include Google::Apis::Core::Hashable
#
# Whether the serving infrastructure will authenticate and authorize all
# incoming requests. If true, the oauth2ClientId and oauth2ClientSecret fields
# must be non-empty.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
#
# OAuth2 client ID to use for the authentication flow.
# Corresponds to the JSON property `oauth2ClientId`
# @return [String]
attr_accessor :oauth2_client_id
#
# OAuth2 client secret to use for the authentication flow. For security reasons,
# this value cannot be retrieved via the API. Instead, the SHA-256 hash of the
# value is returned in the oauth2ClientSecretSha256 field.
# Corresponds to the JSON property `oauth2ClientSecret`
# @return [String]
attr_accessor :oauth2_client_secret
@ -7996,6 +8006,270 @@ module Google
end
end
# Represents a Health-Check as a Service resource.
# (== resource_for `$api_version`.regionHealthCheckServices ==)
class HealthCheckService
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a HealthCheckService. An up-to-date fingerprint must be provided in
# order to patch/update the HealthCheckService; Otherwise, the request will fail
# with error 412 conditionNotMet. To see the latest fingerprint, make a get()
# request to retrieve the HealthCheckService.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :fingerprint
# List of URLs to the HealthCheck resources. Must have at least one HealthCheck,
# and not more than 10. HealthCheck resources must have portSpecification=
# USE_SERVING_PORT. For regional HealthCheckService, the HealthCheck must be
# regional and in the same region. For global HealthCheckService, HealthCheck
# must be global. Mix of regional and global HealthChecks is not supported.
# Multiple regional HealthChecks must belong to the same region. Regional
# HealthChecks</code? must belong to the same region as zones of NEGs.
# Corresponds to the JSON property `healthChecks`
# @return [Array<String>]
attr_accessor :health_checks
# Optional. Policy for how the results from multiple health checks for the same
# endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified.
# - NO_AGGREGATION. An EndpointHealth message is returned for each backend in
# the health check service.
# - AND. If any backend's health check reports UNHEALTHY, then UNHEALTHY is the
# HealthState of the entire health check service. If all backend's are healthy,
# the HealthState of the health check service is HEALTHY. .
# Corresponds to the JSON property `healthStatusAggregationPolicy`
# @return [String]
attr_accessor :health_status_aggregation_policy
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output only] Type of the resource. Always compute#healthCheckServicefor
# health check services.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. The name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the
# regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# character must be a lowercase letter, and all following characters must be a
# dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# List of URLs to the NetworkEndpointGroup resources. Must not have more than
# 100. For regional HealthCheckService, NEGs must be in zones in the region of
# the HealthCheckService.
# Corresponds to the JSON property `networkEndpointGroups`
# @return [Array<String>]
attr_accessor :network_endpoint_groups
# List of URLs to the NotificationEndpoint resources. Must not have more than 10.
# A list of endpoints for receiving notifications of change in health status.
# For regional HealthCheckService, NotificationEndpoint must be regional and in
# the same region. For global HealthCheckService, NotificationEndpoint must be
# global.
# Corresponds to the JSON property `notificationEndpoints`
# @return [Array<String>]
attr_accessor :notification_endpoints
# [Output Only] URL of the region where the health check service resides. This
# field is not applicable to global health check services. You must specify this
# field as part of the HTTP request URL. It is not settable as a field in the
# request body.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@health_checks = args[:health_checks] if args.key?(:health_checks)
@health_status_aggregation_policy = args[:health_status_aggregation_policy] if args.key?(:health_status_aggregation_policy)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@network_endpoint_groups = args[:network_endpoint_groups] if args.key?(:network_endpoint_groups)
@notification_endpoints = args[:notification_endpoints] if args.key?(:notification_endpoints)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# A full or valid partial URL to a health check service. For example, the
# following are valid URLs:
# - https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/
# healthCheckServices/health-check-service
# - projects/project-id/regions/us-west1/healthCheckServices/health-check-
# service
# - regions/us-west1/healthCheckServices/health-check-service
class HealthCheckServiceReference
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `healthCheckService`
# @return [String]
attr_accessor :health_check_service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@health_check_service = args[:health_check_service] if args.key?(:health_check_service)
end
end
#
class HealthCheckServicesList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of HealthCheckService resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::HealthCheckService>]
attr_accessor :items
# [Output Only] Type of the resource. Always compute#healthCheckServicesList for
# lists of HealthCheckServices.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeV1::HealthCheckServicesList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning message.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeV1::HealthCheckServicesList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# 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
end
end
#
class HealthChecksAggregatedList
include Google::Apis::Core::Hashable
@ -8208,6 +8482,11 @@ module Google
class HealthStatus
include Google::Apis::Core::Hashable
# Metadata defined as annotations for network endpoint.
# Corresponds to the JSON property `annotations`
# @return [Hash<String,String>]
attr_accessor :annotations
# Health state of the instance.
# Corresponds to the JSON property `healthState`
# @return [String]
@ -8235,6 +8514,7 @@ module Google
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@health_state = args[:health_state] if args.key?(:health_state)
@instance = args[:instance] if args.key?(:instance)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@ -8268,6 +8548,17 @@ module Google
# @return [Google::Apis::ComputeV1::HealthCheckReference]
attr_accessor :health_check
# A full or valid partial URL to a health check service. For example, the
# following are valid URLs:
# - https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/
# healthCheckServices/health-check-service
# - projects/project-id/regions/us-west1/healthCheckServices/health-check-
# service
# - regions/us-west1/healthCheckServices/health-check-service
# Corresponds to the JSON property `healthCheckService`
# @return [Google::Apis::ComputeV1::HealthCheckServiceReference]
attr_accessor :health_check_service
# Health state of the network endpoint determined based on the health checks
# configured.
# Corresponds to the JSON property `healthState`
@ -8283,6 +8574,7 @@ module Google
@backend_service = args[:backend_service] if args.key?(:backend_service)
@forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
@health_check = args[:health_check] if args.key?(:health_check)
@health_check_service = args[:health_check_service] if args.key?(:health_check_service)
@health_state = args[:health_state] if args.key?(:health_state)
end
end
@ -9597,11 +9889,13 @@ module Google
# @return [String]
attr_accessor :source_disk_id
# URL of the source image used to create this image. This can be a full or valid
# partial URL. You must provide exactly one of:
# - this property, or
# - the rawDisk.source property, or
# - the sourceDisk property in order to create an image.
# URL of the source image used to create this image.
# In order to create an image, you must provide the full or partial URL of one
# of the following:
# - The selfLink URL
# - This property
# - The rawDisk.source URL
# - The sourceDisk URL
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
@ -9618,12 +9912,14 @@ module Google
# @return [String]
attr_accessor :source_image_id
# URL of the source snapshot used to create this image. This can be a full or
# valid partial URL. You must provide exactly one of:
# - this property, or
# - the sourceImage property, or
# - the rawDisk.source property, or
# - the sourceDisk property in order to create an image.
# URL of the source snapshot used to create this image.
# In order to create an image, you must provide the full or partial URL of one
# of the following:
# - The selfLink URL
# - This property
# - The sourceImage URL
# - The rawDisk.source URL
# - The sourceDisk URL
# Corresponds to the JSON property `sourceSnapshot`
# @return [String]
attr_accessor :source_snapshot
@ -13814,8 +14110,7 @@ module Google
end
# Describes a single physical circuit between the Customer and Google.
# CircuitInfo objects are created by Google, so all fields are output only. Next
# id: 4
# CircuitInfo objects are created by Google, so all fields are output only.
class InterconnectCircuitInfo
include Google::Apis::Core::Hashable
@ -14423,7 +14718,7 @@ module Google
end
end
# Description of a planned outage on this Interconnect. Next id: 9
# Description of a planned outage on this Interconnect.
class InterconnectOutageNotification
include Google::Apis::Core::Hashable
@ -15973,10 +16268,15 @@ module Google
end
end
# The network endpoint. Next ID: 7
# The network endpoint.
class NetworkEndpoint
include Google::Apis::Core::Hashable
# Metadata defined as annotations on the network endpoint.
# Corresponds to the JSON property `annotations`
# @return [Hash<String,String>]
attr_accessor :annotations
# Optional fully qualified domain name of network endpoint. This can only be
# specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
# Corresponds to the JSON property `fqdn`
@ -16013,6 +16313,7 @@ module Google
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@fqdn = args[:fqdn] if args.key?(:fqdn)
@instance = args[:instance] if args.key?(:instance)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@ -16029,6 +16330,11 @@ module Google
class NetworkEndpointGroup
include Google::Apis::Core::Hashable
# Metadata defined as annotations on the network endpoint group.
# Corresponds to the JSON property `annotations`
# @return [Hash<String,String>]
attr_accessor :annotations
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@ -16106,6 +16412,7 @@ module Google
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@default_port = args[:default_port] if args.key?(:default_port)
@description = args[:description] if args.key?(:description)
@ -16631,7 +16938,7 @@ module Google
# @return [Array<Google::Apis::ComputeV1::HealthStatusForNetworkEndpoint>]
attr_accessor :healths
# The network endpoint. Next ID: 7
# The network endpoint.
# Corresponds to the JSON property `networkEndpoint`
# @return [Google::Apis::ComputeV1::NetworkEndpoint]
attr_accessor :network_endpoint
@ -17768,7 +18075,7 @@ module Google
# Represent a sole-tenant Node Template resource.
# You can use a template to define properties for nodes in a node group. For
# more information, read Creating node groups and instances. (== resource_for `$
# api_version`.nodeTemplates ==) (== NextID: 19 ==)
# api_version`.nodeTemplates ==)
class NodeTemplate
include Google::Apis::Core::Hashable
@ -18656,6 +18963,255 @@ module Google
end
end
# Represents a notification endpoint.
# A notification endpoint resource defines an endpoint to receive notifications
# when there are status changes detected by the associated health check service.
# For more information, see Health checks overview. (== resource_for `$
# api_version`.notificationEndpoint ==) (== resource_for `$api_version`.
# regionNotificationEndpoints ==)
class NotificationEndpoint
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Represents a gRPC setting that describes one gRPC notification endpoint and
# the retry duration attempting to send notification to this endpoint.
# Corresponds to the JSON property `grpcSettings`
# @return [Google::Apis::ComputeV1::NotificationEndpointGrpcSettings]
attr_accessor :grpc_settings
# [Output Only] A unique identifier for this resource type. The server generates
# this identifier.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output Only] Type of the resource. Always compute#notificationEndpoint for
# notification endpoints.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
# z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Output Only] URL of the region where the notification endpoint resides. This
# field applies only to the regional resource. You must specify this field as
# part of the HTTP request URL. It is not settable as a field in the request
# body.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@grpc_settings = args[:grpc_settings] if args.key?(:grpc_settings)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# Represents a gRPC setting that describes one gRPC notification endpoint and
# the retry duration attempting to send notification to this endpoint.
class NotificationEndpointGrpcSettings
include Google::Apis::Core::Hashable
# Optional. If specified, this field is used to set the authority header by the
# sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.
# 3
# Corresponds to the JSON property `authority`
# @return [String]
attr_accessor :authority
# Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS
# name.
# Corresponds to the JSON property `endpoint`
# @return [String]
attr_accessor :endpoint
# Optional. If specified, this field is used to populate the "name" field in
# gRPC requests.
# Corresponds to the JSON property `payloadName`
# @return [String]
attr_accessor :payload_name
# A Duration represents a fixed-length span of time represented as a count of
# seconds and fractions of seconds at nanosecond resolution. It is independent
# of any calendar and concepts like "day" or "month". Range is approximately 10,
# 000 years.
# Corresponds to the JSON property `resendInterval`
# @return [Google::Apis::ComputeV1::Duration]
attr_accessor :resend_interval
# How much time (in seconds) is spent attempting notification retries until a
# successful response is received. Default is 30s. Limit is 20m (1200s). Must be
# a positive number.
# Corresponds to the JSON property `retryDurationSec`
# @return [Fixnum]
attr_accessor :retry_duration_sec
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@authority = args[:authority] if args.key?(:authority)
@endpoint = args[:endpoint] if args.key?(:endpoint)
@payload_name = args[:payload_name] if args.key?(:payload_name)
@resend_interval = args[:resend_interval] if args.key?(:resend_interval)
@retry_duration_sec = args[:retry_duration_sec] if args.key?(:retry_duration_sec)
end
end
#
class NotificationEndpointList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of NotificationEndpoint resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::NotificationEndpoint>]
attr_accessor :items
# [Output Only] Type of the resource. Always compute#notificationEndpoint for
# notification endpoints.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeV1::NotificationEndpointList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning message.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeV1::NotificationEndpointList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# 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
end
end
# Represents an Operation resource.
# Google Compute Engine has three Operation resources:
# * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [
@ -20024,6 +20580,8 @@ module Google
# defaultService must not be set. Conversely if defaultService is set,
# defaultRouteAction cannot contain any weightedBackendServices.
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within a pathMatcher's defaultRouteAction.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeV1::HttpRouteAction]
attr_accessor :default_route_action
@ -20127,6 +20685,8 @@ module Google
# weightedBackendServices, service must not be set. Conversely if service is set,
# routeAction cannot contain any weightedBackendServices.
# Only one of routeAction or urlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within a pathRule's routeAction.
# Corresponds to the JSON property `routeAction`
# @return [Google::Apis::ComputeV1::HttpRouteAction]
attr_accessor :route_action
@ -24357,7 +24917,7 @@ module Google
end
end
# Status of a NAT contained in this router. Next tag: 9
# Status of a NAT contained in this router.
class RouterStatusNatStatus
include Google::Apis::Core::Hashable
@ -24715,8 +25275,9 @@ module Google
attr_accessor :on_host_maintenance
# Defines whether the instance is preemptible. This can only be set during
# instance creation, it cannot be set or changed after the instance has been
# created.
# instance creation or while the instance is stopped and therefore, in a `
# TERMINATED` state. See Instance Life Cycle for more information on the
# possible instance states.
# Corresponds to the JSON property `preemptible`
# @return [Boolean]
attr_accessor :preemptible
@ -30131,6 +30692,8 @@ module Google
# must not be set. Conversely if defaultService is set, defaultRouteAction
# cannot contain any weightedBackendServices.
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within defaultRouteAction.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeV1::HttpRouteAction]
attr_accessor :default_route_action

View File

@ -1012,6 +1012,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheckService
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheckServiceReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheckServicesList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class HealthChecksAggregatedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2458,6 +2488,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NotificationEndpoint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NotificationEndpointGrpcSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NotificationEndpointList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -5208,6 +5268,7 @@ module Google
class BackendServiceGroupHealth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
collection :health_status, as: 'healthStatus', class: Google::Apis::ComputeV1::HealthStatus, decorator: Google::Apis::ComputeV1::HealthStatus::Representation
property :kind, as: 'kind'
@ -6366,6 +6427,63 @@ module Google
end
end
class HealthCheckService
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :fingerprint, :base64 => true, as: 'fingerprint'
collection :health_checks, as: 'healthChecks'
property :health_status_aggregation_policy, as: 'healthStatusAggregationPolicy'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
collection :network_endpoint_groups, as: 'networkEndpointGroups'
collection :notification_endpoints, as: 'notificationEndpoints'
property :region, as: 'region'
property :self_link, as: 'selfLink'
end
end
class HealthCheckServiceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :health_check_service, as: 'healthCheckService'
end
end
class HealthCheckServicesList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::HealthCheckService, decorator: Google::Apis::ComputeV1::HealthCheckService::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeV1::HealthCheckServicesList::Warning, decorator: Google::Apis::ComputeV1::HealthCheckServicesList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::HealthCheckServicesList::Warning::Datum, decorator: Google::Apis::ComputeV1::HealthCheckServicesList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class HealthChecksAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6429,6 +6547,7 @@ module Google
class HealthStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
property :health_state, as: 'healthState'
property :instance, as: 'instance'
property :ip_address, as: 'ipAddress'
@ -6445,6 +6564,8 @@ module Google
property :health_check, as: 'healthCheck', class: Google::Apis::ComputeV1::HealthCheckReference, decorator: Google::Apis::ComputeV1::HealthCheckReference::Representation
property :health_check_service, as: 'healthCheckService', class: Google::Apis::ComputeV1::HealthCheckServiceReference, decorator: Google::Apis::ComputeV1::HealthCheckServiceReference::Representation
property :health_state, as: 'healthState'
end
end
@ -8348,6 +8469,7 @@ module Google
class NetworkEndpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
property :fqdn, as: 'fqdn'
property :instance, as: 'instance'
property :ip_address, as: 'ipAddress'
@ -8358,6 +8480,7 @@ module Google
class NetworkEndpointGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
property :creation_timestamp, as: 'creationTimestamp'
property :default_port, as: 'defaultPort'
property :description, as: 'description'
@ -9047,6 +9170,65 @@ module Google
end
end
class NotificationEndpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :grpc_settings, as: 'grpcSettings', class: Google::Apis::ComputeV1::NotificationEndpointGrpcSettings, decorator: Google::Apis::ComputeV1::NotificationEndpointGrpcSettings::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink'
end
end
class NotificationEndpointGrpcSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :authority, as: 'authority'
property :endpoint, as: 'endpoint'
property :payload_name, as: 'payloadName'
property :resend_interval, as: 'resendInterval', class: Google::Apis::ComputeV1::Duration, decorator: Google::Apis::ComputeV1::Duration::Representation
property :retry_duration_sec, as: 'retryDurationSec'
end
end
class NotificationEndpointList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::NotificationEndpoint, decorator: Google::Apis::ComputeV1::NotificationEndpoint::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeV1::NotificationEndpointList::Warning, decorator: Google::Apis::ComputeV1::NotificationEndpointList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::NotificationEndpointList::Warning::Datum, decorator: Google::Apis::ComputeV1::NotificationEndpointList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -169,7 +169,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of accelerator types available to the specified project.
# Retrieves a list of accelerator types that are available to the specified
# project.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -9139,8 +9140,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the list of referrers to instances contained within the specified
# zone. For more information, read Viewing Referrers to VM Instances.
# Retrieves a list of resources that refer to the VM instance specified in the
# request. For example, if the VM instance is part of a managed instance group,
# the referrers list includes the managed instance group. For more information,
# read Viewing Referrers to VM Instances.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -9754,7 +9757,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets an instance's scheduling options.
# Sets an instance's scheduling options. You can only call this method on a
# stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
# Instance Life Cycle for more information on the possible instance states.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -17014,6 +17019,282 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified regional HealthCheckService.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] health_check_service
# Name of the HealthCheckService to delete. The name must be 1-63 characters
# long, and comply with RFC1035.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_region_health_check_service(project, region, health_check_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['healthCheckService'] = health_check_service unless health_check_service.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified regional HealthCheckService resource.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] health_check_service
# Name of the HealthCheckService to update. The name must be 1-63 characters
# long, and comply with RFC1035.
# @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::ComputeV1::HealthCheckService] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::HealthCheckService]
#
# @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_region_health_check_service(project, region, health_check_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
command.response_representation = Google::Apis::ComputeV1::HealthCheckService::Representation
command.response_class = Google::Apis::ComputeV1::HealthCheckService
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['healthCheckService'] = health_check_service unless health_check_service.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
# Creates a regional HealthCheckService resource in the specified project and
# region using the data included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [Google::Apis::ComputeV1::HealthCheckService] health_check_service_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_region_health_check_service(project, region, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/healthCheckServices', options)
command.request_representation = Google::Apis::ComputeV1::HealthCheckService::Representation
command.request_object = health_check_service_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists all the HealthCheckService resources that have been configured for the
# specified project in the given region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named `example-instance` by specifying `name != example-instance`.
# You can also filter nested fields. For example, you could specify `scheduling.
# automaticRestart = false` to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
# expression. However, you can include `AND` and `OR` expressions explicitly.
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
# Broadwell") AND (scheduling.automaticRestart = true) ```
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than `maxResults`, Compute Engine returns a `
# nextPageToken` that can be used to get the next page of results in subsequent
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
# creationTimestamp` field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
# by a previous list request to get the next page of results.
# @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::ComputeV1::HealthCheckServicesList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::HealthCheckServicesList]
#
# @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_region_health_check_services(project, region, filter: nil, 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, '{project}/regions/{region}/healthCheckServices', options)
command.response_representation = Google::Apis::ComputeV1::HealthCheckServicesList::Representation
command.response_class = Google::Apis::ComputeV1::HealthCheckServicesList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.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
# Updates the specified regional HealthCheckService resource with the data
# included in the request. This method supports PATCH semantics and uses the
# JSON merge patch format and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] health_check_service
# Name of the HealthCheckService to update. The name must be 1-63 characters
# long, and comply with RFC1035.
# @param [Google::Apis::ComputeV1::HealthCheckService] health_check_service_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_region_health_check_service(project, region, health_check_service, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
command.request_representation = Google::Apis::ComputeV1::HealthCheckService::Representation
command.request_object = health_check_service_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['healthCheckService'] = health_check_service unless health_check_service.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified HealthCheck resource.
# @param [String] project
# Project ID for this request.
@ -18498,6 +18779,222 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified NotificationEndpoint in the given region
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] notification_endpoint
# Name of the NotificationEndpoint resource to delete.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_region_notification_endpoint(project, region, notification_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified NotificationEndpoint resource in the given region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] notification_endpoint
# Name of the NotificationEndpoint resource to return.
# @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::ComputeV1::NotificationEndpoint] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::NotificationEndpoint]
#
# @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_region_notification_endpoint(project, region, notification_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
command.response_representation = Google::Apis::ComputeV1::NotificationEndpoint::Representation
command.response_class = Google::Apis::ComputeV1::NotificationEndpoint
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.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
# Create a NotificationEndpoint in the specified project in the given region
# using the parameters that are included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [Google::Apis::ComputeV1::NotificationEndpoint] notification_endpoint_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_region_notification_endpoint(project, region, notification_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/notificationEndpoints', options)
command.request_representation = Google::Apis::ComputeV1::NotificationEndpoint::Representation
command.request_object = notification_endpoint_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists the NotificationEndpoints for a project in the given region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named `example-instance` by specifying `name != example-instance`.
# You can also filter nested fields. For example, you could specify `scheduling.
# automaticRestart = false` to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
# expression. However, you can include `AND` and `OR` expressions explicitly.
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
# Broadwell") AND (scheduling.automaticRestart = true) ```
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than `maxResults`, Compute Engine returns a `
# nextPageToken` that can be used to get the next page of results in subsequent
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
# creationTimestamp` field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
# by a previous list request to get the next page of results.
# @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::ComputeV1::NotificationEndpointList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::NotificationEndpointList]
#
# @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_region_notification_endpoints(project, region, filter: nil, 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, '{project}/regions/{region}/notificationEndpoints', options)
command.response_representation = Google::Apis::ComputeV1::NotificationEndpointList::Representation
command.response_class = Google::Apis::ComputeV1::NotificationEndpointList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.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
# Deletes the specified region-specific Operations resource.
# @param [String] project
# Project ID for this request.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2_1
VERSION = 'V2_1'
REVISION = '20200615'
REVISION = '20200617'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -11880,6 +11880,11 @@ module Google
class TestOrder
include Google::Apis::Core::Hashable
# Overrides the predefined delivery details if provided.
# Corresponds to the JSON property `deliveryDetails`
# @return [Google::Apis::ContentV2_1::TestOrderDeliveryDetails]
attr_accessor :delivery_details
# Whether the orderinvoices service should support this order.
# Corresponds to the JSON property `enableOrderinvoices`
# @return [Boolean]
@ -11902,6 +11907,11 @@ module Google
# @return [String]
attr_accessor :notification_mode
# Overrides the predefined pickup details if provided.
# Corresponds to the JSON property `pickupDetails`
# @return [Google::Apis::ContentV2_1::TestOrderPickupDetails]
attr_accessor :pickup_details
# Required. The billing address.
# Acceptable values are:
# - "`dwight`"
@ -11971,10 +11981,12 @@ module Google
# Update properties of this object
def update!(**args)
@delivery_details = args[:delivery_details] if args.key?(:delivery_details)
@enable_orderinvoices = args[:enable_orderinvoices] if args.key?(:enable_orderinvoices)
@kind = args[:kind] if args.key?(:kind)
@line_items = args[:line_items] if args.key?(:line_items)
@notification_mode = args[:notification_mode] if args.key?(:notification_mode)
@pickup_details = args[:pickup_details] if args.key?(:pickup_details)
@predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address)
@predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address)
@predefined_email = args[:predefined_email] if args.key?(:predefined_email)
@ -11985,6 +11997,100 @@ module Google
end
end
#
class TestOrderAddress
include Google::Apis::Core::Hashable
# CLDR country code (e.g. "US").
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# Strings representing the lines of the printed label for mailing the order, for
# example:
# John Smith
# 1600 Amphitheatre Parkway
# Mountain View, CA, 94043
# United States
# Corresponds to the JSON property `fullAddress`
# @return [Array<String>]
attr_accessor :full_address
# Whether the address is a post office box.
# Corresponds to the JSON property `isPostOfficeBox`
# @return [Boolean]
attr_accessor :is_post_office_box
alias_method :is_post_office_box?, :is_post_office_box
# City, town or commune. May also include dependent localities or sublocalities (
# e.g. neighborhoods or suburbs).
# Corresponds to the JSON property `locality`
# @return [String]
attr_accessor :locality
# Postal Code or ZIP (e.g. "94043").
# Corresponds to the JSON property `postalCode`
# @return [String]
attr_accessor :postal_code
# Name of the recipient.
# Corresponds to the JSON property `recipientName`
# @return [String]
attr_accessor :recipient_name
# Top-level administrative subdivision of the country. For example, a state like
# California ("CA") or a province like Quebec ("QC").
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# Street-level part of the address.
# Corresponds to the JSON property `streetAddress`
# @return [Array<String>]
attr_accessor :street_address
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country = args[:country] if args.key?(:country)
@full_address = args[:full_address] if args.key?(:full_address)
@is_post_office_box = args[:is_post_office_box] if args.key?(:is_post_office_box)
@locality = args[:locality] if args.key?(:locality)
@postal_code = args[:postal_code] if args.key?(:postal_code)
@recipient_name = args[:recipient_name] if args.key?(:recipient_name)
@region = args[:region] if args.key?(:region)
@street_address = args[:street_address] if args.key?(:street_address)
end
end
#
class TestOrderDeliveryDetails
include Google::Apis::Core::Hashable
# The delivery address
# Corresponds to the JSON property `address`
# @return [Google::Apis::ContentV2_1::TestOrderAddress]
attr_accessor :address
# The phone number of the person receiving the delivery.
# Corresponds to the JSON property `phoneNumber`
# @return [String]
attr_accessor :phone_number
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@address = args[:address] if args.key?(:address)
@phone_number = args[:phone_number] if args.key?(:phone_number)
end
end
#
class TestOrderLineItem
include Google::Apis::Core::Hashable
@ -12120,6 +12226,72 @@ module Google
end
end
#
class TestOrderPickupDetails
include Google::Apis::Core::Hashable
# Required. Code of the location defined by provider or merchant.
# Corresponds to the JSON property `locationCode`
# @return [String]
attr_accessor :location_code
# Required. Pickup location address.
# Corresponds to the JSON property `pickupLocationAddress`
# @return [Google::Apis::ContentV2_1::TestOrderAddress]
attr_accessor :pickup_location_address
# Pickup location type.
# Acceptable values are:
# - "`locker`"
# - "`store`"
# - "`curbside`"
# Corresponds to the JSON property `pickupLocationType`
# @return [String]
attr_accessor :pickup_location_type
# Required. all pickup persons set by users.
# Corresponds to the JSON property `pickupPersons`
# @return [Array<Google::Apis::ContentV2_1::TestOrderPickupDetailsPickupPerson>]
attr_accessor :pickup_persons
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@location_code = args[:location_code] if args.key?(:location_code)
@pickup_location_address = args[:pickup_location_address] if args.key?(:pickup_location_address)
@pickup_location_type = args[:pickup_location_type] if args.key?(:pickup_location_type)
@pickup_persons = args[:pickup_persons] if args.key?(:pickup_persons)
end
end
#
class TestOrderPickupDetailsPickupPerson
include Google::Apis::Core::Hashable
# Required. Full name of the pickup person.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. The phone number of the person picking up the items.
# Corresponds to the JSON property `phoneNumber`
# @return [String]
attr_accessor :phone_number
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@phone_number = args[:phone_number] if args.key?(:phone_number)
end
end
#
class TransitTable
include Google::Apis::Core::Hashable

View File

@ -1708,6 +1708,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TestOrderAddress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestOrderDeliveryDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestOrderLineItem
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1720,6 +1732,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TestOrderPickupDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestOrderPickupDetailsPickupPerson
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TransitTable
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -4885,11 +4909,15 @@ module Google
class TestOrder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :delivery_details, as: 'deliveryDetails', class: Google::Apis::ContentV2_1::TestOrderDeliveryDetails, decorator: Google::Apis::ContentV2_1::TestOrderDeliveryDetails::Representation
property :enable_orderinvoices, as: 'enableOrderinvoices'
property :kind, as: 'kind'
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2_1::TestOrderLineItem, decorator: Google::Apis::ContentV2_1::TestOrderLineItem::Representation
property :notification_mode, as: 'notificationMode'
property :pickup_details, as: 'pickupDetails', class: Google::Apis::ContentV2_1::TestOrderPickupDetails, decorator: Google::Apis::ContentV2_1::TestOrderPickupDetails::Representation
property :predefined_billing_address, as: 'predefinedBillingAddress'
property :predefined_delivery_address, as: 'predefinedDeliveryAddress'
property :predefined_email, as: 'predefinedEmail'
@ -4902,6 +4930,29 @@ module Google
end
end
class TestOrderAddress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :country, as: 'country'
collection :full_address, as: 'fullAddress'
property :is_post_office_box, as: 'isPostOfficeBox'
property :locality, as: 'locality'
property :postal_code, as: 'postalCode'
property :recipient_name, as: 'recipientName'
property :region, as: 'region'
collection :street_address, as: 'streetAddress'
end
end
class TestOrderDeliveryDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address', class: Google::Apis::ContentV2_1::TestOrderAddress, decorator: Google::Apis::ContentV2_1::TestOrderAddress::Representation
property :phone_number, as: 'phoneNumber'
end
end
class TestOrderLineItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4937,6 +4988,26 @@ module Google
end
end
class TestOrderPickupDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :location_code, as: 'locationCode'
property :pickup_location_address, as: 'pickupLocationAddress', class: Google::Apis::ContentV2_1::TestOrderAddress, decorator: Google::Apis::ContentV2_1::TestOrderAddress::Representation
property :pickup_location_type, as: 'pickupLocationType'
collection :pickup_persons, as: 'pickupPersons', class: Google::Apis::ContentV2_1::TestOrderPickupDetailsPickupPerson, decorator: Google::Apis::ContentV2_1::TestOrderPickupDetailsPickupPerson::Representation
end
end
class TestOrderPickupDetailsPickupPerson
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :phone_number, as: 'phoneNumber'
end
end
class TransitTable
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/bid-manager/
module DoubleclickbidmanagerV1_1
VERSION = 'V1_1'
REVISION = '20200316'
REVISION = '20200616'
# View and manage your reports in DoubleClick Bid Manager
AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'

View File

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

View File

@ -514,9 +514,10 @@ module Google
# @return [String]
attr_accessor :order_by
# Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of next_page_token in the response
# indicates that more results might be available.
# Optional. The maximum number of results to return from this request. Default
# is 50. If the value is negative or exceeds 1000, the request is rejected. The
# presence of next_page_token in the response indicates that more results might
# be available.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
@ -1192,7 +1193,15 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created,
# deleting or altering it stops data collection and makes the metric type's
# existing data unusable.
# existing data unusable.The following are specific rules for service defined
# Monitoring metric descriptors:
# type, metric_kind, value_type, description, display_name, launch_stage fields
# are all required. The unit field must be specified if the value_type is any
# of DOUBLE, INT64, DISTRIBUTION.
# Maximum of default 500 metric descriptors per service is allowed.
# Maximum of default 10 labels per metric descriptor is allowed.The default
# maximum limit can be overridden. Please follow https://cloud.google.com/
# monitoring/quotas
# Corresponds to the JSON property `metricDescriptor`
# @return [Google::Apis::LoggingV2::MetricDescriptor]
attr_accessor :metric_descriptor
@ -1383,7 +1392,15 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created,
# deleting or altering it stops data collection and makes the metric type's
# existing data unusable.
# existing data unusable.The following are specific rules for service defined
# Monitoring metric descriptors:
# type, metric_kind, value_type, description, display_name, launch_stage fields
# are all required. The unit field must be specified if the value_type is any
# of DOUBLE, INT64, DISTRIBUTION.
# Maximum of default 500 metric descriptors per service is allowed.
# Maximum of default 10 labels per metric descriptor is allowed.The default
# maximum limit can be overridden. Please follow https://cloud.google.com/
# monitoring/quotas
class MetricDescriptor
include Google::Apis::Core::Hashable
@ -1401,10 +1418,13 @@ module Google
attr_accessor :display_name
# The set of labels that can be used to describe a specific instance of this
# metric type. For example, the appengine.googleapis.com/http/server/
# response_latencies metric type has a label for the HTTP response code,
# response_code, so you can look at latencies for successful responses or just
# for responses that failed.
# metric type.The label key name must follow:
# Only upper and lower-case letters, digits and underscores (_) are allowed.
# Label name must start with a letter or digit.
# The maximum length of a label name is 100 characters.For example, the
# appengine.googleapis.com/http/server/response_latencies metric type has a
# label for the HTTP response code, response_code, so you can look at latencies
# for successful responses or just for responses that failed.
# Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::LoggingV2::LabelDescriptor>]
attr_accessor :labels
@ -1439,9 +1459,15 @@ module Google
attr_accessor :name
# The metric type, including its DNS name prefix. The type is not URL-encoded.
# All user-defined metric types have the DNS name custom.googleapis.com or
# external.googleapis.com. Metric types should use a natural hierarchical
# grouping. For example:
# All service defined metrics must be prefixed with the service name, in the
# format of `service name`/`relative metric name`, such as cloudsql.googleapis.
# com/database/cpu/utilization. The relative metric name must follow:
# Only upper and lower-case letters, digits, '/' and underscores '_' are
# allowed.
# The maximum number of characters allowed for the relative_metric_name is 100.
# All user-defined metric types have the DNS name custom.googleapis.com,
# external.googleapis.com, or logging.googleapis.com/user/.Metric types should
# use a natural hierarchical grouping. For example:
# "custom.googleapis.com/invoice/paid/amount"
# "external.googleapis.com/prometheus/up"
# "appengine.googleapis.com/http/server/response_latencies"
@ -1469,7 +1495,8 @@ module Google
# s second
# min minute
# h hour
# d dayPrefixes (PREFIX)
# d day
# 1 dimensionlessPrefixes (PREFIX)
# k kilo (10^3)
# M mega (10^6)
# G giga (10^9)
@ -1632,9 +1659,20 @@ module Google
# name and a set of labels. For example, the monitored resource descriptor for
# Google Compute Engine VM instances has a type of "gce_instance" and specifies
# the use of the labels "instance_id" and "zone" to identify particular VM
# instances.Different APIs can support different monitored resource types. APIs
# generally provide a list method that returns the monitored resource
# descriptors used by the API.
# instances.Different services can support different monitored resource types.
# The following are specific rules to service defined monitored resources for
# Monitoring and Logging:
# The type, display_name, description, labels and launch_stage fields are all
# required.
# The first label of the monitored resource descriptor must be
# resource_container. There are legacy monitored resource descritptors start
# with project_id.
# It must include a location label.
# Maximum of default 5 service defined monitored resource descriptors is
# allowed per service.
# Maximum of default 10 labels per monitored resource is allowed.The default
# maximum limit can be overridden. Please follow https://cloud.google.com/
# monitoring/quotas
class MonitoredResourceDescriptor
include Google::Apis::Core::Hashable
@ -1652,8 +1690,12 @@ module Google
attr_accessor :display_name
# Required. A set of labels used to describe instances of this monitored
# resource type. For example, an individual Google Cloud SQL database is
# identified by values for the labels "database_id" and "zone".
# resource type. The label key name must follow:
# Only upper and lower-case letters, digits and underscores (_) are allowed.
# Label name must start with a letter or digit.
# The maximum length of a label name is 100 characters.For example, an
# individual Google Cloud SQL database is identified by values for the labels
# database_id and location.
# Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::LoggingV2::LabelDescriptor>]
attr_accessor :labels
@ -1673,9 +1715,15 @@ module Google
# @return [String]
attr_accessor :name
# Required. The monitored resource type. For example, the type "
# cloudsql_database" represents databases in Google Cloud SQL. The maximum
# length of this value is 256 characters.
# Required. The monitored resource type. For example, the type cloudsql_database
# represents databases in Google Cloud SQL.All service defined monitored
# resource types must be prefixed with the service name, in the format of `
# service name`/`relative resource name`. The relative resource name must follow:
# Only upper and lower-case letters and digits are allowed.
# It must start with upper case character and is recommended to use Upper Camel
# Case style.
# The maximum number of characters allowed for the relative_resource_name is
# 100.Note there are legacy service monitored resources not following this rule.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type

View File

@ -18,7 +18,7 @@ require 'google/apis/run_v1/representations.rb'
module Google
module Apis
# Cloud Run API
# Cloud Run Admin API
#
# Deploy and manage user provided container images that scale automatically
# based on HTTP traffic.
@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/run/
module RunV1
VERSION = 'V1'
REVISION = '20200616'
REVISION = '20200622'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2449,7 +2449,12 @@ module Google
# @return [String]
attr_accessor :service_account_name
#
# TimeoutSeconds holds the max duration the instance is allowed for
# responding to a request.
# Cloud Run fully managed: defaults to 300 seconds (5 minutes). Maximum
# allowed value is 900 seconds (15 minutes).
# Cloud Run for Anthos: defaults to 300 seconds (5 minutes). Maximum allowed
# value is configurable by the cluster operator.
# Corresponds to the JSON property `timeoutSeconds`
# @return [Fixnum]
attr_accessor :timeout_seconds

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google
module Apis
module RunV1
# Cloud Run API
# Cloud Run Admin API
#
# Deploy and manage user provided container images that scale automatically
# based on HTTP traffic.

View File

@ -18,7 +18,7 @@ require 'google/apis/run_v1alpha1/representations.rb'
module Google
module Apis
# Cloud Run API
# Cloud Run Admin API
#
# Deploy and manage user provided container images that scale automatically
# based on HTTP traffic.
@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/run/
module RunV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200616'
REVISION = '20200622'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google
module Apis
module RunV1alpha1
# Cloud Run API
# Cloud Run Admin API
#
# Deploy and manage user provided container images that scale automatically
# based on HTTP traffic.

View File

@ -18,7 +18,7 @@ require 'google/apis/run_v1beta1/representations.rb'
module Google
module Apis
# Cloud Run API
# Cloud Run Admin API
#
# Deploy and manage user provided container images that scale automatically
# based on HTTP traffic.
@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/run/
module RunV1beta1
VERSION = 'V1beta1'
REVISION = '20200616'
REVISION = '20200622'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google
module Apis
module RunV1beta1
# Cloud Run API
# Cloud Run Admin API
#
# Deploy and manage user provided container images that scale automatically
# based on HTTP traffic.

View File

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

View File

@ -1462,6 +1462,11 @@ module Google
# @return [String]
attr_accessor :end_time
# Unimplemented.
# Corresponds to the JSON property `extensions`
# @return [Array<Hash<String,Object>>]
attr_accessor :extensions
# DO NOT USE. This is an experimental field.
# Corresponds to the JSON property `importance`
# @return [String]
@ -1559,6 +1564,7 @@ module Google
def update!(**args)
@consumer_id = args[:consumer_id] if args.key?(:consumer_id)
@end_time = args[:end_time] if args.key?(:end_time)
@extensions = args[:extensions] if args.key?(:extensions)
@importance = args[:importance] if args.key?(:importance)
@labels = args[:labels] if args.key?(:labels)
@log_entries = args[:log_entries] if args.key?(:log_entries)

View File

@ -637,6 +637,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_id, as: 'consumerId'
property :end_time, as: 'endTime'
collection :extensions, as: 'extensions'
property :importance, as: 'importance'
hash :labels, as: 'labels'
collection :log_entries, as: 'logEntries', class: Google::Apis::ServicecontrolV1::LogEntry, decorator: Google::Apis::ServicecontrolV1::LogEntry::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/text-to-speech/
module TexttospeechV1
VERSION = 'V1'
REVISION = '20200605'
REVISION = '20200619'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/text-to-speech/
module TexttospeechV1beta1
VERSION = 'V1beta1'
REVISION = '20200605'
REVISION = '20200619'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'