diff --git a/generated/google/apis/accessapproval_v1beta1.rb b/generated/google/apis/accessapproval_v1beta1.rb index d46d271dd..88e7816ce 100644 --- a/generated/google/apis/accessapproval_v1beta1.rb +++ b/generated/google/apis/accessapproval_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/access-approval/docs module AccessapprovalV1beta1 VERSION = 'V1beta1' - REVISION = '20190504' + REVISION = '20190806' # 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/accessapproval_v1beta1/classes.rb b/generated/google/apis/accessapproval_v1beta1/classes.rb index 0f373a668..7d9080d38 100644 --- a/generated/google/apis/accessapproval_v1beta1/classes.rb +++ b/generated/google/apis/accessapproval_v1beta1/classes.rb @@ -26,6 +26,18 @@ module Google class AccessApprovalSettings include Google::Apis::Core::Hashable + # A list of Google Cloud Services for which the given resource has Access + # Approval enrolled. Access requests for the resource given by name against + # any of these services contained here will be required to have explicit + # approval. If name refers to an organization, enrollment can be done for + # individual services. If name refers to a folder or project, enrollment can + # only be done on an all or nothing basis. + # If a cloud_product is repeated in this list, the first entry will be + # honored and all following entries will be discarded. + # Corresponds to the JSON property `enrolledServices` + # @return [Array] + attr_accessor :enrolled_services + # The resource name of the settings. Format is one of: #
    #
  1. "projects/`project_id`/accessApprovalSettings"
  2. @@ -49,6 +61,7 @@ module Google # Update properties of this object def update!(**args) + @enrolled_services = args[:enrolled_services] if args.key?(:enrolled_services) @name = args[:name] if args.key?(:name) @notification_emails = args[:notification_emails] if args.key?(:notification_emails) end @@ -283,6 +296,44 @@ module Google end end + # Represents the enrollment of a cloud resource into a specific service. + class EnrolledService + include Google::Apis::Core::Hashable + + # The product for which Access Approval will be enrolled. Allowed values are + # listed below (case-sensitive): + #
      + #
    1. all
    2. + #
    3. appengine.googleapis.com
    4. + #
    5. bigquery.googleapis.com
    6. + #
    7. bigtable.googleapis.com
    8. + #
    9. cloudkms.googleapis.com
    10. + #
    11. compute.googleapis.com
    12. + #
    13. dataflow.googleapis.com
    14. + #
    15. iam.googleapis.com
    16. + #
    17. pubsub.googleapis.com
    18. + #
    19. storage.googleapis.com
    20. + #
        + # Corresponds to the JSON property `cloudProduct` + # @return [String] + attr_accessor :cloud_product + + # The enrollment level of the service. + # Corresponds to the JSON property `enrollmentLevel` + # @return [String] + attr_accessor :enrollment_level + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cloud_product = args[:cloud_product] if args.key?(:cloud_product) + @enrollment_level = args[:enrollment_level] if args.key?(:enrollment_level) + end + end + # Response to listing of ApprovalRequest objects. class ListApprovalRequestsResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/accessapproval_v1beta1/representations.rb b/generated/google/apis/accessapproval_v1beta1/representations.rb index de5b63ca6..31bfe6b8c 100644 --- a/generated/google/apis/accessapproval_v1beta1/representations.rb +++ b/generated/google/apis/accessapproval_v1beta1/representations.rb @@ -70,6 +70,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class EnrolledService + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListApprovalRequestsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -85,6 +91,8 @@ module Google class AccessApprovalSettings # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :enrolled_services, as: 'enrolledServices', class: Google::Apis::AccessapprovalV1beta1::EnrolledService, decorator: Google::Apis::AccessapprovalV1beta1::EnrolledService::Representation + property :name, as: 'name' collection :notification_emails, as: 'notificationEmails' end @@ -154,6 +162,14 @@ module Google end end + class EnrolledService + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cloud_product, as: 'cloudProduct' + property :enrollment_level, as: 'enrollmentLevel' + end + end + class ListApprovalRequestsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/accessapproval_v1beta1/service.rb b/generated/google/apis/accessapproval_v1beta1/service.rb index aa563d20a..d267c1693 100644 --- a/generated/google/apis/accessapproval_v1beta1/service.rb +++ b/generated/google/apis/accessapproval_v1beta1/service.rb @@ -78,7 +78,7 @@ module Google end # Updates the settings associated with a project, folder, or organization. - # Completely replaces the existing settings. + # Settings to update are determined by the value of field_mask. # @param [String] name # The resource name of the settings. Format is one of: #
          @@ -87,6 +87,13 @@ module Google #
        1. "organizations/`organization_id`/accessApprovalSettings"
        2. #
            # @param [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] access_approval_settings_object + # @param [String] update_mask + # The update mask applies to the settings. For the `FieldMask` definition, + # see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # fieldmask + # If this field is left unset, only the notification_emails field will be + # updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -104,13 +111,14 @@ 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 update_folder_access_approval_settings(name, access_approval_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def update_folder_access_approval_settings(name, access_approval_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', options) command.request_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation command.request_object = access_approval_settings_object command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -301,7 +309,7 @@ module Google end # Updates the settings associated with a project, folder, or organization. - # Completely replaces the existing settings. + # Settings to update are determined by the value of field_mask. # @param [String] name # The resource name of the settings. Format is one of: #
              @@ -310,6 +318,13 @@ module Google #
            1. "organizations/`organization_id`/accessApprovalSettings"
            2. #
                # @param [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] access_approval_settings_object + # @param [String] update_mask + # The update mask applies to the settings. For the `FieldMask` definition, + # see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # fieldmask + # If this field is left unset, only the notification_emails field will be + # updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -327,13 +342,14 @@ 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 update_organization_access_approval_settings(name, access_approval_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def update_organization_access_approval_settings(name, access_approval_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', options) command.request_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation command.request_object = access_approval_settings_object command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -524,7 +540,7 @@ module Google end # Updates the settings associated with a project, folder, or organization. - # Completely replaces the existing settings. + # Settings to update are determined by the value of field_mask. # @param [String] name # The resource name of the settings. Format is one of: #
                  @@ -533,6 +549,13 @@ module Google #
                1. "organizations/`organization_id`/accessApprovalSettings"
                2. #
                    # @param [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] access_approval_settings_object + # @param [String] update_mask + # The update mask applies to the settings. For the `FieldMask` definition, + # see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # fieldmask + # If this field is left unset, only the notification_emails field will be + # updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -550,13 +573,14 @@ 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 update_project_access_approval_settings(name, access_approval_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def update_project_access_approval_settings(name, access_approval_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', options) command.request_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation command.request_object = access_approval_settings_object command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb index 23286c954..553b4d607 100644 --- a/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/private-catalog/ module CloudprivatecatalogproducerV1beta1 VERSION = 'V1beta1' - REVISION = '20190704' + REVISION = '20190804' # 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/cloudprivatecatalogproducer_v1beta1/service.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb index 7f34231b0..fac197776 100644 --- a/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb @@ -153,7 +153,7 @@ module Google # 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. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index aed61e973..a79151b26 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 = '20190629' + REVISION = '20190804' # 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 ca46a73d0..98693592d 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -3172,7 +3172,7 @@ module Google # Unique resource name for the triggeredJob, assigned by the service when the # triggeredJob is created, for example - # `projects/dlp-test-project/triggeredJobs/53234423`. + # `projects/dlp-test-project/jobTriggers/53234423`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index 4ea1d7f4d..8be34a488 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20190704' + REVISION = '20190802' # 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/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index f3121c494..d1738960e 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -811,6 +811,12 @@ module Google attr_accessor :only_in_predefined_roles alias_method :only_in_predefined_roles?, :only_in_predefined_roles + # The preferred name for this permission. If present, then this permission is + # an alias of, and equivalent to, the listed primary_permission. + # Corresponds to the JSON property `primaryPermission` + # @return [String] + attr_accessor :primary_permission + # The current launch stage of the permission. # Corresponds to the JSON property `stage` # @return [String] @@ -832,6 +838,7 @@ module Google @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @only_in_predefined_roles = args[:only_in_predefined_roles] if args.key?(:only_in_predefined_roles) + @primary_permission = args[:primary_permission] if args.key?(:primary_permission) @stage = args[:stage] if args.key?(:stage) @title = args[:title] if args.key?(:title) end @@ -1166,7 +1173,7 @@ module Google # The name of the role. # When Role is used in CreateRole, the role name must not be set. # When Role is used in output and other input such as UpdateRole, the role - # name is the complete path, e.g., roles/logging.viewer for curated roles + # name is the complete path, e.g., roles/logging.viewer for predefined roles # and organizations/`ORGANIZATION_ID`/roles/logging.viewer for custom roles. # Corresponds to the JSON property `name` # @return [String] diff --git a/generated/google/apis/iam_v1/representations.rb b/generated/google/apis/iam_v1/representations.rb index 583dd0660..3e76ff64b 100644 --- a/generated/google/apis/iam_v1/representations.rb +++ b/generated/google/apis/iam_v1/representations.rb @@ -479,6 +479,7 @@ module Google property :description, as: 'description' property :name, as: 'name' property :only_in_predefined_roles, as: 'onlyInPredefinedRoles' + property :primary_permission, as: 'primaryPermission' property :stage, as: 'stage' property :title, as: 'title' end diff --git a/generated/google/apis/iam_v1/service.rb b/generated/google/apis/iam_v1/service.rb index 43ff3724e..ac170836d 100644 --- a/generated/google/apis/iam_v1/service.rb +++ b/generated/google/apis/iam_v1/service.rb @@ -959,9 +959,10 @@ module Google # effect. # @param [String] name # The resource name of the service account in the following format: - # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT_UNIQUE_ID`'. + # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - # the account. + # the account. The `ACCOUNT` value can be the `email` address or the + # `unique_id` of the service account. # @param [Google::Apis::IamV1::EnableServiceAccountRequest] enable_service_account_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1045,7 +1046,7 @@ module Google # 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. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields @@ -1334,7 +1335,7 @@ module Google # not always be restorable. # @param [String] name # The resource name of the service account in the following format: - # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT_UNIQUE_ID`'. + # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT_UNIQUE_ID``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # the account. # @param [Google::Apis::IamV1::UndeleteServiceAccountRequest] undelete_service_account_request_object diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index 333cb2d4f..be0d02f35 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 = '20190727' + REVISION = '20190801' # 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/service.rb b/generated/google/apis/ml_v1/service.rb index c3081a66c..9c8ccecf7 100644 --- a/generated/google/apis/ml_v1/service.rb +++ b/generated/google/apis/ml_v1/service.rb @@ -221,7 +221,7 @@ module Google # 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. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields @@ -617,7 +617,7 @@ module Google # 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. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields diff --git a/generated/google/apis/remotebuildexecution_v2.rb b/generated/google/apis/remotebuildexecution_v2.rb index 63bcb6424..cad5d6d4c 100644 --- a/generated/google/apis/remotebuildexecution_v2.rb +++ b/generated/google/apis/remotebuildexecution_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV2 VERSION = 'V2' - REVISION = '20190723' + REVISION = '20190731' # 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/remotebuildexecution_v2/classes.rb b/generated/google/apis/remotebuildexecution_v2/classes.rb index 4480b6f27..d38c4f147 100644 --- a/generated/google/apis/remotebuildexecution_v2/classes.rb +++ b/generated/google/apis/remotebuildexecution_v2/classes.rb @@ -2270,6 +2270,32 @@ module Google end end + # AcceleratorConfig defines the accelerator cards to attach to the VM. + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig + include Google::Apis::Core::Hashable + + # The number of the guest accelerator cards exposed to this VM. + # Corresponds to the JSON property `acceleratorCount` + # @return [Fixnum] + attr_accessor :accelerator_count + + # The type of accelerator to attach to this VM, e.g. "nvidia-tesla-k80" for + # nVidia Tesla K80. + # Corresponds to the JSON property `acceleratorType` + # @return [String] + attr_accessor :accelerator_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) + @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) + end + end + # The request used for `CreateInstance`. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest include Google::Apis::Core::Hashable @@ -2617,6 +2643,11 @@ module Google class GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig include Google::Apis::Core::Hashable + # AcceleratorConfig defines the accelerator cards to attach to the VM. + # Corresponds to the JSON property `accelerator` + # @return [Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig] + attr_accessor :accelerator + # Required. Size of the disk attached to the worker, in GB. # See https://cloud.google.com/compute/docs/disks/ # Corresponds to the JSON property `diskSizeGb` @@ -2670,6 +2701,7 @@ module Google # Update properties of this object def update!(**args) + @accelerator = args[:accelerator] if args.key?(:accelerator) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_type = args[:disk_type] if args.key?(:disk_type) @labels = args[:labels] if args.key?(:labels) diff --git a/generated/google/apis/remotebuildexecution_v2/representations.rb b/generated/google/apis/remotebuildexecution_v2/representations.rb index 86da8fb66..512c603f5 100644 --- a/generated/google/apis/remotebuildexecution_v2/representations.rb +++ b/generated/google/apis/remotebuildexecution_v2/representations.rb @@ -292,6 +292,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1012,6 +1018,14 @@ module Google end end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :accelerator_count, :numeric_string => true, as: 'acceleratorCount' + property :accelerator_type, as: 'acceleratorType' + end + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1113,6 +1127,8 @@ module Google class GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :accelerator, as: 'accelerator', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig::Representation + property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' property :disk_type, as: 'diskType' hash :labels, as: 'labels' diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index aa2756104..b4093c4a8 100644 --- a/generated/google/apis/run_v1alpha1.rb +++ b/generated/google/apis/run_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1alpha1 VERSION = 'V1alpha1' - REVISION = '20190703' + REVISION = '20190731' # 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/run_v1alpha1/classes.rb b/generated/google/apis/run_v1alpha1/classes.rb index 5ed306ee2..078f7bd02 100644 --- a/generated/google/apis/run_v1alpha1/classes.rb +++ b/generated/google/apis/run_v1alpha1/classes.rb @@ -64,7 +64,7 @@ module Google # ` # "log_type": "DATA_READ", # "exempted_members": [ - # "user:foo@gmail.com" + # "user:jose@example.com" # ] # `, # ` @@ -76,7 +76,7 @@ module Google # ] # `, # ` - # "service": "fooservice.googleapis.com" + # "service": "sampleservice.googleapis.com" # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -84,16 +84,16 @@ module Google # ` # "log_type": "DATA_WRITE", # "exempted_members": [ - # "user:bar@gmail.com" + # "user:aliya@example.com" # ] # ` # ] # ` # ] # ` - # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts foo@gmail.com from DATA_READ logging, and - # bar@gmail.com from DATA_WRITE logging. + # 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 AuditConfig include Google::Apis::Core::Hashable @@ -127,7 +127,7 @@ module Google # ` # "log_type": "DATA_READ", # "exempted_members": [ - # "user:foo@gmail.com" + # "user:jose@example.com" # ] # `, # ` @@ -136,7 +136,7 @@ module Google # ] # ` # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # foo@gmail.com from DATA_READ logging. + # jose@example.com from DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable @@ -219,7 +219,7 @@ module Google # * `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@gmail.com` . + # 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. @@ -1141,6 +1141,62 @@ module Google end end + # + class EventTypeImporter + include Google::Apis::Core::Hashable + + # The API version of the importer CRD. + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # The kind of the importer CRD. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Parameters required to create an importer for the EventType. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @kind = args[:kind] if args.key?(:kind) + @parameters = args[:parameters] if args.key?(:parameters) + end + end + + # + class EventTypeParameter + include Google::Apis::Core::Hashable + + # Description of the parameter. E.g. "Google Cloud Project Id." + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Name of the parameter. E.g. googleCloudProject. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + end + end + # class EventTypeSpec include Google::Apis::Core::Hashable @@ -1156,6 +1212,11 @@ module Google # @return [String] attr_accessor :description + # The importer that provides this EventType to the eventing mesh. + # Corresponds to the JSON property `importer` + # @return [Google::Apis::RunV1alpha1::EventTypeImporter] + attr_accessor :importer + # Schema is a URI with the EventType schema. It may be a JSON schema, a # protobuf schema, etc. # +optional @@ -1183,6 +1244,7 @@ module Google def update!(**args) @broker = args[:broker] if args.key?(:broker) @description = args[:description] if args.key?(:description) + @importer = args[:importer] if args.key?(:importer) @schema = args[:schema] if args.key?(:schema) @source = args[:source] if args.key?(:source) @type = args[:type] if args.key?(:type) @@ -2405,7 +2467,7 @@ 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 blindly. + # policy is overwritten. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -4079,6 +4141,32 @@ module Google end end + # + class TriggerImporterSpec + include Google::Apis::Core::Hashable + + # Arguments to use for the importer. These must match the parameters in the + # EventType's importer. + # Corresponds to the JSON property `arguments` + # @return [Hash] + attr_accessor :arguments + + # Name of the EventType that this importer provides. + # Corresponds to the JSON property `eventTypeName` + # @return [String] + attr_accessor :event_type_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @arguments = args[:arguments] if args.key?(:arguments) + @event_type_name = args[:event_type_name] if args.key?(:event_type_name) + end + end + # The desired state of the Trigger. class TriggerSpec include Google::Apis::Core::Hashable @@ -4091,13 +4179,18 @@ module Google attr_accessor :broker # Filter is the filter to apply against all events from the Broker. Only - # events that pass this filter will be sent to the Subscriber. If not - # specified, will default to allowing all events. - # This must be specified in Cloud Run. + # events that pass this filter will be sent to the Subscriber. # Corresponds to the JSON property `filter` # @return [Google::Apis::RunV1alpha1::TriggerFilter] attr_accessor :filter + # Specification of the importers that will provide events to the trigger. + # Note, for Cloud Run, the importers will only be used if a filter is not + # specified. + # Corresponds to the JSON property `importers` + # @return [Array] + attr_accessor :importers + # Subscriber is the addressable that receives events from the Broker that # pass the Filter. It is required. # E.g. https://us-central1-myproject.cloudfunctions.net/myfunction or @@ -4114,6 +4207,7 @@ module Google def update!(**args) @broker = args[:broker] if args.key?(:broker) @filter = args[:filter] if args.key?(:filter) + @importers = args[:importers] if args.key?(:importers) @subscriber = args[:subscriber] if args.key?(:subscriber) end end diff --git a/generated/google/apis/run_v1alpha1/representations.rb b/generated/google/apis/run_v1alpha1/representations.rb index 32cdf8dd7..d3bddd296 100644 --- a/generated/google/apis/run_v1alpha1/representations.rb +++ b/generated/google/apis/run_v1alpha1/representations.rb @@ -154,6 +154,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class EventTypeImporter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EventTypeParameter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class EventTypeSpec class Representation < Google::Apis::Core::JsonRepresentation; end @@ -526,6 +538,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TriggerImporterSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TriggerSpec class Representation < Google::Apis::Core::JsonRepresentation; end @@ -808,11 +826,31 @@ module Google end end + class EventTypeImporter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + property :kind, as: 'kind' + collection :parameters, as: 'parameters', class: Google::Apis::RunV1alpha1::EventTypeParameter, decorator: Google::Apis::RunV1alpha1::EventTypeParameter::Representation + + end + end + + class EventTypeParameter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :name, as: 'name' + end + end + class EventTypeSpec # @private class Representation < Google::Apis::Core::JsonRepresentation property :broker, as: 'broker' property :description, as: 'description' + property :importer, as: 'importer', class: Google::Apis::RunV1alpha1::EventTypeImporter, decorator: Google::Apis::RunV1alpha1::EventTypeImporter::Representation + property :schema, as: 'schema' property :source, as: 'source' property :type, as: 'type' @@ -1503,12 +1541,22 @@ module Google end end + class TriggerImporterSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :arguments, as: 'arguments' + property :event_type_name, as: 'eventTypeName' + end + end + class TriggerSpec # @private class Representation < Google::Apis::Core::JsonRepresentation property :broker, as: 'broker' property :filter, as: 'filter', class: Google::Apis::RunV1alpha1::TriggerFilter, decorator: Google::Apis::RunV1alpha1::TriggerFilter::Representation + collection :importers, as: 'importers', class: Google::Apis::RunV1alpha1::TriggerImporterSpec, decorator: Google::Apis::RunV1alpha1::TriggerImporterSpec::Representation + property :subscriber, as: 'subscriber', class: Google::Apis::RunV1alpha1::SubscriberSpec, decorator: Google::Apis::RunV1alpha1::SubscriberSpec::Representation end diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index 2f24cdef2..052e8d304 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20190708' + REVISION = '20190805' # 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/runtimeconfig_v1beta1/service.rb b/generated/google/apis/runtimeconfig_v1beta1/service.rb index e90e519f8..13a8923bd 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/service.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/service.rb @@ -166,7 +166,7 @@ module Google # 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. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields diff --git a/generated/google/apis/servicebroker_v1.rb b/generated/google/apis/servicebroker_v1.rb index 332230d4c..419090952 100644 --- a/generated/google/apis/servicebroker_v1.rb +++ b/generated/google/apis/servicebroker_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1 VERSION = 'V1' - REVISION = '20190708' + REVISION = '20190802' # 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/servicebroker_v1/service.rb b/generated/google/apis/servicebroker_v1/service.rb index 73c41a2a3..4eb74ff88 100644 --- a/generated/google/apis/servicebroker_v1/service.rb +++ b/generated/google/apis/servicebroker_v1/service.rb @@ -57,7 +57,7 @@ module Google # 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. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields diff --git a/generated/google/apis/servicebroker_v1alpha1.rb b/generated/google/apis/servicebroker_v1alpha1.rb index a06cd27fe..821e69a44 100644 --- a/generated/google/apis/servicebroker_v1alpha1.rb +++ b/generated/google/apis/servicebroker_v1alpha1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1alpha1 VERSION = 'V1alpha1' - REVISION = '20190708' + REVISION = '20190802' # 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/servicebroker_v1alpha1/service.rb b/generated/google/apis/servicebroker_v1alpha1/service.rb index 2cf7af939..5fc9e70a4 100644 --- a/generated/google/apis/servicebroker_v1alpha1/service.rb +++ b/generated/google/apis/servicebroker_v1alpha1/service.rb @@ -617,7 +617,7 @@ module Google # 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. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields diff --git a/generated/google/apis/servicebroker_v1beta1.rb b/generated/google/apis/servicebroker_v1beta1.rb index 25ba06a94..95c4e0947 100644 --- a/generated/google/apis/servicebroker_v1beta1.rb +++ b/generated/google/apis/servicebroker_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1beta1 VERSION = 'V1beta1' - REVISION = '20190708' + REVISION = '20190802' # 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/servicebroker_v1beta1/service.rb b/generated/google/apis/servicebroker_v1beta1/service.rb index 884962af6..e95be5c3f 100644 --- a/generated/google/apis/servicebroker_v1beta1/service.rb +++ b/generated/google/apis/servicebroker_v1beta1/service.rb @@ -806,7 +806,7 @@ module Google # 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. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields