Autogenerated update (2018-11-07)

Update:
- alertcenter_v1beta1
- androidenterprise_v1
- cloudasset_v1beta1
- compute_alpha
- compute_beta
- compute_v1
- sqladmin_v1beta4
- vault_v1
This commit is contained in:
Google APIs committed 2018-11-07 00:36:14 +00:00
1 parent eefc74fbdc
commit db507dcb9b
28 files changed
+3300 -823

No files matched your search

+2 -3
View File
@@ -20,13 +20,12 @@ module Google
module Apis
# G Suite Alert Center API
#
# G Suite Alert Center API to view and manage alerts on issues affecting your
# domain.
# Manages alerts on issues affecting your domain.
#
# @see https://developers.google.com/admin-sdk/alertcenter/
module AlertcenterV1beta1
VERSION = 'V1beta1'
REVISION = '20181018'
REVISION = '20181103'
end
end
end
@@ -26,12 +26,12 @@ module Google
class AccountWarning
include Google::Apis::Core::Hashable
# Required. Email of the user that this event belongs to.
# Required. The email of the user that this event belongs to.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# Details of the login action
# The details of the login action.
# Corresponds to the JSON property `loginDetails`
# @return [Google::Apis::AlertcenterV1beta1::LoginDetails]
attr_accessor :login_details
@@ -57,7 +57,7 @@ module Google
# @return [String]
attr_accessor :alert_id
# Output only. The time this alert was created. Assigned by the server.
# Output only. The time this alert was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
@@ -67,70 +67,53 @@ module Google
# @return [String]
attr_accessor :customer_id
# Optional. Specific data associated with this alert.
# e.g. google.apps.alertcenter.type.DeviceCompromised.
# Optional. The data associated with this alert, for example
# google.apps.alertcenter.type.DeviceCompromised.
# Corresponds to the JSON property `data`
# @return [Hash<String,Object>]
attr_accessor :data
# Output only. Whether this alert has been marked for deletion.
# Output only. `True` if this alert is marked for deletion.
# Corresponds to the JSON property `deleted`
# @return [Boolean]
attr_accessor :deleted
alias_method :deleted?, :deleted
# Optional. The time this alert was no longer active. If provided, the
# end time must not be earlier than the start time. If not provided, the end
# time will default to the start time.
# Optional. The time the event that caused this alert ceased being active.
# If provided, the end time must not be earlier than the start time.
# If not provided, the end time defaults to the start time.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Output only. An optional Security Investigation Tool query for this
# alert.
# Output only. An optional
# [Security Investigation Tool](https://support.google.com/a/answer/7575955)
# query for this alert.
# Corresponds to the JSON property `securityInvestigationToolLink`
# @return [String]
attr_accessor :security_investigation_tool_link
# Required. A unique identifier for the system that is reported the alert.
# Supported sources are any of the following:
# * "Google Operations"
# * "Mobile device management"
# * "Gmail phishing"
# * "Domain wide takeout"
# * "Government attack warning"
# * "Google identity"
# * Google Operations
# * Mobile device management
# * Gmail phishing
# * Domain wide takeout
# * Government attack warning
# * Google identity
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
# Required. The time this alert became active.
# Required. The time the event that caused this alert was started or
# detected.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Required. The type of the alert.
# Supported types are any of the following:
# * "Google Operations"
# * "Device compromised"
# * "Suspicious activity"
# * "User reported phishing"
# * "Misconfigured whitelist"
# * "Customer takeout initiated"
# * "Government attack warning"
# * "User reported spam spike"
# * "Suspicious message reported"
# * "Phishing reclassification"
# * "Malware reclassification"
# LINT.IfChange
# * "Suspicious login"
# * "Suspicious login (less secure app)"
# * "User suspended"
# * "Leaked password"
# * "User suspended (suspicious activity)"
# * "User suspended (spam)"
# * "User suspended (spam through relay)"
# LINT.ThenChange(//depot/google3/apps/albert/data/albert_enums.proto)
# For a list of available alert types see
# [G Suite Alert types](/admin-sdk/alertcenter/reference/alert-types).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@@ -163,7 +146,7 @@ module Google
# @return [String]
attr_accessor :alert_id
# Output only. The time this feedback was created. Assigned by the server.
# Output only. The time this feedback was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
@@ -178,8 +161,7 @@ module Google
# @return [String]
attr_accessor :email
# Output only. A unique identifier for the feedback. When creating a new
# feedback the system will assign one.
# Output only. The unique identifier for the feedback.
# Corresponds to the JSON property `feedbackId`
# @return [String]
attr_accessor :feedback_id
@@ -208,7 +190,7 @@ module Google
class Attachment
include Google::Apis::Core::Hashable
# Representation of a CSV file attachment, as a list of column headers and
# A representation of a CSV file attachment, as a list of column headers and
# a list of data rows.
# Corresponds to the JSON property `csv`
# @return [Google::Apis::AlertcenterV1beta1::Csv]
@@ -224,12 +206,12 @@ module Google
end
end
# Alert for setting the domain or ip that malicious email comes from as
# whitelisted domain or ip in Gmail advanced settings.
# Alert for setting the domain or IP that malicious email comes from as
# whitelisted domain or IP in Gmail advanced settings.
class BadWhitelist
include Google::Apis::Core::Hashable
# Domain id of Gmail phishing alerts.
# Domain ID of Gmail phishing alerts.
# Corresponds to the JSON property `domainId`
# @return [Google::Apis::AlertcenterV1beta1::DomainId]
attr_accessor :domain_id
@@ -239,12 +221,13 @@ module Google
# @return [Google::Apis::AlertcenterV1beta1::MaliciousEntity]
attr_accessor :malicious_entity
# Every alert could contain multiple messages.
# The list of messages contained by this alert.
# Corresponds to the JSON property `messages`
# @return [Array<Google::Apis::AlertcenterV1beta1::GmailMessageInfo>]
attr_accessor :messages
# The source ip address of the malicious email. e.g. "127.0.0.1".
# The source IP address of the malicious email, for example,
# `127.0.0.1`.
# Corresponds to the JSON property `sourceIp`
# @return [String]
attr_accessor :source_ip
@@ -262,18 +245,18 @@ module Google
end
end
# Representation of a CSV file attachment, as a list of column headers and
# A representation of a CSV file attachment, as a list of column headers and
# a list of data rows.
class Csv
include Google::Apis::Core::Hashable
# List of data rows in a CSV file, as string arrays rather than as a
# The list of data rows in a CSV file, as string arrays rather than as a
# single comma-separated string.
# Corresponds to the JSON property `dataRows`
# @return [Array<Google::Apis::AlertcenterV1beta1::CsvRow>]
attr_accessor :data_rows
# List of headers for data columns in a CSV file.
# The list of headers for data columns in a CSV file.
# Corresponds to the JSON property `headers`
# @return [Array<String>]
attr_accessor :headers
@@ -289,12 +272,12 @@ module Google
end
end
# Representation of a single data row in a CSV file.
# A representation of a single data row in a CSV file.
class CsvRow
include Google::Apis::Core::Hashable
# Data entries in a CSV file row, as a string array rather than a single
# comma-separated string.
# The data entries in a CSV file row, as a string array rather than a
# single comma-separated string.
# Corresponds to the JSON property `entries`
# @return [Array<String>]
attr_accessor :entries
@@ -318,7 +301,7 @@ module Google
# @return [String]
attr_accessor :email
# Required. List of security events.
# Required. The list of security events.
# Corresponds to the JSON property `events`
# @return [Array<Google::Apis::AlertcenterV1beta1::DeviceCompromisedSecurityDetail>]
attr_accessor :events
@@ -338,12 +321,13 @@ module Google
class DeviceCompromisedSecurityDetail
include Google::Apis::Core::Hashable
# Device compromised state includes: "Compromised" and "Not Compromised".
# The device compromised state. Possible values are "`Compromised`" or
# "`Not Compromised`".
# Corresponds to the JSON property `deviceCompromisedState`
# @return [String]
attr_accessor :device_compromised_state
# Required. Device Info.
# Required. The device ID.
# Corresponds to the JSON property `deviceId`
# @return [String]
attr_accessor :device_id
@@ -358,12 +342,12 @@ module Google
# @return [String]
attr_accessor :device_type
# Required for IOS, empty for others.
# Required for iOS, empty for others.
# Corresponds to the JSON property `iosVendorId`
# @return [String]
attr_accessor :ios_vendor_id
# The device resource id.
# The device resource ID.
# Corresponds to the JSON property `resourceId`
# @return [String]
attr_accessor :resource_id
@@ -389,7 +373,7 @@ module Google
end
end
# Domain id of Gmail phishing alerts.
# Domain ID of Gmail phishing alerts.
class DomainId
include Google::Apis::Core::Hashable
@@ -413,12 +397,12 @@ module Google
class DomainWideTakeoutInitiated
include Google::Apis::Core::Hashable
# Email of the admin who initiated the takeout.
# The email of the admin who initiated the takeout.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# takeout request id.
# The takeout request ID.
# Corresponds to the JSON property `takeoutRequestId`
# @return [String]
attr_accessor :takeout_request_id
@@ -457,7 +441,7 @@ module Google
class GmailMessageInfo
include Google::Apis::Core::Hashable
# SHA256 Hash of email's attachment and all MIME parts.
# The `SHA256` hash of email's attachment and all MIME parts.
# Corresponds to the JSON property `attachmentsSha256Hash`
# @return [Array<String>]
attr_accessor :attachments_sha256_hash
@@ -467,32 +451,32 @@ module Google
# @return [String]
attr_accessor :date
# Hash of message body text.
# The hash of the message body text.
# Corresponds to the JSON property `md5HashMessageBody`
# @return [String]
attr_accessor :md5_hash_message_body
# MD5 Hash of email's subject. (Only available for reported emails).
# The MD5 Hash of email's subject (only available for reported emails).
# Corresponds to the JSON property `md5HashSubject`
# @return [String]
attr_accessor :md5_hash_subject
# Snippet of the message body text. (Only available for reported emails)
# The snippet of the message body text (only available for reported emails).
# Corresponds to the JSON property `messageBodySnippet`
# @return [String]
attr_accessor :message_body_snippet
# Message id.
# The message ID.
# Corresponds to the JSON property `messageId`
# @return [String]
attr_accessor :message_id
# Recipient of this email.
# The recipient of this email.
# Corresponds to the JSON property `recipient`
# @return [String]
attr_accessor :recipient
# Email subject text. (Only available for reported emails).
# The email subject text (only available for reported emails).
# Corresponds to the JSON property `subjectText`
# @return [String]
attr_accessor :subject_text
@@ -518,7 +502,7 @@ module Google
class GoogleOperations
include Google::Apis::Core::Hashable
# List of emails which correspond to the users directly affected by the
# The list of emails which correspond to the users directly affected by the
# incident.
# Corresponds to the JSON property `affectedUserEmails`
# @return [Array<String>]
@@ -529,12 +513,12 @@ module Google
# @return [Google::Apis::AlertcenterV1beta1::Attachment]
attr_accessor :attachment_data
# Detailed, freeform incident description.
# A detailed, freeform incident description.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# One-line incident description.
# A one-line incident description.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
@@ -557,7 +541,7 @@ module Google
include Google::Apis::Core::Hashable
# The list of alert feedback.
# Result is ordered descending by creation time.
# Feedback entries for each alert are ordered by creation time descending.
# Corresponds to the JSON property `feedback`
# @return [Array<Google::Apis::AlertcenterV1beta1::AlertFeedback>]
attr_accessor :feedback
@@ -581,9 +565,10 @@ module Google
# @return [Array<Google::Apis::AlertcenterV1beta1::Alert>]
attr_accessor :alerts
# If not empty, indicates that there may be more alerts that match the
# request; this value can be passed in a new ListAlertsRequest to get the
# next page of values.
# The token for the next page. If not empty, indicates that there may be more
# alerts that match the listing request; this value can be used in a
# subsequent ListAlertsRequest to get alerts continuing from last result
# of the current list call.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@@ -599,17 +584,18 @@ module Google
end
end
# Details of the login action
# The details of the login action.
class LoginDetails
include Google::Apis::Core::Hashable
# Optional. Human readable IP address (e.g., 11.22.33.44) that is
# associated with the warning event.
# Optional. The human-readable IP address (for example,
# `11.22.33.44`) that is associated with the warning event.
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
# Optional. Login time that is associated with the warning event.
# Optional. The successful login time that is associated with the warning
# event. This will not be present for blocked login attempts.
# Corresponds to the JSON property `loginTime`
# @return [String]
attr_accessor :login_time
@@ -627,20 +613,20 @@ module Google
# Proto for all phishing alerts with common payload.
# Supported types are any of the following:
# User reported phishing
# User reported spam spike
# Suspicious message reported
# Phishing reclassification
# Malware reclassification
# * User reported phishing
# * User reported spam spike
# * Suspicious message reported
# * Phishing reclassification
# * Malware reclassification
class MailPhishing
include Google::Apis::Core::Hashable
# Domain id of Gmail phishing alerts.
# Domain ID of Gmail phishing alerts.
# Corresponds to the JSON property `domainId`
# @return [Google::Apis::AlertcenterV1beta1::DomainId]
attr_accessor :domain_id
# If true, the email is originated from within the organization.
# If `true`, the email originated from within the organization.
# Corresponds to the JSON property `isInternal`
# @return [Boolean]
attr_accessor :is_internal
@@ -651,7 +637,7 @@ module Google
# @return [Google::Apis::AlertcenterV1beta1::MaliciousEntity]
attr_accessor :malicious_entity
# Every alert could contain multiple messages.
# The list of messages contained by this alert.
# Corresponds to the JSON property `messages`
# @return [Array<Google::Apis::AlertcenterV1beta1::GmailMessageInfo>]
attr_accessor :messages
@@ -673,7 +659,7 @@ module Google
class MaliciousEntity
include Google::Apis::Core::Hashable
# Sender email address.
# The sender email address.
# Corresponds to the JSON property `fromHeader`
# @return [String]
attr_accessor :from_header
@@ -689,16 +675,18 @@ module Google
end
# Alert for a spike in user reported phishing.
# This will be deprecated in favor of MailPhishing.
# <aside class="warning"><b>Warning</b>: This type has been deprecated. Use
# [MailPhishing](/admin-sdk/alertcenter/reference/rest/v1beta1/MailPhishing)
# instead.</aside>
class PhishingSpike
include Google::Apis::Core::Hashable
# Domain id of Gmail phishing alerts.
# Domain ID of Gmail phishing alerts.
# Corresponds to the JSON property `domainId`
# @return [Google::Apis::AlertcenterV1beta1::DomainId]
attr_accessor :domain_id
# If true, the email is originated from within the organization.
# If `true`, the email originated from within the organization.
# Corresponds to the JSON property `isInternal`
# @return [Boolean]
attr_accessor :is_internal
@@ -709,7 +697,7 @@ module Google
# @return [Google::Apis::AlertcenterV1beta1::MaliciousEntity]
attr_accessor :malicious_entity
# Every alert could contain multiple messages.
# The list of messages contained by this alert.
# Corresponds to the JSON property `messages`
# @return [Array<Google::Apis::AlertcenterV1beta1::GmailMessageInfo>]
attr_accessor :messages
@@ -727,7 +715,7 @@ module Google
end
end
# A state sponsored attack alert. Derived from audit logs.
# A state-sponsored attack alert. Derived from audit logs.
class StateSponsoredAttack
include Google::Apis::Core::Hashable
@@ -755,7 +743,7 @@ module Google
# @return [String]
attr_accessor :email
# Required. List of security events.
# Required. The list of security events.
# Corresponds to the JSON property `events`
# @return [Array<Google::Apis::AlertcenterV1beta1::SuspiciousActivitySecurityDetail>]
attr_accessor :events
@@ -775,7 +763,7 @@ module Google
class SuspiciousActivitySecurityDetail
include Google::Apis::Core::Hashable
# Required. Device Info.
# Required. The device ID.
# Corresponds to the JSON property `deviceId`
# @return [String]
attr_accessor :device_id
@@ -785,7 +773,7 @@ module Google
# @return [String]
attr_accessor :device_model
# Device property which is changed.
# The device property which was changed.
# Corresponds to the JSON property `deviceProperty`
# @return [String]
attr_accessor :device_property
@@ -795,22 +783,22 @@ module Google
# @return [String]
attr_accessor :device_type
# Required for IOS, empty for others.
# Required for iOS, empty for others.
# Corresponds to the JSON property `iosVendorId`
# @return [String]
attr_accessor :ios_vendor_id
# New value of the device property after change.
# The new value of the device property after the change.
# Corresponds to the JSON property `newValue`
# @return [String]
attr_accessor :new_value
# Old value of the device property before change.
# The old value of the device property before the change.
# Corresponds to the JSON property `oldValue`
# @return [String]
attr_accessor :old_value
# The device resource id.
# The device resource ID.
# Corresponds to the JSON property `resourceId`
# @return [String]
attr_accessor :resource_id
@@ -22,8 +22,7 @@ module Google
module AlertcenterV1beta1
# G Suite Alert Center API
#
# G Suite Alert Center API to view and manage alerts on issues affecting your
# domain.
# Manages alerts on issues affecting your domain.
#
# @example
# require 'google/apis/alertcenter_v1beta1'
@@ -49,17 +48,16 @@ module Google
end
# Marks the specified alert for deletion. An alert that has been marked for
# deletion will be excluded from the results of a List operation by default,
# and will be removed from the Alert Center after 30 days.
# Marking an alert for deletion will have no effect on an alert which has
# deletion is removed from Alert Center after 30 days.
# Marking an alert for deletion has no effect on an alert which has
# already been marked for deletion. Attempting to mark a nonexistent alert
# for deletion will return NOT_FOUND.
# for deletion results in a `NOT_FOUND` error.
# @param [String] alert_id
# Required. The identifier of the alert to delete.
# @param [String] customer_id
# Optional. The unique identifier of the Google account of the customer the
# alert is associated with. This is obfuscated and not the plain customer
# ID as stored internally. Inferred from the caller identity if not provided.
# Optional. The unique identifier of the G Suite organization account of the
# customer the alert is associated with.
# Inferred from the caller identity if not provided.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -91,10 +89,11 @@ module Google
# Gets the specified alert.
# @param [String] alert_id
# Required. The identifier of the alert to retrieve.
# Returns a NOT_FOUND error if no such alert.
# @param [String] customer_id
# Optional. The unique identifier of the Google account of the customer the
# alert is associated with. This is obfuscated and not the plain customer
# ID as stored internally. Inferred from the caller identity if not provided.
# Optional. The unique identifier of the G Suite organization account of the
# customer the alert is associated with.
# Inferred from the caller identity if not provided.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -123,67 +122,30 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists all the alerts for the current user and application.
# Lists the alerts.
# @param [String] customer_id
# Optional. The unique identifier of the Google account of the customer the
# alerts are associated with. This is obfuscated and not the plain
# customer ID as stored internally. Inferred from the caller identity if not
# provided.
# Optional. The unique identifier of the G Suite organization account of the
# customer the alerts are associated with.
# Inferred from the caller identity if not provided.
# @param [String] filter
# Optional. Query string for filtering alert results.
# This string must be specified as an expression or list of expressions,
# using the following grammar:
# ### Expressions
# An expression has the general form `<field> <operator> <value>`.
# A field or value which contains a space or a colon must be enclosed by
# double quotes.
# #### Operators
# Operators follow the BNF specification:
# `<equalityOperator> ::= "=" | ":"`
# `<relationalOperator> ::= "<" | ">" | "<=" | ">="`
# Relational operators are defined only for timestamp fields. Equality
# operators are defined only for string fields.
# #### Timestamp fields
# The value supplied for a timestamp field must be an
# [RFC 3339](https://tools.ietf.org/html/rfc3339) date-time string.
# Supported timestamp fields are `create_time`, `start_time`, and `end_time`.
# #### String fields
# The value supplied for a string field may be an arbitrary string.
# #### Examples
# To query for all alerts created on or after April 5, 2018:
# `create_time >= "2018-04-05T00:00:00Z"`
# To query for all alerts from the source "Gmail phishing":
# `source:"Gmail phishing"`
# ### Joining expressions
# Expressions may be joined to form a more complex query. The BNF
# specification is:
# `<expressionList> ::= <expression> | <expressionList> <conjunction>
# <expressionList> | <negation> <expressionList>`
# `<conjunction> ::= "AND" | "OR" | ""`
# `<negation> ::= "NOT"`
# Using the empty string as a conjunction acts as an implicit AND.
# The precedence of joining operations, from highest to lowest, is NOT, AND,
# OR.
# #### Examples
# To query for all alerts which started in 2017:
# `start_time >= "2017-01-01T00:00:00Z" AND start_time <
# "2018-01-01T00:00:00Z"`
# To query for all user reported phishing alerts from the source
# "Gmail phishing":
# `type:"User reported phishing" source:"Gmail phishing"`
# Optional. A query string for filtering alert results.
# For more details, see [Query
# filters](/admin-sdk/alertcenter/guides/query-filters) and [Supported
# query filter fields](/admin-sdk/alertcenter/reference/filter-fields).
# @param [String] order_by
# Optional. Sort the list results by a certain order.
# Optional. The sort order of the list results.
# If not specified results may be returned in arbitrary order.
# You can sort the results in a descending order based on the creation
# timestamp using order_by="create_time desc".
# Currently, only sorting by create_time desc is supported.
# You can sort the results in descending order based on the creation
# timestamp using `order_by="create_time desc"`.
# Currently, only sorting by `create_time desc` is supported.
# @param [Fixnum] page_size
# Optional. Requested page size. Server may return fewer items than
# requested. If unspecified, server will pick an appropriate default.
# Optional. The requested page size. Server may return fewer items than
# requested. If unspecified, server picks an appropriate default.
# @param [String] page_token
# Optional. A token identifying a page of results the server should return.
# If empty, a new iteration is started. To continue an iteration, pass in
# the value from the previous ListAlertsResponse's next_page_token field.
# the value from the previous ListAlertsResponse's
# next_page_token field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -215,16 +177,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new alert feedback.
# Creates new feedback for an alert.
# @param [String] alert_id
# Required. The identifier of the alert this feedback belongs to.
# Returns a NOT_FOUND error if no such alert.
# Returns a `NOT_FOUND` error if no such alert.
# @param [Google::Apis::AlertcenterV1beta1::AlertFeedback] alert_feedback_object
# @param [String] customer_id
# Optional. The unique identifier of the Google account of the customer the
# alert's feedback is associated with. This is obfuscated and not the
# plain customer ID as stored internally. Inferred from the caller identity
# if not provided.
# Optional. The unique identifier of the G Suite organization account of the
# customer the alert is associated with.
# Inferred from the caller identity if not provided.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -258,11 +219,12 @@ module Google
# Lists all the feedback for an alert.
# @param [String] alert_id
# Required. The alert identifier.
# If the alert does not exist returns a NOT_FOUND error.
# The "-" wildcard could be used to represent all alerts.
# If alert does not exist returns a `NOT_FOUND` error.
# @param [String] customer_id
# Optional. The unique identifier of the Google account of the customer the
# alert is associated with. This is obfuscated and not the plain customer
# ID as stored internally. Inferred from the caller identity if not provided.
# Optional. The unique identifier of the G Suite organization account of the
# customer the alert feedback are associated with.
# Inferred from the caller identity if not provided.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20181024'
REVISION = '20181105'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -429,20 +429,20 @@ module Google
class AppVersion
include Google::Apis::Core::Hashable
# True if this version is a production Apk.
# True if this version is a production APK.
# Corresponds to the JSON property `isProduction`
# @return [Boolean]
attr_accessor :is_production
alias_method :is_production?, :is_production
# The track that this app was published in. For example if track is "alpha",
# this is an alpha version of the app. Deprecated, use track_id instead.
# Deprecated, use trackId instead.
# Corresponds to the JSON property `track`
# @return [String]
attr_accessor :track
# The track ids that this version was published in. This field supersedes track,
# but doesn't include the production track.
# Track ids that the app version is published in. Replaces the track field (
# deprecated), but doesn't include the production track (see isProduction
# instead).
# Corresponds to the JSON property `trackId`
# @return [Array<String>]
attr_accessor :track_id
@@ -1792,7 +1792,7 @@ module Google
class Product
include Google::Apis::Core::Hashable
# The tracks that are visible to the enterprise with their user-friendly name.
# The tracks visible to the enterprise.
# Corresponds to the JSON property `appTracks`
# @return [Array<Google::Apis::AndroidenterpriseV1::TrackInfo>]
attr_accessor :app_tracks
@@ -1812,8 +1812,7 @@ module Google
# @return [Array<String>]
attr_accessor :available_countries
# The tracks that are visible to the enterprise. Deprecated, use app_tracks
# instead.
# Deprecated, use appTracks instead.
# Corresponds to the JSON property `availableTracks`
# @return [Array<String>]
attr_accessor :available_tracks
@@ -2084,27 +2083,14 @@ module Google
# @return [String]
attr_accessor :product_id
# Grants visibility to the specified track(s) of the product to the device. The
# existing track ids can be obtained by calling Products.Get.
# Grants the device visibility to the specified product release track(s),
# identified by trackIds. The list of release tracks of a product can be
# obtained by calling Products.Get.
# Corresponds to the JSON property `trackIds`
# @return [Array<String>]
attr_accessor :track_ids
# Grants visibility to the specified track(s) of the product to the device. The
# track available to the device is based on the following order of preference:
# alpha, beta, production. For example, if an app has a prod version, a beta
# version and an alpha version and the enterprise has been granted visibility to
# both the alpha and beta tracks, if tracks is `"beta", "production"` then the
# beta version of the app is made available to the device. If there are no app
# versions in the specified track adding the "alpha" and "beta" values to the
# list of tracks will have no effect. Note that the enterprise requires access
# to alpha and/or beta tracks before users can be granted visibility to apps in
# those tracks.
# The allowed sets are: `` (considered equivalent to `"production"`) `"
# production"` `"beta", "production"` `"alpha", "beta", "production"` The order
# of elements is not relevant. Any other set of tracks will be rejected with an
# error.
# This is deprecated. Use track_ids instead.
# Deprecated. Use trackIds instead.
# Corresponds to the JSON property `tracks`
# @return [Array<String>]
attr_accessor :tracks
@@ -2210,27 +2196,13 @@ module Google
# @return [String]
attr_accessor :product_id
# Grants visibility to the specified track(s) of the product to the user. This
# replaces the tracks field, and specifies the track by their unique id.
# Grants the user visibility to the specified product track(s), identified by
# trackIds.
# Corresponds to the JSON property `trackIds`
# @return [Array<String>]
attr_accessor :track_ids
# Grants visibility to the specified track(s) of the product to the user. The
# track available to the user is based on the following order of preference:
# alpha, beta, production. For example, if an app has a prod version, a beta
# version and an alpha version and the enterprise has been granted visibility to
# both the alpha and beta tracks, if tracks is `"beta", "production"` the user
# will be able to install the app and they will get the beta version of the app.
# If there are no app versions in the specified track adding the "alpha" and "
# beta" values to the list of tracks will have no effect. Note that the
# enterprise requires access to alpha and/or beta tracks before users can be
# granted visibility to apps in those tracks.
# The allowed sets are: `` (considered equivalent to `"production"`) `"
# production"` `"beta", "production"` `"alpha", "beta", "production"` The order
# of elements is not relevant. Any other set of tracks will be rejected with an
# error.
# This is deprecated. Use track_ids instead.
# Deprecated. Use trackIds instead.
# Corresponds to the JSON property `tracks`
# @return [Array<String>]
attr_accessor :tracks
@@ -2695,12 +2667,15 @@ module Google
class TrackInfo
include Google::Apis::Core::Hashable
# A changeable, user-friendly name for a track.
# A modifiable name for a track. This is the visible name in the play developer
# console.
# Corresponds to the JSON property `trackAlias`
# @return [String]
attr_accessor :track_alias
# A unique an unchangeable identifier of a test track.
# Unmodifiable, unique track identifier. This identifier is the releaseTrackId
# in the url of the play developer console page that displays the track
# information.
# Corresponds to the JSON property `trackId`
# @return [String]
attr_accessor :track_id
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview
module CloudassetV1beta1
VERSION = 'V1beta1'
REVISION = '20181008'
REVISION = '20181105'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -289,6 +289,10 @@ module Google
# A list of asset types of which to take a snapshot for. For example:
# "google.compute.disk". If specified, only matching assets will be returned.
# See [Introduction to Cloud Asset
# Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-
# inventory/overview)
# for all supported asset types.
# Corresponds to the JSON property `assetTypes`
# @return [Array<String>]
attr_accessor :asset_types
@@ -377,10 +381,10 @@ module Google
class GcsDestination
include Google::Apis::Core::Hashable
# The path of the Cloud Storage objects. It's the same path that is used by
# gsutil. For example: "gs://bucket_name/object_path". See [Viewing and Editing
# Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-
# metadata)
# The uri of the Cloud Storage object. It's the same uri that is used by
# gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
# Editing Object
# Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
# for more information.
# Corresponds to the JSON property `uri`
# @return [String]
@@ -751,7 +755,7 @@ module Google
attr_accessor :deleted
alias_method :deleted?, :deleted
# A time window of [start_time, end_time).
# A time window of (start_time, end_time].
# Corresponds to the JSON property `window`
# @return [Google::Apis::CloudassetV1beta1::TimeWindow]
attr_accessor :window
@@ -768,17 +772,17 @@ module Google
end
end
# A time window of [start_time, end_time).
# A time window of (start_time, end_time].
class TimeWindow
include Google::Apis::Core::Hashable
# End time of the time window (exclusive).
# End time of the time window (inclusive).
# Current timestamp if not specified.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Start time of the time window (inclusive).
# Start time of the time window (exclusive).
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
@@ -47,6 +47,38 @@ module Google
@batch_path = 'batch'
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudassetV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1beta1::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 get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudassetV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Batch gets the update history of assets that overlap a time window.
# For RESOURCE content, this API outputs history with asset in both
# non-delete or deleted status.
@@ -68,10 +100,10 @@ module Google
# @param [String] content_type
# Required. The content type.
# @param [String] read_time_window_end_time
# End time of the time window (exclusive).
# End time of the time window (inclusive).
# Current timestamp if not specified.
# @param [String] read_time_window_start_time
# Start time of the time window (inclusive).
# Start time of the time window (exclusive).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -89,7 +121,7 @@ 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 batch_organization_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
def batch_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}:batchGetAssetsHistory', options)
command.response_representation = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse::Representation
command.response_class = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse
@@ -130,7 +162,7 @@ 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 export_organization_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def export_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}:exportAssets', options)
command.request_representation = Google::Apis::CloudassetV1beta1::ExportAssetsRequest::Representation
command.request_object = export_assets_request_object
@@ -141,165 +173,6 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudassetV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1beta1::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 get_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudassetV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Batch gets the update history of assets that overlap a time window.
# For RESOURCE content, this API outputs history with asset in both
# non-delete or deleted status.
# For IAM_POLICY content, this API outputs history when the asset and its
# attached IAM POLICY both exist. This can create gaps in the output history.
# @param [String] parent
# Required. The relative name of the root asset. It can only be an
# organization number (such as "organizations/123"), a project ID (such as
# "projects/my-project-id")", or a project number (such as "projects/12345").
# @param [Array<String>, String] asset_names
# A list of the full names of the assets. For example:
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1`.
# See [Resource Names](https://cloud.google.com/apis/design/resource_names#
# full_resource_name)
# for more info.
# The request becomes a no-op if the asset name list is empty, and the max
# size of the asset name list is 100 in one request.
# @param [String] content_type
# Required. The content type.
# @param [String] read_time_window_end_time
# End time of the time window (exclusive).
# Current timestamp if not specified.
# @param [String] read_time_window_start_time
# Start time of the time window (inclusive).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse]
#
# @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 batch_project_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}:batchGetAssetsHistory', options)
command.response_representation = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse::Representation
command.response_class = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse
command.params['parent'] = parent unless parent.nil?
command.query['assetNames'] = asset_names unless asset_names.nil?
command.query['contentType'] = content_type unless content_type.nil?
command.query['readTimeWindow.endTime'] = read_time_window_end_time unless read_time_window_end_time.nil?
command.query['readTimeWindow.startTime'] = read_time_window_start_time unless read_time_window_start_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Exports assets with time and resource types to a given Cloud Storage
# location. The output format is newline-delimited JSON.
# This API implements the google.longrunning.Operation API allowing you
# to keep track of the export.
# @param [String] parent
# Required. The relative name of the root asset. This can only be an
# organization
# number (such as "organizations/123"), a project ID (such as
# "projects/my-project-id"), or a project number (such as "projects/12345").
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudassetV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1beta1::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 export_project_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}:exportAssets', options)
command.request_representation = Google::Apis::CloudassetV1beta1::ExportAssetsRequest::Representation
command.request_object = export_assets_request_object
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudassetV1beta1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudassetV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1beta1::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 get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudassetV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeAlpha
VERSION = 'Alpha'
REVISION = '20181017'
REVISION = '20181022'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+478 -46
View File
@@ -2741,15 +2741,21 @@ module Google
attr_accessor :failover
alias_method :failover?, :failover
# The fully-qualified URL of a Instance Group resource. This instance group
# defines the list of instances that serve traffic. Member virtual machine
# instances from each instance group must live in the same zone as the instance
# group itself. No two backends in a backend service are allowed to use same
# Instance Group resource.
# Note that you must specify an Instance Group resource using the fully-
# qualified URL, rather than a partial URL.
# The fully-qualified URL of an Instance Group or Network Endpoint Group
# resource. In case of instance group this defines the list of instances that
# serve traffic. Member virtual machine instances from each instance group must
# live in the same zone as the instance group itself. No two backends in a
# backend service are allowed to use same Instance Group resource.
# For Network Endpoint Groups this defines list of endpoints. All endpoints of
# Network Endpoint Group must be hosted on instances located in the same zone as
# the Network Endpoint Group.
# Backend service can not contain mix of Instance Group and Network Endpoint
# Group backends.
# Note that you must specify an Instance Group or Network Endpoint Group
# resource using the fully-qualified URL, rather than a partial URL.
# When the BackendService has load balancing scheme INTERNAL, the instance group
# must be within the same region as the BackendService.
# must be within the same region as the BackendService. Network Endpoint Groups
# are not supported for INTERNAL load balancing scheme.
# Corresponds to the JSON property `group`
# @return [String]
attr_accessor :group
@@ -3539,7 +3545,13 @@ 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`
# @return [Array<Google::Apis::ComputeAlpha::HealthStatus>]
attr_accessor :health_status
@@ -3556,6 +3568,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
@@ -5825,6 +5838,168 @@ module Google
end
end
#
class ExchangedPeeringRoute
include Google::Apis::Core::Hashable
# The destination range of the route.
# Corresponds to the JSON property `destRange`
# @return [String]
attr_accessor :dest_range
# If the peering route is imported if there is no confliction.
# Corresponds to the JSON property `imported`
# @return [Boolean]
attr_accessor :imported
alias_method :imported?, :imported
# The region of peering route next hop, only applies to dynamic routes.
# Corresponds to the JSON property `nextHopRegion`
# @return [String]
attr_accessor :next_hop_region
# The priority of the peering route.
# Corresponds to the JSON property `priority`
# @return [Fixnum]
attr_accessor :priority
# The type of the peering route.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dest_range = args[:dest_range] if args.key?(:dest_range)
@imported = args[:imported] if args.key?(:imported)
@next_hop_region = args[:next_hop_region] if args.key?(:next_hop_region)
@priority = args[:priority] if args.key?(:priority)
@type = args[:type] if args.key?(:type)
end
end
#
class ExchangedPeeringRoutesList
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 ExchangedPeeringRoute resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeAlpha::ExchangedPeeringRoute>]
attr_accessor :items
# [Output Only] Type of resource. Always compute#exchangedPeeringRoutesList for
# exchanged peering routes lists.
# 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::ComputeAlpha::ExchangedPeeringRoutesList::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::ComputeAlpha::ExchangedPeeringRoutesList::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 expression text. Example:
# title: "User account presence" description: "Determines whether the request
# has a user account" expression: "size(request.user) > 0"
@@ -7839,6 +8014,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]
@@ -7865,6 +8045,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)
@@ -10497,7 +10678,7 @@ module Google
# instances initiated by this resize request only once. If there is an error
# during creation, the managed instance group does not retry create this
# instance, and we will decrease the targetSize of the request instead. If the
# flag is false, the group attemps to recreate each instance continuously until
# flag is false, the group attempts to recreate each instance continuously until
# it succeeds.
# This flag matters only in the first attempt of creation of an instance. After
# an instance is successfully created while this flag is enabled, the instance
@@ -12163,11 +12344,6 @@ module Google
attr_accessor :admin_enabled
alias_method :admin_enabled?, :admin_enabled
# [Deprecated] Replaced by edge_availability_domain.
# Corresponds to the JSON property `availabilityZone`
# @return [String]
attr_accessor :availability_zone
# Provisioned bandwidth capacity for the interconnectAttachment. Can be set by
# the partner to update the customer's provisioned bandwidth. Output only for
# for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED.
@@ -12349,7 +12525,6 @@ module Google
# Update properties of this object
def update!(**args)
@admin_enabled = args[:admin_enabled] if args.key?(:admin_enabled)
@availability_zone = args[:availability_zone] if args.key?(:availability_zone)
@bandwidth = args[:bandwidth] if args.key?(:bandwidth)
@candidate_subnets = args[:candidate_subnets] if args.key?(:candidate_subnets)
@cloud_router_ip_address = args[:cloud_router_ip_address] if args.key?(:cloud_router_ip_address)
@@ -14180,6 +14355,10 @@ module Google
# Whether Gin logging should happen in a fail-closed manner at the caller. This
# is relevant only in the LocalIAM implementation, for now.
# NOTE: Logging to Gin in a fail-closed manner is currently unsupported while
# work is being done to satisfy the requirements of go/345. Currently, setting
# LOG_FAIL_CLOSED mode will have no effect, but still exists because there is
# active work being done to support it (b/115874152).
# Corresponds to the JSON property `logMode`
# @return [String]
attr_accessor :log_mode
@@ -14870,6 +15049,11 @@ module Google
# @return [String]
attr_accessor :instance
# [Output Only] Health state of the instance per health-check.
# Corresponds to the JSON property `instanceHealth`
# @return [Array<Google::Apis::ComputeAlpha::ManagedInstanceInstanceHealth>]
attr_accessor :instance_health
# [Output Only] The status of the instance. This field is empty when the
# instance does not exist.
# Corresponds to the JSON property `instanceStatus`
@@ -14912,6 +15096,7 @@ module Google
@current_action = args[:current_action] if args.key?(:current_action)
@id = args[:id] if args.key?(:id)
@instance = args[:instance] if args.key?(:instance)
@instance_health = args[:instance_health] if args.key?(:instance_health)
@instance_status = args[:instance_status] if args.key?(:instance_status)
@instance_template = args[:instance_template] if args.key?(:instance_template)
@last_attempt = args[:last_attempt] if args.key?(:last_attempt)
@@ -14921,6 +15106,32 @@ module Google
end
end
#
class ManagedInstanceInstanceHealth
include Google::Apis::Core::Hashable
# [Output Only] The URL for the health check that verifies whether the instance
# is healthy.
# Corresponds to the JSON property `healthCheck`
# @return [String]
attr_accessor :health_check
# [Output Only] The current instance health state.
# Corresponds to the JSON property `healthState`
# @return [String]
attr_accessor :health_state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@health_check = args[:health_check] if args.key?(:health_check)
@health_state = args[:health_state] if args.key?(:health_state)
end
end
#
class ManagedInstanceLastAttempt
include Google::Apis::Core::Hashable
@@ -15332,6 +15543,11 @@ module Google
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
# The name for a specific VM instance that the IP address belongs to. This is
# required for network endpoints of type GCE_VM_IP_PORT. The instance must be in
# the same zone of network endpoint group.
@@ -15361,6 +15577,7 @@ module Google
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@instance = args[:instance] if args.key?(:instance)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@port = args[:port] if args.key?(:port)
@@ -15371,6 +15588,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]
@@ -15460,6 +15682,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)
@@ -16267,6 +16490,15 @@ module Google
attr_accessor :auto_create_routes
alias_method :auto_create_routes?, :auto_create_routes
# Whether full mesh connectivity is created and managed automatically. When it
# is set to true, Google Compute Engine will automatically create and manage the
# routes between two networks when the peering state is ACTIVE. Otherwise, user
# needs to create routes manually to route packets to peer network.
# Corresponds to the JSON property `exchangeSubnetRoutes`
# @return [Boolean]
attr_accessor :exchange_subnet_routes
alias_method :exchange_subnet_routes?, :exchange_subnet_routes
# Whether to export the custom routes to peer network.
# Corresponds to the JSON property `exportCustomRoutes`
# @return [Boolean]
@@ -16314,6 +16546,7 @@ module Google
# Update properties of this object
def update!(**args)
@auto_create_routes = args[:auto_create_routes] if args.key?(:auto_create_routes)
@exchange_subnet_routes = args[:exchange_subnet_routes] if args.key?(:exchange_subnet_routes)
@export_custom_routes = args[:export_custom_routes] if args.key?(:export_custom_routes)
@import_custom_routes = args[:import_custom_routes] if args.key?(:import_custom_routes)
@name = args[:name] if args.key?(:name)
@@ -16374,6 +16607,13 @@ module Google
# @return [String]
attr_accessor :name
# A network peering attached to a network resource. The message includes the
# peering name, peer network, peering state, and a flag indicating whether
# Google Compute Engine should automatically create routes for the peering.
# Corresponds to the JSON property `networkPeering`
# @return [Google::Apis::ComputeAlpha::NetworkPeering]
attr_accessor :network_peering
# URL of the peer network. It can be either full URL or partial URL. The peer
# network may belong to a different project. If the partial URL does not contain
# project, it is assumed that the peer network is in the same project as the
@@ -16392,6 +16632,7 @@ module Google
@export_custom_routes = args[:export_custom_routes] if args.key?(:export_custom_routes)
@import_custom_routes = args[:import_custom_routes] if args.key?(:import_custom_routes)
@name = args[:name] if args.key?(:name)
@network_peering = args[:network_peering] if args.key?(:network_peering)
@peer_network = args[:peer_network] if args.key?(:peer_network)
end
end
@@ -17097,8 +17338,8 @@ module Google
# 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 charaicter, which cannot be
# a dash.
# 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
@@ -18576,13 +18817,21 @@ module Google
include Google::Apis::Core::Hashable
# The full or partial URL to the BackendService resource. This will be used if
# none of the pathRules defined by this PathMatcher is matched by the URL's path
# portion. For example, the following are all valid URLs to a BackendService
# resource:
# none of the pathRules or routeRules defined by this PathMatcher are matched.
# For example, the following are all valid URLs to a BackendService resource:
# - https://www.googleapis.com/compute/v1/projects/project/global/
# backendServices/backendService
# - compute/v1/projects/project/global/backendServices/backendService
# - global/backendServices/backendService
# Use defaultService instead of defaultRouteAction when simple routing to a
# backend service is desired and other advanced capabilities like traffic
# splitting and URL rewrites are not required.
# Only one of defaultService, defaultRouteAction or defaultUrlRedirect must be
# set.
# Authorization requires one or more of the following Google IAM permissions on
# the specified resource default_service:
# - compute.backendBuckets.use
# - compute.backendServices.use
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@@ -18598,7 +18847,13 @@ module Google
# @return [String]
attr_accessor :name
# The list of path rules.
# The list of path rules. Use this list instead of routeRules when routing based
# on simple path matching is all that's required. The order by which path rules
# are specified does not matter. Matches are always done on the longest-path-
# first basis.
# For example: a pathRule with a path /a/b/c/* will match before /a/b/*
# irrespective of the order in which those paths appear in this list.
# Only one of pathRules or routeRules must be set.
# Corresponds to the JSON property `pathRules`
# @return [Array<Google::Apis::ComputeAlpha::PathRule>]
attr_accessor :path_rules
@@ -18629,7 +18884,11 @@ module Google
# @return [Array<String>]
attr_accessor :paths
# The URL of the BackendService resource if this rule is matched.
# The URL of the backend service resource if this rule is matched.
# Use service instead of routeAction when simple routing to a backend service is
# desired and other advanced capabilities like traffic splitting and rewrites
# are not required.
# Only one of service, routeAction or urlRedirect should must be set.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
@@ -20439,6 +20698,12 @@ module Google
class ResourceCommitment
include Google::Apis::Core::Hashable
# Name of the accelerator type resource. Applicable only when the type is
# ACCELERATOR.
# Corresponds to the JSON property `acceleratorType`
# @return [String]
attr_accessor :accelerator_type
# The amount of the resource purchased (in a type-dependent unit, such as bytes).
# For vCPUs, this can just be an integer. For memory, this must be provided in
# MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every
@@ -20459,6 +20724,7 @@ module Google
# Update properties of this object
def update!(**args)
@accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
@amount = args[:amount] if args.key?(:amount)
@type = args[:type] if args.key?(:type)
end
@@ -20468,7 +20734,8 @@ module Google
class ResourceGroupReference
include Google::Apis::Core::Hashable
# A URI referencing one of the instance groups listed in the backend service.
# A URI referencing one of the instance groups or network endpoint groups listed
# in the backend service.
# Corresponds to the JSON property `group`
# @return [String]
attr_accessor :group
@@ -20580,7 +20847,7 @@ module Google
# A backup schedule policy specifies when and how frequently snapshots are to be
# created for the target disk. Also specifies how many and how long these
# automatically created snapshot should be retained.
# scheduled snapshots should be retained.
# Corresponds to the JSON property `backupSchedulePolicy`
# @return [Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicy]
attr_accessor :backup_schedule_policy
@@ -20776,11 +21043,11 @@ module Google
# A backup schedule policy specifies when and how frequently snapshots are to be
# created for the target disk. Also specifies how many and how long these
# automatically created snapshot should be retained.
# scheduled snapshots should be retained.
class ResourcePolicyBackupSchedulePolicy
include Google::Apis::Core::Hashable
# Policy for retention of automatically created snapshots.
# Policy for retention of scheduled snapshots.
# Corresponds to the JSON property `retentionPolicy`
# @return [Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicyRetentionPolicy]
attr_accessor :retention_policy
@@ -20790,7 +21057,7 @@ module Google
# @return [Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicySchedule]
attr_accessor :schedule
# Specified snapshot properties for automatic snapshots created by this policy.
# Specified snapshot properties for scheduled snapshots created by this policy.
# Corresponds to the JSON property `snapshotProperties`
# @return [Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicySnapshotProperties]
attr_accessor :snapshot_properties
@@ -20807,7 +21074,7 @@ module Google
end
end
# Policy for retention of automatically created snapshots.
# Policy for retention of scheduled snapshots.
class ResourcePolicyBackupSchedulePolicyRetentionPolicy
include Google::Apis::Core::Hashable
@@ -20816,6 +21083,18 @@ module Google
# @return [Fixnum]
attr_accessor :max_retention_days
# Specifies the behavior to apply to existing, scheduled snapshots snapshots if
# the policy is changed.
# Corresponds to the JSON property `onPolicySwitch`
# @return [String]
attr_accessor :on_policy_switch
# Specifies the behavior to apply to scheduled snapshots when the source disk is
# deleted.
# Corresponds to the JSON property `onSourceDiskDelete`
# @return [String]
attr_accessor :on_source_disk_delete
def initialize(**args)
update!(**args)
end
@@ -20823,6 +21102,8 @@ module Google
# Update properties of this object
def update!(**args)
@max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days)
@on_policy_switch = args[:on_policy_switch] if args.key?(:on_policy_switch)
@on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete)
end
end
@@ -20857,7 +21138,7 @@ module Google
end
end
# Specified snapshot properties for automatic snapshots created by this policy.
# Specified snapshot properties for scheduled snapshots created by this policy.
class ResourcePolicyBackupSchedulePolicySnapshotProperties
include Google::Apis::Core::Hashable
@@ -20867,7 +21148,7 @@ module Google
attr_accessor :guest_flush
alias_method :guest_flush?, :guest_flush
# Labels to apply to automatic snapshots. These can be later modified by the
# Labels to apply to scheduled snapshots. These can be later modified by the
# setLabels method. Label values may be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
@@ -20906,7 +21187,7 @@ module Google
attr_accessor :duration
# Time within the window to start the operations. It must be in format "HH:MM?,
# where HH : [00-23] and MM : [00-59] GMT.
# where HH : [00-23] and MM : [00-00] GMT.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
@@ -20939,7 +21220,7 @@ module Google
attr_accessor :hours_in_cycle
# Time within the window to start the operations. It must be in format "HH:MM?,
# where HH : [00-23] and MM : [00-59] GMT.
# where HH : [00-23] and MM : [00-00] GMT.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
@@ -21156,7 +21437,7 @@ module Google
attr_accessor :duration
# Time within the window to start the operations. It must be in format "HH:MM?,
# where HH : [00-23] and MM : [00-59] GMT.
# where HH : [00-23] and MM : [00-00] GMT.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
@@ -22072,6 +22353,11 @@ module Google
# @return [Fixnum]
attr_accessor :icmp_idle_timeout_sec
# Configuration of logging on a NAT.
# Corresponds to the JSON property `logConfig`
# @return [Google::Apis::ComputeAlpha::RouterNatLogConfig]
attr_accessor :log_config
# Minimum number of ports allocated to a VM from this NAT config. If not set, a
# default number of ports is allocated to a VM. This gets rounded up to the
# nearest power of 2. Eg. if the value of this field is 50, at least 64 ports
@@ -22137,6 +22423,7 @@ module Google
# Update properties of this object
def update!(**args)
@icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec)
@log_config = args[:log_config] if args.key?(:log_config)
@min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm)
@name = args[:name] if args.key?(:name)
@nat_ip_allocate_option = args[:nat_ip_allocate_option] if args.key?(:nat_ip_allocate_option)
@@ -22149,6 +22436,33 @@ module Google
end
end
# Configuration of logging on a NAT.
class RouterNatLogConfig
include Google::Apis::Core::Hashable
# Indicates whether or not to export logs. This is false by default.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
# Specifies the desired filtering of logs on this NAT. If unspecified, logs are
# exported for all connections handled by this NAT.
# Corresponds to the JSON property `filter`
# @return [String]
attr_accessor :filter
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enabled = args[:enabled] if args.key?(:enabled)
@filter = args[:filter] if args.key?(:filter)
end
end
# Defines the IP ranges that want to use NAT for a subnetwork.
class RouterNatSubnetworkToNat
include Google::Apis::Core::Hashable
@@ -22790,6 +23104,12 @@ module Google
attr_accessor :automatic_restart
alias_method :automatic_restart?, :automatic_restart
# The minimum number of virtual CPUs this instance will consume when running on
# a sole-tenant node.
# Corresponds to the JSON property `minNodeCpus`
# @return [Float]
attr_accessor :min_node_cpus
# A set of node affinity and anti-affinity.
# Corresponds to the JSON property `nodeAffinities`
# @return [Array<Google::Apis::ComputeAlpha::SchedulingNodeAffinity>]
@@ -22818,6 +23138,7 @@ module Google
# Update properties of this object
def update!(**args)
@automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart)
@min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus)
@node_affinities = args[:node_affinities] if args.key?(:node_affinities)
@on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
@preemptible = args[:preemptible] if args.key?(:preemptible)
@@ -22900,6 +23221,11 @@ module Google
class SecurityPolicy
include Google::Apis::Core::Hashable
# A list of assocations that belong to this policy.
# Corresponds to the JSON property `associations`
# @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyAssociation>]
attr_accessor :associations
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@@ -22975,12 +23301,19 @@ module Google
# @return [String]
attr_accessor :self_link
# The type indicates the intended use of the security policy. CLOUD_ARMOR
# policies apply to backend services. FIREWALL policies apply to organizations.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@associations = args[:associations] if args.key?(:associations)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@@ -22991,6 +23324,32 @@ module Google
@name = args[:name] if args.key?(:name)
@rules = args[:rules] if args.key?(:rules)
@self_link = args[:self_link] if args.key?(:self_link)
@type = args[:type] if args.key?(:type)
end
end
#
class SecurityPolicyAssociation
include Google::Apis::Core::Hashable
# The resource that the security policy is attached to.
# Corresponds to the JSON property `attachmentId`
# @return [String]
attr_accessor :attachment_id
# The name for an association.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@attachment_id = args[:attachment_id] if args.key?(:attachment_id)
@name = args[:name] if args.key?(:name)
end
end
@@ -23143,6 +23502,22 @@ module Google
# @return [String]
attr_accessor :description
# The direction in which this rule applies. This field may only be specified
# when versioned_expr is set to FIREWALL.
# Corresponds to the JSON property `direction`
# @return [String]
attr_accessor :direction
# Denotes whether to enable logging for a particular rule. If logging is enabled,
# logs will be exported to the configured export destination in Stackdriver.
# Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging
# on "goto_next" rules.
# This field may only be specified when the versioned_expr is set to FIREWALL.
# Corresponds to the JSON property `enableLogging`
# @return [Boolean]
attr_accessor :enable_logging
alias_method :enable_logging?, :enable_logging
# [Output only] Type of the resource. Always compute#securityPolicyRule for
# security policy rules
# Corresponds to the JSON property `kind`
@@ -23168,6 +23543,14 @@ module Google
# @return [Fixnum]
attr_accessor :priority
# A list of network resource URLs to which this rule applies. This field allows
# you to control which network?s VMs get this rule. If this field is left blank,
# all VMs within the organization will receive the rule.
# This field may only be specified when versioned_expr is set to FIREWALL.
# Corresponds to the JSON property `targetResources`
# @return [Array<String>]
attr_accessor :target_resources
def initialize(**args)
update!(**args)
end
@@ -23176,10 +23559,13 @@ module Google
def update!(**args)
@action = args[:action] if args.key?(:action)
@description = args[:description] if args.key?(:description)
@direction = args[:direction] if args.key?(:direction)
@enable_logging = args[:enable_logging] if args.key?(:enable_logging)
@kind = args[:kind] if args.key?(:kind)
@match = args[:match] if args.key?(:match)
@preview = args[:preview] if args.key?(:preview)
@priority = args[:priority] if args.key?(:priority)
@target_resources = args[:target_resources] if args.key?(:target_resources)
end
end
@@ -23202,11 +23588,6 @@ module Google
# @return [Google::Apis::ComputeAlpha::Expr]
attr_accessor :expr
# CIDR IP address range.
# Corresponds to the JSON property `srcIpRanges`
# @return [Array<String>]
attr_accessor :src_ip_ranges
# Preconfigured versioned expression. If this field is specified, config must
# also be specified. Available preconfigured expressions along with their
# requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range
@@ -23223,7 +23604,6 @@ module Google
def update!(**args)
@config = args[:config] if args.key?(:config)
@expr = args[:expr] if args.key?(:expr)
@src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
@versioned_expr = args[:versioned_expr] if args.key?(:versioned_expr)
end
end
@@ -23232,6 +23612,18 @@ module Google
class SecurityPolicyRuleMatcherConfig
include Google::Apis::Core::Hashable
# CIDR IP address range.
# This field may only be specified when versioned_expr is set to FIREWALL.
# Corresponds to the JSON property `destIpRanges`
# @return [Array<String>]
attr_accessor :dest_ip_ranges
# Pairs of IP protocols and ports that the rule should match.
# This field may only be specified when versioned_expr is set to FIREWALL.
# Corresponds to the JSON property `destPorts`
# @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfigDestinationPort>]
attr_accessor :dest_ports
# CIDR IP address range.
# Corresponds to the JSON property `srcIpRanges`
# @return [Array<String>]
@@ -23243,10 +23635,44 @@ module Google
# Update properties of this object
def update!(**args)
@dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges)
@dest_ports = args[:dest_ports] if args.key?(:dest_ports)
@src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
end
end
#
class SecurityPolicyRuleMatcherConfigDestinationPort
include Google::Apis::Core::Hashable
# The IP protocol to which this rule applies. The protocol type is required when
# creating a firewall rule. This value can either be one of the following well
# known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP
# protocol number.
# Corresponds to the JSON property `ipProtocol`
# @return [String]
attr_accessor :ip_protocol
# An optional list of ports to which this rule applies. This field is only
# applicable for UDP or TCP protocol. Each entry must be either an integer or a
# range. If not specified, this rule applies to connections through any port.
# Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
# This field may only be specified when versioned_expr is set to FIREWALL.
# Corresponds to the JSON property `ports`
# @return [Array<String>]
attr_accessor :ports
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
@ports = args[:ports] if args.key?(:ports)
end
end
# An instance's serial console output.
class SerialPortOutput
include Google::Apis::Core::Hashable
@@ -23488,7 +23914,7 @@ module Google
class Snapshot
include Google::Apis::Core::Hashable
# [Output Only] Set to true if snapshots are autoamtically by applying resource
# [Output Only] Set to true if snapshots are automatically by applying resource
# policy on the target disk.
# Corresponds to the JSON property `autoCreated`
# @return [Boolean]
@@ -26102,8 +26528,8 @@ module Google
attr_accessor :self_link
# URLs to SslCertificate resources that are used to authenticate connections
# between users and the load balancer. Currently, exactly one SSL certificate
# must be specified.
# between users and the load balancer. At least one SSL certificate must be
# specified. Currently, you may specify up to 15 SSL certificates.
# Corresponds to the JSON property `sslCertificates`
# @return [Array<String>]
attr_accessor :ssl_certificates
@@ -26886,7 +27312,7 @@ module Google
# @return [String]
attr_accessor :self_link
# Sesssion affinity option, must be one of the following values:
# Session affinity option, must be one of the following values:
# NONE: Connections from the same client IP may go to any instance in the pool.
# CLIENT_IP: Connections from the same client IP will go to the same instance in
# the pool while that instance remains healthy.
@@ -27489,7 +27915,8 @@ module Google
attr_accessor :service
# URLs to SslCertificate resources that are used to authenticate connections to
# Backends. Currently exactly one SSL certificate must be specified.
# Backends. At least one SSL certificate must be specified. Currently, you may
# specify up to 15 SSL certificates.
# Corresponds to the JSON property `sslCertificates`
# @return [Array<String>]
attr_accessor :ssl_certificates
@@ -28434,7 +28861,12 @@ module Google
# @return [String]
attr_accessor :creation_timestamp
# The URL of the BackendService resource if none of the hostRules match.
# The URL of the backendService resource if none of the hostRules match.
# Use defaultService instead of defaultRouteAction when simple routing to a
# backendService is desired and other advanced capabilities like traffic
# splitting and rewrites are not required.
# Only one of defaultService, defaultRouteAction or defaultUrlRedirect should
# must be set.
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@@ -796,6 +796,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ExchangedPeeringRoute
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExchangedPeeringRoutesList
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 Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1972,6 +1996,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ManagedInstanceInstanceHealth
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedInstanceLastAttempt
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -3088,6 +3118,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RouterNatLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RouterNatSubnetworkToNat
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -3190,6 +3226,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SecurityPolicyAssociation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityPolicyList
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -3232,6 +3274,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SecurityPolicyRuleMatcherConfigDestinationPort
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SerialPortOutput
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -5194,6 +5242,7 @@ module Google
class BackendServiceGroupHealth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
collection :health_status, as: 'healthStatus', class: Google::Apis::ComputeAlpha::HealthStatus, decorator: Google::Apis::ComputeAlpha::HealthStatus::Representation
property :kind, as: 'kind'
@@ -5778,6 +5827,49 @@ module Google
end
end
class ExchangedPeeringRoute
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dest_range, as: 'destRange'
property :imported, as: 'imported'
property :next_hop_region, as: 'nextHopRegion'
property :priority, as: 'priority'
property :type, as: 'type'
end
end
class ExchangedPeeringRoutesList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeAlpha::ExchangedPeeringRoute, decorator: Google::Apis::ComputeAlpha::ExchangedPeeringRoute::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::ExchangedPeeringRoutesList::Warning, decorator: Google::Apis::ComputeAlpha::ExchangedPeeringRoutesList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::ExchangedPeeringRoutesList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::ExchangedPeeringRoutesList::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 Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -6229,6 +6321,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'
@@ -7324,7 +7417,6 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :admin_enabled, as: 'adminEnabled'
property :availability_zone, as: 'availabilityZone'
property :bandwidth, as: 'bandwidth'
collection :candidate_subnets, as: 'candidateSubnets'
property :cloud_router_ip_address, as: 'cloudRouterIpAddress'
@@ -8009,6 +8101,8 @@ module Google
property :current_action, as: 'currentAction'
property :id, :numeric_string => true, as: 'id'
property :instance, as: 'instance'
collection :instance_health, as: 'instanceHealth', class: Google::Apis::ComputeAlpha::ManagedInstanceInstanceHealth, decorator: Google::Apis::ComputeAlpha::ManagedInstanceInstanceHealth::Representation
property :instance_status, as: 'instanceStatus'
property :instance_template, as: 'instanceTemplate'
property :last_attempt, as: 'lastAttempt', class: Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt, decorator: Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt::Representation
@@ -8021,6 +8115,14 @@ module Google
end
end
class ManagedInstanceInstanceHealth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :health_check, as: 'healthCheck'
property :health_state, as: 'healthState'
end
end
class ManagedInstanceLastAttempt
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -8133,6 +8235,7 @@ module Google
class NetworkEndpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
property :instance, as: 'instance'
property :ip_address, as: 'ipAddress'
property :port, as: 'port'
@@ -8142,6 +8245,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'
@@ -8378,6 +8482,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_create_routes, as: 'autoCreateRoutes'
property :exchange_subnet_routes, as: 'exchangeSubnetRoutes'
property :export_custom_routes, as: 'exportCustomRoutes'
property :import_custom_routes, as: 'importCustomRoutes'
property :name, as: 'name'
@@ -8401,6 +8506,8 @@ module Google
property :export_custom_routes, as: 'exportCustomRoutes'
property :import_custom_routes, as: 'importCustomRoutes'
property :name, as: 'name'
property :network_peering, as: 'networkPeering', class: Google::Apis::ComputeAlpha::NetworkPeering, decorator: Google::Apis::ComputeAlpha::NetworkPeering::Representation
property :peer_network, as: 'peerNetwork'
end
end
@@ -9515,6 +9622,7 @@ module Google
class ResourceCommitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :accelerator_type, as: 'acceleratorType'
property :amount, :numeric_string => true, as: 'amount'
property :type, as: 'type'
end
@@ -9621,6 +9729,8 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_retention_days, as: 'maxRetentionDays'
property :on_policy_switch, as: 'onPolicySwitch'
property :on_source_disk_delete, as: 'onSourceDiskDelete'
end
end
@@ -9941,6 +10051,8 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::RouterNatLogConfig, decorator: Google::Apis::ComputeAlpha::RouterNatLogConfig::Representation
property :min_ports_per_vm, as: 'minPortsPerVm'
property :name, as: 'name'
property :nat_ip_allocate_option, as: 'natIpAllocateOption'
@@ -9954,6 +10066,14 @@ module Google
end
end
class RouterNatLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :filter, as: 'filter'
end
end
class RouterNatSubnetworkToNat
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -10109,6 +10229,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :automatic_restart, as: 'automaticRestart'
property :min_node_cpus, as: 'minNodeCpus'
collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeAlpha::SchedulingNodeAffinity, decorator: Google::Apis::ComputeAlpha::SchedulingNodeAffinity::Representation
property :on_host_maintenance, as: 'onHostMaintenance'
@@ -10144,6 +10265,8 @@ module Google
class SecurityPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :associations, as: 'associations', class: Google::Apis::ComputeAlpha::SecurityPolicyAssociation, decorator: Google::Apis::ComputeAlpha::SecurityPolicyAssociation::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :fingerprint, :base64 => true, as: 'fingerprint'
@@ -10155,6 +10278,15 @@ module Google
collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::SecurityPolicyRule, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
property :self_link, as: 'selfLink'
property :type, as: 'type'
end
end
class SecurityPolicyAssociation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :attachment_id, as: 'attachmentId'
property :name, as: 'name'
end
end
@@ -10201,11 +10333,14 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :description, as: 'description'
property :direction, as: 'direction'
property :enable_logging, as: 'enableLogging'
property :kind, as: 'kind'
property :match, as: 'match', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcher, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcher::Representation
property :preview, as: 'preview'
property :priority, as: 'priority'
collection :target_resources, as: 'targetResources'
end
end
@@ -10216,7 +10351,6 @@ module Google
property :expr, as: 'expr', class: Google::Apis::ComputeAlpha::Expr, decorator: Google::Apis::ComputeAlpha::Expr::Representation
collection :src_ip_ranges, as: 'srcIpRanges'
property :versioned_expr, as: 'versionedExpr'
end
end
@@ -10224,10 +10358,21 @@ module Google
class SecurityPolicyRuleMatcherConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dest_ip_ranges, as: 'destIpRanges'
collection :dest_ports, as: 'destPorts', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfigDestinationPort, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfigDestinationPort::Representation
collection :src_ip_ranges, as: 'srcIpRanges'
end
end
class SecurityPolicyRuleMatcherConfigDestinationPort
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_protocol, as: 'ipProtocol'
collection :ports, as: 'ports'
end
end
class SerialPortOutput
# @private
class Representation < Google::Apis::Core::JsonRepresentation
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20181017'
REVISION = '20181022'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+137 -46
View File
@@ -2020,15 +2020,21 @@ module Google
# @return [String]
attr_accessor :description
# The fully-qualified URL of a Instance Group resource. This instance group
# defines the list of instances that serve traffic. Member virtual machine
# instances from each instance group must live in the same zone as the instance
# group itself. No two backends in a backend service are allowed to use same
# Instance Group resource.
# Note that you must specify an Instance Group resource using the fully-
# qualified URL, rather than a partial URL.
# The fully-qualified URL of an Instance Group or Network Endpoint Group
# resource. In case of instance group this defines the list of instances that
# serve traffic. Member virtual machine instances from each instance group must
# live in the same zone as the instance group itself. No two backends in a
# backend service are allowed to use same Instance Group resource.
# For Network Endpoint Groups this defines list of endpoints. All endpoints of
# Network Endpoint Group must be hosted on instances located in the same zone as
# the Network Endpoint Group.
# Backend service can not contain mix of Instance Group and Network Endpoint
# Group backends.
# Note that you must specify an Instance Group or Network Endpoint Group
# resource using the fully-qualified URL, rather than a partial URL.
# When the BackendService has load balancing scheme INTERNAL, the instance group
# must be within the same region as the BackendService.
# must be within the same region as the BackendService. Network Endpoint Groups
# are not supported for INTERNAL load balancing scheme.
# Corresponds to the JSON property `group`
# @return [String]
attr_accessor :group
@@ -2691,7 +2697,8 @@ module Google
class BackendServiceGroupHealth
include Google::Apis::Core::Hashable
#
# 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`
# @return [Array<Google::Apis::ComputeBeta::HealthStatus>]
attr_accessor :health_status
@@ -5415,6 +5422,17 @@ module Google
# @return [String]
attr_accessor :ip_protocol
# This field is used along with the backend_service field for internal load
# balancing or with the target field for internal TargetInstance. This field
# cannot be used with port or portRange fields.
# When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify
# this field to allow packets addressed to any ports will be forwarded to the
# backends configured with this forwarding rule.
# Corresponds to the JSON property `allPorts`
# @return [Boolean]
attr_accessor :all_ports
alias_method :all_ports?, :all_ports
# This field is only used for INTERNAL load balancing.
# For internal load balancing, this field identifies the BackendService resource
# to receive the matched traffic.
@@ -5597,6 +5615,7 @@ module Google
def update!(**args)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
@all_ports = args[:all_ports] if args.key?(:all_ports)
@backend_service = args[:backend_service] if args.key?(:backend_service)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@@ -7656,6 +7675,11 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::AcceleratorConfig>]
attr_accessor :guest_accelerators
#
# Corresponds to the JSON property `hostname`
# @return [String]
attr_accessor :hostname
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
@@ -7805,6 +7829,7 @@ module Google
@description = args[:description] if args.key?(:description)
@disks = args[:disks] if args.key?(:disks)
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
@hostname = args[:hostname] if args.key?(:hostname)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@@ -9085,7 +9110,7 @@ module Google
# instances initiated by this resize request only once. If there is an error
# during creation, the managed instance group does not retry create this
# instance, and we will decrease the targetSize of the request instead. If the
# flag is false, the group attemps to recreate each instance continuously until
# flag is false, the group attempts to recreate each instance continuously until
# it succeeds.
# This flag matters only in the first attempt of creation of an instance. After
# an instance is successfully created while this flag is enabled, the instance
@@ -10212,6 +10237,36 @@ module Google
end
end
#
class InstancesResumeRequest
include Google::Apis::Core::Hashable
# Array of disks associated with this instance that are protected with a
# customer-supplied encryption key.
# In order to resume the instance, the disk url and its corresponding key must
# be provided.
# If the disk is not protected with a customer-supplied encryption key it should
# not be specified.
# Corresponds to the JSON property `disks`
# @return [Array<Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk>]
attr_accessor :disks
# Represents a customer-supplied encryption key
# Corresponds to the JSON property `instanceEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :instance_encryption_key
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disks = args[:disks] if args.key?(:disks)
@instance_encryption_key = args[:instance_encryption_key] if args.key?(:instance_encryption_key)
end
end
#
class InstancesScopedList
include Google::Apis::Core::Hashable
@@ -12342,6 +12397,10 @@ module Google
# Whether Gin logging should happen in a fail-closed manner at the caller. This
# is relevant only in the LocalIAM implementation, for now.
# NOTE: Logging to Gin in a fail-closed manner is currently unsupported while
# work is being done to satisfy the requirements of go/345. Currently, setting
# LOG_FAIL_CLOSED mode will have no effect, but still exists because there is
# active work being done to support it (b/115874152).
# Corresponds to the JSON property `logMode`
# @return [String]
attr_accessor :log_mode
@@ -14857,8 +14916,8 @@ module Google
# 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 charaicter, which cannot be
# a dash.
# 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
@@ -16330,13 +16389,21 @@ module Google
include Google::Apis::Core::Hashable
# The full or partial URL to the BackendService resource. This will be used if
# none of the pathRules defined by this PathMatcher is matched by the URL's path
# portion. For example, the following are all valid URLs to a BackendService
# resource:
# none of the pathRules or routeRules defined by this PathMatcher are matched.
# For example, the following are all valid URLs to a BackendService resource:
# - https://www.googleapis.com/compute/v1/projects/project/global/
# backendServices/backendService
# - compute/v1/projects/project/global/backendServices/backendService
# - global/backendServices/backendService
# Use defaultService instead of defaultRouteAction when simple routing to a
# backend service is desired and other advanced capabilities like traffic
# splitting and URL rewrites are not required.
# Only one of defaultService, defaultRouteAction or defaultUrlRedirect must be
# set.
# Authorization requires one or more of the following Google IAM permissions on
# the specified resource default_service:
# - compute.backendBuckets.use
# - compute.backendServices.use
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@@ -16352,7 +16419,13 @@ module Google
# @return [String]
attr_accessor :name
# The list of path rules.
# The list of path rules. Use this list instead of routeRules when routing based
# on simple path matching is all that's required. The order by which path rules
# are specified does not matter. Matches are always done on the longest-path-
# first basis.
# For example: a pathRule with a path /a/b/c/* will match before /a/b/*
# irrespective of the order in which those paths appear in this list.
# Only one of pathRules or routeRules must be set.
# Corresponds to the JSON property `pathRules`
# @return [Array<Google::Apis::ComputeBeta::PathRule>]
attr_accessor :path_rules
@@ -16383,7 +16456,11 @@ module Google
# @return [Array<String>]
attr_accessor :paths
# The URL of the BackendService resource if this rule is matched.
# The URL of the backend service resource if this rule is matched.
# Use service instead of routeAction when simple routing to a backend service is
# desired and other advanced capabilities like traffic splitting and rewrites
# are not required.
# Only one of service, routeAction or urlRedirect should must be set.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
@@ -17953,7 +18030,8 @@ module Google
class ResourceGroupReference
include Google::Apis::Core::Hashable
# A URI referencing one of the instance groups listed in the backend service.
# A URI referencing one of the instance groups or network endpoint groups listed
# in the backend service.
# Corresponds to the JSON property `group`
# @return [String]
attr_accessor :group
@@ -18065,7 +18143,7 @@ module Google
# A backup schedule policy specifies when and how frequently snapshots are to be
# created for the target disk. Also specifies how many and how long these
# automatically created snapshot should be retained.
# scheduled snapshots should be retained.
# Corresponds to the JSON property `backupSchedulePolicy`
# @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy]
attr_accessor :backup_schedule_policy
@@ -18255,11 +18333,11 @@ module Google
# A backup schedule policy specifies when and how frequently snapshots are to be
# created for the target disk. Also specifies how many and how long these
# automatically created snapshot should be retained.
# scheduled snapshots should be retained.
class ResourcePolicyBackupSchedulePolicy
include Google::Apis::Core::Hashable
# Policy for retention of automatically created snapshots.
# Policy for retention of scheduled snapshots.
# Corresponds to the JSON property `retentionPolicy`
# @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy]
attr_accessor :retention_policy
@@ -18269,7 +18347,7 @@ module Google
# @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule]
attr_accessor :schedule
# Specified snapshot properties for automatic snapshots created by this policy.
# Specified snapshot properties for scheduled snapshots created by this policy.
# Corresponds to the JSON property `snapshotProperties`
# @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties]
attr_accessor :snapshot_properties
@@ -18286,7 +18364,7 @@ module Google
end
end
# Policy for retention of automatically created snapshots.
# Policy for retention of scheduled snapshots.
class ResourcePolicyBackupSchedulePolicyRetentionPolicy
include Google::Apis::Core::Hashable
@@ -18295,6 +18373,12 @@ module Google
# @return [Fixnum]
attr_accessor :max_retention_days
# Specifies the behavior to apply to scheduled snapshots when the source disk is
# deleted.
# Corresponds to the JSON property `onSourceDiskDelete`
# @return [String]
attr_accessor :on_source_disk_delete
def initialize(**args)
update!(**args)
end
@@ -18302,6 +18386,7 @@ module Google
# Update properties of this object
def update!(**args)
@max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days)
@on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete)
end
end
@@ -18336,7 +18421,7 @@ module Google
end
end
# Specified snapshot properties for automatic snapshots created by this policy.
# Specified snapshot properties for scheduled snapshots created by this policy.
class ResourcePolicyBackupSchedulePolicySnapshotProperties
include Google::Apis::Core::Hashable
@@ -18346,17 +18431,12 @@ module Google
attr_accessor :guest_flush
alias_method :guest_flush?, :guest_flush
# Labels to apply to automatic snapshots. These can be later modified by the
# Labels to apply to scheduled snapshots. These can be later modified by the
# setLabels method. Label values may be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# GCS bucket storage location of the auto snapshot (regional or multi-regional).
# Corresponds to the JSON property `storageLocations`
# @return [Array<String>]
attr_accessor :storage_locations
def initialize(**args)
update!(**args)
end
@@ -18365,7 +18445,6 @@ module Google
def update!(**args)
@guest_flush = args[:guest_flush] if args.key?(:guest_flush)
@labels = args[:labels] if args.key?(:labels)
@storage_locations = args[:storage_locations] if args.key?(:storage_locations)
end
end
@@ -18385,7 +18464,7 @@ module Google
attr_accessor :duration
# Time within the window to start the operations. It must be in format "HH:MM?,
# where HH : [00-23] and MM : [00-59] GMT.
# where HH : [00-23] and MM : [00-00] GMT.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
@@ -18418,7 +18497,7 @@ module Google
attr_accessor :hours_in_cycle
# Time within the window to start the operations. It must be in format "HH:MM?,
# where HH : [00-23] and MM : [00-59] GMT.
# where HH : [00-23] and MM : [00-00] GMT.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
@@ -18595,7 +18674,7 @@ module Google
attr_accessor :duration
# Time within the window to start the operations. It must be in format "HH:MM?,
# where HH : [00-23] and MM : [00-59] GMT.
# where HH : [00-23] and MM : [00-00] GMT.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
@@ -18679,6 +18758,17 @@ module Google
# @return [String]
attr_accessor :next_hop_gateway
# The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should
# handle matching packets. You can only specify the forwarding rule as a partial
# or full URL. For example, the following are all valid URLs:
# - https://www.googleapis.com/compute/v1/projects/project/regions/region/
# forwardingRules/forwardingRule
# - regions/region/forwardingRules/forwardingRule Note that this can only be
# used when the destination_range is a public (non-RFC 1918) IP CIDR range.
# Corresponds to the JSON property `nextHopIlb`
# @return [String]
attr_accessor :next_hop_ilb
# The URL to an instance that should handle matching packets. You can specify
# this as a full or partial URL. For example:
# https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
@@ -18746,6 +18836,7 @@ module Google
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway)
@next_hop_ilb = args[:next_hop_ilb] if args.key?(:next_hop_ilb)
@next_hop_instance = args[:next_hop_instance] if args.key?(:next_hop_instance)
@next_hop_ip = args[:next_hop_ip] if args.key?(:next_hop_ip)
@next_hop_network = args[:next_hop_network] if args.key?(:next_hop_network)
@@ -20476,11 +20567,6 @@ module Google
# @return [Google::Apis::ComputeBeta::Expr]
attr_accessor :expr
# CIDR IP address range.
# Corresponds to the JSON property `srcIpRanges`
# @return [Array<String>]
attr_accessor :src_ip_ranges
# Preconfigured versioned expression. If this field is specified, config must
# also be specified. Available preconfigured expressions along with their
# requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range
@@ -20497,7 +20583,6 @@ module Google
def update!(**args)
@config = args[:config] if args.key?(:config)
@expr = args[:expr] if args.key?(:expr)
@src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
@versioned_expr = args[:versioned_expr] if args.key?(:versioned_expr)
end
end
@@ -20743,7 +20828,7 @@ module Google
class Snapshot
include Google::Apis::Core::Hashable
# [Output Only] Set to true if snapshots are autoamtically by applying resource
# [Output Only] Set to true if snapshots are automatically by applying resource
# policy on the target disk.
# Corresponds to the JSON property `autoCreated`
# @return [Boolean]
@@ -22579,8 +22664,8 @@ module Google
attr_accessor :self_link
# URLs to SslCertificate resources that are used to authenticate connections
# between users and the load balancer. Currently, exactly one SSL certificate
# must be specified.
# between users and the load balancer. At least one SSL certificate must be
# specified. Currently, you may specify up to 15 SSL certificates.
# Corresponds to the JSON property `sslCertificates`
# @return [Array<String>]
attr_accessor :ssl_certificates
@@ -23244,7 +23329,7 @@ module Google
# @return [String]
attr_accessor :self_link
# Sesssion affinity option, must be one of the following values:
# Session affinity option, must be one of the following values:
# NONE: Connections from the same client IP may go to any instance in the pool.
# CLIENT_IP: Connections from the same client IP will go to the same instance in
# the pool while that instance remains healthy.
@@ -23847,7 +23932,8 @@ module Google
attr_accessor :service
# URLs to SslCertificate resources that are used to authenticate connections to
# Backends. Currently exactly one SSL certificate must be specified.
# Backends. At least one SSL certificate must be specified. Currently, you may
# specify up to 15 SSL certificates.
# Corresponds to the JSON property `sslCertificates`
# @return [Array<String>]
attr_accessor :ssl_certificates
@@ -24751,7 +24837,12 @@ module Google
# @return [String]
attr_accessor :creation_timestamp
# The URL of the BackendService resource if none of the hostRules match.
# The URL of the backendService resource if none of the hostRules match.
# Use defaultService instead of defaultRouteAction when simple routing to a
# backendService is desired and other advanced capabilities like traffic
# splitting and rewrites are not required.
# Only one of defaultService, defaultRouteAction or defaultUrlRedirect should
# must be set.
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@@ -1318,6 +1318,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstancesResumeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstancesScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -5000,6 +5006,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_address, as: 'IPAddress'
property :ip_protocol, as: 'IPProtocol'
property :all_ports, as: 'allPorts'
property :backend_service, as: 'backendService'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
@@ -5511,6 +5518,7 @@ module Google
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation
property :hostname, as: 'hostname'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
@@ -6167,6 +6175,16 @@ module Google
end
end
class InstancesResumeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk::Representation
property :instance_encryption_key, as: 'instanceEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
end
end
class InstancesScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -8300,6 +8318,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_retention_days, as: 'maxRetentionDays'
property :on_source_disk_delete, as: 'onSourceDiskDelete'
end
end
@@ -8320,7 +8339,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :guest_flush, as: 'guestFlush'
hash :labels, as: 'labels'
collection :storage_locations, as: 'storageLocations'
end
end
@@ -8403,6 +8421,7 @@ module Google
property :name, as: 'name'
property :network, as: 'network'
property :next_hop_gateway, as: 'nextHopGateway'
property :next_hop_ilb, as: 'nextHopIlb'
property :next_hop_instance, as: 'nextHopInstance'
property :next_hop_ip, as: 'nextHopIp'
property :next_hop_network, as: 'nextHopNetwork'
@@ -8852,7 +8871,6 @@ module Google
property :expr, as: 'expr', class: Google::Apis::ComputeBeta::Expr, decorator: Google::Apis::ComputeBeta::Expr::Representation
collection :src_ip_ranges, as: 'srcIpRanges'
property :versioned_expr, as: 'versionedExpr'
end
end
+230 -109
View File
@@ -583,7 +583,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -969,7 +969,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -2009,7 +2009,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -2565,7 +2565,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -2845,7 +2845,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -2942,7 +2942,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -3239,7 +3239,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -3731,7 +3731,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -4016,7 +4016,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -4353,7 +4353,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -4863,7 +4863,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -5213,7 +5213,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -5563,7 +5563,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -5828,7 +5828,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -5993,7 +5993,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -6072,7 +6072,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -6107,14 +6107,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to remove the specified instances from the managed
# instance group. Abandoning an instance does not delete the instance, but it
# does remove the instance from any target pools that are applied by the managed
# instance group. This method reduces the targetSize of the managed instance
# group by the number of instances that you abandon. This operation is marked as
# DONE when the action is scheduled even if the instances have not yet been
# removed from the group. You must separately verify the status of the
# abandoning action with the listmanagedinstances method.
# Flags the specified instances to be removed from the managed instance group.
# Abandoning an instance does not delete the instance, but it does remove the
# instance from any target pools that are applied by the managed instance group.
# This method reduces the targetSize of the managed instance group by the number
# of instances that you abandon. This operation is marked as DONE when the
# action is scheduled even if the instances have not yet been removed from the
# group. You must separately verify the status of the abandoning action with the
# listmanagedinstances method.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -6296,9 +6296,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to delete the specified instances in the managed
# instance group. The instances are also removed from any target pools of which
# they were a member. This method reduces the targetSize of the managed instance
# Flags the specified instances in the managed instance group for immediate
# deletion. The instances are also removed from any target pools of which they
# were a member. This method reduces the targetSize of the managed instance
# group by the number of instances that you delete. This operation is marked as
# DONE when the action is scheduled even if the instances are still being
# deleted. You must separately verify the status of the deleting action with the
@@ -6401,11 +6401,11 @@ module Google
end
# Creates a managed instance group using the information that you specify in the
# request. After the group is created, it schedules an action to create
# instances in the group using the specified instance template. This operation
# is marked as DONE when the group is created even if the instances in the group
# have not yet been created. You must separately verify the status of the
# individual instances with the listmanagedinstances method.
# request. After the group is created, instances in the group are created using
# the specified instance template. This operation is marked as DONE when the
# group is created even if the instances in the group have not yet been created.
# You must separately verify the status of the individual instances with the
# listmanagedinstances method.
# A managed instance group can have up to 1000 VM instances per group. Please
# contact Cloud Support if you need an increase in this limit.
# @param [String] project
@@ -6673,12 +6673,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to recreate the specified instances in the managed
# instance group. The instances are deleted and recreated using the current
# instance template for the managed instance group. This operation is marked as
# DONE when the action is scheduled even if the instances have not yet been
# recreated. You must separately verify the status of the recreating action with
# the listmanagedinstances method.
# Flags the specified instances in the managed instance group to be immediately
# recreated. The instances are deleted and recreated using the current instance
# template for the managed instance group. This operation is marked as DONE when
# the flag is set even if the instances have not yet been recreated. You must
# separately verify the status of the recreating action with the
# listmanagedinstances method.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -6742,6 +6742,13 @@ module Google
# the resize actions are scheduled even if the group has not yet added or
# deleted any instances. You must separately verify the status of the creating
# or deleting actions with the listmanagedinstances method.
# When resizing down, the instance group arbitrarily chooses the order in which
# VMs are deleted. The group takes into account some VM attributes when making
# the selection including:
# + The status of the VM instance. + The health of the VM instance. + The
# instance template version the VM is based on. + For regional managed instance
# groups, the location of the VM instance.
# This list is subject to change.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -7040,7 +7047,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -7680,7 +7687,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -7808,7 +7815,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -7968,7 +7975,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -8007,7 +8014,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -8487,7 +8494,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -8743,7 +8750,7 @@ module Google
end
# Retrieves the list of referrers to instances contained within the specified
# zone.
# zone. For more information, read Viewing Referrers to VM Instances.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@@ -8873,6 +8880,60 @@ module Google
execute_or_queue_command(command, &block)
end
# Resumes an instance that was suspended using the instances().suspend method.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name of the instance resource to resume.
# @param [Google::Apis::ComputeBeta::InstancesResumeRequest] instances_resume_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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 resume_instance(project, zone, instance, instances_resume_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/resume', options)
command.request_representation = Google::Apis::ComputeBeta::InstancesResumeRequest::Representation
command.request_object = instances_resume_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.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
# Sets deletion protection on the instance.
# @param [String] project
# Project ID for this request.
@@ -8991,7 +9052,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -9467,7 +9528,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets tags for the specified instance to the data included in the request.
# Sets network tags for the specified instance to the data included in the
# request.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@@ -9722,13 +9784,73 @@ module Google
execute_or_queue_command(command, &block)
end
# This method suspends a running instance, saving its state to persistent
# storage, and allows you to resume the instance at a later time. Suspended
# instances incur reduced per-minute, virtual machine usage charges while they
# are suspended. Any resources the virtual machine is using, such as persistent
# disks and static IP addresses, will continue to be charged until they are
# deleted.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name of the instance resource to suspend.
# @param [Boolean] discard_local_ssd
# If true, discard the contents of any attached localSSD partitions. Default
# value is false (== preserve localSSD data).
# @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 suspend_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/suspend', 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['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.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 permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -10341,7 +10463,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -10824,7 +10946,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -11785,7 +11907,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -12232,7 +12354,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -12546,7 +12668,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -12793,7 +12915,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -12889,7 +13011,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -13094,7 +13216,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -13260,7 +13382,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -13302,7 +13424,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -14447,7 +14569,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -14862,7 +14984,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -15805,7 +15927,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -15841,7 +15963,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to remove the specified instances from the managed
# Flags the specified instances to be immediately removed from the managed
# instance group. Abandoning an instance does not delete the instance, but it
# does remove the instance from any target pools that are applied by the managed
# instance group. This method reduces the targetSize of the managed instance
@@ -15958,13 +16080,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to delete the specified instances in the managed
# instance group. The instances are also removed from any target pools of which
# they were a member. This method reduces the targetSize of the managed instance
# group by the number of instances that you delete. This operation is marked as
# DONE when the action is scheduled even if the instances are still being
# deleted. You must separately verify the status of the deleting action with the
# listmanagedinstances method.
# Flags the specified instances in the managed instance group to be immediately
# deleted. The instances are also removed from any target pools of which they
# were a member. This method reduces the targetSize of the managed instance
# group by the number of instances that you delete. The deleteInstances
# operation is marked DONE if the deleteInstances request is successful. The
# underlying actions take additional time. You must separately verify the status
# of the deleting action with the listmanagedinstances method.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -16062,11 +16184,11 @@ module Google
end
# Creates a managed instance group using the information that you specify in the
# request. After the group is created, it schedules an action to create
# instances in the group using the specified instance template. This operation
# is marked as DONE when the group is created even if the instances in the group
# have not yet been created. You must separately verify the status of the
# individual instances with the listmanagedinstances method.
# request. After the group is created, instances in the group are created using
# the specified instance template. This operation is marked as DONE when the
# group is created even if the instances in the group have not yet been created.
# You must separately verify the status of the individual instances with the
# listmanagedinstances method.
# A regional managed instance group can contain up to 2000 instances.
# @param [String] project
# Project ID for this request.
@@ -16331,12 +16453,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to recreate the specified instances in the managed
# instance group. The instances are deleted and recreated using the current
# instance template for the managed instance group. This operation is marked as
# DONE when the action is scheduled even if the instances have not yet been
# recreated. You must separately verify the status of the recreating action with
# the listmanagedinstances method.
# Flags the specified instances in the managed instance group to be immediately
# recreated. The instances are deleted and recreated using the current instance
# template for the managed instance group. This operation is marked as DONE when
# the flag is set even if the instances have not yet been recreated. You must
# separately verify the status of the recreating action with the
# listmanagedinstances method.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -16394,13 +16516,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Changes the intended size for the managed instance group. If you increase the
# size, the group schedules actions to create new instances using the current
# instance template. If you decrease the size, the group schedules delete
# actions on one or more instances. The resize operation is marked DONE when the
# resize actions are scheduled even if the group has not yet added or deleted
# any instances. You must separately verify the status of the creating or
# deleting actions with the listmanagedinstances method.
# Changes the intended size of the managed instance group. If you increase the
# size, the group creates new instances using the current instance template. If
# you decrease the size, the group deletes one or more instances.
# The resize operation is marked DONE if the resize request is successful. The
# underlying actions take additional time. You must separately verify the status
# of the creating or deleting actions with the listmanagedinstances method.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -16628,7 +16749,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -16978,7 +17099,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -17565,7 +17686,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -18111,7 +18232,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -18410,7 +18531,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -18984,7 +19105,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -19113,7 +19234,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -19222,7 +19343,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -19301,7 +19422,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -19546,7 +19667,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -19916,7 +20037,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -20174,7 +20295,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -20469,7 +20590,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -20566,7 +20687,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -20863,7 +20984,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -21317,7 +21438,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -21647,7 +21768,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -22293,7 +22414,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -22747,7 +22868,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -23440,7 +23561,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -23790,7 +23911,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -24266,7 +24387,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20181017'
REVISION = '20181022'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+623 -22
View File
@@ -1836,15 +1836,21 @@ module Google
# @return [String]
attr_accessor :description
# The fully-qualified URL of a Instance Group resource. This instance group
# defines the list of instances that serve traffic. Member virtual machine
# instances from each instance group must live in the same zone as the instance
# group itself. No two backends in a backend service are allowed to use same
# Instance Group resource.
# Note that you must specify an Instance Group resource using the fully-
# qualified URL, rather than a partial URL.
# The fully-qualified URL of an Instance Group or Network Endpoint Group
# resource. In case of instance group this defines the list of instances that
# serve traffic. Member virtual machine instances from each instance group must
# live in the same zone as the instance group itself. No two backends in a
# backend service are allowed to use same Instance Group resource.
# For Network Endpoint Groups this defines list of endpoints. All endpoints of
# Network Endpoint Group must be hosted on instances located in the same zone as
# the Network Endpoint Group.
# Backend service can not contain mix of Instance Group and Network Endpoint
# Group backends.
# Note that you must specify an Instance Group or Network Endpoint Group
# resource using the fully-qualified URL, rather than a partial URL.
# When the BackendService has load balancing scheme INTERNAL, the instance group
# must be within the same region as the BackendService.
# must be within the same region as the BackendService. Network Endpoint Groups
# are not supported for INTERNAL load balancing scheme.
# Corresponds to the JSON property `group`
# @return [String]
attr_accessor :group
@@ -2481,7 +2487,8 @@ module Google
class BackendServiceGroupHealth
include Google::Apis::Core::Hashable
#
# 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`
# @return [Array<Google::Apis::ComputeV1::HealthStatus>]
attr_accessor :health_status
@@ -7619,6 +7626,13 @@ module Google
# @return [Fixnum]
attr_accessor :restarting
# [Output Only] The number of instances in the managed instance group that are
# being verified. See the managedInstances[].currentAction property in the
# listManagedInstances method documentation.
# Corresponds to the JSON property `verifying`
# @return [Fixnum]
attr_accessor :verifying
def initialize(**args)
update!(**args)
end
@@ -7633,6 +7647,7 @@ module Google
@recreating = args[:recreating] if args.key?(:recreating)
@refreshing = args[:refreshing] if args.key?(:refreshing)
@restarting = args[:restarting] if args.key?(:restarting)
@verifying = args[:verifying] if args.key?(:verifying)
end
end
@@ -10045,6 +10060,172 @@ module Google
end
end
# Diagnostics information about interconnect, contains detailed and current
# technical information about Google?s side of the connection.
class InterconnectDiagnostics
include Google::Apis::Core::Hashable
# A list of InterconnectDiagnostics.ARPEntry objects, describing individual
# neighbors currently seen by the Google router in the ARP cache for the
# Interconnect. This will be empty when the Interconnect is not bundled.
# Corresponds to the JSON property `arpCaches`
# @return [Array<Google::Apis::ComputeV1::InterconnectDiagnosticsArpEntry>]
attr_accessor :arp_caches
# A list of InterconnectDiagnostics.LinkStatus objects, describing the status
# for each link on the Interconnect.
# Corresponds to the JSON property `links`
# @return [Array<Google::Apis::ComputeV1::InterconnectDiagnosticsLinkStatus>]
attr_accessor :links
# The MAC address of the Interconnect's bundle interface.
# Corresponds to the JSON property `macAddress`
# @return [String]
attr_accessor :mac_address
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@arp_caches = args[:arp_caches] if args.key?(:arp_caches)
@links = args[:links] if args.key?(:links)
@mac_address = args[:mac_address] if args.key?(:mac_address)
end
end
# Describing the ARP neighbor entries seen on this link
class InterconnectDiagnosticsArpEntry
include Google::Apis::Core::Hashable
# The IP address of this ARP neighbor.
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
# The MAC address of this ARP neighbor.
# Corresponds to the JSON property `macAddress`
# @return [String]
attr_accessor :mac_address
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@mac_address = args[:mac_address] if args.key?(:mac_address)
end
end
#
class InterconnectDiagnosticsLinkLacpStatus
include Google::Apis::Core::Hashable
# System ID of the port on Google?s side of the LACP exchange.
# Corresponds to the JSON property `googleSystemId`
# @return [String]
attr_accessor :google_system_id
# System ID of the port on the neighbor?s side of the LACP exchange.
# Corresponds to the JSON property `neighborSystemId`
# @return [String]
attr_accessor :neighbor_system_id
#
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@google_system_id = args[:google_system_id] if args.key?(:google_system_id)
@neighbor_system_id = args[:neighbor_system_id] if args.key?(:neighbor_system_id)
@state = args[:state] if args.key?(:state)
end
end
#
class InterconnectDiagnosticsLinkOpticalPower
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Value of the current optical power, read in dBm.
# Corresponds to the JSON property `value`
# @return [Float]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@state = args[:state] if args.key?(:state)
@value = args[:value] if args.key?(:value)
end
end
#
class InterconnectDiagnosticsLinkStatus
include Google::Apis::Core::Hashable
# A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP
# neighbor entries seen on this link. This will be empty if the link is bundled
# Corresponds to the JSON property `arpCaches`
# @return [Array<Google::Apis::ComputeV1::InterconnectDiagnosticsArpEntry>]
attr_accessor :arp_caches
# The unique ID for this link assigned during turn up by Google.
# Corresponds to the JSON property `circuitId`
# @return [String]
attr_accessor :circuit_id
# The Demarc address assigned by Google and provided in the LoA.
# Corresponds to the JSON property `googleDemarc`
# @return [String]
attr_accessor :google_demarc
#
# Corresponds to the JSON property `lacpStatus`
# @return [Google::Apis::ComputeV1::InterconnectDiagnosticsLinkLacpStatus]
attr_accessor :lacp_status
#
# Corresponds to the JSON property `receivingOpticalPower`
# @return [Google::Apis::ComputeV1::InterconnectDiagnosticsLinkOpticalPower]
attr_accessor :receiving_optical_power
#
# Corresponds to the JSON property `transmittingOpticalPower`
# @return [Google::Apis::ComputeV1::InterconnectDiagnosticsLinkOpticalPower]
attr_accessor :transmitting_optical_power
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@arp_caches = args[:arp_caches] if args.key?(:arp_caches)
@circuit_id = args[:circuit_id] if args.key?(:circuit_id)
@google_demarc = args[:google_demarc] if args.key?(:google_demarc)
@lacp_status = args[:lacp_status] if args.key?(:lacp_status)
@receiving_optical_power = args[:receiving_optical_power] if args.key?(:receiving_optical_power)
@transmitting_optical_power = args[:transmitting_optical_power] if args.key?(:transmitting_optical_power)
end
end
# Response to the list request, and contains a list of interconnects.
class InterconnectList
include Google::Apis::Core::Hashable
@@ -10488,6 +10669,26 @@ module Google
end
end
# Response for the InterconnectsGetDiagnosticsRequest.
class InterconnectsGetDiagnosticsResponse
include Google::Apis::Core::Hashable
# Diagnostics information about interconnect, contains detailed and current
# technical information about Google?s side of the connection.
# Corresponds to the JSON property `result`
# @return [Google::Apis::ComputeV1::InterconnectDiagnostics]
attr_accessor :result
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@result = args[:result] if args.key?(:result)
end
end
# A license resource.
class License
include Google::Apis::Core::Hashable
@@ -12596,8 +12797,8 @@ module Google
# 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 charaicter, which cannot be
# a dash.
# 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
@@ -14069,13 +14270,21 @@ module Google
include Google::Apis::Core::Hashable
# The full or partial URL to the BackendService resource. This will be used if
# none of the pathRules defined by this PathMatcher is matched by the URL's path
# portion. For example, the following are all valid URLs to a BackendService
# resource:
# none of the pathRules or routeRules defined by this PathMatcher are matched.
# For example, the following are all valid URLs to a BackendService resource:
# - https://www.googleapis.com/compute/v1/projects/project/global/
# backendServices/backendService
# - compute/v1/projects/project/global/backendServices/backendService
# - global/backendServices/backendService
# Use defaultService instead of defaultRouteAction when simple routing to a
# backend service is desired and other advanced capabilities like traffic
# splitting and URL rewrites are not required.
# Only one of defaultService, defaultRouteAction or defaultUrlRedirect must be
# set.
# Authorization requires one or more of the following Google IAM permissions on
# the specified resource default_service:
# - compute.backendBuckets.use
# - compute.backendServices.use
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@@ -14091,7 +14300,13 @@ module Google
# @return [String]
attr_accessor :name
# The list of path rules.
# The list of path rules. Use this list instead of routeRules when routing based
# on simple path matching is all that's required. The order by which path rules
# are specified does not matter. Matches are always done on the longest-path-
# first basis.
# For example: a pathRule with a path /a/b/c/* will match before /a/b/*
# irrespective of the order in which those paths appear in this list.
# Only one of pathRules or routeRules must be set.
# Corresponds to the JSON property `pathRules`
# @return [Array<Google::Apis::ComputeV1::PathRule>]
attr_accessor :path_rules
@@ -14122,7 +14337,11 @@ module Google
# @return [Array<String>]
attr_accessor :paths
# The URL of the BackendService resource if this rule is matched.
# The URL of the backend service resource if this rule is matched.
# Use service instead of routeAction when simple routing to a backend service is
# desired and other advanced capabilities like traffic splitting and rewrites
# are not required.
# Only one of service, routeAction or urlRedirect should must be set.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
@@ -15474,7 +15693,8 @@ module Google
class ResourceGroupReference
include Google::Apis::Core::Hashable
# A URI referencing one of the instance groups listed in the backend service.
# A URI referencing one of the instance groups or network endpoint groups listed
# in the backend service.
# Corresponds to the JSON property `group`
# @return [String]
attr_accessor :group
@@ -15870,6 +16090,11 @@ module Google
# @return [String]
attr_accessor :name
# A list of Nat services created in this router.
# Corresponds to the JSON property `nats`
# @return [Array<Google::Apis::ComputeV1::RouterNat>]
attr_accessor :nats
# URI of the network to which this router belongs.
# Corresponds to the JSON property `network`
# @return [String]
@@ -15901,6 +16126,7 @@ module Google
@interfaces = args[:interfaces] if args.key?(:interfaces)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@nats = args[:nats] if args.key?(:nats)
@network = args[:network] if args.key?(:network)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@@ -16357,6 +16583,132 @@ module Google
end
end
# Represents a Nat resource. It enables the VMs within the specified subnetworks
# to access Internet without external IP addresses. It specifies a list of
# subnetworks (and the ranges within) that want to use NAT. Customers can also
# provide the external IPs that would be used for NAT. GCP would auto-allocate
# ephemeral IPs if no external IPs are provided.
class RouterNat
include Google::Apis::Core::Hashable
# Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
# Corresponds to the JSON property `icmpIdleTimeoutSec`
# @return [Fixnum]
attr_accessor :icmp_idle_timeout_sec
# Minimum number of ports allocated to a VM from this NAT config. If not set, a
# default number of ports is allocated to a VM. This gets rounded up to the
# nearest power of 2. Eg. if the value of this field is 50, at least 64 ports
# will be allocated to a VM.
# Corresponds to the JSON property `minPortsPerVm`
# @return [Fixnum]
attr_accessor :min_ports_per_vm
# Unique name of this Nat service. The name must be 1-63 characters long and
# comply with RFC1035.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Specify the NatIpAllocateOption. If it is AUTO_ONLY, then nat_ip should be
# empty.
# Corresponds to the JSON property `natIpAllocateOption`
# @return [String]
attr_accessor :nat_ip_allocate_option
# A list of URLs of the IP resources used for this Nat service. These IPs must
# be valid static external IP addresses assigned to the project. max_length is
# subject to change post alpha.
# Corresponds to the JSON property `natIps`
# @return [Array<String>]
attr_accessor :nat_ips
# Specify the Nat option. If this field contains ALL_SUBNETWORKS_ALL_IP_RANGES
# or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other
# Router.Nat section in any Router for this network in this region.
# Corresponds to the JSON property `sourceSubnetworkIpRangesToNat`
# @return [String]
attr_accessor :source_subnetwork_ip_ranges_to_nat
# A list of Subnetwork resources whose traffic should be translated by NAT
# Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the
# SubnetworkIpRangeToNatOption above.
# Corresponds to the JSON property `subnetworks`
# @return [Array<Google::Apis::ComputeV1::RouterNatSubnetworkToNat>]
attr_accessor :subnetworks
# Timeout (in seconds) for TCP established connections. Defaults to 1200s if not
# set.
# Corresponds to the JSON property `tcpEstablishedIdleTimeoutSec`
# @return [Fixnum]
attr_accessor :tcp_established_idle_timeout_sec
# Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not
# set.
# Corresponds to the JSON property `tcpTransitoryIdleTimeoutSec`
# @return [Fixnum]
attr_accessor :tcp_transitory_idle_timeout_sec
# Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
# Corresponds to the JSON property `udpIdleTimeoutSec`
# @return [Fixnum]
attr_accessor :udp_idle_timeout_sec
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec)
@min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm)
@name = args[:name] if args.key?(:name)
@nat_ip_allocate_option = args[:nat_ip_allocate_option] if args.key?(:nat_ip_allocate_option)
@nat_ips = args[:nat_ips] if args.key?(:nat_ips)
@source_subnetwork_ip_ranges_to_nat = args[:source_subnetwork_ip_ranges_to_nat] if args.key?(:source_subnetwork_ip_ranges_to_nat)
@subnetworks = args[:subnetworks] if args.key?(:subnetworks)
@tcp_established_idle_timeout_sec = args[:tcp_established_idle_timeout_sec] if args.key?(:tcp_established_idle_timeout_sec)
@tcp_transitory_idle_timeout_sec = args[:tcp_transitory_idle_timeout_sec] if args.key?(:tcp_transitory_idle_timeout_sec)
@udp_idle_timeout_sec = args[:udp_idle_timeout_sec] if args.key?(:udp_idle_timeout_sec)
end
end
# Defines the IP ranges that want to use NAT for a subnetwork.
class RouterNatSubnetworkToNat
include Google::Apis::Core::Hashable
# URL for the subnetwork resource to use NAT.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A list of the secondary ranges of the Subnetwork that are allowed to use NAT.
# This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the
# values in source_ip_ranges_to_nat.
# Corresponds to the JSON property `secondaryIpRangeNames`
# @return [Array<String>]
attr_accessor :secondary_ip_range_names
# Specify the options for NAT ranges in the Subnetwork. All usages of single
# value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option
# with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"]
# Default: [ALL_IP_RANGES]
# Corresponds to the JSON property `sourceIpRangesToNat`
# @return [Array<String>]
attr_accessor :source_ip_ranges_to_nat
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@secondary_ip_range_names = args[:secondary_ip_range_names] if args.key?(:secondary_ip_range_names)
@source_ip_ranges_to_nat = args[:source_ip_ranges_to_nat] if args.key?(:source_ip_ranges_to_nat)
end
end
#
class RouterStatus
include Google::Apis::Core::Hashable
@@ -16376,6 +16728,11 @@ module Google
# @return [Array<Google::Apis::ComputeV1::RouterStatusBgpPeerStatus>]
attr_accessor :bgp_peer_status
#
# Corresponds to the JSON property `natStatus`
# @return [Array<Google::Apis::ComputeV1::RouterStatusNatStatus>]
attr_accessor :nat_status
# URI of the network to which this router belongs.
# Corresponds to the JSON property `network`
# @return [String]
@@ -16390,6 +16747,7 @@ module Google
@best_routes = args[:best_routes] if args.key?(:best_routes)
@best_routes_for_router = args[:best_routes_for_router] if args.key?(:best_routes_for_router)
@bgp_peer_status = args[:bgp_peer_status] if args.key?(:bgp_peer_status)
@nat_status = args[:nat_status] if args.key?(:nat_status)
@network = args[:network] if args.key?(:network)
end
end
@@ -16468,6 +16826,58 @@ module Google
end
end
# Status of a NAT contained in this router.
class RouterStatusNatStatus
include Google::Apis::Core::Hashable
# A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]
# Corresponds to the JSON property `autoAllocatedNatIps`
# @return [Array<String>]
attr_accessor :auto_allocated_nat_ips
# The number of extra IPs to allocate. This will be greater than 0 only if user-
# specified IPs are NOT enough to allow all configured VMs to use NAT. This
# value is meaningful only when auto-allocation of NAT IPs is *not* used.
# Corresponds to the JSON property `minExtraNatIpsNeeded`
# @return [Fixnum]
attr_accessor :min_extra_nat_ips_needed
# Unique name of this NAT.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Number of VM endpoints (i.e., Nics) that can use NAT.
# Corresponds to the JSON property `numVmEndpointsWithNatMappings`
# @return [Fixnum]
attr_accessor :num_vm_endpoints_with_nat_mappings
# A list of fully qualified URLs of reserved IP address resources.
# Corresponds to the JSON property `userAllocatedNatIpResources`
# @return [Array<String>]
attr_accessor :user_allocated_nat_ip_resources
# A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.
# 26.133".
# Corresponds to the JSON property `userAllocatedNatIps`
# @return [Array<String>]
attr_accessor :user_allocated_nat_ips
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_allocated_nat_ips = args[:auto_allocated_nat_ips] if args.key?(:auto_allocated_nat_ips)
@min_extra_nat_ips_needed = args[:min_extra_nat_ips_needed] if args.key?(:min_extra_nat_ips_needed)
@name = args[:name] if args.key?(:name)
@num_vm_endpoints_with_nat_mappings = args[:num_vm_endpoints_with_nat_mappings] if args.key?(:num_vm_endpoints_with_nat_mappings)
@user_allocated_nat_ip_resources = args[:user_allocated_nat_ip_resources] if args.key?(:user_allocated_nat_ip_resources)
@user_allocated_nat_ips = args[:user_allocated_nat_ips] if args.key?(:user_allocated_nat_ips)
end
end
#
class RouterStatusResponse
include Google::Apis::Core::Hashable
@@ -18853,8 +19263,8 @@ module Google
attr_accessor :self_link
# URLs to SslCertificate resources that are used to authenticate connections
# between users and the load balancer. Currently, exactly one SSL certificate
# must be specified.
# between users and the load balancer. At least one SSL certificate must be
# specified. Currently, you may specify up to 15 SSL certificates.
# Corresponds to the JSON property `sslCertificates`
# @return [Array<String>]
attr_accessor :ssl_certificates
@@ -19518,7 +19928,7 @@ module Google
# @return [String]
attr_accessor :self_link
# Sesssion affinity option, must be one of the following values:
# Session affinity option, must be one of the following values:
# NONE: Connections from the same client IP may go to any instance in the pool.
# CLIENT_IP: Connections from the same client IP will go to the same instance in
# the pool while that instance remains healthy.
@@ -20121,7 +20531,8 @@ module Google
attr_accessor :service
# URLs to SslCertificate resources that are used to authenticate connections to
# Backends. Currently exactly one SSL certificate must be specified.
# Backends. At least one SSL certificate must be specified. Currently, you may
# specify up to 15 SSL certificates.
# Corresponds to the JSON property `sslCertificates`
# @return [Array<String>]
attr_accessor :ssl_certificates
@@ -21004,7 +21415,12 @@ module Google
# @return [String]
attr_accessor :creation_timestamp
# The URL of the BackendService resource if none of the hostRules match.
# The URL of the backendService resource if none of the hostRules match.
# Use defaultService instead of defaultRouteAction when simple routing to a
# backendService is desired and other advanced capabilities like traffic
# splitting and rewrites are not required.
# Only one of defaultService, defaultRouteAction or defaultUrlRedirect should
# must be set.
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@@ -21559,6 +21975,191 @@ module Google
end
end
# Contain information of Nat mapping for a VM endpoint (i.e., NIC).
class VmEndpointNatMappings
include Google::Apis::Core::Hashable
# Name of the VM instance which the endpoint belongs to
# Corresponds to the JSON property `instanceName`
# @return [String]
attr_accessor :instance_name
#
# Corresponds to the JSON property `interfaceNatMappings`
# @return [Array<Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappings>]
attr_accessor :interface_nat_mappings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instance_name = args[:instance_name] if args.key?(:instance_name)
@interface_nat_mappings = args[:interface_nat_mappings] if args.key?(:interface_nat_mappings)
end
end
# Contain information of Nat mapping for an interface of this endpoint.
class VmEndpointNatMappingsInterfaceNatMappings
include Google::Apis::Core::Hashable
# A list of all IP:port-range mappings assigned to this interface. These ranges
# are inclusive, that is, both the first and the last ports can be used for NAT.
# Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].
# Corresponds to the JSON property `natIpPortRanges`
# @return [Array<String>]
attr_accessor :nat_ip_port_ranges
# Total number of ports across all NAT IPs allocated to this interface. It
# equals to the aggregated port number in the field nat_ip_port_ranges.
# Corresponds to the JSON property `numTotalNatPorts`
# @return [Fixnum]
attr_accessor :num_total_nat_ports
# Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP
# range. Examples: "10.33.4.55/32", or "192.168.5.0/24".
# Corresponds to the JSON property `sourceAliasIpRange`
# @return [String]
attr_accessor :source_alias_ip_range
# Primary IP of the VM for this NIC.
# Corresponds to the JSON property `sourceVirtualIp`
# @return [String]
attr_accessor :source_virtual_ip
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges)
@num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports)
@source_alias_ip_range = args[:source_alias_ip_range] if args.key?(:source_alias_ip_range)
@source_virtual_ip = args[:source_virtual_ip] if args.key?(:source_virtual_ip)
end
end
# Contains a list of VmEndpointNatMappings.
class VmEndpointNatMappingsList
include Google::Apis::Core::Hashable
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for
# lists of Nat mappings of VM 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] A list of Nat mapping information of VM endpoints.
# Corresponds to the JSON property `result`
# @return [Array<Google::Apis::ComputeV1::VmEndpointNatMappings>]
attr_accessor :result
# [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::VmEndpointNatMappingsList::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)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@result = args[:result] if args.key?(:result)
@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::VmEndpointNatMappingsList::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
# VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for v1.
# vpnTunnels ==)
class VpnTunnel
@@ -1312,6 +1312,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectDiagnostics
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectDiagnosticsArpEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectDiagnosticsLinkLacpStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectDiagnosticsLinkOpticalPower
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectDiagnosticsLinkStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectList
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1366,6 +1396,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectsGetDiagnosticsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class License
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -2230,6 +2266,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RouterNat
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RouterNatSubnetworkToNat
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RouterStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -2242,6 +2290,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RouterStatusNatStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RouterStatusResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -3010,6 +3064,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VmEndpointNatMappings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VmEndpointNatMappingsInterfaceNatMappings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VmEndpointNatMappingsList
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 VpnTunnel
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -4924,6 +5008,7 @@ module Google
property :recreating, as: 'recreating'
property :refreshing, as: 'refreshing'
property :restarting, as: 'restarting'
property :verifying, as: 'verifying'
end
end
@@ -5571,6 +5656,58 @@ module Google
end
end
class InterconnectDiagnostics
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :arp_caches, as: 'arpCaches', class: Google::Apis::ComputeV1::InterconnectDiagnosticsArpEntry, decorator: Google::Apis::ComputeV1::InterconnectDiagnosticsArpEntry::Representation
collection :links, as: 'links', class: Google::Apis::ComputeV1::InterconnectDiagnosticsLinkStatus, decorator: Google::Apis::ComputeV1::InterconnectDiagnosticsLinkStatus::Representation
property :mac_address, as: 'macAddress'
end
end
class InterconnectDiagnosticsArpEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_address, as: 'ipAddress'
property :mac_address, as: 'macAddress'
end
end
class InterconnectDiagnosticsLinkLacpStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :google_system_id, as: 'googleSystemId'
property :neighbor_system_id, as: 'neighborSystemId'
property :state, as: 'state'
end
end
class InterconnectDiagnosticsLinkOpticalPower
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state'
property :value, as: 'value'
end
end
class InterconnectDiagnosticsLinkStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :arp_caches, as: 'arpCaches', class: Google::Apis::ComputeV1::InterconnectDiagnosticsArpEntry, decorator: Google::Apis::ComputeV1::InterconnectDiagnosticsArpEntry::Representation
property :circuit_id, as: 'circuitId'
property :google_demarc, as: 'googleDemarc'
property :lacp_status, as: 'lacpStatus', class: Google::Apis::ComputeV1::InterconnectDiagnosticsLinkLacpStatus, decorator: Google::Apis::ComputeV1::InterconnectDiagnosticsLinkLacpStatus::Representation
property :receiving_optical_power, as: 'receivingOpticalPower', class: Google::Apis::ComputeV1::InterconnectDiagnosticsLinkOpticalPower, decorator: Google::Apis::ComputeV1::InterconnectDiagnosticsLinkOpticalPower::Representation
property :transmitting_optical_power, as: 'transmittingOpticalPower', class: Google::Apis::ComputeV1::InterconnectDiagnosticsLinkOpticalPower, decorator: Google::Apis::ComputeV1::InterconnectDiagnosticsLinkOpticalPower::Representation
end
end
class InterconnectList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -5679,6 +5816,14 @@ module Google
end
end
class InterconnectsGetDiagnosticsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :result, as: 'result', class: Google::Apis::ComputeV1::InterconnectDiagnostics, decorator: Google::Apis::ComputeV1::InterconnectDiagnostics::Representation
end
end
class License
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -7095,6 +7240,8 @@ module Google
property :kind, as: 'kind'
property :name, as: 'name'
collection :nats, as: 'nats', class: Google::Apis::ComputeV1::RouterNat, decorator: Google::Apis::ComputeV1::RouterNat::Representation
property :network, as: 'network'
property :region, as: 'region'
property :self_link, as: 'selfLink'
@@ -7212,6 +7359,32 @@ module Google
end
end
class RouterNat
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec'
property :min_ports_per_vm, as: 'minPortsPerVm'
property :name, as: 'name'
property :nat_ip_allocate_option, as: 'natIpAllocateOption'
collection :nat_ips, as: 'natIps'
property :source_subnetwork_ip_ranges_to_nat, as: 'sourceSubnetworkIpRangesToNat'
collection :subnetworks, as: 'subnetworks', class: Google::Apis::ComputeV1::RouterNatSubnetworkToNat, decorator: Google::Apis::ComputeV1::RouterNatSubnetworkToNat::Representation
property :tcp_established_idle_timeout_sec, as: 'tcpEstablishedIdleTimeoutSec'
property :tcp_transitory_idle_timeout_sec, as: 'tcpTransitoryIdleTimeoutSec'
property :udp_idle_timeout_sec, as: 'udpIdleTimeoutSec'
end
end
class RouterNatSubnetworkToNat
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
collection :secondary_ip_range_names, as: 'secondaryIpRangeNames'
collection :source_ip_ranges_to_nat, as: 'sourceIpRangesToNat'
end
end
class RouterStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -7221,6 +7394,8 @@ module Google
collection :bgp_peer_status, as: 'bgpPeerStatus', class: Google::Apis::ComputeV1::RouterStatusBgpPeerStatus, decorator: Google::Apis::ComputeV1::RouterStatusBgpPeerStatus::Representation
collection :nat_status, as: 'natStatus', class: Google::Apis::ComputeV1::RouterStatusNatStatus, decorator: Google::Apis::ComputeV1::RouterStatusNatStatus::Representation
property :network, as: 'network'
end
end
@@ -7242,6 +7417,18 @@ module Google
end
end
class RouterStatusNatStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :auto_allocated_nat_ips, as: 'autoAllocatedNatIps'
property :min_extra_nat_ips_needed, as: 'minExtraNatIpsNeeded'
property :name, as: 'name'
property :num_vm_endpoints_with_nat_mappings, as: 'numVmEndpointsWithNatMappings'
collection :user_allocated_nat_ip_resources, as: 'userAllocatedNatIpResources'
collection :user_allocated_nat_ips, as: 'userAllocatedNatIps'
end
end
class RouterStatusResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -8565,6 +8752,57 @@ module Google
end
end
class VmEndpointNatMappings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance_name, as: 'instanceName'
collection :interface_nat_mappings, as: 'interfaceNatMappings', class: Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappings, decorator: Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappings::Representation
end
end
class VmEndpointNatMappingsInterfaceNatMappings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :nat_ip_port_ranges, as: 'natIpPortRanges'
property :num_total_nat_ports, as: 'numTotalNatPorts'
property :source_alias_ip_range, as: 'sourceAliasIpRange'
property :source_virtual_ip, as: 'sourceVirtualIp'
end
end
class VmEndpointNatMappingsList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :result, as: 'result', class: Google::Apis::ComputeV1::VmEndpointNatMappings, decorator: Google::Apis::ComputeV1::VmEndpointNatMappings::Representation
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeV1::VmEndpointNatMappingsList::Warning, decorator: Google::Apis::ComputeV1::VmEndpointNatMappingsList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::VmEndpointNatMappingsList::Warning::Datum, decorator: Google::Apis::ComputeV1::VmEndpointNatMappingsList::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 VpnTunnel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+174 -53
View File
@@ -5168,14 +5168,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to remove the specified instances from the managed
# instance group. Abandoning an instance does not delete the instance, but it
# does remove the instance from any target pools that are applied by the managed
# instance group. This method reduces the targetSize of the managed instance
# group by the number of instances that you abandon. This operation is marked as
# DONE when the action is scheduled even if the instances have not yet been
# removed from the group. You must separately verify the status of the
# abandoning action with the listmanagedinstances method.
# Flags the specified instances to be removed from the managed instance group.
# Abandoning an instance does not delete the instance, but it does remove the
# instance from any target pools that are applied by the managed instance group.
# This method reduces the targetSize of the managed instance group by the number
# of instances that you abandon. This operation is marked as DONE when the
# action is scheduled even if the instances have not yet been removed from the
# group. You must separately verify the status of the abandoning action with the
# listmanagedinstances method.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -5357,9 +5357,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to delete the specified instances in the managed
# instance group. The instances are also removed from any target pools of which
# they were a member. This method reduces the targetSize of the managed instance
# Flags the specified instances in the managed instance group for immediate
# deletion. The instances are also removed from any target pools of which they
# were a member. This method reduces the targetSize of the managed instance
# group by the number of instances that you delete. This operation is marked as
# DONE when the action is scheduled even if the instances are still being
# deleted. You must separately verify the status of the deleting action with the
@@ -5462,11 +5462,11 @@ module Google
end
# Creates a managed instance group using the information that you specify in the
# request. After the group is created, it schedules an action to create
# instances in the group using the specified instance template. This operation
# is marked as DONE when the group is created even if the instances in the group
# have not yet been created. You must separately verify the status of the
# individual instances with the listmanagedinstances method.
# request. After the group is created, instances in the group are created using
# the specified instance template. This operation is marked as DONE when the
# group is created even if the instances in the group have not yet been created.
# You must separately verify the status of the individual instances with the
# listmanagedinstances method.
# A managed instance group can have up to 1000 VM instances per group. Please
# contact Cloud Support if you need an increase in this limit.
# @param [String] project
@@ -5675,12 +5675,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to recreate the specified instances in the managed
# instance group. The instances are deleted and recreated using the current
# instance template for the managed instance group. This operation is marked as
# DONE when the action is scheduled even if the instances have not yet been
# recreated. You must separately verify the status of the recreating action with
# the listmanagedinstances method.
# Flags the specified instances in the managed instance group to be immediately
# recreated. The instances are deleted and recreated using the current instance
# template for the managed instance group. This operation is marked as DONE when
# the flag is set even if the instances have not yet been recreated. You must
# separately verify the status of the recreating action with the
# listmanagedinstances method.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -5744,6 +5744,13 @@ module Google
# the resize actions are scheduled even if the group has not yet added or
# deleted any instances. You must separately verify the status of the creating
# or deleting actions with the listmanagedinstances method.
# When resizing down, the instance group arbitrarily chooses the order in which
# VMs are deleted. The group takes into account some VM attributes when making
# the selection including:
# + The status of the VM instance. + The health of the VM instance. + The
# instance template version the VM is based on. + For regional managed instance
# groups, the location of the VM instance.
# This list is subject to change.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -7244,7 +7251,7 @@ module Google
end
# Retrieves the list of referrers to instances contained within the specified
# zone.
# zone. For more information, read Viewing Referrers to VM Instances.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@@ -7869,7 +7876,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets tags for the specified instance to the data included in the request.
# Sets network tags for the specified instance to the data included in the
# request.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@@ -8778,6 +8786,42 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the interconnectDiagnostics for the specified interconnect.
# @param [String] project
# Project ID for this request.
# @param [String] interconnect
# Name of the interconnect resource to query.
# @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::InterconnectsGetDiagnosticsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::InterconnectsGetDiagnosticsResponse]
#
# @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_interconnect_diagnostics(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/interconnects/{interconnect}/getDiagnostics', options)
command.response_representation = Google::Apis::ComputeV1::InterconnectsGetDiagnosticsResponse::Representation
command.response_class = Google::Apis::ComputeV1::InterconnectsGetDiagnosticsResponse
command.params['project'] = project unless project.nil?
command.params['interconnect'] = interconnect unless interconnect.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 Interconnect in the specified project using the data included in the
# request.
# @param [String] project
@@ -8992,7 +9036,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -9238,7 +9282,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -12960,7 +13004,7 @@ module Google
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -12996,7 +13040,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to remove the specified instances from the managed
# Flags the specified instances to be immediately removed from the managed
# instance group. Abandoning an instance does not delete the instance, but it
# does remove the instance from any target pools that are applied by the managed
# instance group. This method reduces the targetSize of the managed instance
@@ -13113,13 +13157,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to delete the specified instances in the managed
# instance group. The instances are also removed from any target pools of which
# they were a member. This method reduces the targetSize of the managed instance
# group by the number of instances that you delete. This operation is marked as
# DONE when the action is scheduled even if the instances are still being
# deleted. You must separately verify the status of the deleting action with the
# listmanagedinstances method.
# Flags the specified instances in the managed instance group to be immediately
# deleted. The instances are also removed from any target pools of which they
# were a member. This method reduces the targetSize of the managed instance
# group by the number of instances that you delete. The deleteInstances
# operation is marked DONE if the deleteInstances request is successful. The
# underlying actions take additional time. You must separately verify the status
# of the deleting action with the listmanagedinstances method.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -13217,11 +13261,11 @@ module Google
end
# Creates a managed instance group using the information that you specify in the
# request. After the group is created, it schedules an action to create
# instances in the group using the specified instance template. This operation
# is marked as DONE when the group is created even if the instances in the group
# have not yet been created. You must separately verify the status of the
# individual instances with the listmanagedinstances method.
# request. After the group is created, instances in the group are created using
# the specified instance template. This operation is marked as DONE when the
# group is created even if the instances in the group have not yet been created.
# You must separately verify the status of the individual instances with the
# listmanagedinstances method.
# A regional managed instance group can contain up to 2000 instances.
# @param [String] project
# Project ID for this request.
@@ -13427,12 +13471,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Schedules a group action to recreate the specified instances in the managed
# instance group. The instances are deleted and recreated using the current
# instance template for the managed instance group. This operation is marked as
# DONE when the action is scheduled even if the instances have not yet been
# recreated. You must separately verify the status of the recreating action with
# the listmanagedinstances method.
# Flags the specified instances in the managed instance group to be immediately
# recreated. The instances are deleted and recreated using the current instance
# template for the managed instance group. This operation is marked as DONE when
# the flag is set even if the instances have not yet been recreated. You must
# separately verify the status of the recreating action with the
# listmanagedinstances method.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -13490,13 +13534,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Changes the intended size for the managed instance group. If you increase the
# size, the group schedules actions to create new instances using the current
# instance template. If you decrease the size, the group schedules delete
# actions on one or more instances. The resize operation is marked DONE when the
# resize actions are scheduled even if the group has not yet added or deleted
# any instances. You must separately verify the status of the creating or
# deleting actions with the listmanagedinstances method.
# Changes the intended size of the managed instance group. If you increase the
# size, the group creates new instances using the current instance template. If
# you decrease the size, the group deletes one or more instances.
# The resize operation is marked DONE if the resize request is successful. The
# underlying actions take additional time. You must separately verify the status
# of the creating or deleting actions with the listmanagedinstances method.
# If the group is part of a backend service that has enabled connection draining,
# it can take up to 60 seconds after the connection draining duration has
# elapsed before the VM instance is removed or deleted.
@@ -14333,6 +14376,84 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves runtime Nat mapping information of VM endpoints.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] router
# Name of the Router resource to query for Nat Mapping information of VM
# endpoints.
# @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::VmEndpointNatMappingsList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::VmEndpointNatMappingsList]
#
# @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_router_nat_mapping_info(project, region, router, 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}/routers/{router}/getNatMappingInfo', options)
command.response_representation = Google::Apis::ComputeV1::VmEndpointNatMappingsList::Representation
command.response_class = Google::Apis::ComputeV1::VmEndpointNatMappingsList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['router'] = router unless router.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
# Retrieves runtime information of the specified router.
# @param [String] project
# Project ID for this request.
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/sql/docs/reference/latest
module SqladminV1beta4
VERSION = 'V1beta4'
REVISION = '20180917'
REVISION = '20181031'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -60,6 +60,31 @@ module Google
end
end
# An Admin API warning message.
class ApiWarning
include Google::Apis::Core::Hashable
# Code to uniquely identify the warning type.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# The warning message.
# 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)
@message = args[:message] if args.key?(:message)
end
end
# Database instance backup configuration.
class BackupConfiguration
include Google::Apis::Core::Hashable
@@ -849,6 +874,11 @@ module Google
class SqlExportOptions
include Google::Apis::Core::Hashable
# Options for exporting from MySQL.
# Corresponds to the JSON property `mysqlExportOptions`
# @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions]
attr_accessor :mysql_export_options
# Export only schemas.
# Corresponds to the JSON property `schemaOnly`
# @return [Boolean]
@@ -868,9 +898,32 @@ module Google
# Update properties of this object
def update!(**args)
@mysql_export_options = args[:mysql_export_options] if args.key?(:mysql_export_options)
@schema_only = args[:schema_only] if args.key?(:schema_only)
@tables = args[:tables] if args.key?(:tables)
end
# Options for exporting from MySQL.
class MysqlExportOptions
include Google::Apis::Core::Hashable
# Option to include SQL statement required to set up replication. If set to 1,
# the dump file includes a CHANGE MASTER TO statement with the binary log
# coordinates. If set to 2, the CHANGE MASTER TO statement is written as a SQL
# comment, and has no effect. All other values are ignored.
# Corresponds to the JSON property `masterData`
# @return [Fixnum]
attr_accessor :master_data
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@master_data = args[:master_data] if args.key?(:master_data)
end
end
end
end
@@ -1196,6 +1249,11 @@ module Google
# @return [String]
attr_accessor :next_page_token
# List of warnings that ocurred while handling the request.
# Corresponds to the JSON property `warnings`
# @return [Array<Google::Apis::SqladminV1beta4::ApiWarning>]
attr_accessor :warnings
def initialize(**args)
update!(**args)
end
@@ -1205,6 +1263,7 @@ module Google
@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)
@warnings = args[:warnings] if args.key?(:warnings)
end
end
@@ -1313,7 +1372,9 @@ module Google
attr_accessor :ipv4_enabled
alias_method :ipv4_enabled?, :ipv4_enabled
# Reserved for future use.
# The resource link for the VPC network from which the Cloud SQL instance is
# accessible for private IP. For example, /projects/myProject/global/networks/
# default. This setting can be updated, but it cannot be removed after it is set.
# Corresponds to the JSON property `privateNetwork`
# @return [String]
attr_accessor :private_network
@@ -1409,7 +1470,7 @@ module Google
end
# Maintenance window. This specifies when a v2 Cloud SQL instance should
# preferably be restarted for system maintenance puruposes.
# preferably be restarted for system maintenance purposes.
class MaintenanceWindow
include Google::Apis::Core::Hashable
@@ -1943,7 +2004,7 @@ module Google
attr_accessor :location_preference
# Maintenance window. This specifies when a v2 Cloud SQL instance should
# preferably be restarted for system maintenance puruposes.
# preferably be restarted for system maintenance purposes.
# Corresponds to the JSON property `maintenanceWindow`
# @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
attr_accessor :maintenance_window
@@ -28,6 +28,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ApiWarning
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackupConfiguration
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -117,6 +123,12 @@ module Google
class SqlExportOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
class MysqlExportOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
@@ -375,6 +387,14 @@ module Google
end
end
class ApiWarning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
end
end
class BackupConfiguration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -570,9 +590,18 @@ module Google
class SqlExportOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :mysql_export_options, as: 'mysqlExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions::Representation
property :schema_only, as: 'schemaOnly'
collection :tables, as: 'tables'
end
class MysqlExportOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :master_data, as: 'masterData'
end
end
end
end
@@ -675,6 +704,8 @@ module Google
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1beta4::ApiWarning, decorator: Google::Apis::SqladminV1beta4::ApiWarning::Representation
end
end
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/vault
module VaultV1
VERSION = 'V1'
REVISION = '20180919'
REVISION = '20181106'
# Manage your eDiscovery data
AUTH_EDISCOVERY = 'https://www.googleapis.com/auth/ediscovery'
+72
View File
@@ -921,6 +921,32 @@ module Google
end
end
# Definition of the response for method ListSaveQuery.
class ListSavedQueriesResponse
include Google::Apis::Core::Hashable
# Page token to retrieve the next page of results in the list.
# If this is empty, then there are no more saved queries to list.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of output saved queries.
# Corresponds to the JSON property `savedQueries`
# @return [Array<Google::Apis::VaultV1::SavedQuery>]
attr_accessor :saved_queries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@saved_queries = args[:saved_queries] if args.key?(:saved_queries)
end
end
# The options for mail export.
class MailExportOptions
include Google::Apis::Core::Hashable
@@ -1256,6 +1282,52 @@ module Google
end
end
# Definition of the saved query.
class SavedQuery
include Google::Apis::Core::Hashable
# Output only. The server generated timestamp at which saved query was
# created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Name of the saved query.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. The matter id of the associated matter.
# The server does not look at this field during create and always uses matter
# id in the URL.
# Corresponds to the JSON property `matterId`
# @return [String]
attr_accessor :matter_id
# A query definition relevant for search & export.
# Corresponds to the JSON property `query`
# @return [Google::Apis::VaultV1::Query]
attr_accessor :query
# A unique identifier for the saved query.
# Corresponds to the JSON property `savedQueryId`
# @return [String]
attr_accessor :saved_query_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@display_name = args[:display_name] if args.key?(:display_name)
@matter_id = args[:matter_id] if args.key?(:matter_id)
@query = args[:query] if args.key?(:query)
@saved_query_id = args[:saved_query_id] if args.key?(:saved_query_id)
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
@@ -208,6 +208,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListSavedQueriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MailExportOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -274,6 +280,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SavedQuery
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -579,6 +591,15 @@ module Google
end
end
class ListSavedQueriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :saved_queries, as: 'savedQueries', class: Google::Apis::VaultV1::SavedQuery, decorator: Google::Apis::VaultV1::SavedQuery::Representation
end
end
class MailExportOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -684,6 +705,18 @@ module Google
end
end
class SavedQuery
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :display_name, as: 'displayName'
property :matter_id, as: 'matterId'
property :query, as: 'query', class: Google::Apis::VaultV1::Query, decorator: Google::Apis::VaultV1::Query::Representation
property :saved_query_id, as: 'savedQueryId'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+141
View File
@@ -887,6 +887,147 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a saved query.
# @param [String] matter_id
# The matter id of the parent matter for which the saved query is to be
# created.
# @param [Google::Apis::VaultV1::SavedQuery] saved_query_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::VaultV1::SavedQuery] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::VaultV1::SavedQuery]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_matter_saved_query(matter_id, saved_query_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/matters/{matterId}/savedQueries', options)
command.request_representation = Google::Apis::VaultV1::SavedQuery::Representation
command.request_object = saved_query_object
command.response_representation = Google::Apis::VaultV1::SavedQuery::Representation
command.response_class = Google::Apis::VaultV1::SavedQuery
command.params['matterId'] = matter_id unless matter_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a saved query by Id.
# @param [String] matter_id
# The matter id of the parent matter for which the saved query is to be
# deleted.
# @param [String] saved_query_id
# Id of the saved query to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::VaultV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::VaultV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_matter_saved_query(matter_id, saved_query_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/matters/{matterId}/savedQueries/{savedQueryId}', options)
command.response_representation = Google::Apis::VaultV1::Empty::Representation
command.response_class = Google::Apis::VaultV1::Empty
command.params['matterId'] = matter_id unless matter_id.nil?
command.params['savedQueryId'] = saved_query_id unless saved_query_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a saved query by Id.
# @param [String] matter_id
# The matter id of the parent matter for which the saved query is to be
# retrieved.
# @param [String] saved_query_id
# Id of the saved query to be retrieved.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::VaultV1::SavedQuery] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::VaultV1::SavedQuery]
#
# @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_matter_saved_query(matter_id, saved_query_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/matters/{matterId}/savedQueries/{savedQueryId}', options)
command.response_representation = Google::Apis::VaultV1::SavedQuery::Representation
command.response_class = Google::Apis::VaultV1::SavedQuery
command.params['matterId'] = matter_id unless matter_id.nil?
command.params['savedQueryId'] = saved_query_id unless saved_query_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists saved queries within a matter. An empty page token in
# ListSavedQueriesResponse denotes no more saved queries to list.
# @param [String] matter_id
# The matter id of the parent matter for which the saved queries are to be
# retrieved.
# @param [Fixnum] page_size
# The maximum number of saved queries to return.
# @param [String] page_token
# The pagination token as returned in the previous response.
# An empty token means start from the beginning.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::VaultV1::ListSavedQueriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::VaultV1::ListSavedQueriesResponse]
#
# @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_matter_saved_queries(matter_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/matters/{matterId}/savedQueries', options)
command.response_representation = Google::Apis::VaultV1::ListSavedQueriesResponse::Representation
command.response_class = Google::Apis::VaultV1::ListSavedQueriesResponse
command.params['matterId'] = matter_id unless matter_id.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected