diff --git a/generated/google/apis/binaryauthorization_v1beta1.rb b/generated/google/apis/binaryauthorization_v1beta1.rb index dfdd2293f..60f74c30f 100644 --- a/generated/google/apis/binaryauthorization_v1beta1.rb +++ b/generated/google/apis/binaryauthorization_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1beta1 VERSION = 'V1beta1' - REVISION = '20190511' + REVISION = '20190628' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/binaryauthorization_v1beta1/service.rb b/generated/google/apis/binaryauthorization_v1beta1/service.rb index 513b6de3b..ecdd74f04 100644 --- a/generated/google/apis/binaryauthorization_v1beta1/service.rb +++ b/generated/google/apis/binaryauthorization_v1beta1/service.rb @@ -231,6 +231,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -248,11 +253,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_attestor_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_attestor_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation command.response_class = Google::Apis::BinaryauthorizationV1beta1::IamPolicy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -414,6 +420,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -431,11 +442,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_policy_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation command.response_class = Google::Apis::BinaryauthorizationV1beta1::IamPolicy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index 74dc80895..aed61e973 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20190607' + REVISION = '20190629' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dlp_v2/classes.rb b/generated/google/apis/dlp_v2/classes.rb index c2b23e419..ca46a73d0 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -42,6 +42,20 @@ module Google # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub] attr_accessor :pub_sub + # Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the + # results of the DlpJob will be applied to the entry for the resource scanned + # in Cloud Data Catalog. Any labels previously written by another DlpJob will + # be deleted. InfoType naming patterns are strictly enforced when using this + # feature. Note that the findings will be persisted in Cloud Data Catalog + # storage and are governed by Data Catalog service-specific policy, see + # https://cloud.google.com/terms/service-terms + # Only a single instance of this action can be specified and only allowed if + # all resources being scanned are BigQuery tables. + # Compatible with: Inspect + # Corresponds to the JSON property `publishFindingsToCloudDataCatalog` + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog] + attr_accessor :publish_findings_to_cloud_data_catalog + # Publish the result summary of a DlpJob to the Cloud Security # Command Center (CSCC Alpha). # This action is only available for projects which are parts of @@ -72,6 +86,7 @@ module Google def update!(**args) @job_notification_emails = args[:job_notification_emails] if args.key?(:job_notification_emails) @pub_sub = args[:pub_sub] if args.key?(:pub_sub) + @publish_findings_to_cloud_data_catalog = args[:publish_findings_to_cloud_data_catalog] if args.key?(:publish_findings_to_cloud_data_catalog) @publish_summary_to_cscc = args[:publish_summary_to_cscc] if args.key?(:publish_summary_to_cscc) @save_findings = args[:save_findings] if args.key?(:save_findings) end @@ -1670,6 +1685,12 @@ module Google # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem] attr_accessor :item + # The geographic location to process de-identification. Reserved for future + # extensions. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + def initialize(**args) update!(**args) end @@ -1681,6 +1702,7 @@ module Google @inspect_config = args[:inspect_config] if args.key?(:inspect_config) @inspect_template_name = args[:inspect_template_name] if args.key?(:inspect_template_name) @item = args[:item] if args.key?(:item) + @location = args[:location] if args.key?(:location) end end @@ -4328,6 +4350,28 @@ module Google end end + # Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the + # results of the DlpJob will be applied to the entry for the resource scanned + # in Cloud Data Catalog. Any labels previously written by another DlpJob will + # be deleted. InfoType naming patterns are strictly enforced when using this + # feature. Note that the findings will be persisted in Cloud Data Catalog + # storage and are governed by Data Catalog service-specific policy, see + # https://cloud.google.com/terms/service-terms + # Only a single instance of this action can be specified and only allowed if + # all resources being scanned are BigQuery tables. + # Compatible with: Inspect + class GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Publish the result summary of a DlpJob to the Cloud Security # Command Center (CSCC Alpha). # This action is only available for projects which are parts of diff --git a/generated/google/apis/dlp_v2/representations.rb b/generated/google/apis/dlp_v2/representations.rb index 0b0230a3b..478d7c4dc 100644 --- a/generated/google/apis/dlp_v2/representations.rb +++ b/generated/google/apis/dlp_v2/representations.rb @@ -724,6 +724,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2PublishSummaryToCscc class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1073,6 +1079,8 @@ module Google property :pub_sub, as: 'pubSub', class: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub::Representation + property :publish_findings_to_cloud_data_catalog, as: 'publishFindingsToCloudDataCatalog', class: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog::Representation + property :publish_summary_to_cscc, as: 'publishSummaryToCscc', class: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishSummaryToCscc, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishSummaryToCscc::Representation property :save_findings, as: 'saveFindings', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SaveFindings, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SaveFindings::Representation @@ -1522,6 +1530,7 @@ module Google property :inspect_template_name, as: 'inspectTemplateName' property :item, as: 'item', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem::Representation + property :location, as: 'location' end end @@ -2294,6 +2303,12 @@ module Google end end + class GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GooglePrivacyDlpV2PublishSummaryToCscc # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dlp_v2/service.rb b/generated/google/apis/dlp_v2/service.rb index 4e15cb0ac..0b5d65c1f 100644 --- a/generated/google/apis/dlp_v2/service.rb +++ b/generated/google/apis/dlp_v2/service.rb @@ -1669,6 +1669,49 @@ module Google execute_or_queue_command(command, &block) end + # De-identifies potentially sensitive info from a ContentItem. + # This method has limits on input size and output size. + # See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to + # learn more. + # When no InfoTypes or CustomInfoTypes are specified in this request, the + # system will automatically choose what detectors to run. By default this may + # be all types, but may change over time as detectors are updated. + # @param [String] parent + # The parent resource name, for example projects/my-project-id. + # @param [String] location + # The geographic location to process de-identification. Reserved for future + # extensions. + # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_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::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse] + # + # @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 deidentify_project_location_content(parent, location, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/locations/{location}/content:deidentify', options) + command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation + command.request_object = google_privacy_dlp_v2_deidentify_content_request_object + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse + command.params['parent'] = parent unless parent.nil? + command.params['location'] = location unless location.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a pre-built stored infoType to be used for inspection. # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. diff --git a/generated/google/apis/iap_v1.rb b/generated/google/apis/iap_v1.rb index 2d4c7bcbb..bd0fe7133 100644 --- a/generated/google/apis/iap_v1.rb +++ b/generated/google/apis/iap_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iap module IapV1 VERSION = 'V1' - REVISION = '20190410' + REVISION = '20190628' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/iap_v1/classes.rb b/generated/google/apis/iap_v1/classes.rb index fbdf57a56..c4a289926 100644 --- a/generated/google/apis/iap_v1/classes.rb +++ b/generated/google/apis/iap_v1/classes.rb @@ -121,12 +121,40 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::IapV1::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) end end diff --git a/generated/google/apis/iap_v1/representations.rb b/generated/google/apis/iap_v1/representations.rb index a8a4efae7..967bc9fbe 100644 --- a/generated/google/apis/iap_v1/representations.rb +++ b/generated/google/apis/iap_v1/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Policy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -87,6 +93,15 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::IapV1::GetPolicyOptions, decorator: Google::Apis::IapV1::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' end end diff --git a/generated/google/apis/iap_v1beta1.rb b/generated/google/apis/iap_v1beta1.rb index 5924c5e65..b972ce6f2 100644 --- a/generated/google/apis/iap_v1beta1.rb +++ b/generated/google/apis/iap_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iap module IapV1beta1 VERSION = 'V1beta1' - REVISION = '20190410' + REVISION = '20190628' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/iap_v1beta1/classes.rb b/generated/google/apis/iap_v1beta1/classes.rb index b6edacda7..8669deff4 100644 --- a/generated/google/apis/iap_v1beta1/classes.rb +++ b/generated/google/apis/iap_v1beta1/classes.rb @@ -121,12 +121,40 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::IapV1beta1::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) end end diff --git a/generated/google/apis/iap_v1beta1/representations.rb b/generated/google/apis/iap_v1beta1/representations.rb index c84edfce1..3bc4ea0c1 100644 --- a/generated/google/apis/iap_v1beta1/representations.rb +++ b/generated/google/apis/iap_v1beta1/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Policy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -87,6 +93,15 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::IapV1beta1::GetPolicyOptions, decorator: Google::Apis::IapV1beta1::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' end end diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index 4f48bca60..2976c24b4 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20190614' + REVISION = '20190621' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index c33238901..7b2c93e02 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -1186,6 +1186,13 @@ module Google # @return [String] attr_accessor :image_uri + # TensorFlow version used in the custom container. This field is required if + # the replica is a TPU worker that uses a custom container. Otherwise, do not + # specify this field. + # Corresponds to the JSON property `tpuTfVersion` + # @return [String] + attr_accessor :tpu_tf_version + def initialize(**args) update!(**args) end @@ -1194,6 +1201,7 @@ module Google def update!(**args) @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config) @image_uri = args[:image_uri] if args.key?(:image_uri) + @tpu_tf_version = args[:tpu_tf_version] if args.key?(:tpu_tf_version) end end diff --git a/generated/google/apis/ml_v1/representations.rb b/generated/google/apis/ml_v1/representations.rb index a302a06a8..3b35669a1 100644 --- a/generated/google/apis/ml_v1/representations.rb +++ b/generated/google/apis/ml_v1/representations.rb @@ -535,6 +535,7 @@ module Google property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig::Representation property :image_uri, as: 'imageUri' + property :tpu_tf_version, as: 'tpuTfVersion' end end diff --git a/generated/google/apis/ml_v1/service.rb b/generated/google/apis/ml_v1/service.rb index ce79eb520..37cc10129 100644 --- a/generated/google/apis/ml_v1/service.rb +++ b/generated/google/apis/ml_v1/service.rb @@ -47,39 +47,6 @@ module Google @batch_path = 'batch' end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # @param [String] name - # The name of the operation resource to be deleted. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleProtobufEmpty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Get the service account information associated with your project. You need # this information in order to grant the service account permissions for # the Google Cloud Storage location where you put your model training code diff --git a/generated/google/apis/securitycenter_v1.rb b/generated/google/apis/securitycenter_v1.rb index e97c076cd..0fd7615e2 100644 --- a/generated/google/apis/securitycenter_v1.rb +++ b/generated/google/apis/securitycenter_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1 VERSION = 'V1' - REVISION = '20190529' + REVISION = '20190628' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1/classes.rb b/generated/google/apis/securitycenter_v1/classes.rb index 5ede4464b..6ae259bc3 100644 --- a/generated/google/apis/securitycenter_v1/classes.rb +++ b/generated/google/apis/securitycenter_v1/classes.rb @@ -450,12 +450,40 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::SecuritycenterV1::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) end end diff --git a/generated/google/apis/securitycenter_v1/representations.rb b/generated/google/apis/securitycenter_v1/representations.rb index b006a9cf5..c0792e44b 100644 --- a/generated/google/apis/securitycenter_v1/representations.rb +++ b/generated/google/apis/securitycenter_v1/representations.rb @@ -76,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -319,6 +325,15 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::SecuritycenterV1::GetPolicyOptions, decorator: Google::Apis::SecuritycenterV1::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' end end diff --git a/generated/google/apis/securitycenter_v1/service.rb b/generated/google/apis/securitycenter_v1/service.rb index ad5b5f32a..9c2376d5c 100644 --- a/generated/google/apis/securitycenter_v1/service.rb +++ b/generated/google/apis/securitycenter_v1/service.rb @@ -180,8 +180,8 @@ module Google # is "UNUSED", which will be the state_change set for all assets present at # read_time. # @param [String] field_mask - # Optional. - # A field mask to specify the ListAssetsResult fields to be listed in the + # Optional. A field mask to specify the ListAssetsResult fields to be listed in + # the # response. # An empty field mask will list all fields. # @param [String] filter @@ -873,8 +873,8 @@ module Google # is "UNUSED", which will be the state_change set for all findings present at # read_time. # @param [String] field_mask - # Optional. - # A field mask to specify the Finding fields to be listed in the response. + # Optional. A field mask to specify the Finding fields to be listed in the + # response. # An empty field mask will list all fields. # @param [String] filter # Expression that defines the filter to apply across findings. diff --git a/generated/google/apis/securitycenter_v1beta1.rb b/generated/google/apis/securitycenter_v1beta1.rb index 315bf4c19..1c43fab5b 100644 --- a/generated/google/apis/securitycenter_v1beta1.rb +++ b/generated/google/apis/securitycenter_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1beta1 VERSION = 'V1beta1' - REVISION = '20190529' + REVISION = '20190628' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1beta1/classes.rb b/generated/google/apis/securitycenter_v1beta1/classes.rb index 4f9f03424..b4f418e13 100644 --- a/generated/google/apis/securitycenter_v1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1beta1/classes.rb @@ -455,12 +455,40 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::SecuritycenterV1beta1::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) end end diff --git a/generated/google/apis/securitycenter_v1beta1/representations.rb b/generated/google/apis/securitycenter_v1beta1/representations.rb index b24347df9..3175655b2 100644 --- a/generated/google/apis/securitycenter_v1beta1/representations.rb +++ b/generated/google/apis/securitycenter_v1beta1/representations.rb @@ -82,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -317,6 +323,15 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::SecuritycenterV1beta1::GetPolicyOptions, decorator: Google::Apis::SecuritycenterV1beta1::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' end end diff --git a/generated/google/apis/securitycenter_v1beta1/service.rb b/generated/google/apis/securitycenter_v1beta1/service.rb index f834a0499..bf281e021 100644 --- a/generated/google/apis/securitycenter_v1beta1/service.rb +++ b/generated/google/apis/securitycenter_v1beta1/service.rb @@ -178,8 +178,8 @@ module Google # If compare_duration is not specified, then the only possible state is # "UNUSED", which indicates that the asset is present at read_time. # @param [String] field_mask - # Optional. - # A field mask to specify the ListAssetsResult fields to be listed in the + # Optional. A field mask to specify the ListAssetsResult fields to be listed in + # the # response. # An empty field mask will list all fields. # @param [String] filter @@ -827,8 +827,8 @@ module Google # sources provide a source_id of `-`. For example: # organizations/123/sources/- # @param [String] field_mask - # Optional. - # A field mask to specify the Finding fields to be listed in the response. + # Optional. A field mask to specify the Finding fields to be listed in the + # response. # An empty field mask will list all fields. # @param [String] filter # Expression that defines the filter to apply across findings. diff --git a/generated/google/apis/slides_v1.rb b/generated/google/apis/slides_v1.rb index c492a9e0d..78217ae54 100644 --- a/generated/google/apis/slides_v1.rb +++ b/generated/google/apis/slides_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/slides/ module SlidesV1 VERSION = 'V1' - REVISION = '20190305' + REVISION = '20190625' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/speech_v1.rb b/generated/google/apis/speech_v1.rb index 6befa97ae..6cc90666e 100644 --- a/generated/google/apis/speech_v1.rb +++ b/generated/google/apis/speech_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol module SpeechV1 VERSION = 'V1' - REVISION = '20190624' + REVISION = '20190627' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/speech_v1/classes.rb b/generated/google/apis/speech_v1/classes.rb index 63d8c3eb3..f72cf62b5 100644 --- a/generated/google/apis/speech_v1/classes.rb +++ b/generated/google/apis/speech_v1/classes.rb @@ -382,17 +382,11 @@ module Google # *Optional* Set to true to use an enhanced model for speech recognition. # If `use_enhanced` is set to true and the `model` field is not set, then - # an appropriate enhanced model is chosen if: - # 1. project is eligible for requesting enhanced models - # 2. an enhanced model exists for the audio + # an appropriate enhanced model is chosen if an enhanced model exists for + # the audio. # If `use_enhanced` is true and an enhanced version of the specified model # does not exist, then the speech is recognized using the standard version # of the specified model. - # Enhanced speech models require that you opt-in to data logging using - # instructions in the - # [documentation](/speech-to-text/docs/enable-data-logging). If you set - # `use_enhanced` to true and you have not enabled audio logging, then you - # will receive an error. # Corresponds to the JSON property `useEnhanced` # @return [Boolean] attr_accessor :use_enhanced diff --git a/generated/google/apis/speech_v1p1beta1.rb b/generated/google/apis/speech_v1p1beta1.rb index 3e25451c8..455d66157 100644 --- a/generated/google/apis/speech_v1p1beta1.rb +++ b/generated/google/apis/speech_v1p1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol module SpeechV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20190624' + REVISION = '20190627' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/speech_v1p1beta1/classes.rb b/generated/google/apis/speech_v1p1beta1/classes.rb index aabff929e..d5d287fc2 100644 --- a/generated/google/apis/speech_v1p1beta1/classes.rb +++ b/generated/google/apis/speech_v1p1beta1/classes.rb @@ -436,17 +436,11 @@ module Google # *Optional* Set to true to use an enhanced model for speech recognition. # If `use_enhanced` is set to true and the `model` field is not set, then - # an appropriate enhanced model is chosen if: - # 1. project is eligible for requesting enhanced models - # 2. an enhanced model exists for the audio + # an appropriate enhanced model is chosen if an enhanced model exists for + # the audio. # If `use_enhanced` is true and an enhanced version of the specified model # does not exist, then the speech is recognized using the standard version # of the specified model. - # Enhanced speech models require that you opt-in to data logging using - # instructions in the - # [documentation](/speech-to-text/docs/enable-data-logging). If you set - # `use_enhanced` to true and you have not enabled audio logging, then you - # will receive an error. # Corresponds to the JSON property `useEnhanced` # @return [Boolean] attr_accessor :use_enhanced diff --git a/generated/google/apis/websecurityscanner_v1alpha.rb b/generated/google/apis/websecurityscanner_v1alpha.rb index 1f18724e9..3fafec61c 100644 --- a/generated/google/apis/websecurityscanner_v1alpha.rb +++ b/generated/google/apis/websecurityscanner_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/security-scanner/ module WebsecurityscannerV1alpha VERSION = 'V1alpha' - REVISION = '20190110' + REVISION = '20190629' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/websecurityscanner_v1alpha/classes.rb b/generated/google/apis/websecurityscanner_v1alpha/classes.rb index 558ac1f20..2d9452af9 100644 --- a/generated/google/apis/websecurityscanner_v1alpha/classes.rb +++ b/generated/google/apis/websecurityscanner_v1alpha/classes.rb @@ -53,21 +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. + # Output only. 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 + # Output only. 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. + # Output only. The URL that was crawled. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -88,22 +85,19 @@ module Google class CustomAccount include Google::Apis::Core::Hashable - # Required. - # The login form URL of the website. + # Required. The login form URL of the website. # Corresponds to the JSON property `loginUrl` # @return [String] attr_accessor :login_url - # Input only. - # Required. - # The password of the custom account. The credential is stored encrypted + # Required. Input only. The password of the custom account. The credential is + # stored encrypted # and not returned in any response nor included in audit logs. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password - # Required. - # The user name of the custom account. + # Required. The user name of the custom account. # Corresponds to the JSON property `username` # @return [String] attr_accessor :username @@ -144,53 +138,49 @@ module Google class Finding include Google::Apis::Core::Hashable - # Output only. - # The body of the request that triggered the vulnerability. + # Output only. 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. + # Output only. 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. + # Output only. 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. + # Output only. 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 + # Output only. 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 + # Output only. 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 + # Output only. 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 + # Output only. 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. @@ -203,15 +193,15 @@ module Google # @return [Google::Apis::WebsecurityscannerV1alpha::OutdatedLibrary] attr_accessor :outdated_library - # Output only. - # The URL containing human-readable payload that user can leverage to + # Output only. 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 + # Output only. The tracking ID uniquely identifies a vulnerability instance + # across # multiple ScanRuns. # Corresponds to the JSON property `trackingId` # @return [String] @@ -267,14 +257,12 @@ module Google class FindingTypeStats include Google::Apis::Core::Hashable - # Output only. - # The count of findings belonging to this finding type. + # Output only. 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. + # Output only. The finding type associated with the stats. # Corresponds to the JSON property `findingType` # @return [String] attr_accessor :finding_type @@ -294,16 +282,14 @@ module Google class GoogleAccount include Google::Apis::Core::Hashable - # Input only. - # Required. - # The password of the Google account. The credential is stored encrypted + # Required. Input only. The password of the Google account. The credential is + # stored encrypted # and not returned in any response nor included in audit logs. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password - # Required. - # The user name of the Google account. + # Required. The user name of the Google account. # Corresponds to the JSON property `username` # @return [String] attr_accessor :username @@ -514,8 +500,7 @@ module Google # @return [Array] attr_accessor :blacklist_patterns - # Required. - # The user provided display name of the ScanConfig. + # Required. The user provided display name of the ScanConfig. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name @@ -545,8 +530,7 @@ module Google # @return [Google::Apis::WebsecurityscannerV1alpha::Schedule] attr_accessor :schedule - # Required. - # The starting URLs from which the scanner finds site pages. + # Required. The starting URLs from which the scanner finds site pages. # Corresponds to the JSON property `startingUrls` # @return [Array] attr_accessor :starting_urls @@ -585,36 +569,32 @@ module Google class ScanRun include Google::Apis::Core::Hashable - # Output only. - # The time at which the ScanRun reached termination state - that the ScanRun + # Output only. 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. + # Output only. 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. + # Output only. 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 + # Output only. 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. + # Output only. 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. @@ -622,28 +602,27 @@ module Google # @return [Fixnum] attr_accessor :progress_percent - # Output only. - # The result state of the ScanRun. This field is only available after the + # Output only. 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. + # Output only. 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, + # Output only. 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, + # Output only. 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. @@ -673,8 +652,7 @@ module Google class Schedule include Google::Apis::Core::Hashable - # Required. - # The duration of time between executions in days. + # Required. The duration of time between executions in days. # Corresponds to the JSON property `intervalDurationDays` # @return [Fixnum] attr_accessor :interval_duration_days diff --git a/generated/google/apis/websecurityscanner_v1alpha/service.rb b/generated/google/apis/websecurityscanner_v1alpha/service.rb index 97451c5a1..a2c96cd3b 100644 --- a/generated/google/apis/websecurityscanner_v1alpha/service.rb +++ b/generated/google/apis/websecurityscanner_v1alpha/service.rb @@ -49,8 +49,8 @@ module Google # Creates a new ScanConfig. # @param [String] parent - # Required. - # The parent resource name where the scan is created, which should be a + # Required. The parent resource name where the scan is created, which should be + # a # project resource name in the format 'projects/`projectId`'. # @param [Google::Apis::WebsecurityscannerV1alpha::ScanConfig] scan_config_object # @param [String] fields @@ -84,8 +84,8 @@ module Google # Deletes an existing ScanConfig and its child resources. # @param [String] name - # Required. - # The resource name of the ScanConfig to be deleted. The name follows the + # Required. The resource name of the ScanConfig to be deleted. The name follows + # the # format of 'projects/`projectId`/scanConfigs/`scanConfigId`'. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -116,8 +116,8 @@ module Google # Gets a ScanConfig. # @param [String] name - # Required. - # The resource name of the ScanConfig to be returned. The name follows the + # Required. The resource name of the ScanConfig to be returned. The name follows + # the # format of 'projects/`projectId`/scanConfigs/`scanConfigId`'. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -148,8 +148,8 @@ module Google # Lists ScanConfigs under a given project. # @param [String] parent - # Required. - # The parent resource name, which should be a project resource name in the + # Required. The parent resource name, which should be a project resource name in + # the # format 'projects/`projectId`'. # @param [Fixnum] page_size # The maximum number of ScanConfigs to return, can be limited by server. @@ -195,8 +195,8 @@ module Google # generated by the system. # @param [Google::Apis::WebsecurityscannerV1alpha::ScanConfig] scan_config_object # @param [String] update_mask - # Required. - # The update mask applies to the resource. For the `FieldMask` definition, + # Required. The update mask applies to the resource. For the `FieldMask` + # definition, # see # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# # fieldmask @@ -232,8 +232,7 @@ module Google # Start a ScanRun according to the given ScanConfig. # @param [String] name - # Required. - # The resource name of the ScanConfig to be used. The name follows the + # Required. The resource name of the ScanConfig to be used. The name follows the # format of 'projects/`projectId`/scanConfigs/`scanConfigId`'. # @param [Google::Apis::WebsecurityscannerV1alpha::StartScanRunRequest] start_scan_run_request_object # @param [String] fields @@ -267,8 +266,8 @@ module Google # Gets a ScanRun. # @param [String] name - # Required. - # The resource name of the ScanRun to be returned. The name follows the + # Required. The resource name of the ScanRun to be returned. The name follows + # the # format of # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. # @param [String] fields @@ -301,8 +300,8 @@ module Google # Lists ScanRuns under a given ScanConfig, in descending order of ScanRun # stop time. # @param [String] parent - # Required. - # The parent resource name, which should be a scan resource name in the + # Required. The parent resource name, which should be a scan resource name in + # the # format 'projects/`projectId`/scanConfigs/`scanConfigId`'. # @param [Fixnum] page_size # The maximum number of ScanRuns to return, can be limited by server. @@ -343,8 +342,7 @@ module Google # Stops a ScanRun. The stopped ScanRun is returned. # @param [String] name - # Required. - # The resource name of the ScanRun to be stopped. The name follows the + # Required. The resource name of the ScanRun to be stopped. The name follows the # format of # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. # @param [Google::Apis::WebsecurityscannerV1alpha::StopScanRunRequest] stop_scan_run_request_object @@ -379,8 +377,8 @@ module Google # List CrawledUrls under a given ScanRun. # @param [String] parent - # Required. - # The parent resource name, which should be a scan run resource name in the + # Required. The parent resource name, which should be a scan run resource name + # in the # format # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. # @param [Fixnum] page_size @@ -422,8 +420,8 @@ module Google # List all FindingTypeStats under a given ScanRun. # @param [String] parent - # Required. - # The parent resource name, which should be a scan run resource name in the + # Required. The parent resource name, which should be a scan run resource name + # in the # format # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. # @param [String] fields @@ -455,8 +453,8 @@ module Google # Gets a Finding. # @param [String] name - # Required. - # The resource name of the Finding to be returned. The name follows the + # Required. The resource name of the Finding to be returned. The name follows + # the # format of # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`/findings/ # `findingId`'. @@ -489,8 +487,8 @@ module Google # List Findings under a given ScanRun. # @param [String] parent - # Required. - # The parent resource name, which should be a scan run resource name in the + # Required. The parent resource name, which should be a scan run resource name + # in the # format # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. # @param [String] filter diff --git a/generated/google/apis/websecurityscanner_v1beta.rb b/generated/google/apis/websecurityscanner_v1beta.rb index 1705f2a7a..206a82a33 100644 --- a/generated/google/apis/websecurityscanner_v1beta.rb +++ b/generated/google/apis/websecurityscanner_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/security-scanner/ module WebsecurityscannerV1beta VERSION = 'V1beta' - REVISION = '20190519' + REVISION = '20190629' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/websecurityscanner_v1beta/classes.rb b/generated/google/apis/websecurityscanner_v1beta/classes.rb index 07846770f..82d6542e9 100644 --- a/generated/google/apis/websecurityscanner_v1beta/classes.rb +++ b/generated/google/apis/websecurityscanner_v1beta/classes.rb @@ -53,21 +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. + # Output only. 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 + # Output only. 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. + # Output only. The URL that was crawled. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -88,22 +85,19 @@ module Google class CustomAccount include Google::Apis::Core::Hashable - # Required. - # The login form URL of the website. + # Required. The login form URL of the website. # Corresponds to the JSON property `loginUrl` # @return [String] attr_accessor :login_url - # Input only. - # Required. - # The password of the custom account. The credential is stored encrypted + # Required. Input only. The password of the custom account. The credential is + # stored encrypted # and not returned in any response nor included in audit logs. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password - # Required. - # The user name of the custom account. + # Required. The user name of the custom account. # Corresponds to the JSON property `username` # @return [String] attr_accessor :username @@ -144,26 +138,23 @@ module Google class Finding include Google::Apis::Core::Hashable - # Output only. - # The body of the request that triggered the vulnerability. + # Output only. 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. + # Output only. 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. + # Output only. 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. + # Output only. 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` @@ -175,29 +166,28 @@ module Google # @return [Google::Apis::WebsecurityscannerV1beta::Form] attr_accessor :form - # Output only. - # If the vulnerability was originated from nested IFrame, the immediate + # Output only. 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 + # Output only. 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 + # Output only. 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 + # Output only. 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. @@ -210,15 +200,15 @@ module Google # @return [Google::Apis::WebsecurityscannerV1beta::OutdatedLibrary] attr_accessor :outdated_library - # Output only. - # The URL containing human-readable payload that user can leverage to + # Output only. 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 + # Output only. The tracking ID uniquely identifies a vulnerability instance + # across # multiple ScanRuns. # Corresponds to the JSON property `trackingId` # @return [String] @@ -275,14 +265,12 @@ module Google class FindingTypeStats include Google::Apis::Core::Hashable - # Output only. - # The count of findings belonging to this finding type. + # Output only. 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. + # Output only. The finding type associated with the stats. # Corresponds to the JSON property `findingType` # @return [String] attr_accessor :finding_type @@ -327,16 +315,14 @@ module Google class GoogleAccount include Google::Apis::Core::Hashable - # Input only. - # Required. - # The password of the Google account. The credential is stored encrypted + # Required. Input only. The password of the Google account. The credential is + # stored encrypted # and not returned in any response nor included in audit logs. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password - # Required. - # The user name of the Google account. + # Required. The user name of the Google account. # Corresponds to the JSON property `username` # @return [String] attr_accessor :username @@ -546,8 +532,7 @@ module Google # @return [Array] attr_accessor :blacklist_patterns - # Required. - # The user provided display name of the ScanConfig. + # Required. The user provided display name of the ScanConfig. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name @@ -589,8 +574,7 @@ module Google # @return [Google::Apis::WebsecurityscannerV1beta::Schedule] attr_accessor :schedule - # Required. - # The starting URLs from which the scanner finds site pages. + # Required. The starting URLs from which the scanner finds site pages. # Corresponds to the JSON property `startingUrls` # @return [Array] attr_accessor :starting_urls @@ -634,14 +618,13 @@ module Google class ScanConfigError include Google::Apis::Core::Hashable - # Output only. - # Indicates the reason code for a configuration failure. + # Output only. 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, + # Output only. 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. @@ -665,8 +648,8 @@ module Google class ScanRun include Google::Apis::Core::Hashable - # Output only. - # The time at which the ScanRun reached termination state - that the ScanRun + # Output only. 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] @@ -678,29 +661,25 @@ module Google # @return [Google::Apis::WebsecurityscannerV1beta::ScanRunErrorTrace] attr_accessor :error_trace - # Output only. - # The execution state of the ScanRun. + # Output only. 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. + # Output only. 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 + # Output only. 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. + # Output only. 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. @@ -708,28 +687,27 @@ module Google # @return [Fixnum] attr_accessor :progress_percent - # Output only. - # The result state of the ScanRun. This field is only available after the + # Output only. 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. + # Output only. 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, + # Output only. 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, + # Output only. 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. @@ -737,8 +715,7 @@ module Google # @return [Fixnum] attr_accessor :urls_tested_count - # Output only. - # A list of warnings, if such are encountered during this scan run. + # Output only. A list of warnings, if such are encountered during this scan run. # Corresponds to the JSON property `warningTraces` # @return [Array] attr_accessor :warning_traces @@ -768,14 +745,13 @@ module Google class ScanRunErrorTrace include Google::Apis::Core::Hashable - # Output only. - # Indicates the error reason code. + # Output only. 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 + # Output only. 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` @@ -808,8 +784,7 @@ module Google class ScanRunWarningTrace include Google::Apis::Core::Hashable - # Output only. - # Indicates the warning code. + # Output only. Indicates the warning code. # Corresponds to the JSON property `code` # @return [String] attr_accessor :code @@ -828,8 +803,7 @@ module Google class Schedule include Google::Apis::Core::Hashable - # Required. - # The duration of time between executions in days. + # Required. The duration of time between executions in days. # Corresponds to the JSON property `intervalDurationDays` # @return [Fixnum] attr_accessor :interval_duration_days diff --git a/generated/google/apis/websecurityscanner_v1beta/service.rb b/generated/google/apis/websecurityscanner_v1beta/service.rb index 30264b00a..c23d8c4a3 100644 --- a/generated/google/apis/websecurityscanner_v1beta/service.rb +++ b/generated/google/apis/websecurityscanner_v1beta/service.rb @@ -49,8 +49,8 @@ module Google # Creates a new ScanConfig. # @param [String] parent - # Required. - # The parent resource name where the scan is created, which should be a + # Required. The parent resource name where the scan is created, which should be + # a # project resource name in the format 'projects/`projectId`'. # @param [Google::Apis::WebsecurityscannerV1beta::ScanConfig] scan_config_object # @param [String] fields @@ -84,8 +84,8 @@ module Google # Deletes an existing ScanConfig and its child resources. # @param [String] name - # Required. - # The resource name of the ScanConfig to be deleted. The name follows the + # Required. The resource name of the ScanConfig to be deleted. The name follows + # the # format of 'projects/`projectId`/scanConfigs/`scanConfigId`'. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -116,8 +116,8 @@ module Google # Gets a ScanConfig. # @param [String] name - # Required. - # The resource name of the ScanConfig to be returned. The name follows the + # Required. The resource name of the ScanConfig to be returned. The name follows + # the # format of 'projects/`projectId`/scanConfigs/`scanConfigId`'. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -148,8 +148,8 @@ module Google # Lists ScanConfigs under a given project. # @param [String] parent - # Required. - # The parent resource name, which should be a project resource name in the + # Required. The parent resource name, which should be a project resource name in + # the # format 'projects/`projectId`'. # @param [Fixnum] page_size # The maximum number of ScanConfigs to return, can be limited by server. @@ -195,8 +195,8 @@ module Google # generated by the system. # @param [Google::Apis::WebsecurityscannerV1beta::ScanConfig] scan_config_object # @param [String] update_mask - # Required. - # The update mask applies to the resource. For the `FieldMask` definition, + # Required. The update mask applies to the resource. For the `FieldMask` + # definition, # see # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# # fieldmask @@ -232,8 +232,7 @@ module Google # Start a ScanRun according to the given ScanConfig. # @param [String] name - # Required. - # The resource name of the ScanConfig to be used. The name follows the + # Required. The resource name of the ScanConfig to be used. The name follows the # format of 'projects/`projectId`/scanConfigs/`scanConfigId`'. # @param [Google::Apis::WebsecurityscannerV1beta::StartScanRunRequest] start_scan_run_request_object # @param [String] fields @@ -267,8 +266,8 @@ module Google # Gets a ScanRun. # @param [String] name - # Required. - # The resource name of the ScanRun to be returned. The name follows the + # Required. The resource name of the ScanRun to be returned. The name follows + # the # format of # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. # @param [String] fields @@ -301,8 +300,8 @@ module Google # Lists ScanRuns under a given ScanConfig, in descending order of ScanRun # stop time. # @param [String] parent - # Required. - # The parent resource name, which should be a scan resource name in the + # Required. The parent resource name, which should be a scan resource name in + # the # format 'projects/`projectId`/scanConfigs/`scanConfigId`'. # @param [Fixnum] page_size # The maximum number of ScanRuns to return, can be limited by server. @@ -343,8 +342,7 @@ module Google # Stops a ScanRun. The stopped ScanRun is returned. # @param [String] name - # Required. - # The resource name of the ScanRun to be stopped. The name follows the + # Required. The resource name of the ScanRun to be stopped. The name follows the # format of # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. # @param [Google::Apis::WebsecurityscannerV1beta::StopScanRunRequest] stop_scan_run_request_object @@ -379,8 +377,8 @@ module Google # List CrawledUrls under a given ScanRun. # @param [String] parent - # Required. - # The parent resource name, which should be a scan run resource name in the + # Required. The parent resource name, which should be a scan run resource name + # in the # format # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. # @param [Fixnum] page_size @@ -422,8 +420,8 @@ module Google # List all FindingTypeStats under a given ScanRun. # @param [String] parent - # Required. - # The parent resource name, which should be a scan run resource name in the + # Required. The parent resource name, which should be a scan run resource name + # in the # format # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. # @param [String] fields @@ -455,8 +453,8 @@ module Google # Gets a Finding. # @param [String] name - # Required. - # The resource name of the Finding to be returned. The name follows the + # Required. The resource name of the Finding to be returned. The name follows + # the # format of # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`/findings/ # `findingId`'. @@ -489,8 +487,8 @@ module Google # List Findings under a given ScanRun. # @param [String] parent - # Required. - # The parent resource name, which should be a scan run resource name in the + # Required. The parent resource name, which should be a scan run resource name + # in the # format # 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'. # @param [String] filter