mirror of
https://github.com/restic/restic.git
synced 2025-10-10 12:00:56 +00:00
Update vendored library google.golang.org/api
This commit is contained in:
3184
vendor/google.golang.org/api/iam/v1/iam-api.json
generated
vendored
3184
vendor/google.golang.org/api/iam/v1/iam-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
443
vendor/google.golang.org/api/iam/v1/iam-gen.go
generated
vendored
443
vendor/google.golang.org/api/iam/v1/iam-gen.go
generated
vendored
@@ -56,6 +56,7 @@ func New(client *http.Client) (*Service, error) {
|
||||
return nil, errors.New("client is nil")
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
s.IamPolicies = NewIamPoliciesService(s)
|
||||
s.Organizations = NewOrganizationsService(s)
|
||||
s.Permissions = NewPermissionsService(s)
|
||||
s.Projects = NewProjectsService(s)
|
||||
@@ -68,6 +69,8 @@ type Service struct {
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
|
||||
IamPolicies *IamPoliciesService
|
||||
|
||||
Organizations *OrganizationsService
|
||||
|
||||
Permissions *PermissionsService
|
||||
@@ -84,6 +87,15 @@ func (s *Service) userAgent() string {
|
||||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
func NewIamPoliciesService(s *Service) *IamPoliciesService {
|
||||
rs := &IamPoliciesService{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type IamPoliciesService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
func NewOrganizationsService(s *Service) *OrganizationsService {
|
||||
rs := &OrganizationsService{s: s}
|
||||
rs.Roles = NewOrganizationsRolesService(s)
|
||||
@@ -168,6 +180,100 @@ type RolesService 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
|
||||
// AuditLogConfig 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"`
|
||||
|
||||
// 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)
|
||||
}
|
||||
|
||||
// AuditData: Audit log information specific to Cloud IAM. This message
|
||||
// is serialized
|
||||
// as an `Any` type in the `ServiceData` message of an
|
||||
@@ -200,6 +306,96 @@ func (s *AuditData) MarshalJSON() ([]byte, error) {
|
||||
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)
|
||||
}
|
||||
|
||||
// AuditableService: Contains information about an auditable service.
|
||||
type AuditableService struct {
|
||||
// Name: Public name of the service.
|
||||
// For example, the service name for Cloud IAM is 'iam.googleapis.com'.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *AuditableService) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod AuditableService
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Binding: Associates `members` with a `role`.
|
||||
type Binding struct {
|
||||
// Members: Specifies the identities requesting access for a Cloud
|
||||
@@ -566,6 +762,10 @@ func (s *ListServiceAccountsResponse) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Permission: A permission which can be included by a role.
|
||||
type Permission struct {
|
||||
// ApiDisabled: The service API associated with the permission is not
|
||||
// enabled.
|
||||
ApiDisabled bool `json:"apiDisabled,omitempty"`
|
||||
|
||||
// CustomRolesSupportLevel: The current custom role support level.
|
||||
//
|
||||
// Possible values:
|
||||
@@ -597,22 +797,20 @@ type Permission struct {
|
||||
// Title: The title of this Permission.
|
||||
Title string `json:"title,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "CustomRolesSupportLevel") 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 is a list of field names (e.g. "ApiDisabled") 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. "CustomRolesSupportLevel")
|
||||
// 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 is a list of field names (e.g. "ApiDisabled") 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:"-"`
|
||||
}
|
||||
|
||||
@@ -659,6 +857,10 @@ func (s *Permission) MarshalJSON() ([]byte, error) {
|
||||
// For a description of IAM and its features, see the
|
||||
// [IAM developer's guide](https://cloud.google.com/iam/docs).
|
||||
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"`
|
||||
@@ -690,7 +892,7 @@ type Policy struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Bindings") to
|
||||
// ForceSendFields is a list of field names (e.g. "AuditConfigs") 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
|
||||
@@ -698,10 +900,10 @@ type Policy struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// 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
|
||||
// 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
|
||||
// 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:"-"`
|
||||
@@ -741,6 +943,76 @@ func (s *PolicyDelta) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// QueryAuditableServicesRequest: A request to get the list of auditable
|
||||
// services for a resource.
|
||||
type QueryAuditableServicesRequest struct {
|
||||
// FullResourceName: Required. The full resource name to query from the
|
||||
// list of auditable
|
||||
// services.
|
||||
//
|
||||
// The name follows the Google Cloud Platform resource format.
|
||||
// For example, a Cloud Platform project with id `my-project` will be
|
||||
// named
|
||||
// `//cloudresourcemanager.googleapis.com/projects/my-project`.
|
||||
FullResourceName string `json:"fullResourceName,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "FullResourceName") 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. "FullResourceName") 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 *QueryAuditableServicesRequest) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod QueryAuditableServicesRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// QueryAuditableServicesResponse: A response containing a list of
|
||||
// auditable services for a resource.
|
||||
type QueryAuditableServicesResponse struct {
|
||||
// Services: The auditable services for a resource.
|
||||
Services []*AuditableService `json:"services,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Services") 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. "Services") 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 *QueryAuditableServicesResponse) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod QueryAuditableServicesResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// QueryGrantableRolesRequest: The grantable role query request.
|
||||
type QueryGrantableRolesRequest struct {
|
||||
// FullResourceName: Required. The full resource name to query from the
|
||||
@@ -1127,7 +1399,7 @@ type ServiceAccountKey struct {
|
||||
// responses. Make sure to keep the private key data secure because
|
||||
// it
|
||||
// allows for the assertion of the service account identity.
|
||||
// When decoded, the private key data can be used to authenticate
|
||||
// When base64 decoded, the private key data can be used to authenticate
|
||||
// with
|
||||
// Google API client libraries and with
|
||||
// <a
|
||||
@@ -1201,6 +1473,15 @@ 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,
|
||||
@@ -1448,6 +1729,128 @@ func (s *UndeleteRoleRequest) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// method id "iam.iamPolicies.queryAuditableServices":
|
||||
|
||||
type IamPoliciesQueryAuditableServicesCall struct {
|
||||
s *Service
|
||||
queryauditableservicesrequest *QueryAuditableServicesRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// QueryAuditableServices: Returns a list of services that support
|
||||
// service level audit logging
|
||||
// configuration for the given resource.
|
||||
func (r *IamPoliciesService) QueryAuditableServices(queryauditableservicesrequest *QueryAuditableServicesRequest) *IamPoliciesQueryAuditableServicesCall {
|
||||
c := &IamPoliciesQueryAuditableServicesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.queryauditableservicesrequest = queryauditableservicesrequest
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *IamPoliciesQueryAuditableServicesCall) Fields(s ...googleapi.Field) *IamPoliciesQueryAuditableServicesCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *IamPoliciesQueryAuditableServicesCall) Context(ctx context.Context) *IamPoliciesQueryAuditableServicesCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *IamPoliciesQueryAuditableServicesCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *IamPoliciesQueryAuditableServicesCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.queryauditableservicesrequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/iamPolicies:queryAuditableServices")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "iam.iamPolicies.queryAuditableServices" call.
|
||||
// Exactly one of *QueryAuditableServicesResponse or error will be
|
||||
// non-nil. Any non-2xx status code is an error. Response headers are in
|
||||
// either *QueryAuditableServicesResponse.ServerResponse.Header or (if a
|
||||
// response was returned at all) in error.(*googleapi.Error).Header. Use
|
||||
// googleapi.IsNotModified to check whether the returned error was
|
||||
// because http.StatusNotModified was returned.
|
||||
func (c *IamPoliciesQueryAuditableServicesCall) Do(opts ...googleapi.CallOption) (*QueryAuditableServicesResponse, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &QueryAuditableServicesResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns a list of services that support service level audit logging\nconfiguration for the given resource.",
|
||||
// "flatPath": "v1/iamPolicies:queryAuditableServices",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "iam.iamPolicies.queryAuditableServices",
|
||||
// "parameterOrder": [],
|
||||
// "parameters": {},
|
||||
// "path": "v1/iamPolicies:queryAuditableServices",
|
||||
// "request": {
|
||||
// "$ref": "QueryAuditableServicesRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "QueryAuditableServicesResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "iam.organizations.roles.create":
|
||||
|
||||
type OrganizationsRolesCreateCall struct {
|
||||
|
Reference in New Issue
Block a user