generated/google/apis/ml_v1/classes.rb in google-api-client-0.19.3 vs generated/google/apis/ml_v1/classes.rb in google-api-client-0.19.4
- old
+ new
@@ -1343,133 +1343,10 @@
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
@state = args[:state] if args.key?(:state)
end
end
- # Specifies the audit configuration for a service.
- # The configuration determines which permission types are logged, and what
- # identities, if any, are exempted from logging.
- # An AuditConfig must have one or more AuditLogConfigs.
- # If there are AuditConfigs for both `allServices` and a specific service,
- # the union of the two AuditConfigs is used for that service: the log_types
- # specified in each AuditConfig are enabled, and the exempted_members in each
- # AuditConfig are exempted.
- # Example Policy with multiple AuditConfigs:
- # `
- # "audit_configs": [
- # `
- # "service": "allServices"
- # "audit_log_configs": [
- # `
- # "log_type": "DATA_READ",
- # "exempted_members": [
- # "user:foo@gmail.com"
- # ]
- # `,
- # `
- # "log_type": "DATA_WRITE",
- # `,
- # `
- # "log_type": "ADMIN_READ",
- # `
- # ]
- # `,
- # `
- # "service": "fooservice.googleapis.com"
- # "audit_log_configs": [
- # `
- # "log_type": "DATA_READ",
- # `,
- # `
- # "log_type": "DATA_WRITE",
- # "exempted_members": [
- # "user:bar@gmail.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.
- class GoogleIamV1AuditConfig
- include Google::Apis::Core::Hashable
-
- # The configuration for logging of each type of permission.
- # Next ID: 4
- # Corresponds to the JSON property `auditLogConfigs`
- # @return [Array<Google::Apis::MlV1::GoogleIamV1AuditLogConfig>]
- attr_accessor :audit_log_configs
-
- #
- # Corresponds to the JSON property `exemptedMembers`
- # @return [Array<String>]
- attr_accessor :exempted_members
-
- # Specifies a service that will be enabled for audit logging.
- # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
- # `allServices` is a special value that covers all services.
- # Corresponds to the JSON property `service`
- # @return [String]
- attr_accessor :service
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
- @service = args[:service] if args.key?(:service)
- end
- end
-
- # Provides the configuration for logging a type of permissions.
- # Example:
- # `
- # "audit_log_configs": [
- # `
- # "log_type": "DATA_READ",
- # "exempted_members": [
- # "user:foo@gmail.com"
- # ]
- # `,
- # `
- # "log_type": "DATA_WRITE",
- # `
- # ]
- # `
- # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
- # foo@gmail.com from DATA_READ logging.
- class GoogleIamV1AuditLogConfig
- include Google::Apis::Core::Hashable
-
- # Specifies the identities that do not cause logging for this type of
- # permission.
- # Follows the same format of Binding.members.
- # Corresponds to the JSON property `exemptedMembers`
- # @return [Array<String>]
- attr_accessor :exempted_members
-
- # The log type that this config enables.
- # Corresponds to the JSON property `logType`
- # @return [String]
- attr_accessor :log_type
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
- @log_type = args[:log_type] if args.key?(:log_type)
- end
- end
-
# Associates `members` with a `role`.
class GoogleIamV1Binding
include Google::Apis::Core::Hashable
# Represents an expression text. Example:
@@ -1544,15 +1421,10 @@
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class GoogleIamV1Policy
include Google::Apis::Core::Hashable
- # Specifies cloud audit logging configuration for this policy.
- # Corresponds to the JSON property `auditConfigs`
- # @return [Array<Google::Apis::MlV1::GoogleIamV1AuditConfig>]
- attr_accessor :audit_configs
-
# Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::MlV1::GoogleIamV1Binding>]
attr_accessor :bindings
@@ -1569,16 +1441,10 @@
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
- #
- # Corresponds to the JSON property `iamOwned`
- # @return [Boolean]
- attr_accessor :iam_owned
- alias_method :iam_owned?, :iam_owned
-
# Deprecated.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@@ -1586,13 +1452,11 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
- @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
- @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
@version = args[:version] if args.key?(:version)
end
end
# Request message for `SetIamPolicy` method.