Autogenerated update (2019-09-24)

Update:
- androidmanagement_v1
- bigquerydatatransfer_v1
- cloudtrace_v1
- cloudtrace_v2
- firebase_v1beta1
- ml_v1
- run_v1
- run_v1alpha1
- securitycenter_v1beta1
- serviceconsumermanagement_v1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- websecurityscanner_v1
- websecurityscanner_v1alpha
- websecurityscanner_v1beta
- youtube_partner_v1
This commit is contained in:
Google APIs 2019-09-24 00:38:13 +00:00
parent 5d2e8ff367
commit b36d6acb31
50 changed files with 1331 additions and 221 deletions

View File

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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigquerydatatransferV1
VERSION = 'V1'
REVISION = '20190811'
REVISION = '20190918'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -569,13 +569,13 @@ module Google
class ScheduleTransferRunsRequest
include Google::Apis::Core::Hashable
# End time of the range of transfer runs. For example,
# Required. End time of the range of transfer runs. For example,
# `"2017-05-30T00:00:00+00:00"`.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Start time of the range of transfer runs. For example,
# Required. Start time of the range of transfer runs. For example,
# `"2017-05-25T00:00:00+00:00"`.
# Corresponds to the JSON property `startTime`
# @return [String]

View File

@ -55,7 +55,7 @@ module Google
# token for the particular user, which is a pre-requisite before user can
# create a transfer config.
# @param [String] name
# The data source in the form:
# Required. The data source in the form:
# `projects/`project_id`/dataSources/`data_source_id``
# @param [Google::Apis::BigquerydatatransferV1::CheckValidCredsRequest] check_valid_creds_request_object
# @param [String] fields
@ -90,7 +90,7 @@ module Google
# Retrieves a supported data source and returns its settings,
# which can be used for UI rendering.
# @param [String] name
# The field will contain name of the resource requested, for example:
# Required. The field will contain name of the resource requested, for example:
# `projects/`project_id`/dataSources/`data_source_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -122,7 +122,7 @@ module Google
# Lists supported data sources and returns their settings,
# which can be used for UI rendering.
# @param [String] parent
# The BigQuery project id for which data sources should be returned.
# Required. The BigQuery project id for which data sources should be returned.
# Must be in the form: `projects/`project_id``
# @param [Fixnum] page_size
# Page size. The default page size is the maximum value of 1000 results.
@ -237,7 +237,7 @@ module Google
# token for the particular user, which is a pre-requisite before user can
# create a transfer config.
# @param [String] name
# The data source in the form:
# Required. The data source in the form:
# `projects/`project_id`/dataSources/`data_source_id``
# @param [Google::Apis::BigquerydatatransferV1::CheckValidCredsRequest] check_valid_creds_request_object
# @param [String] fields
@ -272,7 +272,7 @@ module Google
# Retrieves a supported data source and returns its settings,
# which can be used for UI rendering.
# @param [String] name
# The field will contain name of the resource requested, for example:
# Required. The field will contain name of the resource requested, for example:
# `projects/`project_id`/dataSources/`data_source_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -304,7 +304,7 @@ module Google
# Lists supported data sources and returns their settings,
# which can be used for UI rendering.
# @param [String] parent
# The BigQuery project id for which data sources should be returned.
# Required. The BigQuery project id for which data sources should be returned.
# Must be in the form: `projects/`project_id``
# @param [Fixnum] page_size
# Page size. The default page size is the maximum value of 1000 results.
@ -345,7 +345,8 @@ module Google
# Creates a new data transfer configuration.
# @param [String] parent
# The BigQuery project id where the transfer configuration should be created.
# Required. The BigQuery project id where the transfer configuration should be
# created.
# Must be in the format projects/`project_id`/locations/`location_id`
# If specified location and location of the destination bigquery dataset
# do not match - the request will fail.
@ -408,7 +409,7 @@ module Google
# Deletes a data transfer configuration,
# including any associated transfer runs and logs.
# @param [String] name
# The field will contain name of the resource requested, for example:
# Required. The field will contain name of the resource requested, for example:
# `projects/`project_id`/transferConfigs/`config_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -439,7 +440,7 @@ module Google
# Returns information about a data transfer config.
# @param [String] name
# The field will contain name of the resource requested, for example:
# Required. The field will contain name of the resource requested, for example:
# `projects/`project_id`/transferConfigs/`config_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -470,7 +471,7 @@ module Google
# Returns information about all data transfers in the project.
# @param [String] parent
# The BigQuery project id for which data sources
# Required. The BigQuery project id for which data sources
# should be returned: `projects/`project_id``.
# @param [Array<String>, String] data_source_ids
# When specified, only configurations of requested data sources are returned.
@ -541,7 +542,7 @@ module Google
# returned in the title bar of the browser, with the page text prompting
# the user to copy the code and paste it in the application.
# @param [String] update_mask
# Required list of fields to be updated in this request.
# Required. Required list of fields to be updated in this request.
# @param [String] version_info
# Optional version info. If users want to find a very recent access token,
# that is, immediately after approving access, users have to set the
@ -587,7 +588,7 @@ module Google
# Note that runs are created per UTC time in the time range.
# DEPRECATED: use StartManualTransferRuns instead.
# @param [String] parent
# Transfer configuration name in the form:
# Required. Transfer configuration name in the form:
# `projects/`project_id`/transferConfigs/`config_id``.
# @param [Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsRequest] schedule_transfer_runs_request_object
# @param [String] fields
@ -658,7 +659,7 @@ module Google
# Deletes the specified transfer run.
# @param [String] name
# The field will contain name of the resource requested, for example:
# Required. The field will contain name of the resource requested, for example:
# `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -689,7 +690,7 @@ module Google
# Returns information about the particular transfer run.
# @param [String] name
# The field will contain name of the resource requested, for example:
# Required. The field will contain name of the resource requested, for example:
# `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -720,7 +721,8 @@ module Google
# Returns information about running and completed jobs.
# @param [String] parent
# Name of transfer configuration for which transfer runs should be retrieved.
# Required. Name of transfer configuration for which transfer runs should be
# retrieved.
# Format of transfer configuration resource name is:
# `projects/`project_id`/transferConfigs/`config_id``.
# @param [Fixnum] page_size
@ -768,7 +770,7 @@ module Google
# Returns user facing log messages for the data transfer run.
# @param [String] parent
# Transfer run name in the form:
# Required. Transfer run name in the form:
# `projects/`project_id`/transferConfigs/`config_Id`/runs/`run_id``.
# @param [Array<String>, String] message_types
# Message types to return. If not populated - INFO, WARNING and ERROR
@ -813,7 +815,8 @@ module Google
# Creates a new data transfer configuration.
# @param [String] parent
# The BigQuery project id where the transfer configuration should be created.
# Required. The BigQuery project id where the transfer configuration should be
# created.
# Must be in the format projects/`project_id`/locations/`location_id`
# If specified location and location of the destination bigquery dataset
# do not match - the request will fail.
@ -876,7 +879,7 @@ module Google
# Deletes a data transfer configuration,
# including any associated transfer runs and logs.
# @param [String] name
# The field will contain name of the resource requested, for example:
# Required. The field will contain name of the resource requested, for example:
# `projects/`project_id`/transferConfigs/`config_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -907,7 +910,7 @@ module Google
# Returns information about a data transfer config.
# @param [String] name
# The field will contain name of the resource requested, for example:
# Required. The field will contain name of the resource requested, for example:
# `projects/`project_id`/transferConfigs/`config_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -938,7 +941,7 @@ module Google
# Returns information about all data transfers in the project.
# @param [String] parent
# The BigQuery project id for which data sources
# Required. The BigQuery project id for which data sources
# should be returned: `projects/`project_id``.
# @param [Array<String>, String] data_source_ids
# When specified, only configurations of requested data sources are returned.
@ -1009,7 +1012,7 @@ module Google
# returned in the title bar of the browser, with the page text prompting
# the user to copy the code and paste it in the application.
# @param [String] update_mask
# Required list of fields to be updated in this request.
# Required. Required list of fields to be updated in this request.
# @param [String] version_info
# Optional version info. If users want to find a very recent access token,
# that is, immediately after approving access, users have to set the
@ -1055,7 +1058,7 @@ module Google
# Note that runs are created per UTC time in the time range.
# DEPRECATED: use StartManualTransferRuns instead.
# @param [String] parent
# Transfer configuration name in the form:
# Required. Transfer configuration name in the form:
# `projects/`project_id`/transferConfigs/`config_id``.
# @param [Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsRequest] schedule_transfer_runs_request_object
# @param [String] fields
@ -1126,7 +1129,7 @@ module Google
# Deletes the specified transfer run.
# @param [String] name
# The field will contain name of the resource requested, for example:
# Required. The field will contain name of the resource requested, for example:
# `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1157,7 +1160,7 @@ module Google
# Returns information about the particular transfer run.
# @param [String] name
# The field will contain name of the resource requested, for example:
# Required. The field will contain name of the resource requested, for example:
# `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1188,7 +1191,8 @@ module Google
# Returns information about running and completed jobs.
# @param [String] parent
# Name of transfer configuration for which transfer runs should be retrieved.
# Required. Name of transfer configuration for which transfer runs should be
# retrieved.
# Format of transfer configuration resource name is:
# `projects/`project_id`/transferConfigs/`config_id``.
# @param [Fixnum] page_size
@ -1236,7 +1240,7 @@ module Google
# Returns user facing log messages for the data transfer run.
# @param [String] parent
# Transfer run name in the form:
# Required. Transfer run name in the form:
# `projects/`project_id`/transferConfigs/`config_Id`/runs/`run_id``.
# @param [Array<String>, String] message_types
# Message types to return. If not populated - INFO, WARNING and ERROR

View File

@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/trace
module CloudtraceV1
VERSION = 'V1'
REVISION = '20180910'
REVISION = '20190917'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -169,7 +169,7 @@ module Google
# @return [String]
attr_accessor :name
# ID of the parent span, if any. Optional.
# Optional. ID of the parent span, if any.
# Corresponds to the JSON property `parentSpanId`
# @return [Fixnum]
attr_accessor :parent_span_id

View File

@ -57,7 +57,7 @@ module Google
# and any new fields provided are merged with the existing trace data. If the
# ID does not match, a new trace is created.
# @param [String] project_id
# ID of the Cloud project where the trace data is stored.
# Required. ID of the Cloud project where the trace data is stored.
# @param [Google::Apis::CloudtraceV1::Traces] traces_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -90,9 +90,9 @@ module Google
# Gets a single trace by its ID.
# @param [String] project_id
# ID of the Cloud project where the trace data is stored.
# Required. ID of the Cloud project where the trace data is stored.
# @param [String] trace_id
# ID of the trace to return.
# Required. ID of the trace to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -123,12 +123,12 @@ module Google
# Returns of a list of traces that match the specified filter conditions.
# @param [String] project_id
# ID of the Cloud project where the trace data is stored.
# Required. ID of the Cloud project where the trace data is stored.
# @param [String] end_time
# End of the time interval (inclusive) during which the trace data was
# collected from the application.
# @param [String] filter
# An optional filter against labels for the request.
# Optional. A filter against labels for the request.
# By default, searches use prefix matching. To specify exact match, prepend
# a plus symbol (`+`) to the search term.
# Multiple terms are ANDed. Syntax:
@ -157,7 +157,7 @@ module Google
# * `method:VALUE`: Equivalent to `/http/method:VALUE`.
# * `url:VALUE`: Equivalent to `/http/url:VALUE`.
# @param [String] order_by
# Field used to sort the returned traces. Optional.
# Optional. Field used to sort the returned traces.
# Can be one of the following:
# * `trace_id`
# * `name` (`name` field of root span in the trace)
@ -168,17 +168,17 @@ module Google
# (for example, `name desc`).
# Only one sort field is permitted.
# @param [Fixnum] page_size
# Maximum number of traces to return. If not specified or <= 0, the
# Optional. Maximum number of traces to return. If not specified or <= 0, the
# implementation selects a reasonable value. The implementation may
# return fewer traces than the requested page size. Optional.
# return fewer traces than the requested page size.
# @param [String] page_token
# Token identifying the page of results to return. If provided, use the
# value of the `next_page_token` field from a previous request. Optional.
# value of the `next_page_token` field from a previous request.
# @param [String] start_time
# Start of the time interval (inclusive) during which the trace data was
# collected from the application.
# @param [String] view
# Type of data returned for traces in the list. Optional. Default is
# Optional. Type of data returned for traces in the list. Default is
# `MINIMAL`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/trace
module CloudtraceV2
VERSION = 'V2'
REVISION = '20190820'
REVISION = '20190917'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -116,7 +116,7 @@ module Google
class BatchWriteSpansRequest
include Google::Apis::Core::Hashable
# A list of new spans. The span names must not match existing
# Required. A list of new spans. The span names must not match existing
# spans, or the results are undefined.
# Corresponds to the JSON property `spans`
# @return [Array<Google::Apis::CloudtraceV2::Span>]
@ -298,7 +298,7 @@ module Google
# @return [Google::Apis::CloudtraceV2::Attributes]
attr_accessor :attributes
# An optional number of child spans that were generated while this span
# Optional. The number of child spans that were generated while this span
# was active. If set, allows implementation to detect missing child spans.
# Corresponds to the JSON property `childSpanCount`
# @return [Fixnum]
@ -338,7 +338,7 @@ module Google
# @return [String]
attr_accessor :parent_span_id
# (Optional) Set this parameter to indicate whether this span is in
# Optional. Set this parameter to indicate whether this span is in
# the same process as its parent. If you do not set this parameter,
# Stackdriver Trace is unable to take advantage of this helpful
# information.

View File

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

View File

@ -1135,6 +1135,12 @@ module Google
# @return [String]
attr_accessor :app
# Analytics-provided measurement ID, for use in the gtag.js library.
# Will only be present for Firebase Web Apps.
# Corresponds to the JSON property `measurementId`
# @return [String]
attr_accessor :measurement_id
# The unique Google-assigned identifier of the Google Analytics data stream
# associated with the Firebase App.
# <br>
@ -1152,6 +1158,7 @@ module Google
# Update properties of this object
def update!(**args)
@app = args[:app] if args.key?(:app)
@measurement_id = args[:measurement_id] if args.key?(:measurement_id)
@stream_id = args[:stream_id] if args.key?(:stream_id)
end
end
@ -1279,6 +1286,12 @@ module Google
# @return [String]
attr_accessor :location_id
# Analytics-provided measurement ID, for use in the gtag.js library.
# Will only be present for Firebase Web Apps.
# Corresponds to the JSON property `measurementId`
# @return [String]
attr_accessor :measurement_id
# The sender ID for use with Firebase Cloud Messaging.
# Corresponds to the JSON property `messagingSenderId`
# @return [String]
@ -1306,6 +1319,7 @@ module Google
@auth_domain = args[:auth_domain] if args.key?(:auth_domain)
@database_url = args[:database_url] if args.key?(:database_url)
@location_id = args[:location_id] if args.key?(:location_id)
@measurement_id = args[:measurement_id] if args.key?(:measurement_id)
@messaging_sender_id = args[:messaging_sender_id] if args.key?(:messaging_sender_id)
@project_id = args[:project_id] if args.key?(:project_id)
@storage_bucket = args[:storage_bucket] if args.key?(:storage_bucket)

View File

@ -503,6 +503,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :app, as: 'app'
property :measurement_id, as: 'measurementId'
property :stream_id, :numeric_string => true, as: 'streamId'
end
end
@ -534,6 +535,7 @@ module Google
property :auth_domain, as: 'authDomain'
property :database_url, as: 'databaseURL'
property :location_id, as: 'locationId'
property :measurement_id, as: 'measurementId'
property :messaging_sender_id, as: 'messagingSenderId'
property :project_id, as: 'projectId'
property :storage_bucket, as: 'storageBucket'

View File

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

View File

@ -2034,25 +2034,34 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
# `members` to a single `role`. Members can be user accounts, service accounts,
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions (defined by IAM or configured by users). A `binding` can
# optionally specify a `condition`, which is a logic expression that further
# constrains the role binding based on attributes about the request and/or
# target resource.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "role": "role/resourcemanager.organizationAdmin",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
# "expression": "request.time <
# timestamp('2020-10-01T00:00:00.000Z')",
# `
# `
# ]
# `
@ -2062,11 +2071,15 @@ module Google
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:sean@example.com
# role: roles/viewer
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# title: expirable access
# description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class GoogleIamV1Policy
@ -2077,7 +2090,8 @@ module Google
# @return [Array<Google::Apis::MlV1::GoogleIamV1AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`.
# Associates a list of `members` to a `role`. Optionally may specify a
# `condition` that determines when binding is in effect.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::MlV1::GoogleIamV1Binding>]
@ -2091,7 +2105,9 @@ module Google
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten.
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
# 'setIamPolicy' will not fail even if either of incoming or stored policy
# does not meet the version requirements.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -2100,9 +2116,13 @@ module Google
# Specifies the format of the policy.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected.
# Policies with any conditional bindings must specify version 3. Policies
# without any conditional bindings may specify any valid value or leave the
# field unset.
# Operations affecting conditional bindings must specify version 3. This can
# be either setting a conditional policy, modifying a conditional binding,
# or removing a conditional binding from the stored conditional policy.
# Operations on non-conditional policies may specify any valid value or
# leave the field unset.
# If no etag is provided in the call to `setIamPolicy`, any version
# compliance checks on the incoming and/or stored policy is skipped.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@ -2126,25 +2146,34 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
# `members` to a single `role`. Members can be user accounts, service accounts,
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions (defined by IAM or configured by users). A `binding` can
# optionally specify a `condition`, which is a logic expression that further
# constrains the role binding based on attributes about the request and/or
# target resource.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "role": "role/resourcemanager.organizationAdmin",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
# "expression": "request.time <
# timestamp('2020-10-01T00:00:00.000Z')",
# `
# `
# ]
# `
@ -2154,11 +2183,15 @@ module Google
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:sean@example.com
# role: roles/viewer
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# title: expirable access
# description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`

View File

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

View File

@ -0,0 +1,588 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PolicytroubleshooterV1beta
# AccessTuple defines information required for checking an access attempt.
# In other words, this is the tuple given to `CheckAccess`.
class GoogleCloudPolicytroubleshooterV1betaAccessTuple
include Google::Apis::Core::Hashable
# Required. A full resource name according to
# https://cloud.google.com/apis/design/resource_names. This is the full
# resource name of the resource that access is checked against.
# Corresponds to the JSON property `fullResourceName`
# @return [String]
attr_accessor :full_resource_name
# Required. The Cloud IAM permission under which defines the kind of access
# being explained. Example: "resourcemanager.projects.get" would explain
# if and why the principal has the resourcemanager.projects.get permission
# on the resource specified in full_resource_name declared in this structure.
# See https://cloud.google.com/iam/docs/testing-permissions
# Corresponds to the JSON property `permission`
# @return [String]
attr_accessor :permission
# Required. The principal on behalf of who the access is explained for.
# The format is one of the principal's email addresses associated with
# its gaia account. It must be an account that can appear as an actor.
# For example groups are not supported. Currently, service accounts, users
# are supported.
# Corresponds to the JSON property `principal`
# @return [String]
attr_accessor :principal
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
@permission = args[:permission] if args.key?(:permission)
@principal = args[:principal] if args.key?(:principal)
end
end
# Binding Explanation.
class GoogleCloudPolicytroubleshooterV1betaBindingExplanation
include Google::Apis::Core::Hashable
# REQUIRED: Access decision for this binding.
# Corresponds to the JSON property `access`
# @return [String]
attr_accessor :access
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::PolicytroubleshooterV1beta::GoogleTypeExpr]
attr_accessor :condition
# For each member in the binding, provides information
# whether or not the principal from the request is included
# in the member by which the CheckResult is keyed.
# May indicate that the caller has no access to this information.
# example key: 'group:cloud-iam-assist-eng@google.com'
# example value '`NOT_GRANTED, HIGH`
# Corresponds to the JSON property `memberships`
# @return [Hash<String,Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanationAnnotatedMembership>]
attr_accessor :memberships
# Bubbles up role_permission level relavance to BindingExplanation object.
# If role permission is NORMAL, then binding relevance is NORMAL.
# If role permission is HIGH, then binding relevance is HIGH.
# Corresponds to the JSON property `relevance`
# @return [String]
attr_accessor :relevance
# The role that this binding grants in the policy.
# for example "roles/compute.serviceAgent"
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
# Whether the role of this binding contains the checked permission
# Corresponds to the JSON property `rolePermission`
# @return [String]
attr_accessor :role_permission
#
# Corresponds to the JSON property `rolePermissionRelevance`
# @return [String]
attr_accessor :role_permission_relevance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@access = args[:access] if args.key?(:access)
@condition = args[:condition] if args.key?(:condition)
@memberships = args[:memberships] if args.key?(:memberships)
@relevance = args[:relevance] if args.key?(:relevance)
@role = args[:role] if args.key?(:role)
@role_permission = args[:role_permission] if args.key?(:role_permission)
@role_permission_relevance = args[:role_permission_relevance] if args.key?(:role_permission_relevance)
end
end
#
class GoogleCloudPolicytroubleshooterV1betaBindingExplanationAnnotatedMembership
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `membership`
# @return [String]
attr_accessor :membership
#
# Corresponds to the JSON property `relevance`
# @return [String]
attr_accessor :relevance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@membership = args[:membership] if args.key?(:membership)
@relevance = args[:relevance] if args.key?(:relevance)
end
end
# An explained IAM policy combines the raw policy in the context
# of the resource which it is attached to along with detailed
# evaluation on the evaluation parameters provided through the request.
class GoogleCloudPolicytroubleshooterV1betaExplainedPolicy
include Google::Apis::Core::Hashable
# Access decision for this section of the resource's effective policy.
# Corresponds to the JSON property `access`
# @return [String]
attr_accessor :access
# Detailed binding evaluation explanations provide information
# about how each binding contributes to the principal's
# access or the lack thereof.
# Corresponds to the JSON property `bindingExplanations`
# @return [Array<Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanation>]
attr_accessor :binding_explanations
# Resource that this section of the effective policy attaches to.
# Corresponds to the JSON property `fullResourceName`
# @return [String]
attr_accessor :full_resource_name
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1Policy]
attr_accessor :policy
# Relevance of this Policy.
# Corresponds to the JSON property `relevance`
# @return [String]
attr_accessor :relevance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@access = args[:access] if args.key?(:access)
@binding_explanations = args[:binding_explanations] if args.key?(:binding_explanations)
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
@policy = args[:policy] if args.key?(:policy)
@relevance = args[:relevance] if args.key?(:relevance)
end
end
# TroubleshootIamPolicyRequest is used in TroubleshootIamPolicy
class GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyRequest
include Google::Apis::Core::Hashable
# AccessTuple defines information required for checking an access attempt.
# In other words, this is the tuple given to `CheckAccess`.
# Corresponds to the JSON property `accessTuple`
# @return [Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaAccessTuple]
attr_accessor :access_tuple
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@access_tuple = args[:access_tuple] if args.key?(:access_tuple)
end
end
# TroubleshootIamPolicyResponse is used in TroubleshootIamPolicy.
class GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
include Google::Apis::Core::Hashable
# Reflects whether the probed access was granted, denied
# or ultimately could not be decided from the caller's point of view.
# Corresponds to the JSON property `access`
# @return [String]
attr_accessor :access
# List of explained policies.
# Each explanation corresponds to one policy along the ancestry path.
# Corresponds to the JSON property `explainedPolicies`
# @return [Array<Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaExplainedPolicy>]
attr_accessor :explained_policies
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@access = args[:access] if args.key?(:access)
@explained_policies = args[:explained_policies] if args.key?(:explained_policies)
end
end
# Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging.
# An AuditConfig must have one or more AuditLogConfigs.
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditLogConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [
# `
# "service": "allServices"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:jose@example.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `,
# `
# "log_type": "ADMIN_READ",
# `
# ]
# `,
# `
# "service": "sampleservice.googleapis.com"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# `,
# `
# "log_type": "DATA_WRITE",
# "exempted_members": [
# "user:aliya@example.com"
# ]
# `
# ]
# `
# ]
# `
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts jose@example.com from DATA_READ logging, and
# aliya@example.com from DATA_WRITE logging.
class GoogleIamV1AuditConfig
include Google::Apis::Core::Hashable
# The configuration for logging of each type of permission.
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1AuditLogConfig>]
attr_accessor :audit_log_configs
# Specifies a service that will be enabled for audit logging.
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
# `allServices` is a special value that covers all services.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
@service = args[:service] if args.key?(:service)
end
end
# Provides the configuration for logging a type of permissions.
# Example:
# `
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:jose@example.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `
# ]
# `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
# jose@example.com from DATA_READ logging.
class GoogleIamV1AuditLogConfig
include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of
# permission.
# Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@log_type = args[:log_type] if args.key?(:log_type)
end
end
# Associates `members` with a `role`.
class GoogleIamV1Binding
include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::PolicytroubleshooterV1beta::GoogleTypeExpr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is
# on the internet; with or without a Google account.
# * `allAuthenticatedUsers`: A special identifier that represents anyone
# who is authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google
# account. For example, `alice@example.com` .
# * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group.
# For example, `admins@example.com`.
# * `domain:`domain``: The G Suite domain (primary) that represents all the
# users of that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
# Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class GoogleIamV1Policy
include Google::Apis::Core::Hashable
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a policy from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the
# read-modify-write cycle to perform policy updates in order to avoid race
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Specifies the format of the policy.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected.
# Policies with any conditional bindings must specify version 3. Policies
# without any conditional bindings may specify any valid value or leave the
# field unset.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
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"
class GoogleTypeExpr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in
# Common Expression Language syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
end
end
end

View File

@ -0,0 +1,203 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PolicytroubleshooterV1beta
class GoogleCloudPolicytroubleshooterV1betaAccessTuple
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPolicytroubleshooterV1betaBindingExplanation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPolicytroubleshooterV1betaBindingExplanationAnnotatedMembership
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPolicytroubleshooterV1betaExplainedPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleTypeExpr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPolicytroubleshooterV1betaAccessTuple
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :full_resource_name, as: 'fullResourceName'
property :permission, as: 'permission'
property :principal, as: 'principal'
end
end
class GoogleCloudPolicytroubleshooterV1betaBindingExplanation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :access, as: 'access'
property :condition, as: 'condition', class: Google::Apis::PolicytroubleshooterV1beta::GoogleTypeExpr, decorator: Google::Apis::PolicytroubleshooterV1beta::GoogleTypeExpr::Representation
hash :memberships, as: 'memberships', class: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanationAnnotatedMembership, decorator: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanationAnnotatedMembership::Representation
property :relevance, as: 'relevance'
property :role, as: 'role'
property :role_permission, as: 'rolePermission'
property :role_permission_relevance, as: 'rolePermissionRelevance'
end
end
class GoogleCloudPolicytroubleshooterV1betaBindingExplanationAnnotatedMembership
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :membership, as: 'membership'
property :relevance, as: 'relevance'
end
end
class GoogleCloudPolicytroubleshooterV1betaExplainedPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :access, as: 'access'
collection :binding_explanations, as: 'bindingExplanations', class: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanation, decorator: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanation::Representation
property :full_resource_name, as: 'fullResourceName'
property :policy, as: 'policy', class: Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1Policy, decorator: Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1Policy::Representation
property :relevance, as: 'relevance'
end
end
class GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :access_tuple, as: 'accessTuple', class: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaAccessTuple, decorator: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaAccessTuple::Representation
end
end
class GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :access, as: 'access'
collection :explained_policies, as: 'explainedPolicies', class: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaExplainedPolicy, decorator: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaExplainedPolicy::Representation
end
end
class GoogleIamV1AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1AuditLogConfig, decorator: Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1AuditLogConfig::Representation
property :service, as: 'service'
end
end
class GoogleIamV1AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class GoogleIamV1Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::PolicytroubleshooterV1beta::GoogleTypeExpr, decorator: Google::Apis::PolicytroubleshooterV1beta::GoogleTypeExpr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class GoogleIamV1Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1AuditConfig, decorator: Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1Binding, decorator: Google::Apis::PolicytroubleshooterV1beta::GoogleIamV1Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class GoogleTypeExpr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
end
end
end

View File

@ -0,0 +1,91 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PolicytroubleshooterV1beta
# Policy Troubleshooter API
#
#
#
# @example
# require 'google/apis/policytroubleshooter_v1beta'
#
# Policytroubleshooter = Google::Apis::PolicytroubleshooterV1beta # Alias the module
# service = Policytroubleshooter::PolicyTroubleshooterService.new
#
# @see https://cloud.google.com/iam/
class PolicyTroubleshooterService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://policytroubleshooter.googleapis.com/', '')
@batch_path = 'batch'
end
# Perform a check on whether a member is granted a permission
# on a resource and how that grant/deny is determined accordinga
# to the resource's effective IAM policy interpretation.
# @param [Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyRequest] google_cloud_policytroubleshooter_v1beta_troubleshoot_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse]
#
# @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 troubleshoot_iam(google_cloud_policytroubleshooter_v1beta_troubleshoot_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta/iam:troubleshoot', options)
command.request_representation = Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyRequest::Representation
command.request_object = google_cloud_policytroubleshooter_v1beta_troubleshoot_iam_policy_request_object
command.response_representation = Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse::Representation
command.response_class = Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

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

View File

@ -367,6 +367,13 @@ module Google
# @return [Google::Apis::RunV1::LocalObjectReference]
attr_accessor :local_object_reference
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
# The ConfigMap to select from.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# (Optional)
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
@ -383,6 +390,7 @@ module Google
# Update properties of this object
def update!(**args)
@local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
@name = args[:name] if args.key?(:name)
@optional = args[:optional] if args.key?(:optional)
end
end
@ -408,6 +416,13 @@ module Google
# @return [Google::Apis::RunV1::LocalObjectReference]
attr_accessor :local_object_reference
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
# The ConfigMap to select from.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# (Optional)
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
@ -425,6 +440,7 @@ module Google
def update!(**args)
@key = args[:key] if args.key?(:key)
@local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
@name = args[:name] if args.key?(:name)
@optional = args[:optional] if args.key?(:optional)
end
end
@ -3030,6 +3046,13 @@ module Google
# @return [Google::Apis::RunV1::LocalObjectReference]
attr_accessor :local_object_reference
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
# The Secret to select from.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# (Optional)
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
@ -3046,6 +3069,7 @@ module Google
# Update properties of this object
def update!(**args)
@local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
@name = args[:name] if args.key?(:name)
@optional = args[:optional] if args.key?(:optional)
end
end
@ -3071,6 +3095,13 @@ module Google
# @return [Google::Apis::RunV1::LocalObjectReference]
attr_accessor :local_object_reference
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
# The name of the secret in the pod's namespace to select from.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# (Optional)
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
@ -3088,6 +3119,7 @@ module Google
def update!(**args)
@key = args[:key] if args.key?(:key)
@local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
@name = args[:name] if args.key?(:name)
@optional = args[:optional] if args.key?(:optional)
end
end

View File

@ -541,6 +541,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :local_object_reference, as: 'localObjectReference', class: Google::Apis::RunV1::LocalObjectReference, decorator: Google::Apis::RunV1::LocalObjectReference::Representation
property :name, as: 'name'
property :optional, as: 'optional'
end
end
@ -551,6 +552,7 @@ module Google
property :key, as: 'key'
property :local_object_reference, as: 'localObjectReference', class: Google::Apis::RunV1::LocalObjectReference, decorator: Google::Apis::RunV1::LocalObjectReference::Representation
property :name, as: 'name'
property :optional, as: 'optional'
end
end
@ -1136,6 +1138,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :local_object_reference, as: 'localObjectReference', class: Google::Apis::RunV1::LocalObjectReference, decorator: Google::Apis::RunV1::LocalObjectReference::Representation
property :name, as: 'name'
property :optional, as: 'optional'
end
end
@ -1146,6 +1149,7 @@ module Google
property :key, as: 'key'
property :local_object_reference, as: 'localObjectReference', class: Google::Apis::RunV1::LocalObjectReference, decorator: Google::Apis::RunV1::LocalObjectReference::Representation
property :name, as: 'name'
property :optional, as: 'optional'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/run/
module RunV1alpha1
VERSION = 'V1alpha1'
REVISION = '20190911'
REVISION = '20190916'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -279,6 +279,15 @@ module Google
# @return [Google::Apis::RunV1alpha1::LocalObjectReference]
attr_accessor :local_object_reference
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
# The ConfigMap to select from.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
# Specify whether the ConfigMap must be defined
# +optional
# Corresponds to the JSON property `optional`
@ -293,6 +302,7 @@ module Google
# Update properties of this object
def update!(**args)
@local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
@name = args[:name] if args.key?(:name)
@optional = args[:optional] if args.key?(:optional)
end
end
@ -316,6 +326,13 @@ module Google
# @return [Google::Apis::RunV1alpha1::LocalObjectReference]
attr_accessor :local_object_reference
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# The ConfigMap to select from.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# Specify whether the ConfigMap or its key must be defined
@ -333,6 +350,7 @@ module Google
def update!(**args)
@key = args[:key] if args.key?(:key)
@local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
@name = args[:name] if args.key?(:name)
@optional = args[:optional] if args.key?(:optional)
end
end
@ -3420,6 +3438,15 @@ module Google
# @return [Google::Apis::RunV1alpha1::LocalObjectReference]
attr_accessor :local_object_reference
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
# The Secret to select from.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Cloud Run fully managed: not supported
# Cloud Run for Anthos: supported
# Specify whether the Secret must be defined
# +optional
# Corresponds to the JSON property `optional`
@ -3434,6 +3461,7 @@ module Google
# Update properties of this object
def update!(**args)
@local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
@name = args[:name] if args.key?(:name)
@optional = args[:optional] if args.key?(:optional)
end
end
@ -3457,6 +3485,13 @@ module Google
# @return [Google::Apis::RunV1alpha1::LocalObjectReference]
attr_accessor :local_object_reference
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# The name of the secret in the pod's namespace to select from.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# Specify whether the Secret or its key must be defined
@ -3474,6 +3509,7 @@ module Google
def update!(**args)
@key = args[:key] if args.key?(:key)
@local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
@name = args[:name] if args.key?(:name)
@optional = args[:optional] if args.key?(:optional)
end
end

View File

@ -660,6 +660,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :local_object_reference, as: 'localObjectReference', class: Google::Apis::RunV1alpha1::LocalObjectReference, decorator: Google::Apis::RunV1alpha1::LocalObjectReference::Representation
property :name, as: 'name'
property :optional, as: 'optional'
end
end
@ -670,6 +671,7 @@ module Google
property :key, as: 'key'
property :local_object_reference, as: 'localObjectReference', class: Google::Apis::RunV1alpha1::LocalObjectReference, decorator: Google::Apis::RunV1alpha1::LocalObjectReference::Representation
property :name, as: 'name'
property :optional, as: 'optional'
end
end
@ -1402,6 +1404,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :local_object_reference, as: 'localObjectReference', class: Google::Apis::RunV1alpha1::LocalObjectReference, decorator: Google::Apis::RunV1alpha1::LocalObjectReference::Representation
property :name, as: 'name'
property :optional, as: 'optional'
end
end
@ -1412,6 +1415,7 @@ module Google
property :key, as: 'key'
property :local_object_reference, as: 'localObjectReference', class: Google::Apis::RunV1alpha1::LocalObjectReference, decorator: Google::Apis::RunV1alpha1::LocalObjectReference::Representation
property :name, as: 'name'
property :optional, as: 'optional'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1beta1
VERSION = 'V1beta1'
REVISION = '20190906'
REVISION = '20190920'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -394,7 +394,8 @@ module Google
# @return [String]
attr_accessor :name
# The relative resource name of the source the finding belongs to. See:
# Immutable. The relative resource name of the source the finding belongs to.
# See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# This field is immutable after creation time.
# For example:
@ -593,7 +594,8 @@ module Google
# @return [String]
attr_accessor :filter
# Expression that defines what assets fields to use for grouping. The string
# Required. Expression that defines what assets fields to use for grouping. The
# string
# value should follow SQL syntax: comma separated list of fields. For
# example:
# "security_center_properties.resource_project,security_center_properties.
@ -704,7 +706,8 @@ module Google
# @return [String]
attr_accessor :filter
# Expression that defines what assets fields to use for grouping (including
# Required. Expression that defines what assets fields to use for grouping (
# including
# `state`). The string value should follow SQL syntax: comma separated list
# of fields. For example:
# "parent,resource_name".
@ -1072,25 +1075,34 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
# `members` to a single `role`. Members can be user accounts, service accounts,
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions (defined by IAM or configured by users). A `binding` can
# optionally specify a `condition`, which is a logic expression that further
# constrains the role binding based on attributes about the request and/or
# target resource.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "role": "role/resourcemanager.organizationAdmin",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
# "expression": "request.time <
# timestamp('2020-10-01T00:00:00.000Z')",
# `
# `
# ]
# `
@ -1100,11 +1112,15 @@ module Google
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:sean@example.com
# role: roles/viewer
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# title: expirable access
# description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class Policy
@ -1115,7 +1131,8 @@ module Google
# @return [Array<Google::Apis::SecuritycenterV1beta1::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`.
# Associates a list of `members` to a `role`. Optionally may specify a
# `condition` that determines when binding is in effect.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::SecuritycenterV1beta1::Binding>]
@ -1129,7 +1146,9 @@ module Google
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten.
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
# 'setIamPolicy' will not fail even if either of incoming or stored policy
# does not meet the version requirements.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -1138,9 +1157,13 @@ module Google
# Specifies the format of the policy.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected.
# Policies with any conditional bindings must specify version 3. Policies
# without any conditional bindings may specify any valid value or leave the
# field unset.
# Operations affecting conditional bindings must specify version 3. This can
# be either setting a conditional policy, modifying a conditional binding,
# or removing a conditional binding from the stored conditional policy.
# Operations on non-conditional policies may specify any valid value or
# leave the field unset.
# If no etag is provided in the call to `setIamPolicy`, any version
# compliance checks on the incoming and/or stored policy is skipped.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@ -1176,7 +1199,7 @@ module Google
class SecurityCenterProperties
include Google::Apis::Core::Hashable
# The full resource name of the GCP resource this asset
# Immutable. The full resource name of the GCP resource this asset
# represents. This field is immutable after create time. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceName`
@ -1264,12 +1287,12 @@ module Google
class SetFindingStateRequest
include Google::Apis::Core::Hashable
# The time at which the updated state takes effect.
# Required. The time at which the updated state takes effect.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# The desired State of the finding.
# Required. The desired State of the finding.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
@ -1291,25 +1314,34 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
# `members` to a single `role`. Members can be user accounts, service accounts,
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions (defined by IAM or configured by users). A `binding` can
# optionally specify a `condition`, which is a logic expression that further
# constrains the role binding based on attributes about the request and/or
# target resource.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "role": "role/resourcemanager.organizationAdmin",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
# "expression": "request.time <
# timestamp('2020-10-01T00:00:00.000Z')",
# `
# `
# ]
# `
@ -1319,11 +1351,15 @@ module Google
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:sean@example.com
# role: roles/viewer
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# title: expirable access
# description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`

View File

@ -50,7 +50,8 @@ module Google
# Gets the settings for an organization.
# @param [String] name
# Name of the organization to get organization settings for. Its format is
# Required. Name of the organization to get organization settings for. Its
# format is
# "organizations/[organization_id]/organizationSettings".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -121,7 +122,7 @@ module Google
# Filters an organization's assets and groups them by their specified
# properties.
# @param [String] parent
# Name of the organization to groupBy. Its format is
# Required. Name of the organization to groupBy. Its format is
# "organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1beta1::GroupAssetsRequest] group_assets_request_object
# @param [String] fields
@ -155,7 +156,7 @@ module Google
# Lists an organization's assets.
# @param [String] parent
# Name of the organization assets should belong to. Its format is
# Required. Name of the organization assets should belong to. Its format is
# "organizations/[organization_id]".
# @param [String] compare_duration
# When compare_duration is set, the ListAssetResult's "state" attribute is
@ -264,7 +265,7 @@ module Google
# it is called too frequently the caller will receive a TOO_MANY_REQUESTS
# error.
# @param [String] parent
# Name of the organization to run asset discovery for. Its format is
# Required. Name of the organization to run asset discovery for. Its format is
# "organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1beta1::RunAssetDiscoveryRequest] run_asset_discovery_request_object
# @param [String] fields
@ -495,7 +496,7 @@ module Google
# Creates a source.
# @param [String] parent
# Resource name of the new source's parent. Its format should be
# Required. Resource name of the new source's parent. Its format should be
# "organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1beta1::Source] source_object
# @param [String] fields
@ -529,7 +530,7 @@ module Google
# Gets a source.
# @param [String] name
# Relative resource name of the source. Its format is
# Required. Relative resource name of the source. Its format is
# "organizations/[organization_id]/source/[source_id]".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -594,7 +595,7 @@ module Google
# Lists all sources belonging to an organization.
# @param [String] parent
# Resource name of the parent of sources to list. Its format should be
# Required. Resource name of the parent of sources to list. Its format should be
# "organizations/[organization_id]".
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
@ -742,11 +743,11 @@ module Google
# Creates a finding. The corresponding source must exist for finding creation
# to succeed.
# @param [String] parent
# Resource name of the new finding's parent. Its format should be
# Required. Resource name of the new finding's parent. Its format should be
# "organizations/[organization_id]/sources/[source_id]".
# @param [Google::Apis::SecuritycenterV1beta1::Finding] finding_object
# @param [String] finding_id
# Unique identifier provided by the client within the parent scope.
# Required. Unique identifier provided by the client within the parent scope.
# It must be alphanumeric and less than or equal to 32 characters and
# greater than 0 characters in length.
# @param [String] fields
@ -784,7 +785,7 @@ module Google
# To group across all sources provide a `-` as the source id.
# Example: /v1beta1/organizations/123/sources/-/findings
# @param [String] parent
# Name of the source to groupBy. Its format is
# Required. Name of the source to groupBy. Its format is
# "organizations/[organization_id]/sources/[source_id]". To groupBy across
# all sources provide a source_id of `-`. For example:
# organizations/123/sources/-
@ -822,7 +823,7 @@ module Google
# To list across all sources provide a `-` as the source id.
# Example: /v1beta1/organizations/123/sources/-/findings
# @param [String] parent
# Name of the source the findings belong to. Its format is
# Required. Name of the source the findings belong to. Its format is
# "organizations/[organization_id]/sources/[source_id]". To list across all
# sources provide a source_id of `-`. For example:
# organizations/123/sources/-
@ -946,7 +947,7 @@ module Google
# Updates the state of a finding.
# @param [String] name
# The relative resource name of the finding. See:
# Required. The relative resource name of the finding. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/123/sources/456/finding/789".

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1
VERSION = 'V1'
REVISION = '20190907'
REVISION = '20190920'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1887,6 +1887,15 @@ module Google
# @return [String]
attr_accessor :metric_kind
# Read-only. If present, then a time
# series, which is identified partially by
# a metric type and a MonitoredResourceDescriptor, that is associated
# with this metric type can only be associated with one of the monitored
# resource types listed here.
# Corresponds to the JSON property `monitoredResourceTypes`
# @return [Array<String>]
attr_accessor :monitored_resource_types
# The resource name of the metric descriptor.
# Corresponds to the JSON property `name`
# @return [String]
@ -1977,6 +1986,7 @@ module Google
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
@metadata = args[:metadata] if args.key?(:metadata)
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
@monitored_resource_types = args[:monitored_resource_types] if args.key?(:monitored_resource_types)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
@unit = args[:unit] if args.key?(:unit)
@ -1995,8 +2005,7 @@ module Google
# @return [String]
attr_accessor :ingest_delay
# Deprecated. Please use the MetricDescriptor.launch_stage instead.
# The launch stage of the metric definition.
# Deprecated. Must use the MetricDescriptor.launch_stage instead.
# Corresponds to the JSON property `launchStage`
# @return [String]
attr_accessor :launch_stage

View File

@ -909,6 +909,7 @@ module Google
property :metadata, as: 'metadata', class: Google::Apis::ServiceconsumermanagementV1::MetricDescriptorMetadata, decorator: Google::Apis::ServiceconsumermanagementV1::MetricDescriptorMetadata::Representation
property :metric_kind, as: 'metricKind'
collection :monitored_resource_types, as: 'monitoredResourceTypes'
property :name, as: 'name'
property :type, as: 'type'
property :unit, as: 'unit'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1
VERSION = 'V1'
REVISION = '20190907'
REVISION = '20190922'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1902,6 +1902,15 @@ module Google
# @return [String]
attr_accessor :metric_kind
# Read-only. If present, then a time
# series, which is identified partially by
# a metric type and a MonitoredResourceDescriptor, that is associated
# with this metric type can only be associated with one of the monitored
# resource types listed here.
# Corresponds to the JSON property `monitoredResourceTypes`
# @return [Array<String>]
attr_accessor :monitored_resource_types
# The resource name of the metric descriptor.
# Corresponds to the JSON property `name`
# @return [String]
@ -1992,6 +2001,7 @@ module Google
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
@metadata = args[:metadata] if args.key?(:metadata)
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
@monitored_resource_types = args[:monitored_resource_types] if args.key?(:monitored_resource_types)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
@unit = args[:unit] if args.key?(:unit)
@ -2010,8 +2020,7 @@ module Google
# @return [String]
attr_accessor :ingest_delay
# Deprecated. Please use the MetricDescriptor.launch_stage instead.
# The launch stage of the metric definition.
# Deprecated. Must use the MetricDescriptor.launch_stage instead.
# Corresponds to the JSON property `launchStage`
# @return [String]
attr_accessor :launch_stage

View File

@ -762,6 +762,7 @@ module Google
property :metadata, as: 'metadata', class: Google::Apis::ServicenetworkingV1::MetricDescriptorMetadata, decorator: Google::Apis::ServicenetworkingV1::MetricDescriptorMetadata::Representation
property :metric_kind, as: 'metricKind'
collection :monitored_resource_types, as: 'monitoredResourceTypes'
property :name, as: 'name'
property :type, as: 'type'
property :unit, as: 'unit'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1beta
VERSION = 'V1beta'
REVISION = '20190907'
REVISION = '20190922'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1842,6 +1842,15 @@ module Google
# @return [String]
attr_accessor :metric_kind
# Read-only. If present, then a time
# series, which is identified partially by
# a metric type and a MonitoredResourceDescriptor, that is associated
# with this metric type can only be associated with one of the monitored
# resource types listed here.
# Corresponds to the JSON property `monitoredResourceTypes`
# @return [Array<String>]
attr_accessor :monitored_resource_types
# The resource name of the metric descriptor.
# Corresponds to the JSON property `name`
# @return [String]
@ -1932,6 +1941,7 @@ module Google
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
@metadata = args[:metadata] if args.key?(:metadata)
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
@monitored_resource_types = args[:monitored_resource_types] if args.key?(:monitored_resource_types)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
@unit = args[:unit] if args.key?(:unit)
@ -1950,8 +1960,7 @@ module Google
# @return [String]
attr_accessor :ingest_delay
# Deprecated. Please use the MetricDescriptor.launch_stage instead.
# The launch stage of the metric definition.
# Deprecated. Must use the MetricDescriptor.launch_stage instead.
# Corresponds to the JSON property `launchStage`
# @return [String]
attr_accessor :launch_stage

View File

@ -723,6 +723,7 @@ module Google
property :metadata, as: 'metadata', class: Google::Apis::ServicenetworkingV1beta::MetricDescriptorMetadata, decorator: Google::Apis::ServicenetworkingV1beta::MetricDescriptorMetadata::Representation
property :metric_kind, as: 'metricKind'
collection :monitored_resource_types, as: 'monitoredResourceTypes'
property :name, as: 'name'
property :type, as: 'type'
property :unit, as: 'unit'

View File

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

View File

@ -2620,6 +2620,15 @@ module Google
# @return [String]
attr_accessor :metric_kind
# Read-only. If present, then a time
# series, which is identified partially by
# a metric type and a MonitoredResourceDescriptor, that is associated
# with this metric type can only be associated with one of the monitored
# resource types listed here.
# Corresponds to the JSON property `monitoredResourceTypes`
# @return [Array<String>]
attr_accessor :monitored_resource_types
# The resource name of the metric descriptor.
# Corresponds to the JSON property `name`
# @return [String]
@ -2710,6 +2719,7 @@ module Google
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
@metadata = args[:metadata] if args.key?(:metadata)
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
@monitored_resource_types = args[:monitored_resource_types] if args.key?(:monitored_resource_types)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
@unit = args[:unit] if args.key?(:unit)
@ -2728,8 +2738,7 @@ module Google
# @return [String]
attr_accessor :ingest_delay
# Deprecated. Please use the MetricDescriptor.launch_stage instead.
# The launch stage of the metric definition.
# Deprecated. Must use the MetricDescriptor.launch_stage instead.
# Corresponds to the JSON property `launchStage`
# @return [String]
attr_accessor :launch_stage

View File

@ -961,6 +961,7 @@ module Google
property :metadata, as: 'metadata', class: Google::Apis::ServiceusageV1::MetricDescriptorMetadata, decorator: Google::Apis::ServiceusageV1::MetricDescriptorMetadata::Representation
property :metric_kind, as: 'metricKind'
collection :monitored_resource_types, as: 'monitoredResourceTypes'
property :name, as: 'name'
property :type, as: 'type'
property :unit, as: 'unit'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1beta1
VERSION = 'V1beta1'
REVISION = '20190911'
REVISION = '20190921'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2598,6 +2598,15 @@ module Google
# @return [String]
attr_accessor :metric_kind
# Read-only. If present, then a time
# series, which is identified partially by
# a metric type and a MonitoredResourceDescriptor, that is associated
# with this metric type can only be associated with one of the monitored
# resource types listed here.
# Corresponds to the JSON property `monitoredResourceTypes`
# @return [Array<String>]
attr_accessor :monitored_resource_types
# The resource name of the metric descriptor.
# Corresponds to the JSON property `name`
# @return [String]
@ -2688,6 +2697,7 @@ module Google
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
@metadata = args[:metadata] if args.key?(:metadata)
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
@monitored_resource_types = args[:monitored_resource_types] if args.key?(:monitored_resource_types)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
@unit = args[:unit] if args.key?(:unit)
@ -2706,8 +2716,7 @@ module Google
# @return [String]
attr_accessor :ingest_delay
# Deprecated. Please use the MetricDescriptor.launch_stage instead.
# The launch stage of the metric definition.
# Deprecated. Must use the MetricDescriptor.launch_stage instead.
# Corresponds to the JSON property `launchStage`
# @return [String]
attr_accessor :launch_stage

View File

@ -960,6 +960,7 @@ module Google
property :metadata, as: 'metadata', class: Google::Apis::ServiceusageV1beta1::MetricDescriptorMetadata, decorator: Google::Apis::ServiceusageV1beta1::MetricDescriptorMetadata::Representation
property :metric_kind, as: 'metricKind'
collection :monitored_resource_types, as: 'monitoredResourceTypes'
property :name, as: 'name'
property :type, as: 'type'
property :unit, as: 'unit'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/security-scanner/
module WebsecurityscannerV1
VERSION = 'V1'
REVISION = '20190805'
REVISION = '20190919'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/security-scanner/
module WebsecurityscannerV1alpha
VERSION = 'V1alpha'
REVISION = '20190629'
REVISION = '20190919'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -138,49 +138,45 @@ module Google
class Finding
include Google::Apis::Core::Hashable
# Output only. The body of the request that triggered the vulnerability.
# The body of the request that triggered the vulnerability.
# Corresponds to the JSON property `body`
# @return [String]
attr_accessor :body
# Output only. The description of the vulnerability.
# The description of the vulnerability.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Output only. The URL where the browser lands when the vulnerability is
# detected.
# The URL where the browser lands when the vulnerability is detected.
# Corresponds to the JSON property `finalUrl`
# @return [String]
attr_accessor :final_url
# Output only. The type of the Finding.
# The type of the Finding.
# Corresponds to the JSON property `findingType`
# @return [String]
attr_accessor :finding_type
# Output only. If the vulnerability was originated from nested IFrame, the
# immediate
# If the vulnerability was originated from nested IFrame, the immediate
# parent IFrame is reported.
# Corresponds to the JSON property `frameUrl`
# @return [String]
attr_accessor :frame_url
# Output only. The URL produced by the server-side fuzzer and used in the
# request that
# The URL produced by the server-side fuzzer and used in the request that
# triggered the vulnerability.
# Corresponds to the JSON property `fuzzedUrl`
# @return [String]
attr_accessor :fuzzed_url
# Output only. The http method of the request that triggered the vulnerability,
# in
# The http method of the request that triggered the vulnerability, in
# uppercase.
# Corresponds to the JSON property `httpMethod`
# @return [String]
attr_accessor :http_method
# Output only. The resource name of the Finding. The name follows the format of
# The resource name of the Finding. The name follows the format of
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanruns/`scanRunId`/findings/
# `findingId`'.
# The finding IDs are generated by the system.
@ -193,15 +189,13 @@ module Google
# @return [Google::Apis::WebsecurityscannerV1alpha::OutdatedLibrary]
attr_accessor :outdated_library
# Output only. The URL containing human-readable payload that user can leverage
# to
# The URL containing human-readable payload that user can leverage to
# reproduce the vulnerability.
# Corresponds to the JSON property `reproductionUrl`
# @return [String]
attr_accessor :reproduction_url
# Output only. The tracking ID uniquely identifies a vulnerability instance
# across
# The tracking ID uniquely identifies a vulnerability instance across
# multiple ScanRuns.
# Corresponds to the JSON property `trackingId`
# @return [String]
@ -257,12 +251,12 @@ module Google
class FindingTypeStats
include Google::Apis::Core::Hashable
# Output only. The count of findings belonging to this finding type.
# The count of findings belonging to this finding type.
# Corresponds to the JSON property `findingCount`
# @return [Fixnum]
attr_accessor :finding_count
# Output only. The finding type associated with the stats.
# The finding type associated with the stats.
# Corresponds to the JSON property `findingType`
# @return [String]
attr_accessor :finding_type
@ -569,32 +563,31 @@ module Google
class ScanRun
include Google::Apis::Core::Hashable
# Output only. The time at which the ScanRun reached termination state - that
# the ScanRun
# The time at which the ScanRun reached termination state - that the ScanRun
# is either finished or stopped by user.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Output only. The execution state of the ScanRun.
# The execution state of the ScanRun.
# Corresponds to the JSON property `executionState`
# @return [String]
attr_accessor :execution_state
# Output only. Whether the scan run has found any vulnerabilities.
# Whether the scan run has found any vulnerabilities.
# Corresponds to the JSON property `hasVulnerabilities`
# @return [Boolean]
attr_accessor :has_vulnerabilities
alias_method :has_vulnerabilities?, :has_vulnerabilities
# Output only. The resource name of the ScanRun. The name follows the format of
# The resource name of the ScanRun. The name follows the format of
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
# The ScanRun IDs are generated by the system.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The percentage of total completion ranging from 0 to 100.
# The percentage of total completion ranging from 0 to 100.
# If the scan is in queue, the value is 0.
# If the scan is running, the value ranges from 0 to 100.
# If the scan is finished, the value is 100.
@ -602,27 +595,24 @@ module Google
# @return [Fixnum]
attr_accessor :progress_percent
# Output only. The result state of the ScanRun. This field is only available
# after the
# The result state of the ScanRun. This field is only available after the
# execution state reaches "FINISHED".
# Corresponds to the JSON property `resultState`
# @return [String]
attr_accessor :result_state
# Output only. The time at which the ScanRun started.
# The time at which the ScanRun started.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Output only. The number of URLs crawled during this ScanRun. If the scan is in
# progress,
# The number of URLs crawled during this ScanRun. If the scan is in progress,
# the value represents the number of URLs crawled up to now.
# Corresponds to the JSON property `urlsCrawledCount`
# @return [Fixnum]
attr_accessor :urls_crawled_count
# Output only. The number of URLs tested during this ScanRun. If the scan is in
# progress,
# The number of URLs tested during this ScanRun. If the scan is in progress,
# the value represents the number of URLs tested up to now. The number of
# URLs tested is usually larger than the number URLS crawled because
# typically a crawled URL is tested with multiple test payloads.

View File

@ -492,7 +492,7 @@ module Google
# format
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
# @param [String] filter
# The filter expression. The expression must be in the format: <field>
# Required. The filter expression. The expression must be in the format: <field>
# <operator> <value>.
# Supported field: 'finding_type'.
# Supported operator: '='.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/security-scanner/
module WebsecurityscannerV1beta
VERSION = 'V1beta'
REVISION = '20190805'
REVISION = '20190919'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -53,18 +53,18 @@ module Google
class CrawledUrl
include Google::Apis::Core::Hashable
# Output only. The body of the request that was used to visit the URL.
# The body of the request that was used to visit the URL.
# Corresponds to the JSON property `body`
# @return [String]
attr_accessor :body
# Output only. The http method of the request that was used to visit the URL, in
# The http method of the request that was used to visit the URL, in
# uppercase.
# Corresponds to the JSON property `httpMethod`
# @return [String]
attr_accessor :http_method
# Output only. The URL that was crawled.
# The URL that was crawled.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -138,23 +138,22 @@ module Google
class Finding
include Google::Apis::Core::Hashable
# Output only. The body of the request that triggered the vulnerability.
# The body of the request that triggered the vulnerability.
# Corresponds to the JSON property `body`
# @return [String]
attr_accessor :body
# Output only. The description of the vulnerability.
# The description of the vulnerability.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Output only. The URL where the browser lands when the vulnerability is
# detected.
# The URL where the browser lands when the vulnerability is detected.
# Corresponds to the JSON property `finalUrl`
# @return [String]
attr_accessor :final_url
# Output only. The type of the Finding.
# The type of the Finding.
# Detailed and up-to-date information on findings can be found here:
# https://cloud.google.com/security-scanner/docs/scan-result-details
# Corresponds to the JSON property `findingType`
@ -166,28 +165,25 @@ module Google
# @return [Google::Apis::WebsecurityscannerV1beta::Form]
attr_accessor :form
# Output only. If the vulnerability was originated from nested IFrame, the
# immediate
# If the vulnerability was originated from nested IFrame, the immediate
# parent IFrame is reported.
# Corresponds to the JSON property `frameUrl`
# @return [String]
attr_accessor :frame_url
# Output only. The URL produced by the server-side fuzzer and used in the
# request that
# The URL produced by the server-side fuzzer and used in the request that
# triggered the vulnerability.
# Corresponds to the JSON property `fuzzedUrl`
# @return [String]
attr_accessor :fuzzed_url
# Output only. The http method of the request that triggered the vulnerability,
# in
# The http method of the request that triggered the vulnerability, in
# uppercase.
# Corresponds to the JSON property `httpMethod`
# @return [String]
attr_accessor :http_method
# Output only. The resource name of the Finding. The name follows the format of
# The resource name of the Finding. The name follows the format of
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanruns/`scanRunId`/findings/
# `findingId`'.
# The finding IDs are generated by the system.
@ -200,15 +196,13 @@ module Google
# @return [Google::Apis::WebsecurityscannerV1beta::OutdatedLibrary]
attr_accessor :outdated_library
# Output only. The URL containing human-readable payload that user can leverage
# to
# The URL containing human-readable payload that user can leverage to
# reproduce the vulnerability.
# Corresponds to the JSON property `reproductionUrl`
# @return [String]
attr_accessor :reproduction_url
# Output only. The tracking ID uniquely identifies a vulnerability instance
# across
# The tracking ID uniquely identifies a vulnerability instance across
# multiple ScanRuns.
# Corresponds to the JSON property `trackingId`
# @return [String]
@ -265,12 +259,12 @@ module Google
class FindingTypeStats
include Google::Apis::Core::Hashable
# Output only. The count of findings belonging to this finding type.
# The count of findings belonging to this finding type.
# Corresponds to the JSON property `findingCount`
# @return [Fixnum]
attr_accessor :finding_count
# Output only. The finding type associated with the stats.
# The finding type associated with the stats.
# Corresponds to the JSON property `findingType`
# @return [String]
attr_accessor :finding_type
@ -618,13 +612,12 @@ module Google
class ScanConfigError
include Google::Apis::Core::Hashable
# Output only. Indicates the reason code for a configuration failure.
# Indicates the reason code for a configuration failure.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# Output only. Indicates the full name of the ScanConfig field that triggers
# this error,
# Indicates the full name of the ScanConfig field that triggers this error,
# for example "scan_config.max_qps". This field is provided for
# troubleshooting purposes only and its actual value can change in the
# future.
@ -648,8 +641,7 @@ module Google
class ScanRun
include Google::Apis::Core::Hashable
# Output only. The time at which the ScanRun reached termination state - that
# the ScanRun
# The time at which the ScanRun reached termination state - that the ScanRun
# is either finished or stopped by user.
# Corresponds to the JSON property `endTime`
# @return [String]
@ -661,25 +653,25 @@ module Google
# @return [Google::Apis::WebsecurityscannerV1beta::ScanRunErrorTrace]
attr_accessor :error_trace
# Output only. The execution state of the ScanRun.
# The execution state of the ScanRun.
# Corresponds to the JSON property `executionState`
# @return [String]
attr_accessor :execution_state
# Output only. Whether the scan run has found any vulnerabilities.
# Whether the scan run has found any vulnerabilities.
# Corresponds to the JSON property `hasVulnerabilities`
# @return [Boolean]
attr_accessor :has_vulnerabilities
alias_method :has_vulnerabilities?, :has_vulnerabilities
# Output only. The resource name of the ScanRun. The name follows the format of
# The resource name of the ScanRun. The name follows the format of
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
# The ScanRun IDs are generated by the system.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The percentage of total completion ranging from 0 to 100.
# The percentage of total completion ranging from 0 to 100.
# If the scan is in queue, the value is 0.
# If the scan is running, the value ranges from 0 to 100.
# If the scan is finished, the value is 100.
@ -687,27 +679,24 @@ module Google
# @return [Fixnum]
attr_accessor :progress_percent
# Output only. The result state of the ScanRun. This field is only available
# after the
# The result state of the ScanRun. This field is only available after the
# execution state reaches "FINISHED".
# Corresponds to the JSON property `resultState`
# @return [String]
attr_accessor :result_state
# Output only. The time at which the ScanRun started.
# The time at which the ScanRun started.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Output only. The number of URLs crawled during this ScanRun. If the scan is in
# progress,
# The number of URLs crawled during this ScanRun. If the scan is in progress,
# the value represents the number of URLs crawled up to now.
# Corresponds to the JSON property `urlsCrawledCount`
# @return [Fixnum]
attr_accessor :urls_crawled_count
# Output only. The number of URLs tested during this ScanRun. If the scan is in
# progress,
# The number of URLs tested during this ScanRun. If the scan is in progress,
# the value represents the number of URLs tested up to now. The number of
# URLs tested is usually larger than the number URLS crawled because
# typically a crawled URL is tested with multiple test payloads.
@ -715,7 +704,7 @@ module Google
# @return [Fixnum]
attr_accessor :urls_tested_count
# Output only. A list of warnings, if such are encountered during this scan run.
# A list of warnings, if such are encountered during this scan run.
# Corresponds to the JSON property `warningTraces`
# @return [Array<Google::Apis::WebsecurityscannerV1beta::ScanRunWarningTrace>]
attr_accessor :warning_traces
@ -745,13 +734,12 @@ module Google
class ScanRunErrorTrace
include Google::Apis::Core::Hashable
# Output only. Indicates the error reason code.
# Indicates the error reason code.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates
# the most
# If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
# common HTTP error code, if such is available. For example, if this code is
# 404, the scan has encountered too many NOT_FOUND responses.
# Corresponds to the JSON property `mostCommonHttpErrorCode`
@ -784,7 +772,7 @@ module Google
class ScanRunWarningTrace
include Google::Apis::Core::Hashable
# Output only. Indicates the warning code.
# Indicates the warning code.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code

View File

@ -492,7 +492,7 @@ module Google
# format
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
# @param [String] filter
# The filter expression. The expression must be in the format: <field>
# Required. The filter expression. The expression must be in the format: <field>
# <operator> <value>.
# Supported field: 'finding_type'.
# Supported operator: '='.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20190915'
REVISION = '20190922'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'