Update dependencies
This commit is contained in:
parent
f3b49987f8
commit
fda563d606
926 changed files with 189726 additions and 98666 deletions
4474
vendor/google.golang.org/api/spanner/v1/spanner-api.json
generated
vendored
4474
vendor/google.golang.org/api/spanner/v1/spanner-api.json
generated
vendored
File diff suppressed because one or more lines are too long
586
vendor/google.golang.org/api/spanner/v1/spanner-gen.go
generated
vendored
586
vendor/google.golang.org/api/spanner/v1/spanner-gen.go
generated
vendored
|
@ -162,163 +162,6 @@ type ProjectsInstancesOperationsService struct {
|
|||
s *Service
|
||||
}
|
||||
|
||||
// AuditConfig: 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.
|
||||
type AuditConfig struct {
|
||||
// AuditLogConfigs: The configuration for logging of each type of
|
||||
// permission.
|
||||
// Next ID: 4
|
||||
AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
|
||||
|
||||
ExemptedMembers []string `json:"exemptedMembers,omitempty"`
|
||||
|
||||
// Service: 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.
|
||||
Service string `json:"service,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AuditLogConfigs") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *AuditConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuditConfig
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// AuditLogConfig: 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.
|
||||
type AuditLogConfig struct {
|
||||
// ExemptedMembers: Specifies the identities that do not cause logging
|
||||
// for this type of
|
||||
// permission.
|
||||
// Follows the same format of Binding.members.
|
||||
ExemptedMembers []string `json:"exemptedMembers,omitempty"`
|
||||
|
||||
// LogType: The log type that this config enables.
|
||||
//
|
||||
// Possible values:
|
||||
// "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
|
||||
// "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
|
||||
// "DATA_WRITE" - Data writes. Example: CloudSQL Users create
|
||||
// "DATA_READ" - Data reads. Example: CloudSQL Users list
|
||||
LogType string `json:"logType,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "ExemptedMembers") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuditLogConfig
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BeginTransactionRequest: The request for BeginTransaction.
|
||||
type BeginTransactionRequest struct {
|
||||
// Options: Required. Options for the new transaction.
|
||||
|
@ -349,15 +192,6 @@ func (s *BeginTransactionRequest) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// Binding: Associates `members` with a `role`.
|
||||
type Binding struct {
|
||||
// Condition: The condition that is associated with this binding.
|
||||
// NOTE: an unsatisfied condition will not allow user access via
|
||||
// current
|
||||
// binding. Different bindings, including their conditions, are
|
||||
// examined
|
||||
// independently.
|
||||
// This field is GOOGLE_INTERNAL.
|
||||
Condition *Expr `json:"condition,omitempty"`
|
||||
|
||||
// Members: Specifies the identities requesting access for a Cloud
|
||||
// Platform resource.
|
||||
// `members` can have the following values:
|
||||
|
@ -399,7 +233,7 @@ type Binding struct {
|
|||
// Required
|
||||
Role string `json:"role,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Condition") to
|
||||
// ForceSendFields is a list of field names (e.g. "Members") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
|
@ -407,7 +241,7 @@ type Binding struct {
|
|||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Condition") to include in
|
||||
// NullFields is a list of field names (e.g. "Members") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
|
@ -476,47 +310,6 @@ func (s *ChildLink) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CloudAuditOptions: Write a Cloud Audit log
|
||||
type CloudAuditOptions struct {
|
||||
// IsReadPermissionType: True if the log is for a permission of type
|
||||
// DATA_READ or ADMIN_READ.
|
||||
IsReadPermissionType bool `json:"isReadPermissionType,omitempty"`
|
||||
|
||||
// LogName: The log_name to populate in the Cloud Audit Record.
|
||||
//
|
||||
// Possible values:
|
||||
// "UNSPECIFIED_LOG_NAME" - Default. Should not be used.
|
||||
// "ADMIN_ACTIVITY" - Corresponds to
|
||||
// "cloudaudit.googleapis.com/activity"
|
||||
// "DATA_ACCESS" - Corresponds to
|
||||
// "cloudaudit.googleapis.com/data_access"
|
||||
LogName string `json:"logName,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "IsReadPermissionType") to unconditionally include in API requests.
|
||||
// By default, fields with empty values are omitted from API requests.
|
||||
// However, any non-pointer, non-interface field appearing in
|
||||
// ForceSendFields will be sent to the server regardless of whether the
|
||||
// field is empty or not. This may be used to include empty fields in
|
||||
// Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "IsReadPermissionType") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *CloudAuditOptions) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CloudAuditOptions
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CommitRequest: The request for Commit.
|
||||
type CommitRequest struct {
|
||||
// Mutations: The mutations to be executed when this transaction
|
||||
|
@ -599,144 +392,6 @@ func (s *CommitResponse) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Condition: A condition to be met.
|
||||
type Condition struct {
|
||||
// Iam: Trusted attributes supplied by the IAM system.
|
||||
//
|
||||
// Possible values:
|
||||
// "NO_ATTR" - Default non-attribute.
|
||||
// "AUTHORITY" - Either principal or (if present) authority selector.
|
||||
// "ATTRIBUTION" - The principal (even if an authority selector is
|
||||
// present), which
|
||||
// must only be used for attribution, not authorization.
|
||||
// "SECURITY_REALM" - Any of the security realms in the IAMContext
|
||||
// (go/security-realms).
|
||||
// When used with IN, the condition indicates "any of the request's
|
||||
// realms
|
||||
// match one of the given values; with NOT_IN, "none of the realms
|
||||
// match
|
||||
// any of the given values". It is not permitted to grant access based
|
||||
// on
|
||||
// the *absence* of a realm, so realm conditions can only be used in
|
||||
// a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN).
|
||||
// "APPROVER" - An approver (distinct from the requester) that has
|
||||
// authorized this
|
||||
// request.
|
||||
// When used with IN, the condition indicates that one of the
|
||||
// approvers
|
||||
// associated with the request matches the specified principal, or is
|
||||
// a
|
||||
// member of the specified group. Approvers can only grant
|
||||
// additional
|
||||
// access, and are thus only used in a strictly positive context
|
||||
// (e.g. ALLOW/IN or DENY/NOT_IN).
|
||||
// "JUSTIFICATION_TYPE" - What types of justifications have been
|
||||
// supplied with this request.
|
||||
// String values should match enum names from
|
||||
// tech.iam.JustificationType,
|
||||
// e.g. "MANUAL_STRING". It is not permitted to grant access based
|
||||
// on
|
||||
// the *absence* of a justification, so justification conditions can
|
||||
// only
|
||||
// be used in a "positive" context (e.g., ALLOW/IN or
|
||||
// DENY/NOT_IN).
|
||||
//
|
||||
// Multiple justifications, e.g., a Buganizer ID and a
|
||||
// manually-entered
|
||||
// reason, are normal and supported.
|
||||
Iam string `json:"iam,omitempty"`
|
||||
|
||||
// Op: An operator to apply the subject with.
|
||||
//
|
||||
// Possible values:
|
||||
// "NO_OP" - Default no-op.
|
||||
// "EQUALS" - DEPRECATED. Use IN instead.
|
||||
// "NOT_EQUALS" - DEPRECATED. Use NOT_IN instead.
|
||||
// "IN" - The condition is true if the subject (or any element of it
|
||||
// if it is
|
||||
// a set) matches any of the supplied values.
|
||||
// "NOT_IN" - The condition is true if the subject (or every element
|
||||
// of it if it is
|
||||
// a set) matches none of the supplied values.
|
||||
// "DISCHARGED" - Subject is discharged
|
||||
Op string `json:"op,omitempty"`
|
||||
|
||||
// Svc: Trusted attributes discharged by the service.
|
||||
Svc string `json:"svc,omitempty"`
|
||||
|
||||
// Sys: Trusted attributes supplied by any service that owns resources
|
||||
// and uses
|
||||
// the IAM system for access control.
|
||||
//
|
||||
// Possible values:
|
||||
// "NO_ATTR" - Default non-attribute type
|
||||
// "REGION" - Region of the resource
|
||||
// "SERVICE" - Service name
|
||||
// "NAME" - Resource name
|
||||
// "IP" - IP address of the caller
|
||||
Sys string `json:"sys,omitempty"`
|
||||
|
||||
// Value: DEPRECATED. Use 'values' instead.
|
||||
Value string `json:"value,omitempty"`
|
||||
|
||||
// Values: The objects of the condition. This is mutually exclusive with
|
||||
// 'value'.
|
||||
Values []string `json:"values,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Iam") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Iam") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Condition) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Condition
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CounterOptions: Options for counters
|
||||
type CounterOptions struct {
|
||||
// Field: The field value to attribute.
|
||||
Field string `json:"field,omitempty"`
|
||||
|
||||
// Metric: The metric to update.
|
||||
Metric string `json:"metric,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Field") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Field") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *CounterOptions) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CounterOptions
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CreateDatabaseMetadata: Metadata type for the operation returned
|
||||
// by
|
||||
// CreateDatabase.
|
||||
|
@ -894,10 +549,6 @@ func (s *CreateInstanceRequest) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DataAccessOptions: Write a Data Access (Gin) log
|
||||
type DataAccessOptions struct {
|
||||
}
|
||||
|
||||
// Database: A Cloud Spanner database.
|
||||
type Database struct {
|
||||
// Name: Required. The name of the database. Values are of the
|
||||
|
@ -1091,60 +742,6 @@ func (s *ExecuteSqlRequest) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Expr: Represents an expression text. Example:
|
||||
//
|
||||
// title: "User account presence"
|
||||
// description: "Determines whether the request has a user account"
|
||||
// expression: "size(request.user) > 0"
|
||||
type Expr struct {
|
||||
// Description: An optional description of the expression. This is a
|
||||
// longer text which
|
||||
// describes the expression, e.g. when hovered over it in a UI.
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
// Expression: Textual representation of an expression in
|
||||
// Common Expression Language syntax.
|
||||
//
|
||||
// The application context of the containing message determines
|
||||
// which
|
||||
// well-known feature set of CEL is supported.
|
||||
Expression string `json:"expression,omitempty"`
|
||||
|
||||
// Location: An optional string indicating the location of the
|
||||
// expression for error
|
||||
// reporting, e.g. a file name and a position in the file.
|
||||
Location string `json:"location,omitempty"`
|
||||
|
||||
// Title: An optional title for the expression, i.e. a short string
|
||||
// describing
|
||||
// its purpose. This can be used e.g. in UIs which allow to enter
|
||||
// the
|
||||
// expression.
|
||||
Title string `json:"title,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Description") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Description") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Expr) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Expr
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Field: Message representing a single field of a struct.
|
||||
type Field struct {
|
||||
// Name: The name of the field. For reads, this is the column name.
|
||||
|
@ -1743,69 +1340,6 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// LogConfig: Specifies what kind of log the caller must write
|
||||
// Increment a streamz counter with the specified metric and field
|
||||
// names.
|
||||
//
|
||||
// Metric names should start with a '/', generally be
|
||||
// lowercase-only,
|
||||
// and end in "_count". Field names should not contain an initial
|
||||
// slash.
|
||||
// The actual exported metric names will have "/iam/policy"
|
||||
// prepended.
|
||||
//
|
||||
// Field names correspond to IAM request parameters and field values
|
||||
// are
|
||||
// their respective values.
|
||||
//
|
||||
// At present the only supported field names are
|
||||
// - "iam_principal", corresponding to IAMContext.principal;
|
||||
// - "" (empty string), resulting in one aggretated counter with no
|
||||
// field.
|
||||
//
|
||||
// Examples:
|
||||
// counter { metric: "/debug_access_count" field: "iam_principal" }
|
||||
// ==> increment counter /iam/policy/backend_debug_access_count
|
||||
// {iam_principal=[value of
|
||||
// IAMContext.principal]}
|
||||
//
|
||||
// At this time we do not support:
|
||||
// * multiple field names (though this may be supported in the future)
|
||||
// * decrementing the counter
|
||||
// * incrementing it by anything other than 1
|
||||
type LogConfig struct {
|
||||
// CloudAudit: Cloud audit options.
|
||||
CloudAudit *CloudAuditOptions `json:"cloudAudit,omitempty"`
|
||||
|
||||
// Counter: Counter options.
|
||||
Counter *CounterOptions `json:"counter,omitempty"`
|
||||
|
||||
// DataAccess: Data access options.
|
||||
DataAccess *DataAccessOptions `json:"dataAccess,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CloudAudit") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CloudAudit") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *LogConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod LogConfig
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Mutation: A modification to one or more Cloud Spanner rows.
|
||||
// Mutations can be
|
||||
// applied to a Cloud Spanner database by sending them in a
|
||||
|
@ -2207,10 +1741,6 @@ func (s *PlanNode) MarshalJSON() ([]byte, error) {
|
|||
// For a description of IAM and its features, see the
|
||||
// [IAM developer's guide](https://cloud.google.com/iam).
|
||||
type Policy struct {
|
||||
// AuditConfigs: Specifies cloud audit logging configuration for this
|
||||
// policy.
|
||||
AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
|
||||
|
||||
// Bindings: Associates a list of `members` to a `role`.
|
||||
// `bindings` with no members will result in an error.
|
||||
Bindings []*Binding `json:"bindings,omitempty"`
|
||||
|
@ -2235,22 +1765,6 @@ type Policy struct {
|
|||
// policy is overwritten blindly.
|
||||
Etag string `json:"etag,omitempty"`
|
||||
|
||||
IamOwned bool `json:"iamOwned,omitempty"`
|
||||
|
||||
// Rules: If more than one rule is specified, the rules are applied in
|
||||
// the following
|
||||
// manner:
|
||||
// - All matching LOG rules are always applied.
|
||||
// - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
|
||||
// Logging will be applied if one or more matching rule requires
|
||||
// logging.
|
||||
// - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
|
||||
// granted.
|
||||
// Logging will be applied if one or more matching rule requires
|
||||
// logging.
|
||||
// - Otherwise, if no rule applies, permission is denied.
|
||||
Rules []*Rule `json:"rules,omitempty"`
|
||||
|
||||
// Version: Version of the `Policy`. The default version is 0.
|
||||
Version int64 `json:"version,omitempty"`
|
||||
|
||||
|
@ -2258,7 +1772,7 @@ type Policy struct {
|
|||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
|
||||
// ForceSendFields is a list of field names (e.g. "Bindings") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
|
@ -2266,10 +1780,10 @@ type Policy struct {
|
|||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AuditConfigs") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// NullFields is a list of field names (e.g. "Bindings") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
|
@ -2652,77 +2166,6 @@ func (s *RollbackRequest) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Rule: A rule to be applied in a Policy.
|
||||
type Rule struct {
|
||||
// Action: Required
|
||||
//
|
||||
// Possible values:
|
||||
// "NO_ACTION" - Default no action.
|
||||
// "ALLOW" - Matching 'Entries' grant access.
|
||||
// "ALLOW_WITH_LOG" - Matching 'Entries' grant access and the caller
|
||||
// promises to log
|
||||
// the request per the returned log_configs.
|
||||
// "DENY" - Matching 'Entries' deny access.
|
||||
// "DENY_WITH_LOG" - Matching 'Entries' deny access and the caller
|
||||
// promises to log
|
||||
// the request per the returned log_configs.
|
||||
// "LOG" - Matching 'Entries' tell IAM.Check callers to generate logs.
|
||||
Action string `json:"action,omitempty"`
|
||||
|
||||
// Conditions: Additional restrictions that must be met
|
||||
Conditions []*Condition `json:"conditions,omitempty"`
|
||||
|
||||
// Description: Human-readable description of the rule.
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
// In: If one or more 'in' clauses are specified, the rule matches
|
||||
// if
|
||||
// the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
|
||||
In []string `json:"in,omitempty"`
|
||||
|
||||
// LogConfig: The config returned to callers of tech.iam.IAM.CheckPolicy
|
||||
// for any entries
|
||||
// that match the LOG action.
|
||||
LogConfig []*LogConfig `json:"logConfig,omitempty"`
|
||||
|
||||
// NotIn: If one or more 'not_in' clauses are specified, the rule
|
||||
// matches
|
||||
// if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
|
||||
// The format for in and not_in entries is the same as for members in
|
||||
// a
|
||||
// Binding (see google/iam/v1/policy.proto).
|
||||
NotIn []string `json:"notIn,omitempty"`
|
||||
|
||||
// Permissions: A permission is a string of form '<service>.<resource
|
||||
// type>.<verb>'
|
||||
// (e.g., 'storage.buckets.list'). A value of '*' matches all
|
||||
// permissions,
|
||||
// and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
|
||||
Permissions []string `json:"permissions,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Action") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Action") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Rule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Rule
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Session: A session in the Cloud Spanner API.
|
||||
type Session struct {
|
||||
// Name: Required. The name of the session.
|
||||
|
@ -2765,15 +2208,6 @@ type SetIamPolicyRequest struct {
|
|||
// might reject them.
|
||||
Policy *Policy `json:"policy,omitempty"`
|
||||
|
||||
// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
|
||||
// policy to modify. Only
|
||||
// the fields in the mask will be modified. If no mask is provided,
|
||||
// the
|
||||
// following default mask is used:
|
||||
// paths: "bindings, etag"
|
||||
// This field is only used by Cloud IAM.
|
||||
UpdateMask string `json:"updateMask,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Policy") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
|
@ -2923,9 +2357,9 @@ type Status struct {
|
|||
// google.rpc.Code.
|
||||
Code int64 `json:"code,omitempty"`
|
||||
|
||||
// Details: A list of messages that carry the error details. There will
|
||||
// be a
|
||||
// common set of message types for APIs to use.
|
||||
// Details: A list of messages that carry the error details. There is a
|
||||
// common set of
|
||||
// message types for APIs to use.
|
||||
Details []googleapi.RawMessage `json:"details,omitempty"`
|
||||
|
||||
// Message: A developer-facing error message, which should be in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue